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

mdc-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.

Examples

# Upload the file a.txt in the working directory accessed by the ftp command and save the file as b.txt on the FTP server.

ftp> put a.txt b.txt
227 Entering Passive Mode (10,153,116,114,11,196)
150 "C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\desk\125X\b.txt" file ready to receive
 in ASCII mode
226 Transfer finished successfully.
45925 bytes sent in 0.00714 seconds (6.13 Mbyte/s)

# Upload the file a.txt in the folder test from the working directory accessed by the ftp command. Save the file as b.txt on the FTP server.

ftp> put flash:/test/a.txt b.txt
227 Entering Passive Mode (10,153,116,114,11,201)
150 "C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\desk\125X\b.txt" file ready to receive 
in ASCII mode
226 Transfer finished successfully.
1 bytes sent in 0.000522 seconds (1.9 kbyte/s)

# In IRF mode, upload the file a.txt in the Flash root directory of the MPU that resides in slot 17 of member device 1. Save the file as b.txt on the FTP server.

ftp> put chassis1#slot17#flash:/test/a.txt b.txt
227 Entering Passive Mode (10,153,116,114,11,201)
150 "C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\desk\125X\b.txt" file ready to receive 
in ASCII mode
226 Transfer finished successfully.
1 bytes sent in 0.000522 seconds (1.9 kbyte/s)

Related commands

get