$isReachable
Test whether the specified host is reachable. like a ping
Syntax:
$isReachable( host ) $isReachable( host, timeout )
Parameters:
host – the destination hostname, FQDN or IP address.
timeout – the time in milliseconds. If timeout is omitted, 1000 is used.
Returns:
true – if the destination is reachable.
false – otherwise
Version Since:
3.2
Example:
$isReachable("172.16.0.1") = true
Check if 172.16.0.1 is reachable.