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: over 1 year ago
JSON representation
PowerShell module to manage Aruba Mobility Controller (MC)
- Host: GitHub
- URL: https://github.com/poweraruba/powerarubamc
- Owner: PowerAruba
- License: apache-2.0
- Created: 2019-11-12T08:38:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T21:20:22.000Z (over 6 years ago)
- Last Synced: 2025-01-25T05:43:19.114Z (over 1 year ago)
- Topics: api, aruba, arubanetworks, mobility, powershell, powershell-module
- Language: PowerShell
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.