Hi,
I looked at the PowerCLI commands and didn't find what I wanted. I suspect this may be more of a generic Powershell question but thought I'd ask here as others may have the same issue.
I need to install a PAM module on 100's of ESX servers.
I'd like to copy the tar file to the ESX hosts, untar, run the .sh script, copy some pre-configured files and then run a couple of commands to verify.
Has anyone else done something like that? My reason for using Powershell is that it's relatively easy to get the list of VMhosts from vCenter.
I'm guessing that I'd probably have to use something like plink to run the commands and scp to copy the files? I've found a bit of code for that that will get me started.
Any thoughts on the matter are appreicated!
mike
I think you're looking in the right direction
For the copying of the files I would use pscp.exe and for the execution of command and scripts I would use plink.exe.
Both from the PuTTY Suite.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Mike,
Are you guys looking to produce these in VIB format? What you're describing won't work with ESXi, but VIBs can be targeted to either platform. Also you can deploy them using any of the ESX update/patch tools.
=====
Carter Shanklin
Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]
Hi Carter,
That sounds like a very good way to do this. I did a check and can't find a pointer to creating VIB files. Any clues on where to find that info? And aren't you supposed to have the week off??
Thanks Luc for the sanity check! If the VIB doesn't work, I'll go that route.
thanks,
mike
To my knowledge VIB is not publicly documented, you'll have to work with VMware Partner Network to join that particular club.
And yes, I am taking some time off... waiting for my test lab to come back up.
=====
Carter Shanklin
Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]