Http Template Configuration Example; Ftp Template Configuration Example - HP 5920 Configuration Manual

Table of Contents

HTTP template configuration example

Network requirements
As shown in
whether the NQA client can establish a connection to and get data from the HTTP server.
Figure 57 Network diagram
Configuration procedure
# Assign each interface an IP address. (Details not shown.)
# Configure static routes or a routing protocol to make sure the devices can reach each other. (Details not
shown.)
# Create HTTP template http.
system-view
[DeviceA] nqa template http http
# Specify the URL of the server.
[DeviceA-nqatplt-http-http] url
# Configure the HTTP operation to get data from the HTTP server. (The default HTTP operation type is get,
and this step can be omitted.)
[DeviceA-nqatplt-http-http] operation get
# If the number of consecutive successful probes reaches 2, the operation succeeds. The NQA client
notifies the feature of the successful operation event.
[DeviceA-nqatplt-http-http] reaction trigger probe-pass 2
# If the number of consecutive probe failures reaches 2, the operation fails. The NQA client notifies the
feature of the operation failure.
[DeviceA-nqatplt-http-http] reaction trigger probe-fail 2

FTP template configuration example

Network requirements
As shown in
whether Device A can establish a connection to Device B and upload a file to the FTP server. The login
username is admin, the login password is systemtest, and the file to be transferred to the FTP server is
config.txt.
Figure 58 Network diagram
Figure
57, configure an HTTP template for a feature to perform the HTTP operation to test
Figure
58, configure an FTP template for a feature to perform the FTP operation to test
http://10.2.2.2/index.htm
170

Hide quick links:

Table of Contents
loading

This manual is also suitable for:

5900

Table of Contents