![write memory command.](/images/new-backgrounds/124562/12456289x1.webp)
How can I tell which directory the switch is currently using?
When you first boot the switch, the /flash/working directory is used; this allows you to save your initial configuration changes to the boot.cfg file. However, subsequent boots may result in your switch running from the /flash/certified directory. There- fore, verifying the current running directory is a key step any time you are configuring or monitoring the switch.
View the current directory by entering the show running- directory command. For example:
| |
CONFIGURATION STATUS |
|
Running CMM | : PRIMARY, |
CMM Mode | : DUAL CMMs, |
Current CMM Slot | : A, |
Running configuration | : WORKING, |
Certify/Restore Status | : CERTIFY NEEDED |
tested, the contents of the /flash/working directory can be copied to the /flash/certified directory via the copy working certified command.
What happens when the switch boots?
During the boot process, the switch compares the contents of the /flash/working and /flash/certified directories. Based on this comparison, the switch determines which directory to use as its running software.
Working and Certified Are Identical
If the software in the /flash/working and /flash/certified directories are completely identical, the switch considers the software in both directories to be equally reliable. In this case, the switch will run from the /flash/working directory.
SYNCHRONIZATION STATUS |
|
| |
Flash Between | CMMs | : NOT | SYNCHRONIZED, |
Running Configuration | : SYNCHRONIZED, | ||
NIs Reload On | Takeover | : ALL | NIs |
Working and Certified contents are identical.
Working
Directory
boot.cfg
Fbase.img
Frelease.img
Etc.
The switch runs from Working.
Working Directory
boot.cfg
Fbase.img
Frelease.img
Etc.
In this example, the switch is using the /flash/working direc- tory.
Can I save changes to the Certified directory?
Certified
Directory
boot.cfg
Fbase.img
Frelease.img
Etc.
Certified Directory
boot.cfg
Fbase.img
Frelease.img
Etc.
No. The /flash/certified directory is intended to store only tested, reliable configuration and image files. Configuration changes must be saved to the boot.cfg file in the /flash/working directory. Once those changes have been road-
When the switch is running from the /flash/working directory software, configuration changes can be saved via the
write memory command.
March 2005 | Files and Directories 39 |