Command Reference Guide
expect regex <expression>
Use the expect regex command to configure the probe to expect a regular expression inside the contents of
the Hypertext Transfer Protocol (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 setting.
Syntax Description
<expression>
Default Values
By default, no regular expression is defined.
Command History
Release 13.1
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:
(config)#probe probe1 http-request
(config-probe-probe1)#expect regex success
60000CRG0-35E
Specifies the expression to display.
Command was introduced.
Copyright © 2012 ADTRAN, Inc.
Network Monitor Probe Command Set
2948