80
Usage Guide: The command provides command line prompt messages. If the user
enters a command like copy <filename> ftp: // or copy ftp: // <filename> and press
Enter, the following prompt will appear:
ftp server ip address [x.x.x.x] :
ftp username>
ftp password>
ftp filename>
This prompts for the FTP server address, username, password and file name.
Example:
(1)Save the mirror in FLASH to FTP server 10.1.1.1, the login username for the FTP
server is “Switch”, and the password is “Accton”.
Switch#copy nos.img ftp: //Switch: Accton@10.1.1.1/nos.img
(2)Get the system file nos.img from FTP server 10.1.1.1, the login username for the FTP
server is “Switch”, and the password is “Accton”.
Switch#copy ftp: //Switch: sAccton@10.1.1.1/nos.img nos.img
(3)Save active configuration file:
Switch#copy running-config startup-config
Related command: write
2.5.2.2.4 dir
Command: dir <ftp-server-url>
Function: check the list for files in the FTP server
Parameter: < ftp-server-url > takes the following format: ftp: //<username>:
<password>@<ipaddress>, where <username> is the FTP username, <password> is the
FTP user password, <ipaddress> is the IP address of FTP server.
Command mode: Global Mode
Example: view file list of the FTP server 10.1.1.1 with the username “
Switch” and
password “
switch”.
Switch#config
Switch(Config)#dir ftp: //Switch: switch@10.1.1.1
2.5.2.2.5 ftp-server enable
Command: ftp-server enable