Vmsvc/device.getdevices

From VI-Toolkit
Revision as of 00:59, 22 December 2008 by Wila (talk | contribs) (added example output)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

vimsh vmsvc/device.getdevices

Usage: device.getdevices vmid

Retrieves and displays the virtual devices for the vm.

You can use vmsvc/getallvms to retrieve the vmid

Example output

[/]$ vmsvc/device.getdevices 4404 
Devices:

(vim.vm.VirtualHardware) {
  dynamicType = <unset>,
  numCPU = 1,
  memoryMB = 512,
  device = (vim.vm.device.VirtualDevice) [
     (vim.vm.device.VirtualIDEController) {
        dynamicType = <unset>,
        key = 200,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "IDE 0",
           summary = "IDE 0",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = <unset>,
        unitNumber = <unset>,
        busNumber = 0,
        device = (int) [
           3000
        ],
     },
     (vim.vm.device.VirtualIDEController) {
        dynamicType = <unset>,
        key = 201,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "IDE 1",
           summary = "IDE 1",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = <unset>,
        unitNumber = <unset>,
        busNumber = 1,
     },
     (vim.vm.device.VirtualPS2Controller) {
        dynamicType = <unset>,
        key = 300,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "PS2 Controller ",
           summary = "PS2 Controller",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = <unset>,
        unitNumber = <unset>,
        busNumber = 0,
        device = (int) [
           600,
           700
        ],
     },
     (vim.vm.device.VirtualPCIController) {
        dynamicType = <unset>,
        key = 100,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "PCI Controller ",
           summary = "PCI Controller",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = <unset>,
        unitNumber = <unset>,
        busNumber = 0,
        device = (int) [
           500,
           4000,
           1000,
           11000
        ],
     },
     (vim.vm.device.VirtualSIOController) {
        dynamicType = <unset>,
        key = 400,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "SIO Controller ",
           summary = "SIO Controller",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = <unset>,
        unitNumber = <unset>,
        busNumber = 0,
        device = (int) [
           8000
        ],
     },
     (vim.vm.device.VirtualKeyboard) {
        dynamicType = <unset>,
        key = 600,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Keyboard ",
           summary = "Keyboard",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = 300,
        unitNumber = 0,
     },
     (vim.vm.device.VirtualPointingDevice) {
        dynamicType = <unset>,
        key = 700,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Pointing Device",
           summary = "Pointing device; Device",
        },
        backing = (vim.vm.device.VirtualPointingDevice.DeviceBackingInfo) {
           dynamicType = <unset>,
           deviceName = "",
           useAutoDetect = false,
           hostPointingDevice = "autodetect",
        },
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = 300,
        unitNumber = 1,
     },
     (vim.vm.device.VirtualVideoCard) {
        dynamicType = <unset>,
        key = 500,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Video Card ",
           summary = "Video Card",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = 100,
        unitNumber = 0,
        videoRamSizeInKB = 4096,
     },
     (vim.vm.device.VirtualFloppy) {
        dynamicType = <unset>,
        key = 8000,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Floppy Drive 1",
           summary = "Remote /dev/fd0",
        },
        backing = (vim.vm.device.VirtualFloppy.RemoteDeviceBackingInfo) {
           dynamicType = <unset>,
           deviceName = "/dev/fd0",
           useAutoDetect = false,
        },
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {
           dynamicType = <unset>,
           startConnected = false,
           allowGuestControl = true,
           connected = false,
        },
        controllerKey = 400,
        unitNumber = 0,
     },
     (vim.vm.device.VirtualCdrom) {
        dynamicType = <unset>,
        key = 3000,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "CD/DVD Drive 1",
           summary = "ISO [] /iso-store/vmimages/jeos-i386.iso",
        },
        backing = (vim.vm.device.VirtualCdrom.IsoBackingInfo) {
           dynamicType = <unset>,
           fileName = "[] /iso-store/vmimages/jeos-i386.iso",
           datastore = <unset>,
        },
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {
           dynamicType = <unset>,
           startConnected = false,
           allowGuestControl = true,
           connected = false,
        },
        controllerKey = 200,
        unitNumber = 0,
     },
     (vim.vm.device.VirtualPCNet32) {
        dynamicType = <unset>,
        key = 4000,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Network Adapter 1",
           summary = "Virtual Machine Network",
        },
        backing = (vim.vm.device.VirtualEthernetCard.NetworkBackingInfo) {
           dynamicType = <unset>,
           deviceName = "Virtual Machine Network",
           useAutoDetect = false,
           network = 'vim.Network:HaNetwork-Virtual Machine Network',
        },
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {
           dynamicType = <unset>,
           startConnected = true,
           allowGuestControl = true,
           connected = true,
        },
        controllerKey = 100,
        unitNumber = 7,
        addressType = "generated",
        macAddress = "00:0c:29:e2:84:2f",
        wakeOnLanEnabled = true,
     },
     (vim.vm.device.VirtualLsiLogicController) {
        dynamicType = <unset>,
        key = 1000,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "SCSI Controller 0",
           summary = "LSI Logic",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = 100,
        unitNumber = 3,
        busNumber = 0,
        device = (int) [
           2000
        ],
        hotAddRemove = true,
        sharedBus = "noSharing",
        scsiCtlrUnitNumber = 7,
     },
     (vim.vm.device.VirtualDisk) {
        dynamicType = <unset>,
        key = 2000,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Hard Disk 1",
           summary = "14,194,304 KB",
        },
        backing = (vim.vm.device.VirtualDisk.FlatVer2BackingInfo) {
           dynamicType = <unset>,
           fileName = "[store] jeos/jeos.vmdk",
           datastore = 'vim.Datastore:1613fe4a-049423b7-0248-00026308922c',
           diskMode = "persistent",
           split = false,
           writeThrough = false,
           thinProvisioned = false,
           uuid = "3000D126-a0ce-3223-c32b-80e7e78180ef",
        },
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = 1000,
        unitNumber = 0,
        capacityInKB = 4194304,
        shares = (vim.SharesInfo) {
           dynamicType = <unset>,
           shares = 1000,
           level = "normal",
        },
     },
     (vim.vm.device.VirtualVMIROM) {
        dynamicType = <unset>,
        key = 11000,
        deviceInfo = (vim.Description) {
           dynamicType = <unset>,
           label = "Virtual Machine ROM",
           summary = "ROM on the virtual machine PCI bus that provides support for VMI",
        },
        backing = (vim.vm.device.VirtualDevice.BackingInfo) null,
        connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
        controllerKey = 100,
        unitNumber = 1,
     }
  ],
}