< Home

ftp-operation

Function

The ftp-operation command sets the operation mode for an NQA FTP test instance.

The undo ftp-operation command restores the default operation mode of an NQA FTP test instance.

By default, the operation mode of an FTP test instance is get.

Format

ftp-operation { get | put }

undo ftp-operation put

Parameters

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. -

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.

The ftp-operation command can be used to specify the FTP operation mode 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

The type of the test instance has been set to ftp using the test-type command.

Precautions

The operation mode of a running test instance cannot be changed.

Example

# Perform a test named user test to obtain the FTP download speed.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type ftp
[HUAWEI-nqa-user-test] ftp-operation get
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >