Last week my supervisor card died. I now have the replacement. I pulled out the compact flash out of the old Supervisor Card and in to the new one. After inserting it and placing the supervisor card back in the Switch I was booted in to ROM Monitor mode. I then have to boot the IOS from slot0: by using the boot command.
When I do a dir slot0: on the Compact Flash I see the IOS along with a file called running-config and a file named switchname-config. When I copy the switchname-config in to the running-config the config finally loads.
What commands do I need to do to get the IOS and configuration on slot0: to boot up when the switch is turned on?
(I have spent hours reading numerous posts and tech notes with no avail)
When replacing a supervisor, it may initially drop to rommon as the rommon variables are not pointing to the correct IOS image.
After booting the system, to make sure that on a subsequent reboot IOS is directly loaded, you need to make sure that:
1) the config register is set to autoboot. The normal value will be 0x2102. You can set this with the command in configuration mode:
You can verify the config register value in the output of 'show version | inc register'.
2) Additionally, you need to make sure that the boot statement points to the correct file. The running config should contain a line like:
boot system flash :
Afterwards, you should write the configuration.
By default, a supervisor will load the configuration it finds in nvram:startup-config. Again, this is done with a ROMMON variable so a replacement sup will very likely have it set like this. In theory, it is possible to change this through rommon, but I would advise against this.
Basically, when you have a new supervisor, the first time you set it up, copy a backup configuration from slot0: to nvram:startup-config and reload the supervisor. After this has been done once, the startup-config will automatically be updated whenever you do a write mem or copy running-config startup-config.