65
Default level
3: Manage level
Parameters
None
Description
Use the
passive
command to set the data transmission mode to
passive
.
Use the
undo passive
command to set the data transmission mode to
active
.
The default transmission mode is
passive
.
Data transmission modes fall into the passive mode and the active mode. In active mode, the FTP server
initiates a data connection request. In passive mode, the FTP client initiates a data connection request.
This command is mainly used in conjunction with a firewall to restrict FTP session establishment between
private and public network users.
Examples
# Set the data transmission mode to
passive
.
[ftp] passive
FTP: passive is on
put
Syntax
put
localfile
[
remotefile
]
View
FTP client view
Default level
3: Manage level
Parameters
localfile
: Name of the local file to be uploaded.
remotefile
: File name used after a file is uploaded and saved on the FTP server.
Description
Use the
put
command to upload a file on the client to the remote FTP server.
By default, if no name is assigned to the file to be saved on the FTP server, the name of the source file is
used.
When a file is uploaded, it is saved in the user’s authorized directory, which can be set with the
authorization-attribute
command on the remote server.
Examples
1.
In standalone mode
# Upload source file
vrpcfg.cfg
on the active MPU to the remote FTP server and save it as
ftpclient.cfg
.
[ftp] put vrpcfg.cfg ftpclient.cfg
227 Entering Passive Mode (192,168,1,46,4,50).
125 ASCII mode data connection already open, transfer starting for /ftpclient.cfg.