Chapter 28
Modifying the Switch Boot Configuration
Setting the BOOT Environment Variable
These sections describe how to modify the BOOT environment variable:
•
•
Setting the BOOT Environment Variable
To set the BOOT environment variable, perform this task in privileged mode:
Task
Specify a system image to add to the BOOT
environment variable.
This example shows how to add system images to the BOOT environment variable:
Console> (enable) set boot system flash bootflash:cat4000.5-1-1.bin
BOOT variable = bootflash:cat4000.5-1-1.bin,1;
Console> (enable) set boot system flash bootflash:cat4000.4-5-2.bin
BOOT variable = bootflash:cat4000.5-1-1.bin,1;bootflash:cat4000.4-5-2.bin,1;
Console> (enable) set boot system flash bootflash:cat4000.6-1-1.bin prepend
BOOT variable = bootflash:cat4000.6-1-1.bin,1;bootflash:cat4000.5-1-1.bin,1;
bootflash:cat4000.4-5-2.bin,1;
Console> (enable)
Clearing the BOOT Environment Variable Settings
To clear entries from the BOOT environment variable, perform one of these tasks in privileged mode:
Task
Clear a specific image from the BOOT
environment variable.
Clear the entire BOOT environment variable.
This example shows how to clear a specific entry from the BOOT environment variable:
Console> (enable) clear boot system flash bootflash:cat4000.5-1-1.bin
BOOT variable = bootflash:cat4000.5-2-1.bin,1;bootflash:cat4000.4-5-2.bin,1;
Console> (enable)
This example shows how to clear the entire BOOT environment variable:
Console> (enable) clear boot system all
BOOT variable =
Console> (enable)
78-12647-02
Setting the BOOT Environment Variable, page 28-7
Clearing the BOOT Environment Variable Settings, page 28-7
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
Setting the BOOT Environment Variable
Command
set boot system flash device:[filename]
[prepend] [mod_num]
Command
clear boot system flash device:[filename]
[mod_num]
clear boot system all [mod_num]
28-7