< Home

ftp-operation

Function

The ftp-operation command configures an operation mode of the FTP test.

The undo ftp-operation command restores the default configuration.

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

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.

Example

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

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