93
Default command level
3: Manage level
Parameters
fileurl
-
source
: Specifies the name of the source file.
fileurl
-
dest
: Specifies the name of the target file or folder.
Usage guidelines
If you specify a target folder, the system will copy the file to the specified folder and use the name of the
source file as the file name.
Examples
# Copy file
testcfg.cfg
in the current folder and save it as
testbackup.cfg
.
<Sysname> copy testcfg.cfg testbackup.cfg
Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y
....
%Copy file flash:/test.cfg to flash:/testbackup.cfg...Done.
# Copy the configuration file of the master to the root directory of a subordinate device (with the member
ID 2).
<Sysname> copy vrcfg.cfg slot2#flash:/
Copy flash:/vrcfg.cfg to slot2#flash:/vrcfg.cfg?[Y/N]:y
%Copy file flash:/vrcfg.cfg to slot2#flash:/vrcfg.cfg...Done.
crypto-digest
Use
crypto-digest
to use the SHA-256 algorithm to calculate the digest of a file.
Syntax
crypto-digest sha256 file
file
-
url
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
sha256
: Uses the SHA-256 algorithm to calculate the file digest.
file
-
url
: Specifies the name of a file.
Usage guidelines
You can use file digests to verify file integrity.
Examples
# Use the SHA-256 algorithm to calculate the digest of file
1.bin
.
Computing digest...
SHA256 digest(1.bin)=7bcb92458222f91f9a09a807c4c4567efd4d5dc4e4abc06c2a741df7045433eb