Operation Manual – Configuration File ManagementH3C S5600 Series Ethernet Switches Chapter 1 Configuration File Management1-31.2.1 Saving the Current ConfigurationYou can modify the configuration on your switch at the command line interface (CLI). Touse the modified configuration for your subsequent startups, you must save it (using thesave command) as a configuration file.Use the following command to save current configuration:To do… Use the command… RemarksSave currentconfigurationsave [ cfgfile | [ safely ][ backup | main ] ]RequiredAvailable in any viewI. Modes in saving the configurationz Fast saving mode. This is the mode when you use the save command without thesafely keyword. The mode saves the file quicker but is likely to lose the originalconfiguration 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 safelykeyword. The mode saves the file slower but can retain the original configurationfile in the switch even if the switch reboots or the power fails during the process.When you use the save safely command to save the configuration file, if the switchreboots or the power fails during the saving process, the switch initializes itself in thefollowing two conditions when it starts up next time:z If a configuration file with the extension .cfg exists in the Flash, the switch uses theconfiguration file to initialize itself when it starts up next time.z If there is no .cfg configuration file in the Flash, but there is a configuration file withthe extension .cfgbak (backup configuration file containing the originalconfiguration information) or/and a configuration file with the extension .cfgtmp(temporary configuration file containing the current configuration information) inthe Flash, you can change the extension .cfgbak or .cfgtmp to .cfg using therename command. The switch will use the renamed configuration file to initializeitself when it starts up next time.For details of the rename command, refer to the File System Management part of themanual.II. Three attributes of the configuration filez Main attribute. When you use the save [ [ safely ] [ main ] ] command to save thecurrent configuration, the configuration file you get has main attribute. If thisconfiguration file already exists and has backup attribute, the file will have bothmain and backup attributes after execution of this command. If the filename youentered is different from that existing in the system, this command will erase itsmain attribute to allow only one main attribute configuration file in the switch.