Controller Based WLANs

 View Only

How do I use the controller boot parameter ‘cfgfile’ to recover from a corrupted configuration? 

Jul 01, 2014 06:50 PM

Product and Software: This article applies to all Aruba controllers and ArubaOS versions.

Sometimes a switch configuration file may get corrupted. When this happens, the switch boots, loads the configuration file, and then the switch may not return a prompt or it reboots again. To bypass loading, the configuration 'cfgfile' parameter can be set in the controller boot options.

When this option is set, the switch bypasses the configuration file and instead loads the 'factory-default.cfg' file. This initiates the switch setup dialog, which prompts the user to go through the basic switch configuration. After switch setup is complete, the switch boots with the new settings and the user can restore the configuration from the backup file.

Step 1: To stop the boot process and enter 'cpboot' mode, press Enter when prompted. Issue the 'printenv' command to list current settings.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 ...
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0

cpboot>

cpboot> printenv

bootcmd=boot flash
bootdelay=2
baudrate=9600
filesize=167a784
stdin=serial
stdout=serial
stderr=serial

Environment size: 103/508 bytes


Step 2: Use the 'setenv' command to set the 'cfgfile' parameter to bypass the configuration file. As long as 'cfgfile' is set to any value, it bypasses the configuration file. In this example, 'cfgfile' is set to 'default.cfg'. Save the settings by issuing the 'saveenv' command and issue the 'printenv' command to verify settings. After settings have been verified, issue the 'reset' command to boot the switch.

cpboot> setenv cfgfile default.cfg

cpboot> saveenv

Saving Enviroment to NVRAM...

cpboot> printenv

bootcmd=boot flash
bootdelay=2
baudrate=9600
filesize=167a784
stdin=serial
stdout=serial
stderr=serial
cfgfile=default.cfg

Environment size: 123/508 bytes

cpboot> reset


Step 3: After the 'reset' command, the switch reboots and the start setup dialog is displayed. In this example, all defaults are accepted. Select the country code correctly, because it cannot be changed in the switch configuration. When setup dialog is complete, the switch reboots.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 ...
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0
Loading image 0:0..............................
Verifying checksum...
Booting image...
Loading .text @ 0x00800000 (19232 bytes)
Loading .data @ 0x00805000 (31436800 bytes)
Clearing .bss @ 0x02600000 (12756 bytes)
## Starting application at 0x00800000...Í
Aruba Networks Model A5xxx
ArubaOS Version 3.3.3.4 (build 23333 / label #23333)
Built by p4build@stan on 2010-01-27 at 11:02:18 PST (gcc version 3.4.1)
Copyright (c) 2002-2010, Aruba Networks, Inc.

<<<<< Welcome to Aruba Networks - Aruba SC-II >>>>>

Performing CompactFlash fast test... Passed.
Reboot Cause: User reboot.
Restoring the database...done.
Performing intra-version configuration upgrade for version 3.3.
Saving current config file default.cfg as default.cfg.2010-03-31_17-21-20
Generating new configuration.
Configuration upgrade complete.
Reading configuration from factory-default.cfg

***************** Welcome to the Aruba5000 setup dialog *****************
This dialog will help you to set the basic configuration for the switch.
These settings, except for the Country Code, can later be changed from the
Command Line Interface or Graphical User Interface.


Commands: <Enter> Submit input or use [default value], <ctrl-I> Help
<ctrl-B> Back, <ctrl-F> Forward, <ctrl-A> Line begin, <ctrl-E> Line end
<ctrl-D> Delete, <BackSpace> Delete back, <ctrl-K> Delete to end of line
<ctrl-P> Previous question <ctrl-X> Restart beginning


Enter System name [Aruba5000]:
Enter VLAN 1 interface IP address [172.16.0.254]:
Enter VLAN 1 interface subnet mask [255.255.255.0]:
Enter IP Default gateway [none]:
Enter Switch Role, (master|local) [master]:
Enter Country code (ISO-3166), <ctrl-I> for supported list: us
You have chosen Country code US for United States (yes|no)?: yes

Enter Time Zone [PST-8:0]:
Enter Time in GMT [01:21:32]:
Enter Date (MM/DD/YYYY) [4/1/2010]:
Enter Password for admin login (up to 32 chars): *****
Re-type Password for admin login: *****
Enter Password for enable mode (up to 15 chars): ******
Re-type Password for enable mode: ******
Do you wish to shutdown all the ports (yes|no)? [no]:

Current choices are:

System name: Aruba5000
VLAN 1 interface IP address: 172.16.0.254
VLAN 1 interface subnet mask: 255.255.255.0
IP Default gateway: none
Switch Role: master
Country code: us
Time Zone: PST-8:0
Ports shutdown: no

If you accept the changes the switch will restart!
Type <ctrl-P> to go back and change answer for any question
Do you wish to accept the changes (yes|no)yes
Creating configuration... Done.

System will now restart!

Shutdown processing started


Step 4: After switch restarts, stop the boot sequence and reset the 'cfgfile' parameter by issuing the 'setenv cfgfile' command. Save and verify the new boot parameter configuration.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 ...
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0
cpboot>
cpboot> setenv cfgfile

cpboot> saveenv
Saving Enviroment to NVRAM...

cpboot> printenv

bootcmd=boot flash
bootdelay=2
baudrate=9600
filesize=167a784
stdin=serial
stdout=serial
stderr=serial

cpboot> reset


Step 5: After the switch reboots, it comes back up with the 'defaulted' configuration. You can now restore the configuration either from an existing backup on flash or by configuring the switch for IP connectivity to a server where the backup is stored and copy the backed up file.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 ...
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0
Loading image 0:0..............................
Verifying checksum...
Booting image...
Loading .text @ 0x00800000 (19232 bytes)
Loading .data @ 0x00805000 (31436800 bytes)
Clearing .bss @ 0x02600000 (12756 bytes)
## Starting application at 0x00800000...Í
Aruba Networks Model A5xxx
ArubaOS Version 3.3.3.4 (build 23333 / label #23333)
Built by p4build@stan on 2010-01-27 at 11:02:18 PST (gcc version 3.4.1)
Copyright (c) 2002-2010, Aruba Networks, Inc.

<<<<< Welcome to Aruba Networks - Aruba SC-II >>>>>

Performing CompactFlash fast test... Passed.
Reboot Cause: User reboot.
Restoring the database...done.
Performing intra-version configuration upgrade for version 3.3.
Saving current config file default.cfg as default.cfg.2010-03-31_17-23-25
Generating new configuration.
Configuration upgrade complete.
Reading configuration from default.cfg
Retrieving Configuration...will take approximately 1 minute
Configuration upgrade complete.

(Aruba5000)
User:


Step 6: After the file has been copied to flash, issue the 'boot config-file' command to point the switch to boot from that file and reload the switch.

(Aruba5000) #boot config-file sd2cm-bkup.cfg
(Aruba5000) #reload

Statistics
0 Favorited
61 Views
0 Files
0 Shares
0 Downloads

Comments

Nov 21, 2019 11:38 PM

Hi guys,

I did a reset and follow the steps. 

 

Below is the logs : 

 

Secure Boot Enabled on the Processor

PRID: 000C1202
POWER ON RESET CFG:C3C0FE2
Initialized I2C0 Controller.
Initialized I2C1 Controller.
SPD Rev:0x11 DIMM:0 Type:2 Speed:666MHz #Rank:1
DDR3: Node 0 Channel 0 Mem size = 4096 MB UDIMM
set freq:666666
DDR3: Node 0 DRAM frequency 666 MHz
DDR3: Node 0 CPU frequency 500 MHz
mtb_ps:125 clock:1500 trc:33 trcd:9 trp:9
AP3:A0CFFF0 ODTP1:10000
Board DDR VDD set to 1.35V.
N:0 CH:0 additional rdlvl rdly:1
N:0 Ch:0 m:32 s:32 R OK.
Rank:0 HW WLVL Passed Mask:1FF
AP3:A0CFFF0 ODTP1:10000
n:0 ch:0 RTT WR:0200
===N:0 Ch:0 m:32 s:32 RW OK.
Starting address/cmd align [4T..3T]
N:0 CH:0 SR ADDR/CMD:(B:00 E:62 00) 31
N:0 CH:0 MR ADDR/CMD:(00 7F 00) 3F
n:0 ch:0 addr mode:4T OK
N:0 CH:0 MR ADDR/CMD:(00 7F 00) 3F
n:0 ch:0 addr mode:3T OK
n:0 ch:0 addr mode:3T OK
Node:0 Ch:0 TGE Set Memory:4096 MB value:FF FF -- PASS
Node:0 Ch:0 TGE Set Memory:4096 MB value:FF 00 -- PASS
Node:0 Ch:0 TGE Set Memory:4096 MB value:AA 55 -- PASS
Node:0 Ch:0 TGE Set Memory:4096 MB value:00 00 -- PASS

DDR3 Initialization Passed.
NBU0 DRAM BAR0 base: 00000000 limit: 0013f000 xlate: 00000001 node: 00000000 ( 0 MB -> 320 MB, size: 320 MB)
NBU0 DRAM BAR1 base: 001d0000 limit: 00bff000 xlate: 00090001 node: 00000000 ( 464 MB -> 3072 MB, size: 2608 MB)
NBU0 DRAM BAR2 base: 00e00000 limit: 0128f000 xlate: 00290001 node: 00000000 ( 3584 MB -> 4752 MB, size: 1168 MB)
Hit any key to stop autoboot: 0

CPBoot image is signed
Verifying CPBoot checksum...
CPBoot check passed
Signer Cert OK
Policy Cert OK
RSA signature verified.
## Starting application at 0x8C100000 ...


CPBoot 1.0.2.0 (build 46859)
Built: 2014-10-31 at 10:09:56

DRAM: 4 GB
CPLD: rev: 2.f (0c)
Flash: 16 MB
PCIE (B0:D01:F0) : No Link.
Pwr Mngr: 24
Power: DC Adapter
Bank: Primary
Board: A7005
CPU: XLP208 Rev B0 (Secure Boot)
Clock: Core 500 MHz / SoC 500 MHz (0c3c0fe2)
Reboot code: 0:0:12:32:49
Proto :5
Net: ge-3, ge-2, ge-1, ge-0
Hit any key to stop autoboot: 0
Inventory Verification:
Inventory Verification: PASS
USB0: setting speed to USB_SPEED_HIGH
2 USB Device(s) found
#1 Storage Device(s) found
##Image not present
searching for a valid image ..
##Image not present
setting speed to USB_SPEED_HIGH
2 USB Device(s) found
** Partition 0 not valid on device 0 **
No valid file systems detected..supported file systems are ext2/ext3 and vfat
No valid file systems detected..supported file systems are ext2/ext3 and vfat

 

 

Please advise if any others steps to try.

 

Thanks.

Related Entries and Links

No Related Resource entered.