Vmsvc/get.guest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
Get guest information | Get guest information | ||
You can use [[vmsvc/getallvms]] to retrieve the vmid | |||
==== Example output ==== | ==== Example output ==== | ||
| Line 15: | Line 17: | ||
guestFamily = "linuxGuest", | guestFamily = "linuxGuest", | ||
guestFullName = "Ubuntu Linux (32-bit)", | guestFullName = "Ubuntu Linux (32-bit)", | ||
hostName = " | hostName = "vi-toolkit", | ||
ipAddress = "10.10.10.10", | ipAddress = "10.10.10.10", | ||
net = (vim.vm.GuestInfo.NicInfo) [ | net = (vim.vm.GuestInfo.NicInfo) [ | ||
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",
}