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 1, 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 0/1/0 and GE 0/1/8, respectively.
Figure 1 Networking diagram of sending test results to the FTP server

Configuration Roadmap

The configuration roadmap is as follows:

  1. Set parameters for configuring test results to be sent to the FTP server.

  2. Start a test instance.

  3. 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

  1. 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

  2. Start a test instance.

    [~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

  3. 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 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic