Delivering the test results to the FTP server can save the test results to the maximum extent.
As shown in Figure 1, Device A serves as the client to perform an ICMP test and send test results to the FTP server through FTP.
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.
To complete the configuration, you need the following data:
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
<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
[~DeviceA] nqa test-instance admin icmp [*DeviceA] test-type icmp [*DeviceA] destination-address ipv4 10.1.1.10 [*DeviceA-admin-icmp] start now [*DeviceA-admin-icmp] commit
# 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 : --
Device A configuration file
# sysname DeviceA # interface GigabitEthernet 0/1/0 ip address 10.1.1.11 255.255.255.0 # interface GigabitEthernet 0/1/8 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 %^%#`P'|9L1x62lN*b+C~wMTT|$EA7+z0XOFC_,B$M+"%^%# 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 GigabitEthernet0/1/0 ip address 10.1.1.10 255.255.255.0 # return