Hi all,
There's a VBS script in TR3428 that works with VCenter/VCB to do the hot snaps on quiesced VM machines/netapp volumes.
I see that it calls the ssh command (as there is no rsh in VI3 I think).
Question is, for the windows side, what's the best way to get an ssh client going? I don't think that plink works with this script, although I'm sure I could modify it to do so, but I'd rather use the ssh client that was meant to be used with the script.
Is it openSSH?
Glenn @ Voyant
On Tue, Aug 21, 2007 at 10:28:50AM -0400, Glenn Dekhayser wrote:
Question is, for the windows side, what's the best way to get an ssh client going? I don't think that plink works with this script, although I'm sure I could modify it to do so, but I'd rather use the ssh client that was meant to be used with the script.
Is it openSSH?
putty?
To all that responded, thanks, still looking for the 'best' answer though.
To those who responded 'putty', you have to use plink, which forces you to change the vbs script, which specifies "ssh" in its command lines.
I think the cygwin is probably the 'best' answer, although some responded that they had issues with it in batch mode.
Hey Vaughn, if you're out there watching, what did Evan Battle (the guy who wrote the script) use to make it work?
-Glenn @ Voyant
Is it openSSH?
putty?
-- Bert Kiers XS4All UNIX systeembeheerder, suspected terrorist
If I recall correctly Evan couldn't get SSH to work correctly (in the time required to publish his script) so he stayed with RSH.
In version 2.2 of TR3428 we included Evan's script. We are close to releasing v3.0 (VMworld07 is around the corner, need new material you know...) and in it we will return to the sample script which was included in version 2.0 & 2.1 with a link referencing to Evan's and others more advanced scripts. Our original goal was to provide a framework for others to build on. If anyone is interested in checking out a similar Perl script and willing to share feedback I'll post it.
We also have a great VMware VDI on NetApp TR being released soon, if anyone is looking at that solution. With VDI we can reduce the storage to ~10% of whats required with any other solution - its wild.
Vaughn
Glenn Dekhayser wrote:
To all that responded, thanks, still looking for the 'best' answer though.
To those who responded 'putty', you have to use plink, which forces you to change the vbs script, which specifies "ssh" in its command lines.
I think the cygwin is probably the 'best' answer, although some responded that they had issues with it in batch mode.
Hey Vaughn, if you're out there watching, what did Evan Battle (the guy who wrote the script) use to make it work?
-Glenn @ Voyant
Is it openSSH?
putty?
-- Bert Kiers XS4All UNIX systeembeheerder, suspected terrorist
Hi Glenn,
we are using Putty this way - and it works fine: The Windows task scheduler calls abatch file. The lines are ar like this example:
"C:\Program Files\Putty\plink.exe" -ssh -2 -i C:\netapp.ppk admin@filername command_to_filer
It says as much as use SSH2 with the private key named C:\netapp.ppk and send the command_to_filer
Do not generate the public private key pair with Putty itself, use a linux system instead. Then use Putty to convert the private key with no passphrase for the private key to the ppk. Keep the private key secret of course!
------------------------------------------------------------
Mit freundlichen Grüßen ______________________________________creating IT solutions
Dipl.-Chem. Knut Kristan Weber
Senior Systems Engineer CAx Professional Services
science + computing ag Hagellocher Weg 73 phone +49 7071 94 57 473 72070 Tübingen, Germany fax +49 7071 94 57 411 http://www.science-computing.de
Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Florian Geyer, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Prof. Dr. Hanns Ruder Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No. HRB 382196
Hi all,
There's a VBS script in TR3428 that works with VCenter/VCB to do the hot snaps on quiesced VM machines/netapp volumes.
I see that it calls the ssh command (as there is no rsh in VI3 I think).
Question is, for the windows side, what's the best way to get an ssh client going? I don't think that plink works with this script, although I'm sure I could modify it to do so, but I'd rather use the ssh client that was meant to be used with the script.
Is it openSSH?
Glenn @ Voyant
Glenn,
I'm using the script that you mentioned, although I did have some problems getting it to work with Openssh, so I used rsh instead.
Open ssh does work. But I was having problems getting the whole scheduled job to run. Just running the a batch file from the command prompt with open ssh worked.
To setup open ssh I used the following steps.
PREREQUISITES: This script needs to have a public/private keypair for ssh access. In order to generate ' and use this keypair from a windows host follow these steps: ' -Install OpenSSH for windows ' -From the OpenSSH bin directory (c:\Program Files\OpenSSH\bin) run the following command: ' - ssh-keygen.exe -t dsa -b 1024 ' -This will by default create both a public and private keypair in the logged on user's ' profile under $USERPROFILE.ssh\id_dsa And $USERPROFILE.ssh\id_dsa.pub ' -Edit the id_dsa.pub file. At the very end of the string there is a [usernam]@[computername] ' sequence. Change the [username] to root. ' -Copy the string from the id_dsa.pub to /vol/vol0/etc/sshd/root/.ssh/authorized_keys ' (you will need to create this path if it does not exist) ' -initiate an ssh command against the filer (ssh -l root [filer] version) so you can store the rsa fingerprint ' -if you will be scheduling the script to run via task scheduler, make sure you copy the keys to the ' $USERPROFILE.ssh\ folder on the account that will be running the task. ' ' This script requires the following items be installed Or downloaded: ' - OpenSSH for Windows (http://sshwindows.sourceforge.net/) '
These were the steps in the script, it seemed to work for me.
Cheers
Matt
-----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Glenn Dekhayser Sent: 21 August 2007 15:29 To: toasters@mathworks.com Subject: VMWare/Netapp TR-3428 question
Hi all,
There's a VBS script in TR3428 that works with VCenter/VCB to do the hot snaps on quiesced VM machines/netapp volumes.
I see that it calls the ssh command (as there is no rsh in VI3 I think).
Question is, for the windows side, what's the best way to get an ssh client going? I don't think that plink works with this script, although I'm sure I could modify it to do so, but I'd rather use the ssh client that was meant to be used with the script.
Is it openSSH?
Glenn @ Voyant
_____________________________________________________________ This e-mail (including all attachments) is confidential and may be privileged. It is for the exclusive use of the addressee only. If you are not the addressee, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at help@generalatlantic.com mailto:help@generalatlantic.com. Thank You.