23-7
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 23 Modifying the Switch Boot Configuration
Setting the Configuration Register
Setting CONFIG_FILE Recurrence
By default, when you set the CONFIG_FILE environment variable, the list of configuration files to use
at startup is retained only until the next time the switch is restarted.
You can cause the system software to retain the CONFIG_FILE environment variable settings
indefinitely so that each time the switch is restarted, the specified configuration files are used to
configure the switch.
This command affects only the configuration register bit that controls whether the CONFIG_FILE
environment variable settings are recurring or nonrecurring. The remaining configuration register bits
are unaltered.
Caution
With the CONFIG_FILE environment variable set to
recurring
, the current configuration in
NVRAM is erased each time the switch is restarted and the switch is configured using the specified
configuration files. With the CONFIG_FILE environment variable set to
non-recurring
, the current
configuration in NVRAM is erased at the next restart and the switch is configured using the specified
configuration files. The NVRAM configuration is retained after subsequent restarts (unless you again
set the CONFIG_FILE variable).
To set the switch to retain the current CONFIG_FILE environment variable indefinitely, perform this
task in privileged mode:
This example shows how to set the switch to retain the current CONFIG_FILE environment variable
indefinitely:
Console> (enable)
set boot config-register auto-config recurring
Configuration register is 0x1820
ignore-config: disabled
auto-config: recurring, overwrite, sync disabled
console baud: 2400
boot: the ROM monitor
Console> (enable)
Setting CONFIG_FILE Overwrite
This command allows you to specify if the auto-config file should be used to overwrite the NVRAM
configuration or if the file configuration should be appended to what is currently in NVRAM.
Overwriting means that the NVRAM configuration will be cleared before executing the auto-config file;
appending means that the auto-config file will be executed without first clearing NVRAM. The default
is
overwrite
.
Task
Command
Set the switch to retain the current
CONFIG_FILE environment variable
indefinitely.
set boot config-register auto-config
{
recurring
|
non-recurring
}