Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

PING

Description

This command sends ICMP echo request messages to a remote host. It works similar to the "ping" utility on modern operation systems.

Parameters

PING needs a single argument that is the IP address of the remote host in standard dotted-decimal format.

Return Value

ERR_ARGUMENT (4) if the IP address is not valid.
ERR_OK (0) If remote host answered the request.
ERR_NET_DOWN (39) if echo requests could not be sent.
ERR_NO_DATA (8) if remote host didn't answer.

Example

PING 192.168.0.1 

Hello 192.168.0.1, are you there? Prints: OK if 192.168.0.1 answers or ERR8 if 192.168.0.1 cannot be reached.

Remarks

PING does not understand host or domain names. You could call DNS before if the hostname is known.