Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CatOS: what if there is no switch.cfg file ?

We had a 6509 hybrid switch reboot recently and we ran in  to problems restoring the config. We eventually restored the config but the issue of boot variables and switch.cfg files , etc. is still ringing in our heads. .We were told that the switch creates a switch.cfg file by default and also, by default,  points the CONFIG_FILE variable to boot off of this switch.cfg file. Fine...We then took a look at the bootflash and/or slot0: files on our hybrid switches and found that some of them do not have a switch.cfg or any type of .cfg file. So, when we are making our daily non-default changes...where are they going? And if one of these switches reboots..where does it go to get a .cfg file? I understand that configs are saved to NVRAM so shouldn't I see some type of .cfg file listed in flash?

1 REPLY
Hall of Fame Super Bronze

Re: CatOS: what if there is no switch.cfg file ?

It sounds like you have those switches set to non-recurring

Per the documentation:

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/catos/8.x/configuration/guide/boot.html#wp1020088


Caution With the CONFIG_FILE environment variable set to recurring, the current configuration in NVRAM is erased each time that 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).

664
Views
0
Helpful
1
Replies