Hostsvc/net/config

From VI-Toolkit
Revision as of 16:24, 5 January 2009 by Wila (talk | contribs) (added example output)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

vimsh hostsvc/net/config

Usage: config

Get the network configuration.

example output

# vmware-vim-cmd -H 10.10.10.10 -U root -P password /hostsvc/net/config
(vim.host.NetworkConfig) {
  dynamicType = <unset>,
  vswitch = (vim.host.VirtualSwitch.Config) [
     (vim.host.VirtualSwitch.Config) {
        dynamicType = <unset>,
        changeOperation = <unset>,
        name = "vSwitch0",
        spec = (vim.host.VirtualSwitch.Specification) {
           dynamicType = <unset>,
           numPorts = 64,
           bridge = (vim.host.VirtualSwitch.BondBridge) {
              dynamicType = <unset>,
              nicDevice = (string) [
                 "vmnic0"
              ],
              beacon = (vim.host.VirtualSwitch.BeaconConfig) {
                 dynamicType = <unset>,
                 interval = 1,
              },
           },
           policy = (vim.host.NetworkPolicy) {
              dynamicType = <unset>,
              security = (vim.host.NetworkPolicy.SecurityPolicy) {
                 dynamicType = <unset>,
                 allowPromiscuous = false,
                 macChanges = true,
                 forgedTransmits = true,
              },
              nicTeaming = (vim.host.NetworkPolicy.NicTeamingPolicy) {
                 dynamicType = <unset>,
                 policy = "loadbalance_srcid",
                 reversePolicy = true,
                 notifySwitches = true,
                 rollingOrder = false,
                 failureCriteria = (vim.host.NetworkPolicy.NicFailureCriteria) {
                    dynamicType = <unset>,
                    checkSpeed = "minimum",
                    speed = 10,
                    checkDuplex = false,
                    fullDuplex = false,
                    checkErrorPercent = false,
                    percentage = 0,
                    checkBeacon = false,
                 },
                 nicOrder = (vim.host.NetworkPolicy.NicOrderPolicy) {
                    dynamicType = <unset>,
                    activeNic = (string) [
                       "vmnic0"
                    ],
                 },
              },
              offloadPolicy = (vim.host.NetOffloadCapabilities) {
                 dynamicType = <unset>,
                 csumOffload = true,
                 tcpSegmentation = true,
                 zeroCopyXmit = true,
              },
              shapingPolicy = (vim.host.NetworkPolicy.TrafficShapingPolicy) {
                 dynamicType = <unset>,
                 enabled = false,
                 averageBandwidth = <unset>,
                 peakBandwidth = <unset>,
                 burstSize = <unset>,
              },
           },
           mtu = <unset>,
        },
     }
  ],
  portgroup = (vim.host.PortGroup.Config) [
     (vim.host.PortGroup.Config) {
        dynamicType = <unset>,
        changeOperation = <unset>,
        spec = (vim.host.PortGroup.Specification) {
           dynamicType = <unset>,
           name = "VM Network",
           vlanId = 0,
           vswitchName = "vSwitch0",
           policy = (vim.host.NetworkPolicy) {
              dynamicType = <unset>,
              security = (vim.host.NetworkPolicy.SecurityPolicy) {
                 dynamicType = <unset>,
                 allowPromiscuous = <unset>,
                 macChanges = <unset>,
                 forgedTransmits = <unset>,
              },
              nicTeaming = (vim.host.NetworkPolicy.NicTeamingPolicy) {
                 dynamicType = <unset>,
                 policy = <unset>,
                 reversePolicy = <unset>,
                 notifySwitches = <unset>,
                 rollingOrder = <unset>,
                 failureCriteria = (vim.host.NetworkPolicy.NicFailureCriteria) {
                    dynamicType = <unset>,
                    checkSpeed = <unset>,
                    speed = <unset>,
                    checkDuplex = <unset>,
                    fullDuplex = <unset>,
                    checkErrorPercent = <unset>,
                    percentage = <unset>,
                    checkBeacon = <unset>,
                 },
                 nicOrder = (vim.host.NetworkPolicy.NicOrderPolicy) null,
              },
              offloadPolicy = (vim.host.NetOffloadCapabilities) {
                 dynamicType = <unset>,
                 csumOffload = <unset>,
                 tcpSegmentation = <unset>,
                 zeroCopyXmit = <unset>,
              },
              shapingPolicy = (vim.host.NetworkPolicy.TrafficShapingPolicy) {
                 dynamicType = <unset>,
                 enabled = <unset>,
                 averageBandwidth = <unset>,
                 peakBandwidth = <unset>,
                 burstSize = <unset>,
              },
           },
        },
     },
     (vim.host.PortGroup.Config) {
        dynamicType = <unset>,
        changeOperation = <unset>,
        spec = (vim.host.PortGroup.Specification) {
           dynamicType = <unset>,
           name = "Management Network",
           vlanId = 0,
           vswitchName = "vSwitch0",
           policy = (vim.host.NetworkPolicy) {
              dynamicType = <unset>,
              security = (vim.host.NetworkPolicy.SecurityPolicy) {
                 dynamicType = <unset>,
                 allowPromiscuous = <unset>,
                 macChanges = <unset>,
                 forgedTransmits = <unset>,
              },
              nicTeaming = (vim.host.NetworkPolicy.NicTeamingPolicy) {
                 dynamicType = <unset>,
                 policy = "loadbalance_srcid",
                 reversePolicy = true,
                 notifySwitches = true,
                 rollingOrder = false,
                 failureCriteria = (vim.host.NetworkPolicy.NicFailureCriteria) {
                    dynamicType = <unset>,
                    checkSpeed = "minimum",
                    speed = 10,
                    checkDuplex = false,
                    fullDuplex = false,
                    checkErrorPercent = false,
                    percentage = 0,
                    checkBeacon = false,
                 },
                 nicOrder = (vim.host.NetworkPolicy.NicOrderPolicy) {
                    dynamicType = <unset>,
                    activeNic = (string) [
                       "vmnic0"
                    ],
                 },
              },
              offloadPolicy = (vim.host.NetOffloadCapabilities) {
                 dynamicType = <unset>,
                 csumOffload = <unset>,
                 tcpSegmentation = <unset>,
                 zeroCopyXmit = <unset>,
              },
              shapingPolicy = (vim.host.NetworkPolicy.TrafficShapingPolicy) {
                 dynamicType = <unset>,
                 enabled = <unset>,
                 averageBandwidth = <unset>,
                 peakBandwidth = <unset>,
                 burstSize = <unset>,
              },
           },
        },
     }
  ],
  pnic = (vim.host.PhysicalNic.Config) [
     (vim.host.PhysicalNic.Config) {
        dynamicType = <unset>,
        device = "vmnic0",
        spec = (vim.host.PhysicalNic.Specification) {
           dynamicType = <unset>,
           ip = (vim.host.IpConfig) {
              dynamicType = <unset>,
              dhcp = false,
              ipAddress = "",
              subnetMask = "",
           },
           linkSpeed = (vim.host.PhysicalNic.LinkSpeedDuplex) null,
        },
     }
  ],
  vnic = (vim.host.VirtualNic.Config) [
     (vim.host.VirtualNic.Config) {
        dynamicType = <unset>,
        changeOperation = <unset>,
        device = "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",
        },
     }
  ],
  dnsConfig = (vim.host.DnsConfig) {
     dynamicType = <unset>,
     dhcp = true,
     virtualNicDevice = "Management Network",
     hostName = "localhost",
     domainName = "example.com",
     address = (string) [
        "10.10.10.1",
        "10.10.0.177"
     ],
     searchDomain = (string) [
        "example.com"
     ],
  },
  ipRouteConfig = (vim.host.IpRouteConfig) null,
  consoleIpRouteConfig = (vim.host.IpRouteConfig) null,
}