3Com Switch 4200G Configuration Guide
FTP Configuration 335
FTP services are implemented in this way: An FTP client sends FTP requests to the FTP
server. The FTP server receives the requests, perform operations accordingly, and
return the results to the FTP client.
To prevent unauthorized accesses, an FTP server disconnects a FTP connection when it
does not receive requests from the FTP client for a specific period of time known as
the connection idle time.
To log into an FTP server, a user needs to provide a user name and a password for
being authenticated, and the FTP server authorizes the FTP client by providing the
information about work directory. FTP services are available to users only when they
pass the authentication and authorization.
Displaying and debugging an FTP server
After the above configurations, you can run the display command in any view to
view the running information of the FTP server and verify your configurations.
FTP Configuration: A
Switch Operating as an
FTP Client
The function for a switch to operate as an FTP client is implemented by an application
module built in the switch. A switch can operate as an FTP client without any
configuration. You can perform FTP-related operations (such as creating/removing a
directory) by executing FTP client commands on a switch operating as an FTP client.
Table 292 lists the operations that can be performed on an FTP client.
Table 291 Display and debug an FTP server
Operation Command
Display the information about an FTP server display ftp-server
Display the information about FTP clients display ftp-user
Table 292 FTP client operations
Operation Command Description
Enter FTP Client view ftp [ ip-address [ port-number ] ]
Specify to transfer files
in ASCII characters
ascii Optional
By default, files are transferred in
ASCII characters.
Specify to transfer files
in binary streams
binary Optional
Set the data transfer
mode to passive
passive Optional
By default, the passive mode is
adopted.
Change the work
directory on the remote
FTP server
cd pathname Optional
Change the work
directory to be the
parent directory
cdup Optional
Get the local work path
on the FTP client
lcd Optional
Display the work
directory on the FTP
server
pwd Optional
Create a directory on
the remote FTP server
mkdir pathname Optional
Remove a directory on
the remote FTP server
rmdir pathname Optional
Delete a specified file delete remotefile Optional