Upgrade IOS

From Ever changing code
Revision as of 14:37, 27 November 2013 by Pio2pio (talk | contribs) (→‎Extract)
Jump to navigation Jump to search

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