01-05-2015 03:21 AM - edited 01-05-2015 04:54 AM
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:
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
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?
01-05-2015 06:53 AM
[Is my post helped you ? Give Kudos :) ]
01-05-2015 07:22 AM
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
01-05-2015 07:42 AM
We do it where we monitor APs from the database to present to a dashboard for clients.
It can be done
ACDX #420 | ACMP
[If you found my post helpful, please give kudos!]
01-12-2015 10:46 AM
Is there a reason for not leveraging the existing XML APIs? You should be able to do something like:
And then you can parse that xml data to just show whichever data you're really after.
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company