197
•
For features that use the HTTP template, the NQA client checks for the expected data if the
HTTP response contains the Content-Length header.
•
For features that use the TCP or UDP template, the NQA client checks for the expected data if
the
data-fill
command is 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 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.
Views
DNS template view
Predefined user roles
network-admin
Parameters
ip-address
: Specifies the expected IP address for a DNS echo request.
Usage guidelines
During a DNS operation, the NQA client compares the expected IP address with the IP address
resolved by the DNS server. If they are the same, it considers the DNS server legal.
Examples
# In DNS template view, configure the expected IP address as 1.1.1.1.
<Sysname> system-view
[Sysname] nqa template dns dnstplt
[Sysname-nqatplt-dns-dnstplt] expect ip 1.1.1.1
expect ipv6
Use
expect ipv6
to specify the expected IPv6 address.
Use
undo expect ipv6
to remove all expected IPv6 addresses.
Syntax
expect ipv6 ipv6-address
undo expect ipv6