Controllerless Networks

last person joined: 19 hours ago 

Instant Mode - the controllerless Wi-Fi solution that's easy to set up, is loaded with security and smarts, and won't break your budget
Expand all | Collapse all

Manage Accesspoint Aruba IAP 325 Instant Mode over powershell SSH

This thread has been viewed 2 times
  • 1.  Manage Accesspoint Aruba IAP 325 Instant Mode over powershell SSH

    Posted Jan 19, 2017 06:46 AM

    Hi,

     

    i want to create Users for the integrated Auth. Server for the Captive Portal. With the Putty.exe it is possible to create users with the commands:  

    configure
    user benutzername passwort radius
    end
    commit apply

     

    And it works perfectly.

    Now i wanted to write a script to create users automatically. The main purpuse is the change the users password every week to make the guestnetwork more secure. So i used Powershell with the "Posh-SSH" Module.

    This is my Script:

    Install-Module Posh-SSH

    $User = "*****"
    $WLAN_Password = "******"
    $Password = ConvertTo-SecureString "*******" -AsPlainText -Force
    $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $Password

    New-SSHSession -ComputerName ********** -Credential $Credential

    Invoke-SSHCommand -SessionId 0 -Command "configure"

     

    When i run the script, the connection works:

    SessionId  Host                                                                Connected                                                 
    ---------  ----                                                               ---------                                                 
        0      **********                                                         True  

     

    And then, i get this error:                                                 
    "The connection was closed by the server: Only cli connections are
    allowed to the AP (ProtocolError)."

     

    Does anyone have an idea how to solve this Problem?

     

    Thanks

     

     



  • 2.  RE: Manage Accesspoint Aruba IAP 325 Instant Mode over powershell SSH

    Posted Jan 19, 2017 07:52 AM

    Hi,

     

    I'm not familiar with powershell so I'm going to reccommend using AirRecorder. It's an Aruba java app specifically made for the purpose of running commands remotely and can be used autonomously.

     

    Link to AirRecorder tutorial.

     



  • 3.  RE: Manage Accesspoint Aruba IAP 325 Instant Mode over powershell SSH

    Posted Jan 27, 2017 05:12 AM

    Hi,

     

    Thanks for your answer. I cannot download the AirRecoder software with your download link. When i login to Aruba Support, and go to the "Tools" at the Aruba download Page,  there is no "Airrecoder" folder is not available. Is it necessary to buy this Software? This Software is available:

    Software.jpgIs there another way to get the AirRecoder Software?

     

    Thanks.

     

     



  • 4.  RE: Manage Accesspoint Aruba IAP 325 Instant Mode over powershell SSH

    Posted Nov 06, 2019 02:05 AM

    Hi

     

    I got the same error, but found a solution to work around it.

     

    $arubapass = ConvertTo-SecureString "-password-" -AsPlainText -Force 
    
    $arcred = New-Object System.Management.Automation.PSCredential ("-login-", $arubapass)
    
    Import-Module -Name Posh-SSH
    
    $session = New-SSHSession -ComputerName aruba01.local -Credential $arcred -AcceptKey -Force
    start-sleep -s 2
    
    # Get-SSHSession - your see ID for your session
    $SSHStream = New-SSHShellStream -Index 0
    
    $SSHStream.WriteLine("show clients")
    $sshresult = $SSHStream.read()
    $sshresult

    # close session
    Remove-SSHSession 0

    It helped me. Thanks.