< Home

ftp-username

Function

The ftp-username command configures the user name for logging in to the FTP server.

The undo ftp-username command deletes the user name configuration.

Format

ftp-username name

undo ftp-username

Parameters

Parameter Description Value
name Specifies the user name for logging on to the FTP server. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 255 characters. The length of a name with spaces ranges from 3 to 257 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "name for test").

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the FTP download test, the local device functions as an FTP client to download/upload the specified file from/to the FTP server. Statistics about each FTP phase are displayed, including the time to set up an FTP control connection and the time to transmit data.

To ensure test security and prevent unauthorized users from accessing the network, you need to enable identity authentication. The ftp-username command can be used to set the specified user in an FTP test. Only the user who enters the authorized user name and password is authorized to access the network.

Prerequisites

Before using the ftp-username command, run the test-type command to specify the type of the test instance as ftp.

Precautions

The user name of a running test instance cannot be changed.

Example

# Set the user to log on to the FTP server using the name user1.

<sysname> system-view
[sysname] nqa test-instance admin ftp
[sysname-nqa-admin-ftp] test-type ftp
[sysname-nqa-admin-ftp] ftp-username user1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >