Network Management

Reply
Occasional Contributor I
Posts: 8
Registered: ‎08-11-2014

Get list of all down APs outside Airwave

[ Edited ]

Hi.

I need to access some real time data from Airwave outside the Airwave environment eg. list of all down APs, loaded into another website (NMS).

 

I thought of a simple HTTP GET request:

I dont want the whole airwave page loaded into my other website, so when requesting all down APs in Airwave i found the request behind the scenes that produces all data as json:

 

https://10.x.x.x/api/list_view.json?list=ap_list_down&fv_id=39&ap_folder_id=1&expand_all=1


So far so good... However this gives me troubles with authentication and also I am refused to display data from outside Airwave "because it set 'X-Frame-Options' to 'SAMEORIGIN'"


Edit: Is it possible to get the list in jsonp data format instead of json? This way i may bypass the X-origin policy with my AJAX request

or

Is it possible to change the access control header from the server?

 

I also tried to set  up a trigger when an AP goes down/up, and then send a SNMP Trap to the NMS. However this only tells me that an AP went down/up and it does not produce a list of all down APs. It would be a painful workaround to set up rules in my NMS to compute whether or not a specific AP is down right now based on the traps.

 

Airwave seems like a pretty closed environment, so is my approach wrong, or is it impossible right now?

Valued Contributor II
Posts: 804
Registered: ‎12-01-2014

Re: Get list of all down APs outside Airwave

Hi Friend,

 

Airwave won't send any list of down AP information to external NMS , it will trigger an alert when AP goes down and forward it to NMS or email.
If you want to know the down AP list, then you need to filter the output at NMS side. 
 
Please feel free for any further query on this.
Cheers,
Venu Puduchery,
[Is my post helped you ? Give Kudos :) ]
MVP
Posts: 130
Registered: ‎06-11-2013

Re: Get list of all down APs outside Airwave

You can access the PostgresSQL database via SSH on AirWave.

 

This query gives a list of AP's and its status:

 

dbc "select device_config_name, is_up from ap"

 

 

You might be able to access the PostgresSQL database remotely if you change the Postgres config...

 

The database-structure might change in new updates, beware of this.


ACMX#255 | ACMP | ACCP | AWMP
www.securelink.nl
MVP
Posts: 1,414
Registered: ‎10-25-2011

Re: Get list of all down APs outside Airwave

in new updates, you will need to modify the pg_hba file to allow outside connections.

We do it where we monitor APs from the database to present to a dashboard for clients.

It can be done
Pasquale Monardo | Senior Network Solutions Consultant
ACDX #420 | ACMP
[If you found my post helpful, please give kudos!]
Occasional Contributor I
Posts: 8
Registered: ‎08-11-2014

Re: Get list of all down APs outside Airwave

Hi all three.

Thanks for your suggestions! I will dig into it in soon future and return with my final solution.

 

Your answers were much appreciated.

Moderator
Posts: 1,252
Registered: ‎10-16-2008

Re: Get list of all down APs outside Airwave

Is there a reason for not leveraging the existing XML APIs?  You should be able to do something like:

 

https://<insert.airwave.ip.here>/ap_list.xml?is_up='false'

 

And then you can parse that xml data to just show whichever data you're really after.


Rob Gin
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company
Search Airheads
Showing results for 
Search instead for 
Did you mean: