02-23-2021 04:19 AM
Hi Cisco People,
Would like to ask for your help.
How would I know which specific IOS Image (.bin) file has been uploaded to the Flash prior to the upgrade using INSTALL MODE? Currently the .bin file is no longer present in the Flash and only the .pkg files were left.
I wish to cross-check it with the Cisco Software page via the md5 information included in the firmware image download.
Thank you!
Solved! Go to Solution.
02-23-2021 04:40 AM
Hello CarloSalvador,
Try to use the below command to see what image running on the package.conf.
# More flash:package.conf
Hope this helps.
Regards
Naresh M
02-23-2021 07:31 AM
Hi there,
The only difference between the switches you have listed in the license type Essential vs Advantage. The 9500 also uses a universal image, so although the different models have separate download sections, they both provide exactly the same image. The additional Advantage functions are derived from the license not the image.
cheers,
Seb.
02-23-2021 08:23 AM
the package.conf has hash which should match - check
02-23-2021 04:26 AM
show version give you what image installed and working. install mode always show .pkg file only
here normal upgrade guide : (just for reference 3850)
02-23-2021 05:33 AM
Hi @balaji.bandi , this one only shows the packages.conf. Not the .bin file it self.
System image file is "flash:packages.conf"
My struggle is I wanted to verify what MD5 is being used on the current version.
02-23-2021 08:23 AM
the package.conf has hash which should match - check
02-23-2021 04:40 AM
Hello CarloSalvador,
Try to use the below command to see what image running on the package.conf.
# More flash:package.conf
Hope this helps.
Regards
Naresh M
02-23-2021 05:34 AM
Hi @Naresh Murali ,
Thank you for this. It also does not show which .bin file and MD5 is being in used.
02-23-2021 08:00 AM
Hi Carlo,
In the output you will not have the .bin file. Hence we can know about what version installed in the current package.conf.
With respect to MD5 in case if the MD5 is not same as the .bin file then it would have not installed the package.conf in the first place and booted up. So if it booted up properly we can say that MD5 is proper. MD5 verification can be done with respect to .bin and not package.conf. It is installed from .bin for reducing the size ( Install mode ).
Regards
Naresh Murali
02-23-2021 05:26 AM
Hi there,
Whether the platform is running in BUNDLE or INSTALL mode both images will come from the same .bin file, one being run in a monolithic style and the latter being unpacked and 'installed'. Therefore for any image in INSTALL mode it can have only come from one .bin file. However you are asking for an MD5 hash to be calculated on the switch for a file which is no longer present, this is not possible.
If you want verify the installation then you should copy the .bin file to the switch compare its MD5 hash against the cisco site and then proceed with the install if the two match.
cheers,
Seb.
02-23-2021 05:39 AM
Hi @Seb Rupik ,
Thank you for your response.
I don't know which .bin file was used previously. Example if I uploaded a .bin file that is dedicated to C9500-16X-E Switch model, but my Switch model is C9500-16X-A Switch, that would give me a different md5 value. How would I know if that .bin I will upload is really the one that was previously used?
Thank you,
02-23-2021 07:30 AM
Hi Carlo,
The checksum will be generated for all files in flash, however to verify if it is the correct one, it can only be matched with checksum of .bin file and the one available on cisco.com.
NOTE:- Checksum of packages.conf is not going to match with the one on cisco.com as it would be for .bin image.
Regards
Inayath
HTH
02-23-2021 07:31 AM
Hi there,
The only difference between the switches you have listed in the license type Essential vs Advantage. The 9500 also uses a universal image, so although the different models have separate download sections, they both provide exactly the same image. The additional Advantage functions are derived from the license not the image.
cheers,
Seb.
02-23-2021 11:53 AM
@Naresh Murali @Seb Rupik @InayathUlla Sharieff @balaji.bandi ,
Thanks guys! All your answers enlightened me and I know now what to do for me to be able to move further to my goal.
Thanks a lot!!!
02-23-2021 07:42 PM
Hi Carlo,
Simple is that the IOS would failed.
Now coming to yur original question how you can verify there is no way that you can verify when using packages.conf.
NOTE:- Checksum of packages.conf is not going to match with the one on cisco.com as it would be for .bin image.
Following is example of how it looks like when the software is packages.conf:{This values will not be present in the cisco software download image file page).
Switch#verify /sha512 flash:packages.conf
.Done!
verify /sha512 (flash:packages.conf) = 05c021f201a2cb1098db88eefcb0028eceb9e8fba166bfa2bed0701e6709125459d4fe35cdebf08e524d194bf62ec148f86578dee2e2938658da9848108bb119
Switch#verify /md5 flash:packages.conf
.Done!
verify /md5 (flash:packages.conf) = 14178aada1fd338924d660baa3ebeaad
HTH
Regards
Inayath
02-23-2021 02:35 PM
If the BIN file is corrupt, Install Mode would fail.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide