Attention: This article only works for legacy devices like
AP-3XX, since the newer models are unified models (including
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.
Inside of the
aruba-ap-310-master\sap\flash\ap60_flash_common.h, you can find the following snippet.
/* country-code = mfg offset + 512 bytes */
Now the answer is clear, the format of CCODE is
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 - US
JP- Restricted Regulatory Domain - Japan
IL- Restricted Regulatory Domain - Israel
UNRST- 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:
- Obtain IP address from DHCP server by
dhcp, or you can use
setenv ipaddr <ipaddr>and
setenv 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:
- Save environment variables to persistent storage:
- Trigger a hardware reset (reboot):
See more AP boot commands at Managing AP Console Settings.