Three attributes of the configuration file, Erasing the startup configuration file – H3C Technologies H3C S3100 Series Switches User Manual

Page 78

Advertising
background image

1-3

S3100 series Ethernet switches do not support the safe mode. When you are saving a configuration file

using the save safely command, if the device reboots or the power fails during the saving process, the

configuration file will be lost.

Three attributes of the configuration file

z

Main attribute. When you use the save [ [ safely ] [ main ] ] command to save the current

configuration, the configuration file you get has main attribute. If this configuration file already

exists and has backup attribute, the file will have both main and backup attributes after execution of

this command. If the filename you entered is different from that existing in the system, this

command will erase its main attribute to allow only one main attribute configuration file in the

device.

z

Backup attribute. When you use the save [ safely ] backup command to save the current

configuration, the configuration file you get has backup attribute. If this configuration file already

exists and has main attribute, the file will have both main and backup attributes after execution of

this command. If the filename you entered is different from that existing in the system, this

command will erase its backup attribute to allow only one backup attribute configuration file in the

device.

z

Normal attribute. When you use the save cfgfile command to save the current configuration, the

configuration file you get has normal attribute if it is not an existing file. Otherwise, the attribute is

dependent on the original attribute of the file.

The extension name of the configuration file must be .cfg.

Erasing the Startup Configuration File

You can clear the configuration files saved on the device through commands. After you clear the

configuration files, the device starts up without loading the configuration file the next time it is started up.

Table 1-3 Erase the configuration file

Operation

Command

Description

Erase the startup configuration file
from the storage device

reset saved-configuration
[ backup | main ]

Required

Available in user view

You may need to erase the configuration file for one of these reasons:

z

After you upgrade software, the old configuration file does not match the new software.

z

The startup configuration file is corrupted or not the one you needed.

The following two situations exist:

Advertising