mac

Commands for Basic Switch Configuration
80
1.5.3 ftp-dir
Command: ftp-dir <ftp-server-url>
Function: Browse the file list on the FTP server.
Parameter: The form of <ftp-server-url> is
ftp://<username>:<password>@{ <ipv4address> | <ipv6address> }, amongst <username>
is the FTP user name, <password> is the FTP user password, { <ipv4address> |
<ipv6address> } is the IPv4 or IPv6 address of the FTP server.
Command Mode: Admin Mode
Example: Browse the list of the files on the server with the FTP client, the username is
Switch, the password is superuser.
Switch#ftp-dir ftp://Switch:superuser @10.1.1.1.
1.5.4 ftp-server enable
Command: ftp-server enable
no ftp-server enable
Function: Start FTP server, the no ftp-server enable command shuts down FTP
server and prevents FTP user from logging in.
Default: FTP server is not started by default.
Command mode: Global Mode
Usage Guide: When FTP server function is enabled, the switch can still perform ftp
client functions. FTP server is not started by default.
Example: Enable FTP server service.
Switch#config
Switch(config)# ftp-server enable
Relative command: ip ftp
1.5.5 ftp-server timeout
Command: ftp-server timeout <seconds>
Function: Set data connection idle time.
Parameter: <seconds> is the idle time threshold (in seconds) for FTP connection, the
valid range is 5 to 3600.
Default: The system default is 600 seconds.
Command mode: Global Mode
Usage Guide: When FTP data connection idle time exceeds this limit, the FTP
management connection will be disconnected.
Example: Modify the idle threshold to 100 seconds.