07-19-2023 11:14 PM
As the title states, after every reboot or power outage our distribution switch that trunks to multiple buildings fails after a reboot or a power outage. I will usually have to go in-person and console in and type in "boot flash:packages.conf" to bring the switch back up. I believe it may be a variable not set, but no idea what to type in IOS to prevent this from happening again. Any help or guidance would be appreciated.
07-19-2023 11:26 PM - edited 07-19-2023 11:26 PM
Hello @ashidiablo,
Check the output #show version command.
At the end of that out you should see register configuration ; like this:
Configuration register is 0x102
If your value is something other than 0x102 you have to modify this.
config-terminal mode, and use thee command #config-register 0x102
07-19-2023 11:37 PM
Thanks for the speedy reply. On the show version, it shows the following:
Configuration register is 0x102
Any other idea what it may be? This is the third time it has happened to me, and every time this switch reboots I usually have 2 other buildings with users go down, so I am open to any suggestions that may make this issue go away.
07-20-2023 12:15 AM
You're welcome @ashidiablo,
Tell us if it is ok! Hope so!
07-19-2023 11:30 PM
Hello!
Go to switch and check under show version the line Configuration registry. It should be setup as this:
Configuration register is 0x102
I assume you have it setup to: 0x142 which will skip the startup config.
To fix it use the following:
config-register 0x102
no system ignore startupconfig
BR
07-19-2023 11:42 PM - edited 07-19-2023 11:50 PM
My config register is set to 0x102, but I will try the second command you listed.
EDIT:
I went to global config and put in the following:
#no system ignore startupconfig switch all (had to type in switch all since it was stacked). I will run a scream test next week, and if it works I will mark as solved.
07-20-2023 03:13 AM
Post the complete output to the command "sh romvar".
07-20-2023 11:24 PM - edited 07-20-2023 11:37 PM
I feel like this may be the issue. After I put the command sh romvar, I noticed the boot variable set to:
BOOT="flash:cat3k_caa-rpcore.16.12.08.SPA.pkg;flash:packages.conf;"
Is that the issue? It's set to a .pkg file instead of a .bin file? If that's the case I wonder why the switch dropped it's IOS image.
Would the command to fix this is upload a valid .bin file, and type in "boot system flash:correct.bin;packges.conf" ?
07-21-2023 12:15 AM
Boot should be set only to BOOT = flash:packages.conf;
07-21-2023 12:16 AM
If you are using install mode ofcourse. If you want to use bundle mode it has to be set to only packages.conf.
07-21-2023 04:47 AM
There are many things I want to see in the command "sh romvar".
If you are unwilling to provide the output then there is not a lot I can do.
07-21-2023 06:30 AM
ROMMON variables:
BAUD="9600"
CFG_MODEL_NUM="WS-C3850-24P-E"
CLEI_CODE_NUMBER="XXXXXXXXXX"
DEFAULT_ROUTER="X.X.X.X"
ECI_CODE_NUMBER="466867"
EI_NOPROG="1"
IP_ADDR="X.X.X.X/XXX.XXX.XXX.XXX"
LINUX_CMDLINE="rw console=ttyS0,9600,n8"
LINUX_COREMASK="15"
MAC_ADDR="XX:XX:XX:XX:XX:XX"
MANUAL_BOOT="no"
MODEL_NUM="WS-C3850-24P"
MODEL_REVISION_NUM="Q0"
MOTHERBOARD_ASSEMBLY_NUM="XXXXXXXXXXX"
MOTHERBOARD_REVISION_NUM="A0"
MOTHERBOARD_SERIAL_NUM="XXXXXXXXXXX"
POE1_ASSEMBLY_NUM="73-14095-01"
POE1_REVISION_NUM="B0"
POE1_SERIAL_NUM="XXXXXXXXXXX"
RECOVERY_BUNDLE="sda9:cat3k_caa-recovery.bin"
STKPWR_ASSEMBLY_NUM="73-11956-08"
STKPWR_REVISION_NUM="A0"
STKPWR_SERIAL_NUM="XXXXXXXXXXX"
SYSTEM_SERIAL_NUM="XXXXXXXXXXX"
TAN_NUM="800-37562-03"
TAN_REVISION_NUMBER="A0"
TEMPLATE="advanced"
TERMLINES="0"
USB_ASSEMBLY_NUM="73-12923-05"
USB_REVISION_NUM="C0"
USB_SERIAL_NUM="XXXXXXXXXXX"
VERSION_ID="V04"
SWITCH_PRIORITY="9"
ABNORMAL_RESET_COUNT="0"
SWITCH_NUMBER="1"
AUTO_SWITCH_CONSOLE_DISABLE="0"
DC_COPY="yes"
RET_2_RTS="00:04:51 GMT Tue Dec 13 2022"
BOOT="flash:cat3k_caa-rpcore.16.12.08.SPA.pkg;flash:packages.conf;"
BSI="0"
RANDOM_NUM="1939177950"
SWITCH_IGNORE_STARTUP_CFG="0"
07-21-2023 01:50 PM
@ashidiablo wrote:
BOOT="flash:cat3k_caa-rpcore.16.12.08.SPA.pkg
That boot variable string is very wrong and should be removed.
Post the complete output to the command "dir".
07-21-2023 01:53 PM
I am not at the office now, but should the output be "boot=packages.conf" ?
07-21-2023 09:04 PM
It should only point to "packages.conf" but that is not just what I am looking for. There are several checks yet.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide