R0106-HP MSR Router Series Fundamentals Command Reference(V7)

111
Default
The FTP operation mode is passive.
Views
FTP client view
Predefined user roles
network-admin
Usage guidelines
FTP can operate in either of the following modes:
Active mode—The FTP server initiates the TCP connection.
Passive mode—The FTP client initiates the TCP connection.
You can use this command multiple times to change between active and passive modes.
This command is mainly used together with a firewall to control FTP session establishment between
private network users and public network users.
Examples
# Set the FTP operation mode to passive.
ftp> passive
Passive mode on.
ftp> passive
Passive mode off.
put
Use put to upload a file on the client to the remote FTP server.
Syntax
put localfile [ remotefile ]
Views
FTP client view
Predefined user roles
network-admin
Parameters
localfile: Specifies the name of the local file to be uploaded.
remotefile: Specifies the file name for saving the uploaded file on the FTP server.
Usage guidelines
You can perform this operation only after you log in to the FTP server.
To upload a file in the working directory accessed by the ftp command, the localfile argument must
specify a file name such as a.cfg.
To upload a file in some other directory, the localfile argument must specify the target directory plus the
file name such as flash:/subdirectory/a.cfg. Otherwise, the command fails to take effect.