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
- Powershell 5 or 6 (Core) (If possible get the latest version)
- An Aruba Mobility Controller or Mobility Master (with firmware 8.x.x.x)
# 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
The first thing to do is to connect to a Aruba Mobility Controller/Master with the command Connect-ArubaMC
:
# 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
You can display some command... (CLI to API)
# 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
# Disconnect from the Aruba Mobility Controller/Master
Disconnect-ArubaMC
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
Connect-ArubaMC
Disconnect-ArubaMC
Get-ArubaMCShowCmd
Invoke-ArubaMCRestMethod
Set-ArubaMCCipherSSL
Set-ArubaMCuntrustedSSL
Show-ArubaMCException
Alexis La Goutte
- Warren F. for his blog post 'Building a Powershell module'
- Erwan Quelin for help about Powershell
Copyright 2019 Alexis La Goutte and the community.