Hello, this is a quick tutorial to show how to install an NAE Script and an NAE Agent. I'll be using the script that monitors an interface flap rate as an example. This agent triggers an alert anytime an interface goes up and down repeatedly over a short span of time.
To get started, login to an AOS-CX device via the Web User Interface, and click on the Analytics section on the left, then click on the Scripts button on the top middle section:
On the Scripts page, you then have the option to install a script directly from the Aruba Solutions Exchange (ASE) by clicking the ASE button, or you have the option to upload a script from your PC.

Let's go over the ASE option first. On the Aruba Solutions Exchange section, click on the interface_link_flap_monitor.1.2 (if you're running a 10.00 build, instead click interface_link_flap_monitor.1.1). It should highlight the row, then click the Install button at the top to install it directly on your switch. You also have the option to View the Script code or Download it to your PC so that you can edit it.
After you click install, you should get a Confirm box pop-up, asking if you want to install the script. Click Confirm, and you should then get a green box pop up letting you know that the Script installed successfully!
Another alternative to getting a script from the ASE is to download it from our public GitHub located at https://github.com/aruba/nae-scripts
In the NAE-Scripts page you can navigate through the "agents" folder to download any agent to your PC.
You can then install a script from your PC to your AOS-CX device by clicking the Upload button on the scripts page and navigating to the file location on your PC.
After you have the script on the AOS-CX device, you now need to create an agent for the script to monitor for interface flapping. On the Scripts page, you can click the Create Agent button and a Create Agent popup box will appear.
Give the Agent a name (no spaces). We will leave the default value for the link flap rate threshold in this example. Click Create and another green Success box should pop up!
It should automatically navigate you to the Agents page, where you can click on the name of the Agent you made (interface_link_flap_monitor) and the Network Analytics Engine will now start monitoring for link flap anomalies!
I hope this was helpful in showing how to use the Network Analytics Engine to monitor your interfaces for link flapping!