Vmsvc/get.guest: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 3: Line 3:


Get guest information
Get guest information
You can use [[vmsvc/getallvms]] to retrieve the vmid


==== Example output ====
==== Example output ====

Latest revision as of 12:00, 17 December 2008

vimsh vmsvc/get.guest

Usage: get.guest vmid

Get guest information

You can use vmsvc/getallvms to retrieve the vmid

Example output

[/]$ vmsvc/get.guest 4400 
Guest information:

(vim.vm.GuestInfo) {
   dynamicType = <unset>,
   toolsStatus = "toolsOk",
   toolsVersion = "103908",
   guestId = "ubuntuGuest",
   guestFamily = "linuxGuest",
   guestFullName = "Ubuntu Linux (32-bit)",
   hostName = "vi-toolkit",
   ipAddress = "10.10.10.10",
   net = (vim.vm.GuestInfo.NicInfo) [
      (vim.vm.GuestInfo.NicInfo) {
         dynamicType = <unset>,
         network = "Virtual Machines Network",
         ipAddress = (string) [
            "10.10.10.10"
         ],
         macAddress = "00:0c:18:4e:13:27",
         connected = true,
         deviceConfigId = 4000,
      } 
   ],
   disk = (vim.vm.GuestInfo.DiskInfo) [
      (vim.vm.GuestInfo.DiskInfo) {
         dynamicType = <unset>,
         diskPath = "/",
         capacity = 30027378176,
         freeSpace = 10655812096,
      }
   ], 
   screen = (vim.vm.GuestInfo.ScreenInfo) {
      dynamicType = <unset>,
      width = 0,
      height = 0,
   },
   guestState = "running",
}