Controllerless Networks

Reply
New Contributor

SSH activating virtual AP command structure

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

Guru Elite

Re: SSH activating virtual AP command structure

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.


*Answers and views expressed by me on this forum are my own and not necessarily the position of Aruba Networks or Hewlett Packard Enterprise.*
ArubaOS 8.3 User Guide
InstantOS 8.3 User Guide
Airheads Knowledgebase
Airheads Learning Videos
New Contributor

Re: SSH activating virtual AP command structure

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

Guru Elite

Re: SSH activating virtual AP command structure

Are you using a controller or Aruba Instant?


*Answers and views expressed by me on this forum are my own and not necessarily the position of Aruba Networks or Hewlett Packard Enterprise.*
ArubaOS 8.3 User Guide
InstantOS 8.3 User Guide
Airheads Knowledgebase
Airheads Learning Videos
New Contributor

Re: SSH activating virtual AP command structure

I am using redudnant on prem controllers


cjoseph wrote:

Are you using a controller or Aruba Instant?


 

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: