VMware Cloud Community
madhav023
Contributor
Contributor

How to Ssh esxi host through power cli and run Esxcli commands.

Hi Experts,

I have 60 esxi hosts where i need to run esxcli commands through powercli. if any one know could you please share me the sample script.
Powercli / shell anything is fine. Please help. Smiley Happy
Thanks in advance.
Reply
0 Kudos
2 Replies
jonathanp
Expert
Expert

You can create an esxcli refs and then run command from it...

It's fairly well explained here  : Howto use ESXCLI in PowerCLI | Virten.net

Jon

Reply
0 Kudos