Skip to content

Instantly share code, notes, and snippets.

{"cluster": ["(vim.ClusterComputeResource.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n totalCpu = 95968,\n totalMemory = 137402155008L,\n numCpuCores = 32,\n numCpuThreads = 32,\n effectiveCpu = 95968,\n effectiveMemory = 119744L,\n numHosts = 8,\n numEffectiveHosts = 8,\n overallStatus = 'green',\n currentFailoverLevel = -1,\n admissionControlInfo = <unset>,\n numVmotions = 0,\n targetBalance = -1000,\n currentBalance = -1000,\n currentEVCModeKey = <unset>,\n dasData = <unset>\n}"], "host": ["(vim.host.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n host = 'vim.HostSystem:host-29',\n hardware = (vim.host.Summary.HardwareSummary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n vendor = 'HP',\n model = 'ProLiant DL380 G5',\n uuid = '33393138-3335-5553-4537-32324e35394b',\n otherIdentifyingInfo = (vim.host.SystemIdentificationInfo)
{"cluster": ["(vim.ClusterComputeResource.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n totalCpu = 95968,\n totalMemory = 137402155008L,\n numCpuCores = 32,\n numCpuThreads = 32,\n effectiveCpu = 95968,\n effectiveMemory = 119744L,\n numHosts = 8,\n numEffectiveHosts = 8,\n overallStatus = 'green',\n currentFailoverLevel = -1,\n admissionControlInfo = <unset>,\n numVmotions = 0,\n targetBalance = -1000,\n currentBalance = -1000,\n currentEVCModeKey = <unset>,\n dasData = <unset>\n}"], "host": ["(vim.host.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n host = 'vim.HostSystem:host-29',\n hardware = (vim.host.Summary.HardwareSummary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n vendor = 'HP',\n model = 'ProLiant DL380 G5',\n uuid = '33393138-3335-5553-4537-32324e35394b',\n otherIdentifyingInfo = (vim.host.SystemIdentificationInfo)
def get_subs(thething, level=0):
if level == 0:
_all_objects.clear()
#print "cleared all objects"
if type(thething).__name__ not in _all_objects.keys():
_all_objects[type(thething).__name__] = []
#print "added key " + type(thething).__name__
# if we have a datacenter object, there are specific subobjects
if type(thething) is pyVmomi.types.vim.Datacenter:
/**
******************************************************************************
* @file application.cpp
* @authors Satish Nair, Zachary Crockett and Mohit Bhoite
* @version V1.0.0
* @date 05-November-2013
* @brief Tinker application
******************************************************************************
Copyright (c) 2013 Spark Labs, Inc. All rights reserved.
mapping = BlockDeviceMapping()
for i in range(0,2):
t = BlockDeviceType()
t.virtual_name = 'ephemeral{0}'.format(i)
mapping['/dev/sd{0}'.format(chr(ord('b')+i))] = t
return mapping
#include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#define MY_UUID {0xC3, 0x0D, 0xBA, 0xF1, 0x5F, 0x6F, 0x4F, 0x22, 0xBA, 0xAA, 0x8C, 0x2A, 0x96, 0x8C, 0xFC, 0x28}
PBL_APP_INFO(MY_UUID, "VMworld", "Cowger", 0x2, 0x0, INVALID_RESOURCE, APP_INFO_WATCH_FACE);