< Home

prompt

Function

The prompt command enables the prompt message to get the confirmation from the user to transfer the file or not.

The undo prompt command disables the prompt.

By default, the prompt is disabled.

Format

prompt

undo prompt

Parameters

None

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

This command is applicable only for multiple file transfer commands mput and mget. In case of mget command, if the file already exists in the local device, system prompts the confirmation message whether to overwrite the file or not, irrespective of prompt is disabled or not.

Example

# Enable FTP prompt mode.

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

# Disable FTP prompt mode.

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