ph_ping PowerHome formula function
Description
Pings a machine on the network.
Syntax
ph_ping ( host, ttl )
Argument |
Description |
host
|
String. The IP of hostname of the machine to ping.
|
ttl
|
Integer. The Time to Live value for the Ping command in milliseconds. Use values from 1 to 255.
|
Return value
Integer. Returns the Round Trip Time in milliseconds or a negative number if an error occurs. Returns -1 if the host is an invalid IP or hostname. Returns -2 if a system error occurs. Returns -3 if the ping fails. Values less than or equal to -11000 are errors returned from the Ping command itself.
Usage
Use the ph_ping command to check for the availability of a machine on the network.