unfortunately there is no way to gather all power usage of multiple APs in an easy manner. We have some minor CLI improvements in newer code with newer APs, see "show ap power-mgmt-statistics ap-name <>" but not all APs support this, nor all AOS versions.
(Aruba7008) [mynode] #show ap power-mgmt-statistics ap-name ap555
AP Power Mgmt Status, Last update at 2020-05-30 13:52:01
--------------------------------------------------------
Attr Value
---- -----
LLDP Granted Power Eth 0: 25.1 Eth 1: 0.0
LLDP Request Power Eth 0: 25.1 Eth 1: 25.1
Temperature Highest temperature: 50°C, Lowest temperature: 48°C, Current temperature: 50°C
Power Supply POE-AT
USB Status USB Knob: Auto, USB Status: Disabled
PSE Status N.A.
ETH Status Eth 0:Enabled. Eth 1:Disabled.
G-radio Chain 4*4
G-radio Enable Enabled
G-radio Power Full Power
A-radio Chain 4*4
A-radio Enable Enabled
A-radio Power Full Power
CPU Throttle 100%
Power Consumption 8.8W <<
IPM Enable Disabled
ITM Status Not Supported
(Aruba7008_26_54_9C) [mynode] #
In the ap debug system status, just below the "Power Status" output you should find the the power consumption:
Power Monitoring Information
----------------------------
Current(mW) Average(mW) Minimum(mW) Maximum(mW)
----------- ----------- ----------- -----------
5841 5730 5640 6542
Note : Avg, Min and Max power are calculated using values sampled over the previous 60 seconds
that information together with power status should give you an idea of what the AP is doing (together these are rolled up into "ap power-mgmt-statistics" on AOS versions that support it, I think 8.6 and up.
With that said, trying to use a script to continually poll many APs using "show ap debug system-status" is not recommended on a production system.