cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1331
Views
8
Helpful
16
Replies

3850 Switch- reload packages.conf after every boot

ashidiablo
Level 1
Level 1

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.

16 Replies 16

M02@rt37
VIP
VIP

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

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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.

You're welcome @ashidiablo,

Tell us if it is ok! Hope so!

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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

****Kindly rate all useful posts*****

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.

Leo Laohoo
Hall of Fame
Hall of Fame

Post the complete output to the command "sh romvar".

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" ?

Boot should be set only to BOOT = flash:packages.conf;

****Kindly rate all useful posts*****

If you are using install mode ofcourse. If you want to use bundle mode it has to be set to only packages.conf. 

****Kindly rate all useful posts*****

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.

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"


@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".

I am not at the office now, but should the output be "boot=packages.conf" ?  

It should only point to "packages.conf" but that is not just what I am looking for.   There are several checks yet.

Review Cisco Networking for a $25 gift card