cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1863
Views
3
Helpful
6
Replies

What is the command in 6513 to take IOS image Backup and Restore

Chrispaul84
Level 1
Level 1

I need to know the command to take the Backup and Restore of IOS Image of 6513 through tftp server.

6 Replies 6

Steve Fuller
Level 9
Level 9

Hi,

It's the same commands to copy any file between the switch and TFTP server. Basically to backup a file from the switch:

copy filesystem:filename tftp:

where filesystem is bootflash:, disk0: etc., and filename is the file you want to backup.

To copy from the TFTP server to the switch:

copy tftp: filesystem:filename

Here's an example, but copying a file called proxyprobe14.tcl rather than the IOS image.

ocs6504-1#dir

Directory of disk0:/


    1  -rw-   116811620  Nov 30 2012 13:03:48 +00:00  s72033-advipservicesk9_wan-mz.122-33.SXI10.bin

    2  -rw-        4712  Mar 30 2009 10:52:30 +01:00  proxyprobe14.tcl

    [..]


512065536 bytes total (212623360 bytes free)


ocs6504-1#copy disk0:proxyprobe14.tcl tftp:

Address or name of remote host []? 192.168.1.100

Destination filename [proxyprobe14.tcl]?

!!

4712 bytes copied in 0.300 secs (15707 bytes/sec)


ocs6504-1#copy tftp: disk0:

Address or name of remote host []? 192.168.1.100

Source filename []? proxyprobe14.tcl

Destination filename [proxyprobe14.tcl]?

%Warning:There is a file already existing with this name

Do you want to over write? [confirm]y

Accessing tftp://192.168.1.100/proxyprobe14.tcl...

Loading proxyprobe14.tcl from 192.168.1.100 (via GigabitEthernet3/9): !

[OK - 4712 bytes]


4712 bytes copied in 0.660 secs (7139 bytes/sec)

If I wanted to copy the IOS image I'd change the filename from proxyprobe14.tcl to s72033-advipservicesk9_wan-mz.122-33.SXI10.bin.

Regards

Steve Fuller
Level 9
Level 9

Hi,

I think the previous post may have caused you a bit of confusion. I was using the file proxyprobe14.tcl simply as an example of how to copy files. So let's show how to do it with the actual IOS image.

On my switch I would check which IOS image I'm currently using and where it's located with a show boot command:

ocs6504-1#sh boot

BOOT variable = disk0:s72033-advipservicesk9_wan-mz.122-33.SXI6.bin,12;

[..]

Now I know the file is located on the disk0: file system and is called s72033-advipservicesk9_wan-mz.122-33.SXI6.bin I can make a backup of this image on the TFTP server:

ocs6504-1#copy disk0:s72033-advipservicesk9_wan-mz.122-33.SXI6.bin tftp:

Address or name of remote host []? 192.168.1.100

Destination filename [s72033-advipservicesk9_wan-mz.122-33.SXI6.bin]?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[..]

!!!!!!!!!!!!!

116772196 bytes copied in 197.308 secs (591827 bytes/sec)

ocs6504-1#

I now have the IOS image saved to my TFTP server. If I want to copy it back from the TFTP server to the switch, or copy a different image i.e., because I want to upgrade the IOS version, then I would use the copy tftp: disk0: command and follow the prompts.

Hopefully that's slightly less confusing than the previous post, but you should also take a read of Upgrading Software Images on Catalyst 6000/6500 Series Switches as this has a lot more detail.

Regards

Hi Steve ,

by running the command as you mentioned on my 7613 chassis it display nothing in regard of My IOS info and it's location

Please check the output

7613#sh boot

BOOT variable =

CONFIG_FILE variable =

BOOTLDR variable =

Configuration register is 0x2102

Standby BOOT variable =

Standby CONFIG_FILE variable =

Standby BOOTLDR variable =

Standby Configuration register is 0x2102

FYI I have the following Cisco IOS version on my 7613

Cisco IOS Software, c7600s72033_rp Software (c7600s72033_rp-ADVIPSERVICESK9-M),

Version 12.2(33)SRB1, RELEASE SOFTWARE (fc3)

so how can I locate IOS location on my router

Regards

Ambivert Skill

Leo Laohoo
Hall of Fame
Hall of Fame
I need to know the command to take the Backup and Restore of IOS Image of 6513 through tftp server.

Do you want to do the "backup" automatically or manually?

Aside from "copy startup tftp", you can automatically do the backup in two scenarios:  when someone saves the config or during a set time.

conf t

archive

!           “$h” means the appliance’s hostname will be the filename.  The filename format is hostname-month-day-hour-minute-seconds-timezone-version, like “Hostname-Apr-23-10-51-13-AEST-0”

!           Make sure you put a “-“ at the end of the “$h”.  Compare the two and you’ll see.  J

!           If you are using Windows to store these files, DO NOT USE “$t” because it won’t work.  Cisco will store the timestamps as “:” and Windows don’t like it. 

!           You can use TFTP, FTP, SCP and some more stuffs. 

  path tftp:///Subdirectory/$h-

!           The next two lines means that this command will run when someone saves the configuration and at a certain time, like 24 hours or weekly. 

  time-period

  write-memory

end

Hi Ambivert,

You can also see which image the router has booted with using the show version command.

ocs7604-1#sh ver

Cisco IOS Software, c7600s72033_rp Software (c7600s72033_rp-ADVIPSERVICESK9-M), Version 12.2(33)SRB3, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2008 by Cisco Systems, Inc.

Compiled Wed 09-Apr-08 06:09 by prod_rel_team

ROM: System Bootstrap, Version 12.2(17r)S2, RELEASE SOFTWARE (fc1)

ocs7604-1 uptime is 1 week, 5 days, 2 hours, 33 minutes

Uptime for this control processor is 1 week, 5 days, 2 hours, 33 minutes

Time since ocs7604-1 switched to active is 1 week, 5 days, 2 hours, 32 minutes

System returned to ROM by  power cycle (SP by power on)

System restarted at 05:34:01 BST Sun Apr 14 2013

System image file is "disk0:c7600s72033-advipservicesk9-mz.122-33.SRB3.bin"

Last reload type: Normal Reload

[..]

From the above you can see the IOS image is located on disk0: and is called c7600s72033-advipservicesk9-mz.122-33.SRB3.bin. You can confirm details of the IOS image using the dir disk0: command and also see details of the file size, remaining space on the file system etc.

ocs7604-1#dir disk0:

Directory of disk0:/

    3  -rw-   111259652  Apr 26 2013 08:55:34 +01:00  c7600s72033-advipservicesk9-mz.122-33.SRB3.bin

255799296 bytes total (144535552 bytes free)

To save this IOS image to the TFTP server you would execute the following commands:

ocs7604-1#copy disk0: tftp:

Source filename []? c7600s72033-advipservicesk9-mz.122-33.SRB3.bin

Address or name of remote host []? 192.168.1.100

Destination filename [c7600s72033-advipservicesk9-mz.122-33.SRB3.bin]?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[..]

!!!!!!!

111259652 bytes copied in 390.576 secs (284860 bytes/sec)

When you want to copy a file from the TFTP server, you use the copy tftp: disk0: and then specify the IP address and the IOS name of the file you want to copy. In the following I am copying a later release of IOS version as you might do when upgrading the software release on the router.

ocs7604-1#copy tftp: disk0:

Address or name of remote host []? 192.168.1.100

Source filename []? c7600s72033-advipservicesk9-mz.122-33.SRB7.bin

Destination filename [c7600s72033-advipservicesk9-mz.122-33.SRB7.bin]?

Accessing tftp://192.168.1.100/c7600s72033-advipservicesk9-mz.122-33.SRB7.bin...

Loading c7600s72033-advipservicesk9-mz.122-33.SRB7.bin from 192.168.1.100 (via GigabitEthernet2/2): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[..]

!!!!!!

[OK - 111439364 bytes]

111439364 bytes copied in 402.624 secs (276783 bytes/sec)

As I mentioned in my earlier post I think it would be useful to take some time to read through the document Upgrading Software Images on Catalyst 6000/6500 Series Switches as the principle is exactly the same, but the document has a lot more detail.

Regards

Thanks Steve for this information I will go through it and let you know if I have any more doubts.

Regards

Ambivert Skill