Wireless Access

 View Only
  • 1.  Aruba REST API

    Posted Dec 12, 2022 11:40 AM

    Hello guys,

    I started reading the REST API guide for the ArubaOS,

    I couldn't find the equivalent endpoints for standard commands like show user-table/show wms ap/show ap.

    Am I missing something, or the REST API is not complete?

    Thank you,

    Emanuel



  • 2.  RE: Aruba REST API

    Posted Dec 13, 2022 07:57 AM
    Have you seen the showcommand API endpoint?

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 3.  RE: Aruba REST API

    Posted Dec 14, 2022 03:37 AM

    Hi Herman,

    Thanks for the reply,

    Yes, I saw this endpoint; I tried it, and it works well.

    But I'm not sure how it works internally when I run the command: show+wms+client+list
    Does it run on all the controllers/MDs? Does it bring back all the clients from all the APs?

    Generally, when I send a command request, how does it work? Where it runs it? What is the scope?

    (I used to run commands on the MM and change context using change-config-node to run it on each MD).

    Thanks,

    Emanuel




  • 4.  RE: Aruba REST API

    Posted Dec 14, 2022 08:28 AM
    Yes, for configuration you would need to do that on the MCR (MM) and under the context of your controller/hierarchy group. The show commands need to run on the actual controller and these don't have a (real) context as the configuration on the controller is what you would see with a show configuration effective on the MM in the node for that controller (hope this does not make it more complicated than it was).

    If you send the API call to the controller, it should run there. If you run it on the MM it would work the same as if you would run it on the MM in the CLI, but many show commands need to run on an actual controller. For the showcommand API, I would start on the MCR and the MDs in the CLI to find the commands that you would need, then move those in an API call.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 5.  RE: Aruba REST API

    Posted Dec 14, 2022 10:16 AM

    I'm confused.

    I just executed a showcommand request (show ap database long) on both the MM and the MC - through the showcommand endpoint.

    The MM could see/return all the APs the MC owns; how does it work?

    My question assumes that if you want data from the MC (which is responsible for the APs/Clients/w/e), you need to query the MC.

    But here I made a shortcut through the MM; what happened behind? Does the MM query the MC on my behalf? Does the MM hold all the information of all the MCs/MDs?

    Eventually, TL/DR - I want to execute periodically set of queries (e.g., get all APs/get all Clients/get all rouge APs/Clients, etc., etc.),

    Would the API be able to help me (instead of SSH)? Does it reduce the overload on the Aruba infrastructure? Do I need to query all the MDs individually?

    I hope that all my questions make sense.

    Thank you,

    Emanuel




  • 6.  RE: Aruba REST API

    Posted Jan 02, 2023 03:11 AM
    The MCR (new name for MM) has an overview of all controllers, APs and clients. That works through the (PAPI/AMON) communications between controllers and MCR.

    API would have my preference over SSH scraping as an API is designed to program against, SSH is designed for human interaction.

    If you can get the information for the MCR, I would get it there; if you need to connect to the MD there is no other choice than to do that.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 7.  RE: Aruba REST API

    Posted Jan 03, 2023 05:17 AM
    Edited by spazam Jan 03, 2023 05:17 AM

    I want to thank you for the detailed and great answers.

    I think I have the last question about this topic. I have read about AMON communication, but not quite sure about one thing:

    When I query the MCR (showcommand API), does he queries the MDs immediately per the client's API request? Or does he have this information stored? Does the MD supply his information (APs/Clients) by pushing to the MCR?

    If he indeed queries for each API request, how it's better than the SSH (we will overload the MCR with API requests the same as SSH commands)? 




  • 8.  RE: Aruba REST API

    Posted Jan 03, 2023 06:08 AM
    Not 100% sure, but my assumption is that the MD pushes the data 'as it changes', so 'near real-time' to the MCR such that the MCR has a copy of the AP/client data that the MDs have. The MCR will then (assumed!) use that data to answer the API calls.

    You may verify this by running an API call to the MCR and check (network capture or so) if there is related traffic between MD and MCR at that time.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 9.  RE: Aruba REST API

    Posted Dec 28, 2022 03:59 AM
    Hi @Herman Robers any updates?​