R3303-HP HSR6800 Routers Fundamentals Command Reference

85
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 HP website 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.
If you delete two files with the same file name in different directories, only the second file is retained in
the recycle bin.
The dir /all command displays the files moved to the recycle bin. These files are enclosed in pairs of
square brackets [ ]. To permanently delete these files, use the reset recycle-bin command.
The delete /unreserved file-url command permanently deletes a file, and the deleted file cannot be
restored.
Examples
# In standalone mode, remove file tt.cfg from the CF card root directory of the standby MPU (in slot 1):