Cloud Managed Networks

last person joined: 3 days ago 

Forum to discuss all things related to HPE Aruba Networking Central and UXI Network Management, including deployment of managed networks, configuration, best practices, APIs, Cloud Guest, AIOps, Presence Analytics, and other included Applications
Expand all | Collapse all

[Tutorial] Getting started with WebHooks on Aruba Central

This thread has been viewed 8 times
  • 1.  [Tutorial] Getting started with WebHooks on Aruba Central

    EMPLOYEE
    Posted Jan 12, 2020 08:39 PM

    WebHooks allow one application to securely provide real-time information to another application, a fantastic tool for automation.
    But what if you are not a programmer well versed in python, json and APIs?
    In this tutorial I hope to demonstrate how easy using WebHooks can be, even with no programming knowledge.

    The use case for this workflow is; I do not receive e-mails on my mobile, but would like to know in real time if my colleagues make changes to our network gear managed by Aruba Central. This use case may also be applicable to Delivery Managers and Change Managers.

    In this Tutorial I've used:

    • Aruba Central 2.5.0 (The Q1 calendar year 2020 version)
    • Zapier <- to catch the WebHooks
    • Twilio <- to push notifications out

    At the time of testing Zapier only supported text to US or UK numbers, depending on your environment you may not need Twilio.


    To start I signed up for a Twilio account.

    01 Start Twilio.png

    We need to get a number Twilio will use to send the notifications from.
    This is a simple click on the "Get a Trial Number" on the Dashboard once you logged in.

    02 Get trial Number.png

    Next we will need the Zapier account.

    04 Sign up for Zapier.png

    Click on "My Zaps" and then on "Explore Zap Templates"

    05 Explore Zaps.png

    In the "Explorer" type and select "Twilio"

    06 Twilio.png

    Under Popular zaps for Twilio select "Send Webhooks notifications as an SMS message with Twilio"

    07 Popular.png

    08 Webhook Twilio Zap.png

    Copy the WebHook URL

    09 Copy Hook.png

    On Aruba Central select Account Home on the top right.

    10 Central Apps.png

    Select WebHooks

    11 Webhooks.png

    Click on + Webhook

    12 Add hook.png

    Give the Webhook a name and paste in the URL

    13 Zapier.png

    Go to account home and launch Network Operations

    14 Hook in.png

    With "All Devices" as the filter at "global" top left, select "Alerts & Events"
    Click on the cog top right to configure alerts.
    Select Audit and click on "Config Change Detected"

    16 Alerts.png

    I set the severity as Warning, for me this is really just informational.
    Select WebHook, pick the WebHook we created from the drop down and save.

    17 Send to Zapier.png

    Back to Zapier, I've made some changes on devices in Aruba Central to send data to the WebHook.
    On Zapier I can now click on "Test & Review" to verify the information I'm interested in is coming through.

    18 Test Zap.png

    The next piece on Zapier, pre populated with Twilio.

    19 Twilio.png

    We now need to "link" the Twilio account, click in sign in.

    20 Sign in .png

    Zapier will ask for SID and Auth Token.

    21 Authtoken.png

    We can get this from Twilio under settings.

    22 Copy SID and Token.png

    The from number is the trial number we selected in Twilio, it should be in the drop down.

    22 Numbers.png

    Click on the hamburger with the + and select the interesting information from the WebHook.

    23 Message from hook.png

    Click continue

    24 continue.png

    Test it is all working

    25 Test and Continue.png

    Finish and turn the Zap on

    27 Turn on.png

    I now get text notifications every time a change is made in Aruba Central, including where the change was made and by whom.

    28 Txt.png

    This tutorial is intended to be an intro, the possibilities are endless. Perhaps use IFTTT to turn the Hue lights red when a device goes down?

     

    If you find this post useful, give me kudos for it ;)



  • 2.  RE: [Tutorial] Getting started with WebHooks on Aruba Central

    Posted May 30, 2020 12:38 PM

    Hello,

    Do you have any example with WebHooks - Streaming?
    Thanks,



  • 3.  RE: [Tutorial] Getting started with WebHooks on Aruba Central

    EMPLOYEE
    Posted May 30, 2020 12:47 PM

    Hi,

     

    Check this link https://github.com/aruba/central-examples-only (Streaming-api-client)