Once the file is transferred to the MDS or Nexus bootflash, you can check the md5sum or sha512sum with:
MDSswitch# show file bootflash:m9100-s5ek9-kickstart-mz.8.1.1.bin ? <CR> > Redirect it to a file >> Redirect it to a file in append mode cksum Displays CRC checksum for a file md5sum Displays MD5 checksum for a file sha256sum Displays SHA256 checksum for a file sha512sum Displays SHA512 checksum for a file | Pipe command output to filter
MDSswitch# show file bootflash:m9100-s5ek9-kickstart-mz.8.1.1.bin md5sum 2dc155945b35f96e129ca8e143780255
MDSswitch# show file bootflash:m9100-s5ek9-kickstart-mz.8.1.1.bin sha512sum 8ed2c70b879ed76be2f149f70a1d35c92e7575bc2f881b4973b6a4a8db4498782d145d6da6f4e50871ce9821862a76a726722be3b1fc0ba608129ec73d6ec2ff
From above, you can see that the m9100-s5ek9-kickstart-mz.8.1.1.bin file off the Cisco Download Software site, the Windows, Mac or Linux PC and the MDS switch has the same md5sum and sha512sum characters.
This confirms the validity of the file transferred to the switch.
Note: Earlier NX-OS versions may not have the sha512sum option but md5sum should be present on all versions.