During a voice gateway IOS upgrade task to validate the file, customer requested to verify if the copied file and the file in the flash are of same size.
Its not the right way. We need to compare the MD5 value.
Today’s blog is about how to verify the MD5 using router CLI.
Command to verify the MD5 from router cli.
verify /md5 filesystem : filename
Example:-
Comparing Amsterdam 17.3.3 MD5

RUWI_VG# verify /md5 bootflash:isr4300-universalk9.17.03.03.SPA.bin
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….Done!
verify /md5 (bootflash:isr4300-universalk9.17.03.03.SPA.bin) = 06b637b9b13899184a78a4a10377ef71