< Home

prompt

Function

The prompt command enables the prompt function when files are transmitted between the FTP client and server.

The undo prompt command disables the prompt function.

By default, the prompt function is disabled.

Format

prompt

undo prompt

Parameters

None

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can enable the prompt function as required when transmitting files between the FTP client and server.

Precautions

  • The prompt command can be used when you run the put, mput, get, and mget commands.
  • The prompt function can be enabled only for confirming service upload and download.
    • When you run the put or mput command, the system always overwrites the existing file if the name of the uploaded file is the same as that of an existing file on the FTP server.
    • When you run the get or mget command, the system always prompts you whether to overwrite the existing file if the name of the uploaded file is the same as an existing file name in the specified directory.

Example

# Enable the FTP message prompt function.

<HUAWEI> ftp 10.137.217.201
Trying 10.137.217.201 ...
Press CTRL+K to abort
Connected to 10.137.217.201.
220 FTP service ready.
User(10.137.217.201:(none)):huawei
331 Password required for huawei.
Enter password:
230 User logged in. 
[ftp]
[ftp] prompt
Info: Succeeded in switching prompt on.

# Disable the FTP message prompt function.

[ftp] undo prompt
Info: Succeeded in switching prompt off.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >