No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring an FTP Upload Test Instance

Example for Configuring an FTP Upload Test Instance

Networking Requirements

In Figure 7-20, the speed of uploading a file from RouterA to an FTP server needs to be tested.

Figure 7-20  Networking diagram for configuring an FTP upload test instance

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure Router A as an NQA client as well as an FTP client. Create and start an FTP test instance on RouterA to check whether RouterA can set up a connection with the FTP server and to obtain the time taken by RouterA to upload a file to the FTP server.

  2. A user named user1 logs in to the FTP server by entering the password Helloword@6789 to upload a file with the size being 10 KB.


  1. Configure RouterB.

    # Configure an IP address for RouterB.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] interface gigabitethernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] ip address 24
    [RouterB-GigabitEthernet1/0/0] quit

    # Configure RouterB as the FTP server.

    [RouterB] ftp server enable
    [RouterB] aaa
    [RouterB-aaa] local-user user1 password irreversible-cipher Helloword@6789
    [RouterB-aaa] local-user user1 service-type ftp
    [RouterB-aaa] local-user user1 ftp-directory flash:/
    [RouterB-aaa] quit

  2. Configure RouterA.

    # Configure an IP address for RouterA.

    <Huawei> system-view
    [Huawei]  sysname RouterA
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ip address 24
    [RouterA-GigabitEthernet1/0/0] quit

    # Create an NQA FTP test on RouterA and create a file of 10 KB for uploading.

    [RouterA] nqa test-instance admin ftp
    [RouterA-nqa-admin-ftp] test-type ftp
    [RouterA-nqa-admin-ftp] destination-address ipv4
    [RouterA-nqa-admin-ftp] source-address ipv4
    [RouterA-nqa-admin-ftp] ftp-operation put
    [RouterA-nqa-admin-ftp] ftp-username user1
    [RouterA-nqa-admin-ftp] ftp-password Helloword@6789
    [RouterA-nqa-admin-ftp] ftp-filesize 10

  3. Start the test instance.

    [RouterA-nqa-admin-ftp] start now

  4. Verify the configuration.

    # Check NQA test results on RouterA.

    [RouterA-nqa-admin-ftp] display nqa results test-instance admin ftp
     NQA entry(admin, ftp) :testflag is inactive ,testtype is  ftp
      1 . Test 1 result   The test is finished
       SendProbe:1                             ResponseProb:1
       Completion :success                     RTD OverThresholds number: 0
       MessageBodyOctetsSum: 10240             Stats errors number: 0
       Operation timeout number: 0             System busy operation number:0
       Drop operation number:0                 Disconnect operation number: 0
       CtrlConnTime Min/Max/Average: 657/657/657
       DataConnTime Min/Max/Average: 500/500/500
       SumTime Min/Max/Average: 1157/1157/1157
       Average RTT:656
       Lost packet ratio:0 %

    # On RouterB, you can view that a file named nqa-ftp-test.txt is added. Part of the file on the RouterB is displayed.

    <RouterB> dir
    Directory of flash:/
       0   -rw-      331  Jul 06 2007 18:34:34   private-data.txt
       1   -rw-   10,240  Jul 06 2007 18:37:06   nqa-ftp-test.txt
    2,540 KB total (1,536 KB free)

Configuration Files

  • RouterA configuration file

     sysname RouterA
    interface GigabitEthernet1/0/0
     ip address
    nqa test-instance admin ftp
     test-type ftp
     destination-address ipv4
     source-address ipv4
     ftp-filesize 10
     ftp-username user1
     ftp-password cipher %^%#}X~*(Tn2C,qJ`SVy3t';Ii,`%^%#
     ftp-operation put
  • RouterB configuration file

     sysname RouterB
     local-user user1 password irreversible-cipher %^%#6W-mT:ZGe)0B*rMm,@#$LEyI;m_bQibe=46k.,#x$vk0EyLL%^%#
     local-user user1 privilege level 15
     local-user user1 ftp-directory flash:/
     local-user user1 service-type ftp
    interface GigabitEthernet1/0/0
     ip address
     ftp server enable
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 34050

Downloads: 195

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next