Hostsvc/net/vnic info

From VI-Toolkit
Revision as of 00:58, 3 January 2009 by Wila (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

vimsh hostsvc/net/vnic_info

Usage: vnic_info [vnic]

Gets information about virtual NICs.

example output

# vmware-vim-cmd -H 10.10.10.10 -U root -P password /hostsvc/net/vnic_info
(vim.host.VirtualNic) [
  (vim.host.VirtualNic) {
     dynamicType = <unset>,
     device = "vmk0",
     key = "key-vim.host.VirtualNic-vmk0",
     portgroup = "Management Network",
     spec = (vim.host.VirtualNic.Specification) {
        dynamicType = <unset>,
        ip = (vim.host.IpConfig) {
           dynamicType = <unset>,
           dhcp = true,
           ipAddress = "10.10.10.10",
           subnetMask = "255.255.255.0",
        },
        mac = "00:0c:58:1d:ee:18",
     },
     port = <vim.host.PortGroup.Port:key-vim.host.PortGroup.Port-25554131>,
  }
]