166 Cisco LAN Switching Configuration Handbook
c. (Optional) Specify the probe header information:
d. (Optional) Specify the HTTP authentication values:
e. (Optional) Expect a specific status code to be returned:
(Optional; WSP probe only) Define the target URL:
4.
(probe) url [path]
A URL can also be given, specifying the server path (text string URL; default /).
Displaying Information About SLB Probes
To display helpful configuration and status information about SLB probes, enter the
following command:
(exec) show ip slb probe [name probe_name] [detail]
The probe requests information from the server using the get (the default), post,
head (request a header data type), or name (request the data named name)
method. A URL can also be given, specifying the server path (text string URL;
default /).
(probe) header field-name [field-value]
The probe header name is set to field-name (text string up to 15 characters), with
a value of field-value. A colon is automatically inserted between the name and
value. By default, the request contains these headers:
Accept: */*
Connection: close
User-Agent: cisco-slb-probe/1.0
Host: virtual-IP-address
(probe) credentials username [password]
If HTTP authentication is required, a username (text string, up to 15 characters)
and a password (text string up to 15 characters) can be given for the probe.
(probe) expect [status status-code] [regex regular-expression]
A real server or a firewall is considered to have failed if it either does not
respond to an HTTP probe or if it returns a status-code (100 to 599, default 200)
other than the one specified. For firewalls, the status-code should be set to 401.
For a CSM, the status code must be within the range min-number (default 0)
and max-number (optional, default 999).
With IOS SLB, you can also expect a regular expression along with the status
code. Use the regex keyword and specify a regular-expression (text string, no
default). Only the first 2920 bytes of the probe reply are searched for a match.