The ftp-operation command configures an operation mode of the FTP test.
The undo ftp-operation command restores the default configuration.
| Parameter | Description | Value |
|---|---|---|
| get | Indicates that the client downloads a file from the server and the download speed is recorded. | - |
| put | Indicates that the client uploads a local file or a created file to the server and the upload speed is recorded. | - |
By default, the operation type of an FTP test is get.
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.
The ftp-operation command can be used to specify the FTP operation type as put or get. A connection with the FTP server is set up using the IP address, the user name, and the password of the FTP server, and the time to set up FTP connection is recorded.
Prerequisites
Before using the ftp-operation command, run the test-type command to specify the type of the test instance as ftp.
Precautions
The operation type of a running test instance cannot be changed.