R3303-HP HSR6800 Routers Fundamentals Command Reference
112
safely: Saves the configuration file in safe mode. If this keyword is not specified, the system saves the
configuration file in fast mode. Safe mode is less fast than fast mode, but more secure. In safe mode, the
system saves configuration in a temporary file and starts overwriting the target next-startup configuration
file after the save operation is complete. If a reboot or power failure occurs during the save operation, the
next-startup configuration file is still retained. In fast mode, the device directly overwrites the target
next-startup configuration file. If a reboot or power failure occurs during this process, the next-startup
configuration file is lost.
backup: Saves the running configuration to a configuration file, and specifies the file as the backup
next-startup configuration file. If you do not specify this keyword or the main keyword, the command
specifies the saved file as the main next-startup configuration file.
main: Saves the running configuration to a configuration file, and specifies the file as the main
next-startup configuration file. If you do not specify this keyword or the backup keyword, the command
specifies the saved file as the main next-startup configuration file.
force: Saves the running configuration to the next-startup configuration file already specified in the system.
Without this keyword, the system asks you to confirm your operation. If you do not confirm your operation
within 30 seconds, the system automatically aborts the operation. If you enter Y within the time limit, you
can continue the save process and change the next-startup configuration file during this process.
Usage guidelines
If the file specified for the save operation does not exist, the system creates the file before saving the
configuration.
In standalone mode:
The save file-url all command and the save [ safely ] [ backup | main ] [ force ] command save the
configuration to both MPUs if configuration auto-update is enabled. If configuration auto-update is
disabled, the commands save the configuration only to the active MPU.
In IRF mode:
The save file-url all command and the save [ safely ] [ backup | main ] [ force ] command save the
configuration to all MPUs in the IRF fabric if configuration auto-update is enabled. If configuration
auto-update is disabled, the commands save the configuration only to the global active MPU.
Examples
In standalone mode:
# Save the running configuration to the configuration file vrpcfg.cfg in the root directory of the CF card
on both active MPU and standby MPU, and specify the file as the main next-startup configuration file.
<Sysname> display startup
MainBoard:
Current startup saved-configuration file: cfa0:/startup.cfg
Next main startup saved-configuration file: cfa0:/bb.cfg
Next backup startup saved-configuration file: NULL
Slot 1:
Current startup saved-configuration file: cfa0:/startup.cfg
Next main startup saved-configuration file: cfa0:/bb.cfg
Next backup startup saved-configuration file: NULL
<Sysname> save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/bb.cfg]
(To leave the existing filename unchanged, press the enter key):vrpcfg.cfg