Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides https://forum.ivorde.com/ |
|
CISCO: Copy files from CISCO device to FTP server https://forum.ivorde.com/cisco-copy-files-from-cisco-device-to-ftp-server-t93.html |
Page 1 of 1 |
Author: | designeru [ Wed May 26, 2010 11:14 am ] |
Post subject: | CISCO: Copy files from CISCO device to FTP server |
1. Define the FTP user and password Code: CISCO#conf t Enter configuration commands, one per line. End with CNTL/Z. CISCO(config)#ip ftp username my_username CISCO(config)#ip ftp password my_password 2. Find the file that you wish to upload Code: CISCO# dir Directory of disk0:/ 1 -rw- 20744144 Feb 4 2000 20:48:26 +01:00 c7301-itpk9-mz.124-11.SW3.bin 3 -rw- 75 Mar 28 2008 13:26:50 +01:00 pc-route-table 4 -rw- 132 Mar 21 2008 09:00:14 +01:00 gtt-route-table 3. Upload the file Code: CISCO#copy c7301-itpk9-mz.124-11.SW3.bin ftp:
Address or name of remote host []? 192.168.0.1 Destination filename [c7301-itpk9-mz.124-11.SW3.bin]? Writing c7301-itpk9-mz.124-11.SW3.bin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 20744144 bytes copied in 12.988 secs (1597178 bytes/sec) |
Author: | designeru [ Wed May 26, 2010 11:41 am ] |
Post subject: | Re: CISCO: Copy files from CISCO device to FTP server |
if you have many files you can also use this command to automate the operation: Code: cat test | awk '{print "copy " $9 " ftp:\n[u][b]ip_of_ftp_server[/b][/u]\n\n";}' where test is a filename containing the output of "DIR" command from the CISCO device. After that you can just copy&paste the output to the CISCO device and all files will be transfered. |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |