Controller Based WLANs

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

Aruba Employee

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

Version history
Revision #:
1 of 1
Last update:
‎07-01-2014 03:50 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.