A lot of cisco techs are in the same position. You only have remote access to a router but need to perform an IOS upgrade. This might be to squash a bug or simply because Cisco TAC will not proceed with a TAC case until you do so.

How do you verify that the IOS image has not been corrupted between cisco.com and your device? Read on to find out!

All of the IOS downloads have an MD5 sum that identifies the original unaltered files. MD5 hashing is basically a way of taking an input, in this case the IOS, running it through a hashing algorithm and coming up with a string/Value. The important thing to note here is no matter who runs the IOS through the hashing algorithm, the output will always be the same. If even a slight change has been made to the file then the output will be different.

So, once your IOS is on the router you need to do the following:

router#verify /md5 disk0:c1700-advsecurityk9-mz.123-14.T7.bin

At this point the router will respond with the hash value of the file you have uploaded which can now be compared to the hash value from cisco.com. If these values do not match DO NOT RELOAD THE ROUTER!!! If you do the chances are you will end up with a paper weight until you can get out to site.
You should re-upload the IOS to ensure that it is correct and perform the above again. If you get a mismatched input then the chances are the IOS on your TFTP server is corrupt and you will need to re-download from Cisco.com.

Hope that helps you avoid those “uh oh” moments when a device doesnt return to service!

Thanks for reading.

8 Responses to “Verify your IOS before reloading that router!”

  1. Simon says:

    nice.

    btw eric from http://www.nettiki.com/ just told me the following..

    “Another thing to look for is that when you use tftp (Trivial File Transfer Protocol) to upgrade your image from a tftp server, you should look for two “OK”s. The 1st OK will indicate that the file transfer completed successfully and the 2nd OK will indicate that the checksum of the file validated correctly.”

  2. Rich says:

    Another very useful tip, thanks :)

  3. Espen Nilsen says:

    If you run your TFTP server on linux, you can get the md5 hash for the file by using the ‘md5sum’ command on the file to match against cisco.com

  4. Rich says:

    You can, but that doesnt help you to determine if the file was corrupted in-transit. Taking the original (known good) MD5 from cisco.com and then matching it up by using Verify on the router ensures you are not about to buy yourself a long drive out to the site! :D

  5. Espen Nilsen says:

    @Rich: I agree, I just meant that it’s better though than trying to upload it a couple of times to the router and verify there if it’s already corrupt :)

  6. Carlos Curit says:

    Major thankies for the blog.Really thank you! Really Cool.

  7. Turret Press Reloading says:

    Hi, awesome post. I just now came across your site and I’m already a fan. :D

  8. Roy Follman says:

    Hi there, Great site, I’m going to post a link back to your article on my website with a quote. just thought I would check that’s ok?

Leave a Reply

Add to Technorati Favorites Add to Google
  • treatment for dry skin
  • weight loss doctor online
  • heart pain chest
  • clomid dosage
  • cymbalta dosages
  • my drug store
  • about levitra
  • flu vaccines
  • treating high cholesterol
  • drug phenergan
  • post pregnancy weight loss
  • free dog products
  • help with weight loss
  • cheapest levitra
  • breast cancer products
  • small dog products
  • online drug stores
  • stop smoking tablets
  • about levitra
  • sleep disorders drugs
  • fast weight loss tips
  • hydrochlorothiazide generic
  • cures for lung cancer
  • back pain
  • natural help sleeping
  • ulcers stomach
  • prostate cancer treatment
  • irritable bowel syndrome treatments
  • cymbalta anxiety
  • asthma treatment drugs
  • healthy pets
  • finasteride dosage
  • weight loss solutions
  • body building nutrition
  • perfect pet products
  • buy viagra internet
  • pneumonia vs bronchitis
  • latest diet pill
  • ordering meds without a prescription
  • increased heart rate drugs
  • face skin care
  • pain meds without prescription
  • celecoxib 200mg
  • obtaining pain killers
  • pain meds without prescriptions
  • hair loss treatment uk
  • cat health care
  • fat weight loss products
  • high blood pressure elderly
  • cancer drugs
  • dental antibiotics
  • strattera generic
  • removing dark spots from face
  • medicine drugs
  • new cancer drug
  • buy plan b
  • drug price
  • improve skin
  • diabetes type 2
  • buy pain pills on line
  • anti anxiety meds
  • dog products uk
  • weight loss how to
  • dogs health problems
  • high blood pressure medicines
  • drugs no prescription
  • online drugs without prescription
  • the new flu
  • buy meds no prescription
  • medications celebrex
  • no prescription online pharmacies
  • skin cell
  • controlling blood pressure
  • how does osteoporosis occur
  • quitting smoking
  • liver infection treatment
  • health med
  • cat care
  • buy viagra internet
  • body building product
  • blood pressure support
  • health vitamins
  • buy omega 3
  • smoking stop
  • viagra with out prescription
  • right side back pain
  • symptoms of congestive heart failure
  • celexa buy
  • over weight dog
  • diabetes drugs
  • build muscle
  • flu shot
  • depression therapy
  • dog health in mexico
  • best hair loss treatment
  • self help weight loss
  • buy cialis on line
  • high blood pressure cause
  • muscle spasm relief
  • drug stores
  • buy meds no prescription
  • discount anti-biotics
  • alcoholism information treatment
  • list of cancer treating drugs
  • lower leg pain
  • weight loss nutrition
  • dog health problems
  • drugs for energy
  • viagra and buy
  • drugs for sale
  • where to buy stop pain
  • medication for depression
  • pharmacies without prescriptions
  • cholesterol and health
  • alzheimers disease drugs
  • natures antibiotic
  • medicine for blood pressure
  • stopping smoking
  • diabetes treatment
  • reduce blood pressure
  • cat health info
  • treatments for throat infection
  • nolvadex dosage
  • dog health help
  • tamiflu flu
  • natural back pain relief
  • new heart attack drugs
  • dogs health problems
  • tips to help loss weight
  • vitamins store
  • wrinkle skin care
  • what causes throat infection
  • cialis 30
  • reason for high blood pressure
  • pet health care
  • blood pressure pills
  • how to stop the pain
  • newest approved drugs
  • hair loss treatments
  • hair loss remedy
  • treatment of breast cancer
  • us online pharmacy
  • medical treatment for diabetes
  • acomplia online
  • osteoporosis treating
  • claritin dose
  • free help to stop smoking
  • vitamin store
  • treatment for hypertension
  • bust increase
  • dog site health
  • buy tadalafil online
  • buy pain medicine online
  • health problems cats
  • cure for high blood pressure
  • low back pain
  • on-line pharmacies
  • treatment of asthma
  • on-line drugs
  • lower back pain
  • treating prostate cancer
  • cheap impotence drug generic cialis delivery
  • risperdal depression
  • best weight loss programs
  • medicine drugs
  • malaria medicines
  • plan b pregnancy
  • tips for weight loss
  • buy drugs prescription online
  • reducing high blood pressure
  • high blood pressure medicines
  • international pharmacy
  • anti smoking
  • anti depression
  • weight loss for women over 50
  • stop pain
  • chronic pain management
  • help to give up smoking
  • hair loss products for women
  • cold flu
  • online alcoholism treatment
  • medicine for dogs
  • breast cancer drugs
  • claritin 10mg
  • sleep disorders treatment
  • treatment of heart attacks
  • products diet
  • cheap drug pharmacies
  • reasons for high blood pressure
  • weight loss solution
  • blood pressure high
  • life after a heart attack
  • fda avandia
  • causes for high blood pressure
  • aspirin and pregnancy
  • natural breast enhancer
  • pharmacy zolpidem
  • how to get teeth white
  • back pain relief product
  • discount weight loss pill