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 | |||
|
| ||
|
|
|
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 | user username [ password ] | Optional | |
successfully logging in to the FTP server | |||
|
| ||
|
|
|
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 |
|
| |
remotehelp [ | 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 | ||
| |||
|
|
|
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