HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 97

Configuration file format and content, Next-startup configuration file redundancy, Startup with

Page 97 highlights

Configuration file format and content IMPORTANT: To run on the device, a configuration file must meet the content and format requirements of the device. To avoid any configuration loading problem at startup, use a configuration file created on the device. If you edit the configuration file, make sure all edits are compliant with the requirements of the device. A configuration file must meet the following requirements: • All commands are saved in their complete form. • Commands are sorted in sections by view, typically in this order: system view, interface view, protocol views, and user interface view. • Sections are separated with one or more blank lines or comment lines that start with a pound sign (#). • The configuration file ends with the word return. You can execute the save command to save the running configuration to a configuration file. To make sure that the configuration file can run normally, HP recommends that you not edit the content and format of the configuration file. Next-startup configuration file redundancy You can specify one main next-startup configuration file and one backup next-startup configuration file for redundancy. If a configuration file is not assigned the main or backup attribute, its file attribute is NULL. At startup, the device tries to start up with the main configuration file. If the main configuration file is corrupted or unavailable, the device tries the backup configuration file. If the backup configuration file is corrupted or unavailable, the device starts up with the factory defaults. You can specify a main or backup startup configuration file directly (see "Specifying a configuration file for the next startup") or when saving the running configuration (see "Saving the running configuration"). For reliability, do not specify a configuration file as both the main and backup startup configuration files. Startup with a configuration file The device selects the configuration file to load at startup, as follows: 1. If the specified main startup configuration file exists, the device starts up with this configuration file. 2. If the specified main startup configuration file does not exist but the backup startup configuration file exists, the device starts up with the backup startup configuration file. 3. If neither the main nor the backup startup configuration file exists, the device starts up with the factory defaults. Saving the running configuration To make configuration changes take effect at the next startup of the device, save the running configuration to the startup configuration file to be used at the next startup before the device reboots. 91

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

91
Configuration file format and content
IMPORTANT:
To run on the device, a configuration file must meet the content and format requirements of the device. To
avoid any configuration loading problem at startup, use a configuration file created on the device. If you
edit the configuration file, make sure all edits are compliant with the requirements of the device.
A configuration file must meet the following requirements:
All commands are saved in their complete form.
Commands are sorted in sections by view, typically in this order: system view, interface view,
protocol views, and user interface view.
Sections are separated with one or more blank lines or comment lines that start with a pound sign
(#).
The configuration file ends with the word
return
.
You can execute the
save
command to save the running configuration to a configuration file. To make
sure that the configuration file can run normally, HP recommends that you not edit the content and format
of the configuration file.
Next-startup configuration file redundancy
You can specify one main next-startup configuration file and one backup next-startup configuration file
for redundancy. If a configuration file is not assigned the main or backup attribute, its file attribute is
NULL.
At startup, the device tries to start up with the main configuration file. If the main configuration file is
corrupted or unavailable, the device tries the backup configuration file. If the backup configuration file is
corrupted or unavailable, the device starts up with the factory defaults.
You can specify a main or backup startup configuration file directly (see "
Specifying a configuration file
for the next startup
") or when saving the running configuration (see "
Saving the running configuration
").
For reliability, do not specify a configuration file as both the main and backup startup configuration files.
Startup with a configuration file
The device selects the configuration file to load at startup, as follows:
1.
If the specified main startup configuration file exists, the device starts up with this configuration file.
2.
If the specified main startup configuration file does not exist but the backup startup configuration
file exists, the device starts up with the backup startup configuration file.
3.
If neither the main nor the backup startup configuration file exists, the device starts up with the
factory defaults.
Saving the running configuration
To make configuration changes take effect at the next startup of the device, save the running
configuration to the startup configuration file to be used at the next startup before the device reboots.