Wireless Access

last person joined: yesterday 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

Used plink to send command aruba 320 series

This thread has been viewed 14 times
  • 1.  Used plink to send command aruba 320 series

    Posted May 10, 2017 03:22 AM

    Hello community,

    i would like to send command autommatically to set up my Access Point, Aruba 320 serie (change data rates, mcs, channel, bandwidth ...).

    I use plink.exe to do that :

     

    plink.exe -v -ssh -2 -noagent -batch -pw admin -l admin 169.254.172.5 -P 22 {command}

    (it's just an example, i tried every solution i found like "-m", "<")

     

    I've got this error message :


    Looking up host "169.254.172.5"
    Connecting to 169.254.172.5 port 22
    We claim version: SSH-2.0-PuTTY_Release_0.64
    Server version: SSH-2.0-OpenSSH_5.8
    We believe remote version has SSH-2 channel request bug
    Using SSH protocol version 2
    Doing Diffie-Hellman group exchange
    Doing Diffie-Hellman key exchange with hash SHA-1
    Host key fingerprint is:
    ssh-rsa 2048 6f:a4:b3:b9:2d:0c:0c:f8:c8:66:21:7b:4d:92:cd:ce
    Initialised AES-256 SDCTR client->server encryption
    Initialised HMAC-SHA1 client->server MAC algorithm
    Initialised AES-256 SDCTR server->client encryption
    Initialised HMAC-SHA1 server->client MAC algorithm
    Using username "admin".
    Sent password
    Access granted
    Opening session as main channel
    Opened main channel
    Received disconnect message (protocol error)
    Disconnection message text: Only cli connections are allowed to the AP
    Server sent disconnect message
    type 2 (protocol error):
    "Only cli connections are allowed to the AP"
    FATAL ERROR: Server sent disconnect message
    type 2 (protocol error):
    "Only cli connections are allowed to the AP"

     

    Is there a way to configure the AP to allowed command sent directly in plink command line?

    Is there an other tool or protocol to fix this problem?

     



  • 2.  RE: Used plink to send command aruba 320 series

    EMPLOYEE
    Posted May 10, 2017 06:18 AM

    You get that error because instant expects an interactive (human) to be logging in.  You can get around it by using an expect script (http://community.arubanetworks.com/t5/Wireless-Access/Sharing-quot-Expect-quot-script-to-backup-controllers/m-p/85362#M15800) or Airrecorder (requires Aruba Support Login) :  https://support.arubanetworks.com/ToolsResources/tabid/76/DMXModule/514/EntryId/11035/Default.aspx