Hostsvc/datastore/listsummary

From VI-Toolkit
Jump to navigation Jump to search

vimsh hostsvc/datastore/listsummary

Usage: List a summary of all datastores available.

example output

# vmware-vim-cmd -H 10.10.10.10 -U root -P password /hostsvc/datastore/listsummary
(vim.Datastore.Summary) [
   (vim.Datastore.Summary) {
      dynamicType = <unset>,
      datastore = 'vim.Datastore:24b85cd6-123d5101-7b21-0016c8c08128',
      name = "store",
      url = "/vmfs/volumes/24b85cd6-123d5101-7b21-0016c8c08128",
      capacity = 639681691648,
      freeSpace = 62658707456,
      accessible = true,
      multipleHostAccess = <unset>,
      type = "VMFS",
   },
   (vim.Datastore.Summary) {
      dynamicType = <unset>,
       datastore = 'vim.Datastore:271a2c8b-1f21810d-c28d-000d172bcef8',
      name = "datastore2",
      url = "/vmfs/volumes/271a2c8b-1f21810d-c28d-000d172bcef8",
      capacity = 3489660928,
      freeSpace = 3178233856,
      accessible = true,
      multipleHostAccess = <unset>,
      type = "VMFS",
   }
]