Controllerless Networks

Reply
Contributor II

plink ssh tool onto an iAP VC+

Hi

 

I am trying to run plink, the ssh command line utility from the putty set, to login to an iAP VC and execute some commands. I have got all the login part working but can't get any of the commands to execute, let alone the pipe to an output file.

 

plink USERNAME@IPADDRESS -pw PASSWORD  < help.txt >> output.txt

 

I've followed a lot of online examples but always get an error 137. Looks like the iAP is refusing the passing of the commands?

 

Any help appreciated.

 

Regards

 

Chris

 

 

Guru Elite

Re: plink ssh tool onto an iAP VC+

Unfortunately,

 

The commandline is interactive and would requre a tool like expect to script most interactions.  Plink is good for connecting to a device, but it is not good for scripting in an interactive session (http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter7.html)

 

You would probably want to use TCL/Expect:  http://linux.about.com/od/softorther/a/Tcl-Expect-For-Windows-Linux-Interaction.htm

 



Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

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