How do I change the boot partition of an Aruba Instant AP (IAP)?

Product and Software: This article applies to Aruba Instant platforms and versions.

When the code on an Aruba Instant AP (IAP) must be rolled back to older code, it can be done from the apboot> console. With IAP, the boot parameter has the configurable option os_partition, which can be used to toggle between OS partitions 0 / 1. For example, setenv os_partition 0 configures the AP to boot from boot partition 0.

Printenv output with os_partition option highlighted:

apboot> printenv

bootdelay=2

baudrate=9600

autoload=n

boardname=Talisker

servername=aruba-master

bootcmd=boot ap

autostart=yes

bootfile=mips32.ari

ethaddr=00:24:6c:c8:ab:79

ethact=eth0

ipaddr=10.130.227.77

netmask=255.255.255.0

gatewayip=10.130.227.100

serverip=10.130.227.191

name=iAP1

os_partition=1

stdin=serial

stdout=serial

stderr=serial

Configuring the setenv option and the boot process:

apboot> setenv os_partition 0

apboot> save

Saving Environment to Flash...

Un-Protected 1 sectors

.done

Erased 1 sectors

Writing

apboot> boot

Booting OS partition 0

Note that the option is persistent and cannot be cleared by the purgeenv command.