R2511-HP MSR Router Series Fundamentals Command Reference(V5)

131
crypto-digest
Use crypto-digest to calculate the digest of a file.
Syntax
crypto-digest sha256 file file-url
Views
User view
Default command level
2: System level
Parameters
sha256: Specifies the SHA-256 algorithm.
file file-url: Specifies a file.
Usage guidelines
The digest can be used to verify the integrity of the file. For example, you can use this command to
calculate the digest of a software image file and compare it with that provided on the website of the
device vendor to verify whether the file has been tampered with.
Examples
# Use the SHA-256 algorithm to calculate the digest of file cc.bin.
<Sysname> crypto-digest sha256 file cc.bin
Computing digest...
SHA256 digest(cc.bin)=
7bcb92458222f91f9a09a807c4c4567efd4d5dc4e4abc06c2a741df7045433eb
delete
Use delete file-url to temporarily delete a file.
Use delete /unreserved file-url to permanently delete a file.
Syntax
delete [ /unreserved ] file-url
Views
User view
Default command level
3: Manage level
Parameters
/unreserved: Permanently deletes the specified file, and the deleted file can never be restored.
file-url: Name of the file to be deleted. Asterisks (*) are acceptable as wildcards. For example, to remove
files with the extension of .txt in the current directory, enter delete *.txt.
Usage guidelines
The delete file-url command moves a file to the recycle bin. To restore the file, use the undelete command.