CDP Information via Service Console

vim-cmd hostsvc/net/query_networkhint | less

The less command allows the output to only be allowed to one screen at a time.  

The output is shown as follows:
 (vim.host.PhysicalNic.NetworkHint) {
      dynamicType = ,
      device = "vmnic3",
      subnet = (vim.host.PhysicalNic.NetworkHint.IpNetwork) [
         (vim.host.PhysicalNic.NetworkHint.IpNetwork) {
            dynamicType = ,
            vlanId = 0,
            ipSubnet = "ip range",
         }
      ],
      connectedSwitchPort = (vim.host.PhysicalNic.CdpInfo) {
         dynamicType = ,
         cdpVersion = 2,
         timeout = 0,
         ttl = 123,
         samples = 68,
         devId = "switch name",
         address = "switch ip",
         portId = "GigabitEthernet0/10",
         deviceCapability = (vim.host.PhysicalNic.CdpDeviceCapability) {
            dynamicType = ,
            router = true,
            transparentBridge = false,
            sourceRouteBridge = false,
            networkSwitch = true,
            host = false,
            igmpEnabled = true,
            repeater = false,
         },
         softwareVersion = "Cisco IOS Software, C3560 Softw",
         hardwarePlatform = "cisco WS-C3560G-48TS",
         ipPrefix = "0.0.0.0",
         ipPrefixLen = 0,
         vlan = 21,
         fullDuplex = true,
         mtu = 0,
         systemName = "",
         systemOID = "",
         mgmtAddr = "switch ip",
         location = "",
      },
a little cryptic but it tells you the vmnic#, what port it is connected to and management ip on the switch.


0