Command Manual (For Soliton) – Configuration File Management
H3C S3100 Series Ethernet Switches
Chapter 1 Configuration File
Management Commands
1-13
1.1.7 save
Syntax
save
[
cfgfile
| [
safely
] [
backup
|
main
] ]
View
Any view
Parameters
cfgfile
: Path name or file name of a configuration file in the Flash, a string of 5 to 56
characters.
safely
: Saves the current configuration in the safe mode.
backup
: Saves the configuration to the backup configuration file.
main
: Saves the configuration to the main configuration file.
Description
Use the
save
command to save the current configuration to a configuration file in the
Flash.
When you use this command to save the configuration file,
z
If the
main
and
backup
keywords are not specified, the current configuration will
be saved to the main configuration file.
z
If the
cfgfile
argument is specified, but the file specified by it does not exist, the
system will create the file and then save the current configuration to it. The file
attribute is neither
main
nor
backup
.
z
If the
cfgfile
argument is specified and the file specified by it exists, the system will
save the current configuration to the specified file. The file attribute is the original
attribute of the file.
z
If the
cfgfile
argument is not specified, the system will save the current
configuration to the configuration file used for this startup. If the switch starts up
without loading the configuration file, the system will save the current configuration
with the default name (config.cfg) in the root directory.
The system supports two modes for saving the current configuration file.
z
Fast saving mode. This is the mode when you use the
save
command without the
safely
keyword. The mode saves the file quicker but is likely to lose the original
configuration file if the switch reboots or the power fails during the process.
z
Safe mode. This is the mode when you use the
save
command with the
safely
keyword. The mode saves the file slower but can retain the original configuration
file in the Flash even if the switch reboots or the power fails during the process.