HP MSR2000/3000/4000 Router Series Fundamentals Command Reference

145
Examples
# Remove the subtest folder.
<Sysname>rmdir subtest/
Remove directory cfa0:/test/subtest and the files in the recycle-bin under this directory
will be deleted permanently. Continue?[Y/N]:y
Removing directory cfa0:/test/subtest... Done.
sha256sum
Use sha256sum to use the SHA-256 algorithm to calculate the digest of a file.
Syntax
sha256sum file-url
Views
User view
Predefined user roles
network-admin
Parameters
file-url: Specifies the name of a file.
Usage guidelines
The digest of a file can be used to verify file integrity. For example, you can calculate a software image
file's digest and compare it with the digest on the HP website.
Examples
# Use the SHA-256 algorithm to calculate the digest of file system.bin.
<Sysname> sha256sum system.bin
SHA256 digest:
0851e0139f2770e87d01ee8c2995ca9e59a8f5f4062e99af14b141b1a36ca152
undelete
Use undelete to restore a file from the recycle bin.
Syntax
undelete file-url
Views
User view
Predefined user roles
network-admin
Parameters
file-url: Specifies the name of the file to be restored.