vSphere vNetwork

 View Only
  • 1.  vSphere API to ping IP on particular network

    Posted Dec 28, 2023 07:48 AM

    Would like to check whether the particular IP is reachable/pingable or not from a given virtual network. I know there are some esxicli commands available to check against the kernel adapter, But we need it as vCenter/ESXi API so that it can be programatically queried.Is there any vSphere API available to check the same ?  



  • 2.  RE: vSphere API to ping IP on particular network

    Posted Jan 03, 2024 05:45 PM

    I'm not aware of a PING-style command in the APIs. If it is another vCenter or ESX host, you could potentially use some other query logic to verify availability, but it sounds like you need PowerCLI.  With that, you can create PowerShell scripts that have VMware specific logic but can still leverage other PS functions, like Test-Connection.