R3102-R3103-HP 6600/HSR6600 Routers Fundamentals Command Reference

84
copy
Use copy to copy a file.
Syntax
copy fileurl-source fileurl-dest
Views
User view
Default command level
3: Manage level
Parameters
fileurl-source: Name of the source file.
fileurl-dest: 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 cfa0:/test.cfg to cfa0:/testbackup.cfg?[Y/N]:y
....
%Copy file cfa0:/test.cfg to cfa0:/testbackup.cfg...Done.
# Copy file 1.cfg in the test folder on the CF card to the testbackup folder of the CF card, and save it as
1backup.cfg.
<Sysname> copy cfa0:/test/1.cfg cfa0:/testbackup/1backup.cfg
Copy cfa0:/test/1.cfg to cfa0:/testbackup/1backup.cfg?[Y/N]:y
%Copy file cfa0:/test/1.cfg to cfa0:/testbackup/1backup.cfg...Done.
# On the 6604/6608/6616 router, copy the configuration file of the active MPU to the root directory of
the standby MPU.
<Sysname> copy vrcfg.cfg slot1#cfa0:/
Copy cfa0:/vrcfg.cfg to slot1#cfa0:/vrcfg.cfg?[Y/N]:y
%Copy file cfa0:/vrcfg.cfg to slot1#cfa0:/vrcfg.cfg...Done.
crypto-digest
Use crypto-digest to calculate the digest of a file.
Syntax
crypto-digest sha256 file file-url
Views
User view
Default command level
2: System level