Closed OcinO88 closed 2 years ago
Hi,
I return all data from the API... you need to look on API Swagger to found where it is Name, Group, Location...
Somehow we don't have access to the API swagger, even though we do have access to the aruba central and devices itself. Can you maybe share the API call that needs to be done?
You can try
Invoke-ArubaCLRestMethod -uri "/monitoring/v1/aps"
and for get only the info of one AP, you need to use S/N
Invoke-ArubaCLRestMethod -uri "/monitoring/v1/aps/SERIALNUMBER"
ap_deployment_mode : IAP
ap_group : None
client_count : 0
cluster_id :
controller_name :
cpu_utilization : 2
current_uplink_inuse : Ethernet
down_reason : ap_disconnected
ethernets : {@{admin_state=Down; duplex_mode=Full; index=0; link_speed=1000; name=eth0; operational_state=Down; status=Down; type=Bridge}}
firmware_version : 8.6.0.2_73853
group_name : MyGroup
ip_address : X.X.X.X
ip_address_v6 : None
last_modified : 1630830986
mem_free : 460331680
mem_total : 975437824
mesh_role : Unknown
mode : access
model : 504
modem_connected : False
name : MyAP
public_ip_address : X.X.X.X
serial : CNIDIOPNUEA
site_name : MySIte
ssid_count : 0
status : Down
subnet_mask : 255.255.255.0
swarm_id : dzdzdz
swarm_master : False
swarm_name : XXXX
uptime : 0
Thanks a lot, this works for the access points: Invoke-ArubaCLRestMethod -uri "/monitoring/v1/aps" and gives all the needed information :) Now I got to figure out the api call for the switches. If you might be able to help me with that url as well, that would be greatly appreciated
Try
Invoke-ArubaCLRestMethod -uri "/monitoring/v1/switches"
Thank you very much!
Thank you very much!
Perfect !
if you want to add cmdlet Get-ArubaCLMonitoringSwitches ;-) (and APs)
If I use the Get-ArubaCLInventoryDevices either with -type MAS or -type IAP, I get the list of the devices, but there is information missing which I do see in the Aruba Central portal itself (Name, Group, Location). Is it possible to add these values to this command as well? If I check the "Device Inventory" item, these values are all there, and I believe that the Get-ArubaCLInventoryDevices command uses this list for its information, so it wouldn't be such a big change, I assume.