VMware Cloud Community
PVenkatesh2k4
Contributor
Contributor

vSphere API to ping IP on particular network

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 ?  

0 Kudos
1 Reply
Robulus
Enthusiast
Enthusiast

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.

0 Kudos