Displaying the current flash image data
Determine whether there are flash images in both primary and secondary flash
Determine whether the images in primary and secondary flash are the same
Identify which switch software version is currently running
Viewing the currently active flash image version. Use the
show version
command to identify the software version on which the switch is currently running, and whether the active version was booted from the primary or secondary flash image.
For example, if the switch is using a software version of X.X.XX stored in Primary flash,
show version
produces the following:
Determining whether the flash images are different versions. If the flash image sizes in primary and secondary are the same, then in almost every case, the primary and secondary images are identical. This command provides a comparison of flash image sizes, plus the boot ROM version and from which flash image the switch booted. For example, in the following case, the images are different versions of the switch software, and the switch is running on the version stored in the secondary flash image:
switch(config)# show flash
Image Size(Bytes) Date Version
----- ---------- -------- -------------
Primary Image : 7493854 03/21/10 K.15.01.0001
Secondary Image : 7463821 03/23/10 K.15.01.0001
Boot Rom Version: K.15.08
Default Boot : Primary
Determining which flash image versions are installed. The
show version command displays which software version the switch is currently running and whether that version booted from primary or secondary flash. Thus, if the switch booted from primary flash, you will see the version number of the software version stored in primary flash, and if the switch booted from secondary flash, you will see the version number of the software version stored in secondary flash. Thus, by using
show version
, then rebooting the switch from the opposite flash image and using
show version
again, you can determine the version(s) of switch software in both flash sources. For example: Determining the software version in Primary and Secondary flash
switch(config)# show version
Management Module 1: Active
Image stamp: /sw/code/build/btm(ec_K_15)
Aug 2 2012 09:06:58
K.15.12.001
152
Boot Image: Primary
switch(config)# boot system flash secondary
Device will be rebooted, do you want to continue [y/n]? y
.
.
.
switch(config)# show version
Management Module 1: Active
Image stamp: /sw/code/build/btm(ec_K_15)
Aug 2 2012 09:06:58
K.15.12.001
1753
Boot Image: Secondary