Put; Pwd - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

Data transmission modes fall into the passive mode and the active mode. The active mode means that
the data connection request is initiated by a server. The passive mode means that the data connection
request is initiated by a client. This command is mainly used in conjunction with a firewall to restrict the
FTP session connection 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.
If no name is assigned to the file to be saved on the FTP server, the name of the source file is used by
default. After a file is uploaded, it will be saved under the user's authorized directory, which can be set
with the authorization-attribute command.
Examples
# Upload source file cc.txt to the remote FTP server and save it as dd.txt.
[ftp] put cc.txt dd.txt
227 Entering Passive Mode (192,168,1,50,17,169).
125 ASCII mode data connection already open, transfer starting for /dd.txt.
226 Transfer complete.
FTP: 9 byte(s) sent in 0.112 second(s), 80.00 byte(s)/sec.

pwd

Syntax
pwd
View
FTP client view
1-21

Advertisement

Table of Contents
loading

Table of Contents