Data Preparation
To complete the configuration, you need the following data:
l
IP address of the FTP server
l
Source IP address for the test
l
FTP user name and password
l
Size of the uploaded file
Procedure
Step 1
Configure reachable routes between Switch A and Switch B, between Switch A and Switch C,
and between Switch B and Switch C. The configuration details are not mentioned here.
Step 2
Configure Switch C as the FTP server.
<SwitchC>
system-view
[SwitchC]
ftp server enable
[SwitchC]
aaa
[SwitchC-aaa]
local-user user1 password cipher hello
[SwitchC-aaa]
local-user user1 service-type ftp
[SwitchC-aaa]
local-user user1 ftp-directory flash:
[SwitchC-aaa]
quit
Step 3
Configure an NQA FTP test on Switch A and create a file of 10K bytes for uploading.
<SwitchA>
system-view
[SwitchA]
nqa test-instance admin ftp
[SwitchA-nqa-admin-ftp]
test-type ftp
[SwitchA-nqa-admin-ftp]
destination-address ipv4 10.2.1.2
[SwitchA-nqa-admin-ftp]
source-address ipv4 10.1.1.1
[SwitchA-nqa-admin-ftp]
ftp-operation put
[SwitchA-nqa-admin-ftp]
ftp-username user1
[SwitchA-nqa-admin-ftp]
ftp-password hello
[SwitchA-nqa-admin-ftp]
ftp-filename nqa-ftp-test.txt
[SwitchA-nqa-admin-ftp]
ftp-filesize 10
Step 4
Perform the test.
[SwitchA-nqa-admin-ftp]
start now
Step 5
Verify the test result.
# Verify the NQA test result on Switch A.
[SwitchA-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:1157
Lost packet ratio:0 %
# On Switch C, you can see that a file named
nqa-ftp-test.txt
is added.
<SwitchC>
dir
Directory of flash:
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 331 Feb 06 2009 18:34:34 private-data.txt
1 -rw- 10240 Feb 06 2009 18:37:06 nqa-ftp-test.txt
Quidway S2700 Series Ethernet Switches
Configuration Guide - Network Management
6 NQA Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
309