SROS Command Line Interface Reference Guide
Network Monitor Probe Command Set
5991-2114
© Copyright 2007 Hewlett-Packard Development Company, L.P.
1335
expect regex
<expression>
Use the
expect regex
command to configure the probe to expect a regular expression inside the contents of
the HTTP response message. If the regular expression does not match anything, the probe fails. Use the
no
form of this command to return to the default.
Syntax Description
<expression>
Specifies the expression to display.
Default Values
By default, no regular expression is defined.
Functional Notes
This command can only be executed while in the
probe
<name>
http-request
command set.
Usage Examples
The following example only allows the
probe1
test to pass if the word
success
is found in the HTTP server
response message:
ProCurve(config)#
probe probe1 http-request
ProCurve(config-probe-probe1)#
expect regex success