Hostsvc/datastore/listvm: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
(New page: ==== vimsh hostsvc/datastore/listvm ==== Usage: listvm name Retrieve the virtual machines stored on the datastore. Category: Vimsh)
 
No edit summary
 
Line 3: Line 3:


Retrieve the virtual machines stored on the datastore.
Retrieve the virtual machines stored on the datastore.
==== Example output ====
[root@himalaya scripts]# vmware-vim-cmd hostsvc/datastore/listvm "himalaya-local-SAS.VMStorage"
(ManagedObjectReference) [
  'vim.VirtualMachine:1040',
  'vim.VirtualMachine:1072',
  'vim.VirtualMachine:16',
  'vim.VirtualMachine:1680',
  'vim.VirtualMachine:176',
  'vim.VirtualMachine:21168',
  'vim.VirtualMachine:31168',
  'vim.VirtualMachine:31248',
  'vim.VirtualMachine:31968',
  'vim.VirtualMachine:32',
  'vim.VirtualMachine:59216',
  'vim.VirtualMachine:59312',
  'vim.VirtualMachine:59392',
  'vim.VirtualMachine:59408',
  'vim.VirtualMachine:59424',
  'vim.VirtualMachine:59712',
  'vim.VirtualMachine:59792',
  'vim.VirtualMachine:60064',
  'vim.VirtualMachine:64',
  'vim.VirtualMachine:784',
  'vim.VirtualMachine:80',
  'vim.VirtualMachine:880',
  'vim.VirtualMachine:928',
  'vim.VirtualMachine:96',
  'vim.VirtualMachine:976'
]


[[Category: Vimsh]]
[[Category: Vimsh]]

Latest revision as of 01:12, 6 January 2009

vimsh hostsvc/datastore/listvm

Usage: listvm name

Retrieve the virtual machines stored on the datastore.

Example output

[root@himalaya scripts]# vmware-vim-cmd hostsvc/datastore/listvm "himalaya-local-SAS.VMStorage"
(ManagedObjectReference) [
  'vim.VirtualMachine:1040',
  'vim.VirtualMachine:1072',
  'vim.VirtualMachine:16',
  'vim.VirtualMachine:1680',
  'vim.VirtualMachine:176',
  'vim.VirtualMachine:21168',
  'vim.VirtualMachine:31168',
  'vim.VirtualMachine:31248',
  'vim.VirtualMachine:31968',
  'vim.VirtualMachine:32',
  'vim.VirtualMachine:59216',
  'vim.VirtualMachine:59312',
  'vim.VirtualMachine:59392',
  'vim.VirtualMachine:59408',
  'vim.VirtualMachine:59424',
  'vim.VirtualMachine:59712',
  'vim.VirtualMachine:59792',
  'vim.VirtualMachine:60064',
  'vim.VirtualMachine:64',
  'vim.VirtualMachine:784',
  'vim.VirtualMachine:80',
  'vim.VirtualMachine:880',
  'vim.VirtualMachine:928',
  'vim.VirtualMachine:96',
  'vim.VirtualMachine:976'
]