To do…

Use the command…

Remarks

Set the file transfer mode to

binary

Optional

binary

ASCII by default.

 

 

 

 

Set the data transmission mode

passive

Optional

to passive

Passive by default.

 

 

 

 

Display the local working

lcd

Optional

directory of the FTP client

 

 

 

 

 

Upload a file to the FTP server

put localfile [ remotefile ]

Optional

 

 

 

Download a file from the FTP

get remotefile [ localfile ]

Optional

server

 

 

 

 

 

Using another username to log in to an FTP server

After the switch serving as the FTP client has established a connection with the FTP server, you can use another username to log in to the FTP server. For more information about establishing an FTP connection, see “Establishing an FTP connection.”

This feature allows you to switch to different user levels without affecting the current FTP connection; if you input an incorrect username or password, the current connection will be terminated, and you must log in again to access the FTP server.

Follow the step below to use another username to log in to the FTP server:

To do…

Use the command…

Remarks

Use another username to re-log in after

user username [ password ]

Optional

successfully logging in to the FTP server

 

 

 

 

 

Maintaining and debugging an FTP connection

After a switch serving as the FTP client has established a connection with the FTP server, you can perform the following operations to locate and diagnose problems encountered in an FTP connection. For more information about establishing an FTP connection, see “Establishing an FTP connection.”

To do…

Use the command…

Remarks

Display the help information of

 

 

FTP-related commands supported by the

remotehelp [ protocol-command ]

Optional

remote FTP server

 

 

 

 

 

Enable information display in a detailed

verbose

Optional

manner

Enabled by default

 

 

 

 

Enable FTP related debugging when the

debugging

Optional

switch acts as the FTP client

Disabled by default

 

 

 

 

Terminating an FTP connection

After the switch serving as the FTP client has established a connection with the FTP server, you can use any of the following commands to terminate an FTP connection. For more information about establishing an FTP connection, see “Establishing an FTP connection.”

89