Wednesday, 9 November 2016

copy command

Router--------------------------------------------------Server PC


Example 1:

Router(config)#ip ftp ?
passive Connect using passive mode
password Specify password for FTP connections
username Specify username for FTP connections


Router(config)#ip ftp username jedi

Router(config)#ip ftp password cisco

If the above two are not set the following error

Ftp username Or password is not set !, Please set and try again...

Router#copy ftp flash
Address or name of remote host []? 192.168.1.2
Source filename []? asa842-k8.bin (is a file on the ftp server)
Destination filename [asa842-k8.bin]? (pressed enter here)

Accessing ftp://192.168.1.2/asa842-k8.bin...
[OK - 5571584 bytes]

5571584 bytes copied in 34.471 secs (37034 bytes/sec)
Router#sh flash

System flash directory:
File Length Name/status
4 5571584 asa842-k8.bin
3 33591768 c2900-universalk9-mz.SPA.151-4.M4.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[39419171 bytes used, 216324829 available, 255744000 total]
249856K bytes of processor board System flash (Read/Write)



Example 2:Name changed.
Router#copy ftp flash
Address or name of remote host []? 192.168.1.2
Source filename []? asa923-k8.bin
Destination filename [asa923-k8.bin]? jedi

Accessing ftp://192.168.1.2/asa923-k8.bin...
[OK - 30468096 bytes]

30468096 bytes copied in 231.405 secs (1742 bytes/sec)
Router#sh flash

System flash directory:
File Length Name/status
4 5571584 asa842-k8.bin
3 33591768 c2900-universalk9-mz.SPA.151-4.M4.bin
5 30468096 jedi
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[69887267 bytes used, 185856733 available, 255744000 total]
249856K bytes of processor board System flash (Read/Write)

No comments:

Post a Comment