Undelete - HP 6125XLG Command Reference Manual

Blade switch fundamentals command reference
Table of Contents

Advertisement

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 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, case insensitive.
Usage guidelines
If another file that has the same name exists in the directory, the system prompts you about whether to
overwrite the existing file. If you enter Y, the existing file is overwritten. If you enter N, the command is not
executed.
Examples
# Restore the copy.cfg file, which was moved from the flash: directory to the recycle bin.
<Sysname>undelete copy.cfg
Undelete flash:/copy.cfg?[Y/N]:y
File flash:/copy.cfg undeleted.
# Restore the startup.cfg file, which was moved from the flash:/seclog directory to the recycle bin:
Method 1
<Sysname>undelete seclog/startup.cfg
Undelete flash:/seclog/startup.cfg?[Y/N]:y
File flash:/seclog/startup.cfg undeleted.
<Sysname>
Method 2
<Sysname> cd seclog
<Sysname> undelete startup.cfg
Undelete flash:/seclog/startup.cfg?[Y/N]:y
File flash:/seclog/startup.cfg undeleted.
120

Advertisement

Table of Contents
loading

Table of Contents