PSScripter
Enthusiast
Enthusiast

Need to run script/python command against ESXi hosts

Hello,

I need to run the following commands against 2 clusters of hosts, 26 in total, all contained in 1 VC:

 

mv /vmfs/volumes/WB01-INF03-PMAX-DS01/ucs-tool-esxi_1.2.1-1OEM.zip /tmp

esxcli software component apply -d /tmp/ucs-tool-esxi_1.2.1-1OEM.zip

python /opt/ucs_tool_esxi/ucs_host_inventory.py

 

Can anyone point me in the right direction to do this in PS? I dont want to ssh into all of the hosts. Thank You!

Reply
0 Kudos