beautypg.com

Tcp template configuration example, Network requirements, Configuration procedure – H3C Technologies H3C MSR 5600 User Manual

Page 69: Http template configuration example

background image

56

[DeviceA-nqatplt-dns-dns] reaction trigger probe-pass 2

# If the number of consecutive probe failures reaches 2, the operation fails.

[DeviceA-nqatplt-dns-dns] reaction trigger probe-fail 2

TCP template configuration example

Network requirements

As shown in

Figure 22

, configure a TCP template for a feature to perform the TCP operation to test

whether Device A can establish a TCP connection to Device B and process the server's response.

Figure 22 Network diagram

Configuration procedure

1.

Assign each interface an IP address. (Details not shown.)

2.

Configure static routes or a routing protocol to make sure the devices can reach each other.
(Details not shown.)

3.

Configure Device B:
# Enable the NQA server, and configure a listening service to listen to the IP address 10.2.2.2 and
TCP port 9000.

system-view

[DeviceB] nqa server enable

[DeviceB] nqa server tcp-connect 10.2.2.2 9000

4.

Configure Device A:
# Create TCP template tcp.

system-view

[DeviceA] nqa template tcp tcp

# Configure 10.2.2.2 as the destination IP address and port 9000 as the destination port.

[DeviceA-nqatplt-tcp-tcp] destination ip 10.2.2.2

[DeviceA-nqatplt-tcp-tcp] destination port 9000

# If the number of consecutive successful probes reaches 2, the operation succeeds.

[DeviceA-nqatplt-tcp-tcp] reaction trigger probe-pass 2

# If the number of consecutive probe failures reaches 2, the operation fails.

[DeviceA-nqatplt-tcp-tcp] reaction trigger probe-fail 2

HTTP template configuration example

Network requirements

As shown in

Figure 23

, configure an HTTP template for a feature to perform the HTTP operation to test

whether the NQA client can establish a connection to and get data from the HTTP server.

This manual is related to the following products: