R3303-HP HSR6800 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
# In standalone mode, 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.
# In IRF mode, copy the configuration file of the IRF fabric's active MPU to the CF root directory of the
standby MPU that resides in slot 1 of member device 1.
<Sysname> copy vrcfg.cfg chassis1#slot1#cfa0:/
Copy cfa0:/vrcfg.cfg to chassis1#slot1#cfa0:/vrcfg.cfg?[Y/N]:y
%Copy file cfa0:/vrcfg.cfg to chassis1#slot1#cfa0:/vrcfg.cfg...Done.
# In IRF mode, copy the configuration file of the standby MPU that resides in slot 1 of member device 1
to the CF root directory of the standby MPU that resides in slot 1 of member device 2.
<Sysname> copy chassis1#slot1#cfa0:/vrcfg.cfg chassis2#slot1#cfa0:/
Copy cfa0:/vrcfg.cfg to chassis1#slot1#cfa0:/vrcfg.cfg?[Y/N]:y
%Copy file chassis1#slot1#cfa0:/vrcfg.cfg to chassis2#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