Skip to content

Latest commit

 

History

History
143 lines (98 loc) · 3.02 KB

README.md

File metadata and controls

143 lines (98 loc) · 3.02 KB

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

# 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 :

# 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

Show command

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

Disconnecting

# 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

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 'Building a Powershell module'
  • Erwan Quelin for help about Powershell

License

Copyright 2019 Alexis La Goutte and the community.