Example for Configuring Test Results to Be Sent to the FTP Server
Delivering the test results to the FTP server can save the test results to the maximum extent.
Networking Requirements
As shown in Figure 4-14, Device A serves as the client to perform an ICMP test and send test results to the FTP server through FTP.
- Interface 1 and interface 2 in this example stand for GE 1/0/0 and GE 2/0/0, respectively.
Configuration Roadmap
The configuration roadmap is as follows:
Set parameters for configuring test results to be sent to the FTP server.
Start a test instance.
Verify the configurations.
Data Preparation
To complete the configuration, you need the following data:
- IP address of the FTP server
User name and password used for logging in to the FTP server
Name of a file in which test results are saved through FTP
Interval at which test results are uploaded through FTP
Procedure
- Set parameters for configuring test results to be sent
to the FTP server.
<DeviceA> system-view [~DeviceA] nqa upload test-type icmp ftp ipv4 10.1.2.8 file-name test1 port 21 username ftp password huawei-123 interval 600 retry 3 [*DeviceA] commit
- Start a test instance.
[~DeviceA] nqa test-instance admin icmp [*DeviceA] tset-type icmp [*DeviceA] destination-address ipv4 10.1.1.10 [*DeviceA-admin-icmp] start now [*DeviceA-admin-icmp] commit
- Check the configurations.
# Check information about files that a device is uploading and has attempted to upload onto a server.
<*DeviceA> display nqa upload file-info The total number of upload file records is : 2 --------------------------------------------------------------- FileName : NQA_38ba47987301_icmp_20171014112319701_test1.xml Status : Upload success RetryTimes : 3 UploadTime : 2017-10-14 11:23:21.697 --------------------------------------------------------------- FileName : NQA_38ba47987301_icmp_20171014112421710_test1.xml Status : Uploading RetryTimes : 3 UploadTime : --
Configuration Files
Device A configuration file
# sysname DeviceA # interface GigabitEthernet 1/0/0 ip address 10.1.1.11 255.255.255.0 # interface GigabitEthernet 2/0/0 ip address 10.1.2.1 255.255.255.0 # nqa upload test-type icmp ftp ipv4 10.1.2.8 file-name test1 port 21 username ftp password huawei-123 interval 600 retry 3 nqa test-instance admin icmp test-type icmp destination-address ipv4 10.1.1.10 # return
Device B configuration file
# sysname DeviceB # interface GigabitEthernet1/0/0 ip address 10.1.1.10 255.255.255.0 # return