Vmsvc/get.filelayout

From VI-Toolkit
Jump to: navigation, search

vimsh vmsvc/get.filelayout

Usage: get.filelayout vmid

Show the list of files for this virtual machine.

See also vmsvc/getallvms to get a lits of all VMs

example output

# vmware-vim-cmd -H 10.10.10.10 -U root -P password /vmsvc/get.filelayout 96
(vim.vm.FileInfo) {
   dynamicType = <unset>,
   vmPathName = "[store] Trustix/Trustix.vmx",
   snapshotDirectory = "[store] Trustix",
   suspendDirectory = "[store] Trustix",
   logDirectory = "[store] Trustix",
}
(vim.vm.FileLayout) {
   dynamicType = <unset>,
   configFile = (string) [
      "Trustix.vmsd",
      "Trustix.vmxf",
      "Trustix.nvram"
   ],
   logFile = (string) [
      "vmware-1.log",
      "vmware-2.log",
      "vmware.log"
   ],
   disk = (vim.vm.FileLayout.DiskLayout) [
      (vim.vm.FileLayout.DiskLayout) {
         dynamicType = <unset>,
         key = 2000,
         diskFile = (string) [
            "[store] Trustix/Trustix.vmdk"
          ],
      }
   ],
   swapFile = <unset>,
 }