cancel
Showing results for 
Search instead for 
Did you mean: 

REST API for Connect customer

REST API for Connect customer

rmfalco892
New Contributor

Hi,

 
I have a few AeroHive AP230, and I would like to programmatically get the list of clients connected to all the APs in my network.
 
I was hoping the Extreme Cloud IQ REST API would let me do so, but when trying to authenticate through a POST to https://api.extremecloudiq.com/login I get
{
"error_code": "PERMISSION_DENIED",
"error_id": "05d1653cb3db4ec3867b6fb8f21554c4",
"error_message": "PERMISSION_DENIED: Access denied for 'Connect' customer."
}
 
(please note that the password is correct, if I use the wrong one the message changes)
 
Is there any way for me to use the API, or since I am a "Connect" customer there's no way I can do it?
 
Is there any other way to get the list of clients connected to my network (no matter to what AP specifically)?
I do have physical access to the APs, so even if that means connecting through serial it'd still be acceptable as long as I can do it programmatically.
 
Thanks a lot!
 
1 ACCEPTED SOLUTION

I know that it is not perfect, but after SSH to one of your APs, you can use:

show amrp client

With that you will get lists of local, and remote (on other APs) clients:
MAC, radio, user profile ID, VLAN, IP, Age, IPv6
Just by matching profile ID to profile name (show user-profile) you can process the data with your script to have "amrp clients" table with profile names, instead of UPID.

Hope it would be good enough.

View solution in original post

6 REPLIES 6

rmfalco892
New Contributor

Right, that was clear indeed!

However I was asking about ways to get the list of clients programmatically, i.e. through a script.
Do you know how to get such a list through the cli, connecting my computer directly to one of my AP230s? And is there any API that would allow me to run commands on my AP230 from - let's say - a python script (or whatever other scripting language)?

I know that it is not perfect, but after SSH to one of your APs, you can use:

show amrp client

With that you will get lists of local, and remote (on other APs) clients:
MAC, radio, user profile ID, VLAN, IP, Age, IPv6
Just by matching profile ID to profile name (show user-profile) you can process the data with your script to have "amrp clients" table with profile names, instead of UPID.

Hope it would be good enough.

Edit: Just saw that I can set my own credentials of choice from XIQ. Will give it another try after the devices recover from a weird state where they don't show up in XIQ but seem to be up and running

 

Nothing, I can't ssh in the devices 😞

Following the instructions at https://extremeportal.force.com/ExtrArticleDetail?an=000057303 I see that user ; pass should be
admin ; aerohive or Aerohive1

However, I am able to reach the devices, but neither pass seems to be working.

Is that article out of date?

Setting the credentials I was able to ssh in the device and see the list of clients, exactly as I needed to. Thank you!!

GTM-P2G8KFN