28-10
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 28 Working with Configuration Files
Working with the Configuration Files on the Switch
Note
If you remove a module and replace it with a module of another type (for example, if you remove a
10/100 Ethernet module and insert a Gigabit Ethernet module), the module configuration is inconsistent.
The output of the
show module
command indicates this problem. To resolve the inconsistency, clear the
configuration on the problem module.
This example shows how to clear the configuration on an individual module:
Console> (enable)
clear config 2
This command will clear module 2 configuration.
Do you want to continue (y/n) [n]?
y
.............................
Module 2 configuration cleared.
Console> (enable)
To clear the configuration on an individual module port, perform this task in privileged mode:
Comparing the Configuration Files
You can compare the configuration files that are stored on the system to determine the differences
between the configuration files or to check if changes have been made to the system configuration. To
compare the configuration files, perform this task in privileged mode:
This example shows how to compare the differences between two different configuration files:
Console> (enable)
show config differences 1.cfg 2.cfg
--- bootflash:1.cfg
+++ bootflash:2.cfg
@@ -8,1 +8,1 @@
-#version 8.2(0.11-Eng)DEL
+#VERSION 8.2(0.11-eNG)del
@@ -11,1 +11,1 @@
-set config mode text auto-save interval 1
+SET CONFIG MODE TEXT AUTO-SAVE INTERVAL 1
Console> (enable)
This example shows how to compare the differences between the configuration files but to ignore the
differences in uppercase or lowercase characters:
Console> (enable)
show config differences ignorecase 1.cfg 2.cfg
Files bootflash:1.cfg and bootflash:2.cfg are identical
Console> (enable)
Task
Command
Clear the configuration on an individual module
port.
clear config
{
mod
|
mod/port
}
Task
Command
Compare the differences between the
configuration files.
show config differences
{
all
file
| context
val
|
file
| ignorecase
}