nqa upload

Function

The nqa upload command enables a device to upload test result files onto a specified server.

The undo nqa upload command disables a device from uploading test result files onto a specified server.

By default, a device is disabled from uploading test result files onto a specified server.

Format

nqa upload test-type { icmp | icmpjitter | jitter | udp } ftp ipv4 ipv4-address file-name file-name [ vpn-instance vpn-instance-name ] [ port port-number ] username user-name password password [ interval upload-interval ] [ retry retry-times ]

undo nqa upload test-type { icmp | icmpjitter | jitter | udp }

Parameters

Parameter Description Value
icmp

Indicates the NQA test type ICMP.

-

icmpjitter

Indicates the NQA test type ICMPJitter.

-

jitter

Indicates the NQA test type Jitter.

-

udp

Indicates the NQA test type UDP.

-

ftp

Indicates an FTP server.

-

ipv4 ipv4-address

Specifies a destination IPv4 address.

The value is in dotted decimal notation.

file-name file-name

Specifies the name of a file generated.

The value is a string of 1 to 64 characters. The file name cannot contain characters \, /, :, ~, ", ', ?, *, [, ], <, >, |, (, ), &, ;, !, $. Spaces can be used only at the beginning or end of the file name.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance to which a server belongs.

The value is a string of 1 to 31 characters.

port port-number

Specifies the listening port number of a specified server.

The value is an integer ranging from 1 to 65535. The default value 21.

username user-name

Specifies the number of a user device connected to a server.

The value is a string of 1 to 255 case-sensitive characters, spaces not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

password password

Specifies a password.

The value is a case-sensitive string of 1 to 16 characters without such metacharacters as spaces and question marks. The length of a simple test password ranges from 1 to 32 characters, and that of an AES ciphertext password ranges from 32 to 168 characters.

The string can contain spaces if it is enclosed in double quotation marks (").

interval upload-interval

Specifies an interval at which test results are sent to a server.

The value is an integer ranging from 60 to 4294967295, in seconds. The default value is 300.

retry retry-times

Specifies the number of retransmission times.

The value is an integer ranging from 1 to 3. The default value is 3.

test-type

Indicates an NQA test type.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
sla-ftp write

Usage Guidelines

Usage Scenario

The result table of NQA test instances records results of each test type. A maximum of 5000 test result records are supported in total. If the number of records reaches 5000, test results are uploaded. Intervals can be configured for each test type to upload test results. To write the test results into a file and upload the file onto a specified server, run the nqa upload command. This allows you to query the test results saved on the server.

Precautions

If this command with the same test type specified is run several times, the latest configuration overwrites the previous one, and all test results recorded but not uploaded are deleted.

After a test instance is deleted, all the corresponding test results recorded but not uploaded are deleted.

The name of a file to be uploaded is in the format of NQA_MAC address_Test instance type_Character string of the timestamp_File name configured.xml. The .xml file type does not need to be configured.

Example

# Enable a device to upload UDP test result files onto a specified server.
<HUAWEI> system-view
[~HUAWEI] nqa upload test-type udp ftp ipv4 10.1.1.10 file-name test1 port 21 username a password a interval 600 retry 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >