R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

35
Examples
# In HTTP template view, configure the expected data as welcome!.
<Sysname> system-view
[Sysname] nqa template http httptplt
[Sysname-nqatplt-http-httptplt] expect data welcome!
expect status
Use expect status to configure the expected status code.
Use undo expect status to restore the default.
Syntax
expect status status-list
undo expect status [ status-list ]
Default
No expected status code is configured.
Views
HTTP template view
Predefined user roles
network-admin
Parameters
status-list: Specifies a space-separated list of up to 10 status codes. The value range for status-num is 0 to
999, and status-num2 cannot be smaller than status-num1.
Usage guidelines
The status code of the HTTP packet is a three-digit field in decimal notation and it includes the status
information for the HTTP server. The first digit defines the class of response, and the last two digits do not
have any categorization role.
Examples
# In HTTP template view, configure the expected status codes 200, 300, and 400 to 500.
<Sysname> system-view
[Sysname] nqa template http httptplt
[Sysname-nqatplt-http-httptplt] expect status 200 300 400 to 500
expect ip
Use expect ip to specify the expected IP address.
Use undo expect ip to remove all expected IP addresses.
Syntax
expect ip ip-address
undo expect ip
Default
No expected IP address is configured.