Skip to content

Instantly share code, notes, and snippets.

View lrivallain's full-sized avatar
🏠
Working from home

Ludovic Rivallain lrivallain

🏠
Working from home
View GitHub Profile
@complexsplit
complexsplit / pyvmomi.py
Created April 28, 2014 12:40
Searching datastores w/ pyVmomi
from pyVim.connect import SmartConnect, Disconnect
from pyVmomi import vim, vmodl
import argparse
import atexit
import sys
import pprint
si = SmartConnect(host="192.168.1.7", user="root", pwd="vmware")
servcontent = si.RetrieveServiceContent()