The verify command only performs a check on the integrity of the file after it has been saved in the file system. It is possible for a corrupt image to be transferred to the router and saved in the file system without detection.
To verify that a Cisco IOS software image was not corrupted while it was transfered to the router, copy the image from where it is stored on your router to a Unix server. Also copy the same image from CCO (Cisco.com) to the same Unix server. (The name may need to be modified if you try to save the image in the same directory as the image that you copied from the router.) Then run a Unix diff command on the two Cisco IOS software images. If there is no difference then the image stored on the router has not been corrupted.
Embedded Hash MD5 : 9D655B85ADF994521F4D6FAFCB4D166C
Computed Hash MD5 : 9D655B85ADF994521F4D6FAFCB4D166C
CCO Hash MD5 : CA19514550BD2CF5BD467851B8DFB5F7
Switch#verify /md5 flash:c2960-lanbasek9-mz.150-2.SE5/c2960-lanbasek9-mz.150-2.SE5.bin
verify /md5 (flash:c2960-lanbasek9-mz.150-2.SE5/c2960-lanbasek9-mz.150-2.SE5.bin) = 00eaf26bfc7ffe0911fa71fb9525a2bf
[email protected]:~/tftp$ md5sum ./*.bin