LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ping

I have found some questions about ping, but I still have some doubts.
I need to make a ping, to ckeck IP availability. based on the response of the ping command, how can I determine this availability?
perhaps is a stupid question, sorry about that.
(the VI I'm using to make this ping is attached)
0 Kudos
Message 1 of 2
(3,137 Views)
You just need to parse the response string. A good parameter would be the % packet loss, if it is 100%, the host is not pingable.

The problem is that with todays prevalence of personal firewall software, the absence of a ping response is no longer a reliable indicator that a host is down. A host can be up even if it is not does not respond to ICMP echo requests. (If the computer is on the same subnet, you can ping first, and if there is no response, arp it (arp -a addr). If it is in the arp table, its probably up. Of course this will not work for remote hosts).

If the target is running labview, you might want to add e.g. an UDP echo service running on a defined port which replies with some interesting parameters of the system. Then simply hit it wi
th a UDP packet and parse the response.
0 Kudos
Message 2 of 2
(3,137 Views)