[DeviceA-nqatplt-udp-udp] reaction trigger probe-fail 2
HTTP template configuration example
Network requirements
As shown in
operation tests whether the NQA client can get data from the HTTP server.
Figure 56 Network diagram
NQA client
10.1.1.1/16
Device A
Configuration procedure
# Assign IP addresses to interfaces, as shown in
# Configure static routes or a routing protocol to make sure the devices can reach each other.
(Details not shown.)
# Create the HTTP template http.
<DeviceA> system-view
[DeviceA] nqa template http http
# Specify http://10.2.2.2/index.htm as the URL of the HTTP server.
[DeviceA-nqatplt-http-http] url http://10.2.2.2/index.htm
# Set the HTTP operation type to get.
[DeviceA-nqatplt-http-http] operation get
# Configure the NQA client to notify the feature of the successful operation event if the number of
consecutive successful probes reaches 2.
[DeviceA-nqatplt-http-http] reaction trigger probe-pass 2
# Configure the NQA client to notify the feature of the operation failure if the number of consecutive
failed probes reaches 2.
[DeviceA-nqatplt-http-http] reaction trigger probe-fail 2
HTTPS template configuration example
Network requirements
As shown in
get data from the HTTPS server (Device B).
Figure 57 Network diagram
NQA client
Device A
Configuration procedure
# Assign IP addresses to interfaces, as shown in
Figure
56, configure an HTTP template for a feature to perform the HTTP operation. The
10.2.2.2/16
IP network
Figure
57, configure an HTTPS template for a feature to test whether the NQA client can
10.1.1.1/16
IP network
HTTP server
Device B
Figure
56. (Details not shown.)
HTTPS server
10.2.2.2/16
Device B
Figure
57. (Details not shown.)
153