R211x-HP Flexfabric 11900 Fundamentals Command Reference

139
<Sysname>rmdir subtest/
Remove directory flash:/test/subtest and the files in the recycle-bin under this directory
will be deleted permanently. Continue?[Y/N]:y
Removing directory flash:/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
mdc-admin
Parameters
file-url: Specifies the name of 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
identify whether the file has been tampered with.
Examples
# Use the SHA-256 algorithm to calculate the digest of file system.bin.
<Sysname> sha256sum system.bin
SHA256 digest:
0851e0139f2770e87d01ee8c2995ca9e59a8f5f4062e99af14b141b1a36ca152
tar create
Use tar create to archive files and folders.
Syntax
tar create [ gz ] archive-file fileurl-dest [ verbose ] source fileurl-source-list&<1-5>
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
gz: Uses gzip to compress the files and folders before archiving them.