The current sample is a Jupyter notebook, which demonstrates integrating VI/JSON in pyVmomi scripts. More precisely: pyVmomi authentication against a vCenter deployment. Acquisition of the session ID from the pyVmomi stub. Event History Collector creation via VI/JSON. Latest events...
viJsonPyvmomi.ipynb.gz
This is a sample script that shows how a PCI passthru device could be hot added to running VM.\\r\\nIt primarily involves two steps:\\r\\n\\r\\n1. Settings the config option needed to enable hot add when the VM is powered off.\\r\\n2. When the VM is up and running invoking the hot add action...
hotplug_passthru_devices_to_vms.py
How to use pyVmomi SDK for vSphere 7.0U3 to fetchAuditRecords OSS pyVmomi is hosted in GitHub: https://github.com/vmware/pyvmomi The project's main page contains pointers to general instructions for public releases of pyVmomi SDK. Attached is the sample code, audit.py, that...
audit.py
Change a VM's network adaptor to be an NSX-T provisioned opaque network, via KB66907: https://kb.vmware.com/s/article/66907 #vSphere #MIT #NSX-T #Pyvmomi #Python #NSX #python
nsxt_change_vm_vif.py
# Author: Vikas Shitole # Website: www.vThinkBeyondVM.com # Product: vCenter server/vCenter Server High Availability (VCHA) # Description: Python script to deploy vCenter server HA # Reference: http...
deploy_vcha.py
Export VMware vSAN metrics to InfluxDB vsanmetrics vsanmetrics is a tool written in Python for collecting usage and performance metrics and health status from a VMware vSAN cluster and translating them in InfluxDB's line protocol . It can be useful to send...
vsanmetrics-master.zip
# Website: www.vThinkBeyondVM.com # Product: vCenter server/vCenter Server High Availability (VCHA) # Description: Script to initiate vCenter Server High Availability failover # Reference: http://vthinkbeyondvm.com/how-to...
initiate_vcha_failover.py
# Product: vCenter server/vCenter Server High Availability (VCHA) # Description: Python script to Get vCenter server HA health information # Reference: http://vthinkbeyondvm.com/how-to-manage-vcenter-server-ha-using-vsphere-python-sdk-pyvmomi-part...
get_vcha_health.py
# Author: Vikas Shitole # Website: www.vThinkBeyondVM.com # Product: vCenter server/vSphere DRS rules # Description: Python script to get associated DRS rules for a Virtual Machine (from DRS cluster) ...
getDRSRules.py
Tagging Workflow Demonstrates tagging CRUD operations Step 1: Create a Tag category. Step 2: Create a Tag under the category. Step 3: Retrieve the managed object id of an existing cluster from its name. Step 4: Assign the tag to the cluster. Additional steps when clearData flag is set to...
tagging_workflow.py