Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Aug 20, 2017 4:46 am


Cisco / Juniper related articles

Author Message
designeru
Post  Post subject: CISCO: Copy files from CISCO device to FTP server  |  Posted: Wed May 26, 2010 11:14 am

Joined: Thu Dec 31, 2009 4:44 pm
Posts: 10

Offline
 

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)





Top
designeru
Post  Post subject: Re: CISCO: Copy files from CISCO device to FTP server  |  Posted: Wed May 26, 2010 11:41 am

Joined: Thu Dec 31, 2009 4:44 pm
Posts: 10

Offline
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.


Top
Display posts from previous:  Sort by  
Print view
Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO