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 | 2 drwx 512 Mar 1 1993 01:32:54 +00:00 <span style="color: red">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 | 507 -rwx 12098310 Mar 1 1993 01:34:53 +00:00 <span style="color: blue">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 | ||
| Line 71: | Line 71: | ||
Set to boot from another image | Set to boot from another image | ||
boot system switch all flash1:c3750-ipbasek9-mz.122-55.SE5/c3750-ipbasek9-mz.122-55.SE5.bin | boot system switch all flash1:<span style="color: red">c3750-ipbasek9-mz.122-55.SE5</span>/<span style="color: blue">c3750-ipbasek9-mz.122-55.SE5.bin</span> | ||
Verify new boot image has been anchored | Verify new boot image has been anchored | ||
Revision as of 13:47, 27 November 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)