Wired Intelligent Edge (Campus Switching and Routing)

Reply
Highlighted
Frequent Contributor I

Using Ansible with raw commands

I am nearly up and running with my Ansible set-up and while I can do raw commands to a Cisco, I am not getting the same from Aruba,

Any ideas how I can use the raw module to write configs ?

Also is there a good repository for looking at playbooks and get some ideas?
MVP Guru Elite

Re: Using Ansible with raw commands

Hi,

 

What switch do you want use with ansible ?

 

Do you have look https://community.arubanetworks.com/t5/Wired-Intelligent-Edge-Campus/Aruba-Ansible-github-is-public-now/m-p/466503



PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info

PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info

PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)

PowerArubaIAP: Powershell Module to use Aruba Instant AP

PowerArubaMC: Powershell Module to use Mobility Controller / Master


ACMP 6.4 / ACMX #107 / ACCP 6.5 / ACSP
Highlighted
Frequent Contributor I

Re: Using Ansible with raw commands

I was hoping for ProVision OS, 3810, 2930, 

 

I have found the Aruba Github there is only a few ideas on there, I wanted build an repository.

 

Although i have only labed Comware 7 in GNS3, but will also be getting on AOS-CX in the near future. 

 

Thanks

Andy

Highlighted
MVP Expert

Re: Using Ansible with raw commands

Greetings!

 

If you're looking to run a CLI command (or a batch of commands) on ArubaOS-Switch via Ansible, you would want to use the CliCommand or CliBatchCommand REST API methods. These methods accept either a single command or a set of commands that are executed directly, as if they were being run at the CLI prompt. For more details, refer to the Rest API Guide for ArubaOS-Switch 16.07 (these methods are listed on page 47) and the 16.07 REST API and JSON Schema.



Matt Fern
Technical Marketing Engineer, Wired Intelligent Edge

Aruba, a Hewlett Packard Enterprise company

8000 FOOTHILLS BLVD  |  ROSEVILLE, CA 95747
T: 916.540.1759  |  E: mfern@hpe.com   |   Matt @ Twitter
Highlighted
Aruba Employee

Re: Using Ansible with raw commands

Aruba developed Ansible modules for ArubaOS-Switches.

You can find out public github for ansible here - https://github.com/aruba/aruba-switch-ansible

 

Wiki on how to install modules - https://github.com/aruba/aruba-switch-ansible/wiki/ArubaOS-Switch-Modules-Examples

 

Highlighted
Frequent Contributor I

Re: Using Ansible with raw commands

Thanks for links, I have still be unable to get it working. I am trying to convert from Network CLi to understanding programing and dont have a comminuty to work through some of the problems. 

 

I got it working with Cisco easily, but getting the Comware or Aruba working seems to be a bigger challenge. 

 

I know i have a steep learning curve but i would rather learn on Aruba then Cisco, as it applies to enviroment and career.

 

 

Highlighted
MVP Expert

Re: Using Ansible with raw commands

We do have a new Developer Community right here on Airheads where you can ask questions, request feedback, and see the latest programmability innovations on Aruba platforms. Feel free to join and start participating!



Matt Fern
Technical Marketing Engineer, Wired Intelligent Edge

Aruba, a Hewlett Packard Enterprise company

8000 FOOTHILLS BLVD  |  ROSEVILLE, CA 95747
T: 916.540.1759  |  E: mfern@hpe.com   |   Matt @ Twitter
Highlighted
New Contributor

Re: Using Ansible with raw commands

Is the API supported on 3800s in Stack mode running KB.16.08.0001?

 

From the documentation: "Aruba REST API Guide for ArubaOSSwitch 16.08"

 

​"Restrictions

• Rest interface is not supported in FIPS.

• Rest Interface is not supported on ArubaOS 3800 stack switches."

 

If this is true, its a grave diappointment because we have mostly 3800 stacks to manage via automation and Aruba seems to have put all their cards in their API.

Highlighted
MVP Expert

Re: Using Ansible with raw commands

The REST API is fully supported on 3810 stacks in 16.08 (and has been since at least 16.05); this is an error in the REST API guide and we will get it corrected ASAP.

 

Thank you for pointing this out to us!



Matt Fern
Technical Marketing Engineer, Wired Intelligent Edge

Aruba, a Hewlett Packard Enterprise company

8000 FOOTHILLS BLVD  |  ROSEVILLE, CA 95747
T: 916.540.1759  |  E: mfern@hpe.com   |   Matt @ Twitter
Highlighted
New Contributor

Re: Using Ansible with raw commands

Thanks for the fast reply!

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: