Difference between revisions of "Upgrade IOS"
Jump to navigation
Jump to search
Line 56: | Line 56: | ||
511 -rwx 2072 Mar 1 1993 00:24:41 +00:00 multiple-fs | 511 -rwx 2072 Mar 1 1993 00:24:41 +00:00 multiple-fs | ||
512 -rwx 3584 Mar 1 1993 00:38:49 +00:00 tftp | 512 -rwx 3584 Mar 1 1993 00:38:49 +00:00 tftp | ||
2 drwx 512 Mar 1 1993 01:32:54 +00:00 | <span style="color: red">2 drwx 512 Mar 1 1993 01:32:54 +00:00 '''c3750-ipbasek9-mz.122-55.SE5'''</span> | ||
513 -rwx 106 Mar 1 1993 01:41:19 +00:00 info | 513 -rwx 106 Mar 1 1993 01:41:19 +00:00 info | ||
Line 65: | Line 65: | ||
3 drwx 5632 Mar 1 1993 01:32:54 +00:00 html | 3 drwx 5632 Mar 1 1993 01:32:54 +00:00 html | ||
507 -rwx 12098310 Mar 1 1993 01:34:53 +00:00 | <span style="color: blue">507 -rwx 12098310 Mar 1 1993 01:34:53 +00:00 '''c3750-ipbasek9-mz.122-55.SE5.bin'''</span> | ||
508 -rwx 681 Mar 1 1993 01:41:19 +00:00 info | 508 -rwx 681 Mar 1 1993 01:41:19 +00:00 info | ||
Revision as of 19:38, 24 December 2013
Archive
Switch#dir Directory of flash:/ 509 -rwx 2301 Mar 1 1993 00:24:41 +00:00 config.text 510 -rwx 24 Mar 1 1993 00:24:41 +00:00 private-config.text 511 -rwx 2072 Mar 1 1993 00:24:41 +00:00 multiple-fs 512 -rwx 3584 Mar 1 1993 00:38:49 +00:00 tftp 2 drwx 512 Mar 1 1993 00:15:19 +00:00 c3750-ipbasek9-mz.122-55.SE7
The command below creates new archive saved.tar including all files and directories in c3750-ipbasek9-mz.122-55.SE7 directory and saves the TAR archive on tftp server.
Switch#archive tar /create tftp://192.168.173.1/saved.tar c3750-ipbasek9-mz.122-55.SE7
Extract
Switch#archive tar /xtract tftp://192.168.173.1/c3750-ipbasek9-tar.122-55.SE5.tar flash1: Loading c3750-ipbasek9-tar.122-55.SE5.tar from 192.168.173.1 (via Vlan1): ! c3750-ipbasek9-mz.122-55.SE5/ (directory) < --- output omitted --- > extracting c3750-ipbasek9-mz.122-55.SE5/c3750-ipbasek9-mz.122-55.SE5.bin (12098310 bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! extracting c3750-ipbasek9-mz.122-55.SE5/info (681 bytes) extracting info (106 bytes) [OK - 15912960 bytes]
Delete
We need sometimes delete old IOS image due to limited space.
Switch#delete /recursive flash1:c3750-ipbasek9-mz.122-55.SE5 Delete filename [c3750-ipbasek9-mz.122-55.SE5]? Examine files in directory flash:c3750-ipbasek9-mz.122-55.SE5? [confirm] Delete flash:c3750-ipbasek9-mz.122-55.SE5? [confirm]
Set to boot from new image
Check current boot anchor
Switch#sh boot BOOT path-list : flash:/c3750-ipbasek9-mz.122-55.SE7/c3750-ipbasek9-mz.122-55.SE7.bin Config file : flash:/config.text Private Config file : flash:/private-config.text Enable Break : no Manual Boot : no HELPER path-list : Auto upgrade : yes Auto upgrade path : NVRAM/Config file buffer size: 524288 Timeout for Config Download: 0 seconds Config Download via DHCP: disabled (next boot: disabled)
List directories on flash1:
Switch(config)#do dir Directory of flash:/ 509 -rwx 2301 Mar 1 1993 00:24:41 +00:00 config.text 510 -rwx 24 Mar 1 1993 00:24:41 +00:00 private-config.text 511 -rwx 2072 Mar 1 1993 00:24:41 +00:00 multiple-fs 512 -rwx 3584 Mar 1 1993 00:38:49 +00:00 tftp 2 drwx 512 Mar 1 1993 01:32:54 +00:00 c3750-ipbasek9-mz.122-55.SE5 513 -rwx 106 Mar 1 1993 01:41:19 +00:00 info 27998208 bytes total (11941888 bytes free) Swith(config)do dir flash1:c3750-ipbasek9-mz.122-55.SE5 Directory of flash:/c3750-ipbasek9-mz.122-55.SE5/ 3 drwx 5632 Mar 1 1993 01:32:54 +00:00 html 507 -rwx 12098310 Mar 1 1993 01:34:53 +00:00 c3750-ipbasek9-mz.122-55.SE5.bin 508 -rwx 681 Mar 1 1993 01:41:19 +00:00 info 27998208 bytes total (11941888 bytes free)
Set to boot from another image
boot system switch all flash1:c3750-ipbasek9-mz.122-55.SE5/c3750-ipbasek9-mz.122-55.SE5.bin
Verify new boot image has been anchored
Switch#sh boot BOOT path-list : flash1:c3750-ipbasek9-mz.122-55.SE5/c3750-ipbasek9-mz.122-55.SE5.bin Config file : flash:/config.text Private Config file : flash:/private-config.text Enable Break : no Manual Boot : no HELPER path-list : Auto upgrade : yes Auto upgrade path : NVRAM/Config file buffer size: 524288 Timeout for Config Download: 0 seconds Config Download via DHCP: disabled (next boot: disabled)
Write changes and reload
#wri #reload
After reboot
Before reboot
Switch#show version Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(55)SE7, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2013 by Cisco Systems, Inc. Compiled Mon 28-Jan-13 10:16 by prod_rel_team Image text-base: 0x01000000, data-base: 0x02D00000 ROM: Bootstrap program is C3750 boot loader BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.2(53r)SEY4, RELEASE SOFTWARE (fc1) Switch uptime is 2 hours, 2 minutes System returned to ROM by power-on System image file is "flash:/c3750-ipbasek9-mz.122-55.SE7/c3750-ipbasek9-mz.122-55.SE7.bin"
After reboot
Switch#sh version Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(55)SE5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Thu 09-Feb-12 18:59 by prod_rel_team Image text-base: 0x01000000, data-base: 0x02D00000 ROM: Bootstrap program is C3750 boot loader BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.2(53r)SEY4, RELEASE SOFTWARE (fc1) Switch uptime is 3 minutes System returned to ROM by power-on System image file is "flash:/c3750-ipbasek9-mz.122-55.SE5/c3750-ipbasek9-mz.122-55.SE5.bin"