Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2009 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/241345 to your computer and use it in GitHub Desktop.
Save anonymous/241345 to your computer and use it in GitHub Desktop.
= bless( {
'vm' => bless( {
'value' => 'vm-213',
'type' => 'VirtualMachine'
}, 'ManagedObjectReference' ),
'overallStatus' => bless( { 'val' => 'green' }, 'ManagedEntityStatus' ),
'customValue' => [
bless( { 'value' => 'earlier', 'key' => '9' }, 'CustomFieldStringValue' )
],
'runtime' => bless( {
'suspendInterval' => '0',
'bootTime' => '2009-11-23T18:49:53.64622Z',
'maxCpuUsage' => '4800',
'memoryOverhead' => '152252416',
'host' => bless( {
'value' => 'host-226',
'type' => 'HostSystem'
}, 'ManagedObjectReference' ),
'powerState' => bless( {
'val' => 'poweredOn'
}, 'VirtualMachinePowerState' ),
'numMksConnections' => '1',
'maxMemoryUsage' => '256',
'toolsInstallerMounted' => '0',
'connectionState' => bless( {
'val' => 'connected'
}, 'VirtualMachineConnectionState' )
}, 'VirtualMachineRuntimeInfo' ),
'quickStats' => bless( {
'guestHeartbeatStatus' => bless( {
'val' => 'red'
}, 'ManagedEntityStatus' ),
'hostMemoryUsage' => '294',
'guestMemoryUsage' => '0',
'overallCpuUsage' => '102'
}, 'VirtualMachineQuickStats' ),
'config' => bless( {
'guestId' => 'rhel5Guest',
'numVirtualDisks' => '0',
'vmPathName' => '[dcgpndlvms308] sbox02/sbox02.vmx',
'template' => '0',
'name' => 'sbox02',
'uuid' => '502edef8-f10f-77d7-abba-386fc1a45edb',
'numCpu' => '2',
'guestFullName' => 'Red Hat Enterprise Linux 5 (32-bit)',
'memorySizeMB' => '2048',
'numEthernetCards' => '1',
'cpuReservation' => '0',
'annotation' => 'whatevs',
'memoryReservation' => '0'
}, 'VirtualMachineConfigSummary' ),
'guest' => bless( {
'toolsStatus' => bless( {
'val' => 'toolsNotInstalled'
}, 'VirtualMachineToolsStatus' )
}, 'VirtualMachineGuestSummary' )
}, 'VirtualMachineSummary' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment