Controllerless Networks

last person joined: 2 days 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

SSH activating virtual AP command structure

This thread has been viewed 1 times
  • 1.  SSH activating virtual AP command structure

    Posted Dec 20, 2017 11:12 AM

    I am trying to setup a measure of automation to activate a broadcast Virtual AP on a schedule. I am trying to do it via SSH to turn on once a month for a meeting. I have figured out how to setup plink to login, but cannot get the setup to send out the command structures.

     

    • I have written out: 

    C:\Scripts\plink.exe -v -ssh ***.***.***.*** -l admin -pw ******** -m C:\Scripts\xxxxxxxx.txt

    ----------------------------------------

    • for vapactivation.txt

    en
    ******** 
    configure terminal
    wlan virtual-ap "xxxxxxxx"
    wlan virtual-ap "xxxxxxxx" vap-enable
    write me

     

     

     

    • Here is the spit out from powershell:

    Connecting to ***.***.***.*** port 22
    We claim version: SSH-2.0-PuTTY_Release_0.70
    Server version: SSH-2.0-OpenSSH
    Using SSH protocol version 2
    Using Diffie-Hellman with standard group "group14"
    Doing Diffie-Hellman key exchange with hash SHA-1
    Server also has ssh-dss host key, but we don't know it
    Host key fingerprint is:
    ssh-rsa 2048 *X*X*X*X*X*X*X*X*X*X*X*X*X*X*X*X*X*X
    Initialised AES-256 CBC client->server encryption
    Initialised HMAC-SHA1 client->server MAC algorithm
    Initialised AES-256 CBC server->client encryption
    Initialised HMAC-SHA1 server->client MAC algorithm
    Using username "admin".
    Attempting keyboard-interactive authentication
    Server refused keyboard-interactive authentication
    Sent password
    Access granted
    Opening session as main channel
    Opened main channel
    Started a shell/command
    Server sent command exit status 1
    Disconnected: All channels closed



  • 2.  RE: SSH activating virtual AP command structure

    EMPLOYEE
    Posted Dec 20, 2017 11:17 AM

    Please see the thread here:  http://community.arubanetworks.com/t5/Wireless-Access/Used-plink-to-send-command-aruba-320-series/m-p/295912

     

    You might want to use expect, instead.



  • 3.  RE: SSH activating virtual AP command structure

    Posted Dec 20, 2017 11:29 AM

    In looking through expect scripts, I am not seeing how I can schedule activation of VAPs. I was going to be using windows scheduler to accomplish needs.
    I am unable to figure out how to write out an expect script that will enable vaps



  • 4.  RE: SSH activating virtual AP command structure

    EMPLOYEE
    Posted Dec 21, 2017 05:01 PM

    Are you using a controller or Aruba Instant?



  • 5.  RE: SSH activating virtual AP command structure

    Posted Dec 21, 2017 05:02 PM

    I am using redudnant on prem controllers


    @cjoseph wrote:

    Are you using a controller or Aruba Instant?