how do i send a script to plink for a SSH connection to ESX 4
Posted on 2010-01-07
We have 3 ESX hosts, which i need to SSH into and send a script to automatically start a server.
i have created the Shell user, and can open a plink session to the host using the shell user,
i can also manually type the commands into the session and have the session perform the command, which is:
then listvms, or start server
now i want to do this automatically, but i havent been able to get it working.
probably cos i dont know what i am doing...lol
i created a txt file with vmware-cmd -i and listvms on 2 lines, to test but doesnt work using
plink -ssh 192.168.10.61 -l USER -pw PASS -m list.txt
any ideas or how comments on how i should do this