HP MSR2000/3000/4000 Router Series Fundamentals Command Reference
163
safely: Saves the configuration file in safe mode. If this keyword is not specified, the device saves the
configuration file in fast mode. Safe mode is slower 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, power failure, or out of memory event occurs during
the save operation, the next-startup configuration file is retained. In fast mode, the device directly
overwrites the target next-startup configuration file. If a reboot, power failure, or out of memory event
occurs during this process, the next-startup configuration file is lost. For reliable configuration saving, HP
recommends that you specify the safely keyword when you save the running configuration to a
next-startup configuration file.
backup: Saves the running configuration to a configuration file, and specifies the file as the backup
next-startup configuration file.
main: Saves the running configuration to a configuration file, and specifies the file as the main
next-startup configuration file.
force: Saves the running configuration to the main next-startup configuration file that has been specified
in the system. Without this keyword, the system asks you to confirm the operation. If you do not confirm
the 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 base file name specified for the file-url argument does not exist, the system creates the file before
saving the configuration. If the file already exists, the system asks you to confirm whether to overwrite the
file. If you choose to not overwrite the file, the system cancels the save operation.
If neither the main keyword nor the backup keyword is specified, the save command saves configuration
to the main next-startup configuration file.
Examples
# Save the running configuration to the configuration file backup.cfg, without specifying the file as the
next-startup configuration file.
<Sysname> save backup.cfg
The current configuration will be saved to cfa0:/backup.cfg. Continue? [Y/N]:y
Now saving current configuration to the device.
Saving configuration
cfa0:/backup.cfg. Please wait...
Configuration is saved to cfa0 successfully.
# Save the running configuration to the main next-startup configuration file without any confirmation
required.
<Sysname> save force
Validating file. Please wait....
Configuration is saved to device successfully.
# On an MSR2000 or MSR3000, save the running configuration to a file in the root directory of the
storage medium, and specify the file as the main next-startup configuration file. The output is from an
MSR3000.
<Sysname> save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/backup.cfg]
(To leave the existing filename unchanged, press the enter key):test.cfg
Validating file. Please wait............