Wireless Access

Reply
Highlighted
Occasional Contributor II

Get status of all cluster APs from Mobility Master by SNMP

Hello Airheads,

 

We're trying to get the status (up/down) of all access points connected to underlying MDs from a Mobility Master via SNMP. Where in the past we read it directly from the controllers we're looking for a way to read it from the MM because of it's overview of the network.

 

Anyone who did this or knows which SNMP OID to use? Using an SNMP-walk on the MMs it stopped after collecting 76MB of data without showing any info on the AP's up/down status.

 

Regards,

Johan 


Accepted Solutions
Highlighted
Aruba Employee

Re: Get status of all cluster APs from Mobility Master by SNMP

Hi,

 

I had a similar requirement from one of my customers. We ended up using the AOS 8 APIs instead of SNMP as it was more efficient.

 

Attached is a sample Python code which I have used to demo similar functionality. You just need to change the MAIN.py file lines 10-12 to reflect your setup. You can call the MM or the controller directly and parse the output of the commands. In this example, I am running show global-user-table list and show ap database long against MM and saving a subset of the returned JSON data. In your case, you can remove the show global-user-table list section, and change the commands to show ap database status up or show ap database status down...

 

Below is a sample of the print output of the code. The code also saves the results in two CSV files. 

image.png

As for the SNMP OID, you might want to look at this OID .1.3.6.1.4.1.14823.2.2.1.5.2.1.4 but I am not sure if this works on MM (it works on controller)

 

Screenshot 2020-04-08 at 22.56.46.png

View solution in original post


All Replies
Highlighted
Aruba Employee

Re: Get status of all cluster APs from Mobility Master by SNMP

Hi,

 

I had a similar requirement from one of my customers. We ended up using the AOS 8 APIs instead of SNMP as it was more efficient.

 

Attached is a sample Python code which I have used to demo similar functionality. You just need to change the MAIN.py file lines 10-12 to reflect your setup. You can call the MM or the controller directly and parse the output of the commands. In this example, I am running show global-user-table list and show ap database long against MM and saving a subset of the returned JSON data. In your case, you can remove the show global-user-table list section, and change the commands to show ap database status up or show ap database status down...

 

Below is a sample of the print output of the code. The code also saves the results in two CSV files. 

image.png

As for the SNMP OID, you might want to look at this OID .1.3.6.1.4.1.14823.2.2.1.5.2.1.4 but I am not sure if this works on MM (it works on controller)

 

Screenshot 2020-04-08 at 22.56.46.png

View solution in original post

Highlighted
Moderator

Re: Get status of all cluster APs from Mobility Master by SNMP


@ayman_mukaddam wrote:

 

As for the SNMP OID, you might want to look at this OID .1.3.6.1.4.1.14823.2.2.1.5.2.1.4 but I am not sure if this works on MM (it works on controller)


FYI, this OID does not work on an MM, using the API as you pointed out, is the way to do it.

Highlighted
Occasional Contributor II

Re: Get status of all cluster APs from Mobility Master by SNMP

Hello Ayman,

 

Many thanks for your quick reply and sharing your solution! With the reply below that the SNMP OUI does not work on the MM itself, we're going to find out how to implement your script in our monitoring systems.

 

Regards,

 

Johan

Highlighted
Occasional Contributor II

Re: Get status of all cluster APs from Mobility Master by SNMP

Thank you! We will then continue with the script.

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: