Wireless Access

Reply
MVP
Posts: 123
Registered: ‎07-13-2015

How to use API and Instant ?

Hello everyone,

 

I would be really thankfull if someone could give me a starting point of how to use XML APIs with Instant or Aruba OS.

I know I need to add my server into the menus and all this stuff. I've also read this entire document :
http://www.arubanetworks.com/techdocs/ArubaOS_60/UserGuide/XML_API.php

 

I have no experience at all with this stuff and I want to learn. What i'd like to do is to create a web page (HTML or PHP) which will fetch user data from the Virtual controller.

something really basic like :

Username : 
Password :
MAC :

I still don't know how to integrate the api calls into a web page neither how to connect and send commands to the Virtual Controller.

What i'd like is all the steps required to achieve it from scratch (just an overview) so it would 

be clear to me what i need to study :)

Thanks a lot 

ACMP, ACCP, BCNE
MVP
Posts: 1,422
Registered: ‎10-25-2011

Re: How to use API and Instant ?

start with this
http://www.arubanetworks.com/techdocs/Instant_41_Mobile/Advanced/Content/UG_files/Services/xml_api.htm

and

http://community.arubanetworks.com/t5/ArubaOS-and-Controllers/XML-API-documentation/td-p/13953
Pasquale Monardo | Senior Network Solutions Consultant
ACDX #420 | ACMP
[If you found my post helpful, please give kudos!]
Moderator
Posts: 321
Registered: ‎08-28-2009

Re: How to use API and Instant ?

hi Overclock

 

please also see this:

http://www.arubanetworks.com/techdocs/ArubaOS_6.4.4.x_WebHelp/Web_Help_Index.htm#ArubaFrameStyles/XML_API/XML_API.htm%3FTocPath%3DExternal%2520User%2520Management|_____0

 

the documentation for the XML API got a refresh in 6.4.4.x and some better (i.e. working) sample shell scripts were put together to demonstrate the basic function. The c code that has been in the docs is not useful, it's very hard to actually compile too.

 

As for integrating it to a webpage, that should be the last step, get it working and doing what you need from a shellscript function first is a good starting point.

 

regards

-jeff

 

 

MVP
Posts: 123
Registered: ‎07-13-2015

Re: How to use API and Instant ?

Well thanks a lot jgoff, this document indeed is more up to date and helped me and enlightened me on a couple of points :)

Still had to find out the ArubaXMLDemo.py file, ill add it so other people can have it !

Also had to install pycurl library to python and wasn't able to do it using easy_install or binarie files.
I ended up using ubuntu and it works like a charm :)

 

 

ACMP, ACCP, BCNE
Moderator
Posts: 321
Registered: ‎08-28-2009

Re: How to use API and Instant ?

hi Overclock

glad it was useful. pycurl is unfortunately something that has to be used but shouldn't have given you so much trouble to get running, can you send me an email (my forum username at aruba) to say what went wrong with trying to use easy_install so I can update the demo notes?

regards

-jeff

MVP
Posts: 123
Registered: ‎07-13-2015

Re: How to use API and Instant ?

Ok ! Will send it to you today
ACMP, ACCP, BCNE
Search Airheads
Showing results for 
Search instead for 
Did you mean: