The ftp-username command sets the user name for logging in to the FTP server in an FTP test instance.
The undo ftp-username command deletes the configured user name for logging in to the FTP server.
By default, no user name is set for FTP test instances.
Parameter | Description | Value |
---|---|---|
name | Specifies the user name for logging in to the FTP server. | The value is a string of 1 to 255 case-sensitive characters without spaces. NOTE:
When quotation marks
are used around the string, spaces are allowed in the string. |
Usage Scenario
In the FTP 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
The type of the test instance has been set to ftp using the test-type command.
Precautions
The user name of a running test instance cannot be changed.