Ftp Template Configuration Example - HPE FlexFabric 5700 Series Network Management And Monitoring Configuration Manual

Hide thumbs Also See for FlexFabric 5700 Series:
Table of Contents

Advertisement

# Create HTTP template http.
<DeviceA> 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.
[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

FTP template configuration example

Network requirements
As shown in
operation tests whether Device A can upload a file to the FTP server. The login username and
password are admin and systemtest, respectively. The file to be transferred to the FTP server is
config.txt.
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 FTP template ftp.
<DeviceA> system-view
[DeviceA] nqa template ftp ftp
# Specify the URL of the FTP server.
[DeviceA-nqatplt-ftp-ftp] url ftp://10.2.2.2
# Specify 10.1.1.1 as the source IP address.
[DeviceA-nqatplt-ftp-ftp] source ip 10.1.1.1
# Configure the device to upload file config.txt to the FTP server.
[DeviceA-nqatplt-ftp-ftp] operation put
[DeviceA-nqatplt-ftp-ftp] filename config.txt
# Specify the username for the FTP server login as admin.
[DeviceA-nqatplt-ftp-ftp] username admin
# Specify the password for the FTP server login as systemtest.
[DeviceA-nqatplt-ftp-ftp] password simple systemtest
Figure
57, configure an FTP template for a feature to perform the FTP operation. The
http://10.2.2.2/index.htm
162

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents