Convert Aruba CAP to IAP
Attention: This article only works for legacy devices like AP-XX
, AP-1XX
, AP-2XX
and AP-3XX
, since the newer models are unified models (including AP-203X
, AP-365
, AP-367
and latest SKUs).
According to the naming schema of Aruba, the CAP stands for Campus AP that used for centralized management, and the IAP stands for Instant AP, which has the ability to self-manage by creating an ad-hoc cluster.
Aruba said that the regulation domain and the IAP/CAP model was constant when an AP was manufactured, however, it’s a trick on the software layer.
Thanks to @shalzz who provide a copy of the Aruba Instant sourcecode, so that we have the opportunity to go deep into.
Inside of the aruba-ap-310-master\sap\flash\ap60_flash_common.h
, you can find the following snippet.
1 | /* country-code = mfg offset + 512 bytes */ |
Now the answer is clear, the format of CCODE is
1 | CCODE-<Regulatory Domain>-<SHA1(<Regulatory Domain>-<Serial Number>)> |
You can find a CCODE calculator here: Aruba Country Code (CCODE) Generator.
Here is the list of regulatory domain.
US
- Restricted Regulatory Domain - USJP
- Restricted Regulatory Domain - JapanIL
- Restricted Regulatory Domain - IsraelRW
orUNRST
- Rest of the World (Unrestricted)
Let’s move on to flash the CCODE.
- Power on the AP with the Console cable installed.
- Hit the
<ENTER>
to interrupt the boot process. - Flash the CCODE into the AP:
proginv system ccode <YOUR_CCODE>
. - Process conversion:
invent -w
. - Obtain IP address from DHCP server by
dhcp
, or you can usesetenv ipaddr <ipaddr>
andsetenv netmask <netmaskip>
to assign a valid IP address manually. - Set the TFTP server IP for downloading OS image:
setenv serverip [TFTP_Server]
. - Upgrade the partition 0 on the flash:
upgrade os 0 ArubaInstant_xxx_6.x.x.x-4.x.x.x_5xxxx
, the file must exists on the TFTP directory. To change the boot partition, see here. By default, partition 0 is the boot partition, while partition 1 is the recovery partition. - Upgrade the partition 1 on the flash:
upgrade os 1 ArubaInstant_xxx_6.x.x.x-4.x.x.x_5xxxx
. - Do a factory reset to clear the configuration remains:
factory_reset
. - Save environment variables to persistent storage:
saveenv
. - Trigger a hardware reset (reboot):
reset
.
See more AP boot commands at Managing AP Console Settings.
Obtain firmware
Aruba used host their firmwares on
1 | http://d2vxf1j0rhr3p0.cloudfront.net/fwfiles/[firmware_filename] |
but was frozen since Feb 2022 due to the migration of Aruba Support Portal (ASP). The new URL is
1 | http://common.cloud.hpe.com/ccssvc/ccs-system-firmware-registry/IAP/[firmware_filename] |
Appendix
You may also interested in the following articles:
- Aruba Instant On AP11をUnified APとして使う (Snapshot): Convert Aruba Instant On AP11 to Unified AP (AP-303) as they are the same hardware.