HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference

34
Related commands
statistics interval
expect data
Use expect data to configure the expected data.
Use undo expect data to restore the default.
Syntax
expect data expression [ offset number ]
undo expect data
Default
No expected data is configured.
Views
HTTP template view, TCP template view
Predefined user roles
network-admin
Parameters
expression: Specifies the expected data, a case-sensitive string of 1 to 200 characters.
offset number: Specifies the offset between the expected data and the actual data. The value range for
the number argument is 0 to 1000, and the default value is 0.
Usage guidelines
After you configure the expected data for the NQA operation, the NQA client checks the data in the
received response. If the actual data is the same as the expected data, it considers the NQA destination
device legal.
For an HTTP template, the expected data is checked only when the actual response contains the
Content-Length header.
For a TCP template, the expected data is checked only when the data-fill command and the expect data
command are configured.
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