- Table of Contents
-
- H3C S9500 Operation Manual-Release1648[v1.24]-08 System Volume
- 00-1Cover
- 01-Command Line Interface Configuration
- 02-Login and User Interface Configuration
- 03-FTP and TFTP Configuration
- 04-HA Configuration
- 05-NQA Configuration
- 06-NetStream Configuration
- 07-NTP Configuration
- 08-RMON Configuration
- 09-SNMP Configuration
- 10-Packet Statistics Accounting Configuration
- 11-Device Management Configuration
- 12-Configuration File Management Configuration
- 13-File System Management Configuration
- 14-Cluster Management Configuration
- 15-System Maintenance and Debugging Configuration
- 16-Information Center Configuration
- 17-PoE Configuration
- 18-Clock Module Configuration
- 19-ACSEI Server Configuration
- 20-OAP Module Configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
12-Configuration File Management Configuration | 34.88 KB |
Chapter 1 Configuration File Management
1.1 Configuration File Management Overview
1.2 Configuring Configuration File Management
1.2.1 Displaying the Current-Configuration and Saved-Configuration of Switch
1.2.2 Saving the Current-Configuration
1.2.3 Erasing Configuration Files from Flash Memory
1.2.4 Configuring the Name of the Configuration File Used for the Next Startup
Chapter 1 Configuration File Management
When configuring configuration file management, go to these sections for information you are interested in:
l Configuration File Management Overview
l Configuring Configuration File Management
1.1 Configuration File Management Overview
The management module of configuration file provides a user-friendly operation interface. It saves the configuration of the switch in the text format of command line to record the whole configuration process. Thus you can view the configuration information conveniently.
The format of configuration file includes:
l It is saved in the command format.
l Only the non-default constants will be saved.
l The organization of commands is based on command views. The commands in the same command mode are sorted in one section. The sections are separated with a blank line or a comment line (A comment line begins with a pound sign #).
l Generally, the sections in the file are arranged in the following order: system configuration, Ethernet port configuration, VLAN interface configuration, routing protocol configuration and so on.
l It ends with a carriage return.
1.2 Configuring Configuration File Management
The following sections describe configuration file management tasks.
l Displaying the Current-Configuration and Saved-Configuration of Switch
l Saving the Current-Configuration
l Erasing Configuration Files from Flash Memory
l Configuring the Name of the Configuration File Used for the Next Startup
1.2.1 Displaying the Current-Configuration and Saved-Configuration of Switch
When the switch is being powered on, the system will read the configuration files from Flash Memory for the initialization of the switch. (Such configuration files are called saved-configuration files). If there is no configuration file in Flash Memory, the system will begin the initialization with the default parameters. Relative to the saved-configuration, the configuration taking effect during the operating process of the system is called current-configuration. You can use the following commands to display the current-configuration and saved-configuration information of the switch.
Perform the following configuration to display the configurations of the switch:
To do… |
Use the command… |
Remarks |
Display the saved-configuration information of the switch |
display saved-configuration |
Available in any view |
Display the current-configuration information of the Ethernet switch |
display current-configuration [ controller | interface interface-type interface-number | configuration [ configuration ] ] [ | { begin | exclude | include } regular-expression ] |
Available in any view |
Display the running configuration of the current view |
display this |
Available in any view |
& Note:
The configuration files are displayed in their corresponding saving formats.
1.2.2 Saving the Current-Configuration
You can modify the current configuration of the switch through the command line interface (CLI). Use the save command to save the current-configuration in the Flash Memory, and the configurations will become the saved-configuration when the system is powered on for the next time.
Perform the following configuration to save the current-configuration:
To do… |
Use the command… |
Remarks |
Save the current-configuration |
save [ file-name ] |
Available in user view |
Even if the problems like reboot and power-off occur during the modification, the configuration file can still be saved to Flash memory.
1.2.3 Erasing Configuration Files from Flash Memory
The reset saved-configuration command can be used to erase configuration files from Flash Memory. The system will use the default configuration parameters for initialization when the switch is powered on for the next time.
Perform the following configuration to erase configuration files from Flash Memory:
To do… |
Use the command… |
Remarks |
Erase configuration files from Flash Memory |
reset saved-configuration |
Available in user view |
You may erase the configuration files from the Flash in the following cases:
l After being upgraded, the software does not match the configuration files.
l The configuration files in flash are damaged. (A common case is that a wrong configuration file has been downloaded.)
1.2.4 Configuring the Name of the Configuration File Used for the Next Startup
Perform the following configuration to configure the name of the configuration file used for the next startup:
To do… |
Use the command… |
Remarks |
Configure the name of the configuration file used for the next startup |
startup saved-configuration cfgfile |
Available in user view |
cfgfile is the name of the configuration file and its extension name can be “.cfg”. The file is stored in the root directory of the storage devices.
After the above configuration, execute the display command in any view to display the running of the configuration files, and to verify the effect of the configuration.
Perform the following configuration to display the information of the file used at startup:
To do… |
Use the command… |
Remarks |
Display the information of the file used at startup |
display startup |
Available in any view |