< Home

ftp-password

Function

The ftp-password command sets a password for logging in to the FTP server in an NQA FTP test instance.

The undo ftp-password command deletes the configured password for logging in to the FTP server.

By default, no password is set for FTP test instances.

Format

ftp-password { password | cipher cipher-password }

undo ftp-password

Parameters

Parameter Description Value
password Specifies the password for logging in to the FTP server in an FTP test instance.

The value is a string of 1 to 32 or 32 to 68 case-sensitive characters without spaces.

  • If the password is plaintext, the length ranges from 1 to 32.
  • If the password is ciphertext, the length ranges from 32 to 68.
  • If the password length is 32 and the configured ciphertext password can be decrypted successfully, the configured ciphertext password takes effect. If the configured ciphertext password cannot be decrypted, the plaintext password is used after passing the validity check.
NOTE:
When quotation marks are used around the string, spaces are allowed in the string.
cipher cipher-password Specifies the password for logging in to the FTP server in an FTP test instance.

The value is a string of 1 to 32 or 32 to 68 case-sensitive characters without spaces.

  • If the password is plaintext, the length ranges from 1 to 32.
  • If the password is ciphertext, the length ranges from 32 to 68.
  • If the password length is 32 and the configured ciphertext password can be decrypted successfully, the configured ciphertext password takes effect. If the configured ciphertext password cannot be decrypted, the plaintext password is used after passing the validity check.
NOTE:
When quotation marks are used around the string, spaces are allowed in the string.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

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-password command can be used to set the specified user and password. 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 password of a running test instance cannot be changed.

Example

# Set the password for logging in to the FTP server to Huawei-123.

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