file-checksum

Calculates or compares a Message Digest 5 algorithm (MD5) or SHA512 digest for a specified file.

Syntax

Command Parameters

-a
Adds data to the output file instead of overwriting it.
-c
Compares the checksum of the specified file with the checksum present in the checksum file name.
-f
Stores the result of the checksum to a file. If the output file specified is one of the reserved filenames on the switch, the command fails with the error message: Error: Invalid operation.
md5
Calculate or compare the Message Digest 5 algorithm (MD5) digest to verify the MD5 checksum for a specified file. The md5 command displays the output on screen or stores the output in a file that you specify.
-r
Reverses the output.
sha512
Calculate or compare the SHA512 digest for a file.
WORD<1-99>
Specifies the filename.

Default

None

Command Mode

User EXEC