VMware Cloud Community
mikefoley
VMware Employee
VMware Employee

PowerCLI interactions with ESX host

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. Smiley Happy

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

mike

0 Kudos
4 Replies
LucD
Leadership
Leadership

I think you're looking in the right direction Smiley Wink

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

admin
Immortal
Immortal

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]

mikefoley
VMware Employee
VMware Employee

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?? Smiley Happy Smiley Happy

Thanks Luc for the sanity check! If the VIB doesn't work, I'll go that route.

thanks,

mike

mike

0 Kudos
admin
Immortal
Immortal

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]

0 Kudos