Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poweraruba/powerarubamc

PowerShell module to manage Aruba Mobility Controller (MC)
https://github.com/poweraruba/powerarubamc

api aruba arubanetworks mobility powershell powershell-module

Last synced: 5 days ago
JSON representation

PowerShell module to manage Aruba Mobility Controller (MC)

Awesome Lists containing this project

README

        

# PowerArubaMC

This is a Powershell module for configure a Aruba Mobility Controller (MC) and Mobility Master

With this module (version 0.1.0) you can manage:

- Show commands

More functionality will be added later.

Connection can use HTTPS (default)
Tested with Aruba Moblity Controller or Mobility Master (using 8.x.x.x firmware and later...) on Windows/Linux/macOS

# Requirements

- Powershell 5 or 6 (Core) (If possible get the latest version)
- An Aruba Mobility Controller or Mobility Master (with firmware 8.x.x.x)

# Instructions
### Install the module
```powershell
# Automated installation (Powershell 5 or later):
Install-Module PowerArubaMC

# Import the module
Import-Module PowerArubaMC

# Get commands in the module
Get-Command -Module PowerArubaMC

# Get help
Get-Help Get-ArubaMCShowCmd -Full
```

# Examples
### Connecting to the Aruba Mobility Controller/Master

The first thing to do is to connect to a Aruba Mobility Controller/Master with the command `Connect-ArubaMC` :

```powershell
# Connect to the Aruba Mobility Controller/Master
Connect-ArubaMC 192.0.2.1

#we get a prompt for credential
```
if you get a warning about `Unable to connect` Look [Issue](#Issue)

### Show command

You can display some command... (CLI to API)

```powershell
# Display AP Database (show ap database)
Get-ArubaMCShowCmd "show ap database"

AP Database
-----------
{@{AP Type=305; Flags=; Group=default; IP Address=10.44.5.81; Name=Test; Standby IP=0.0.0.0; Status=Down; Switch IP=...

#Display the value
(Get-ArubaMCShowCmd "show ap database")."Ap Database"

AP Type : 305
Flags :
Group : default
IP Address : 10.44.5.81
Name : Test
Standby IP : 0.0.0.0
Status : Down
Switch IP : 10.200.5.111

#Display the meta
(Get-ArubaMCShowCmd "show ap database")._meta
Name
Group
AP Type
IP Address
Status
Flags
Switch IP
Standby IP

```

### Disconnecting

```powershell
# Disconnect from the Aruba Mobility Controller/Master
Disconnect-ArubaMC
```

# Issue

## Unable to connect (certificate)
if you use `Connect-ArubaMC` and get `Unable to Connect (certificate)`

The issue coming from use Self-Signed or Expired Certificate for AP management
Try to connect using `Connect-ArubaMC -SkipCertificateCheck`

# List of available command
```powershell
Connect-ArubaMC
Disconnect-ArubaMC
Get-ArubaMCShowCmd
Invoke-ArubaMCRestMethod
Set-ArubaMCCipherSSL
Set-ArubaMCuntrustedSSL
Show-ArubaMCException
```

# Author

**Alexis La Goutte**
-
-

# Special Thanks

- Warren F. for his [blog post](http://ramblingcookiemonster.github.io/Building-A-PowerShell-Module/) 'Building a Powershell module'
- Erwan Quelin for help about Powershell

# License

Copyright 2019 Alexis La Goutte and the community.