HP VPN Firewall Appliances System Management and Maintenance Command Reference

31
Description
Use the crypto-digest command to compute the digest of a specified file.
The computed digest is used to verify the correctness and integrity of the file to prevent the file from being
tampered with. For example, you can use the command to compute the digest of the software image file
of a device, and compare the digest with that on the web site of the device vendor to verify whether the
file is valid.
Examples
# Use the SHA-256 algorithm to compute the digest of the 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 file that is deleted most
recently 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
# Remove file tt.cfg from the current directory.
<Sysname> delete tt.cfg
Delete cfa0:/tt.cfg? [Y/N]:y
%Delete file cfa0:/tt.cfg...Done.