I am writing a script to automate shutting down a vSAN cluster (yes I know 7.03 know has a button), based on this knowledge base article.
I am at the part where it wants us to call a script on each ESXi host.
esxcfg-advcfg -s 1 /VSAN/IgnoreClusterMemberListUpdates
I could use a Python lib like paramiko
but that means I would need to keep SSH turned on all the time.
Is there a way to use pyVmomi
or vSphere/vSAN API to perform the same task?