Hostsvc/datastore/info

From VI-Toolkit
Jump to navigation Jump to search

hostsvc/datastore/info

Usage: info name

Retrieve the information of a datastore by name.

example output

# vmware-vim-cmd -H 10.10.10.10 -U root -P password /hostsvc/datastore/info store
(vim.host.VmfsDatastoreInfo) {
   dynamicType = <unset>,
   name = "store",
   url = "/vmfs/volumes/24b85cd6-123d5101-7b21-0016c8c08128",
   freeSpace = 62658707456,
   maxFileSize = 549755813888,
   vmfs = (vim.host.VmfsVolume) {
      dynamicType = <unset>,
      type = "VMFS",
      name = "isc",
      capacity = 639681691648,
      blockSizeMb = 2,
      maxBlocks = 262144,
      majorVersion = 3,
      version = "3.21",
      uuid = "24b85cd6-123d5101-7b21-0016c8c08128",
      extent = (vim.host.ScsiDisk.Partition) [
         (vim.host.ScsiDisk.Partition) {
            dynamicType = <unset>,
            diskName = "vmhba32:0:0",
            partition = 1,
         }
      ],
      vmfsUpgradable = false,
   },
}
(vim.Datastore.HostMount) [
   (vim.Datastore.HostMount) {
      dynamicType = <unset>,
      key = 'vim.HostSystem:ha-host',
      mountInfo = (vim.host.MountInfo) {
         dynamicType = <unset>,
         path = "/vmfs/volumes/24b85cd6-123d5101-7b21-0016c8c08128",
         accessMode = "readWrite",
         accessible = <unset>,
      },
   }
]