RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

*Ping

Programmer's Reference Manuals
» Part 17 - *Commands
» *Commands - Sorted By Name
» *Ping

*Ping

Use

This *Command sends ICMP ECHO_REQUEST packets to network hosts.

Syntax

*Ping [-r] [-v]<__host__> [<__net__>] [<__count__>]

Parameters

-r Bypass the normal routing tables and send directly to a host on an attached network. (If the host is not on a directly attached network an error is returned.) You can use this option to ‘ping’ a local host through an interface that has no route through it
–v Display verbose output: any ICMP packets other than ECHO RESPONSE that are received are listed
host Internet host specified either by name (which must be present in the host name data base <InetDBase$Path>hosts) or by address (using the standard Internet dot notation)
packetsize Size of packet to send (default is 64 bytes)
count Number of packets to send (default is 1)

Notes

An Internet can be a large and complex aggregation of network hardware, connected together by gateways. Tracking a single-point hardware or software failure can be difficult. The Ping program utilises the ICMP protocol’s mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (or pings) have an IP and ICMP header, and then an arbitrary number of padding bytes used to fill out the packet.
When using Ping for fault isolation you should first run it on your local host, to verify that your local network interface is up and running. Then you should ‘ping’ hosts and gateways that are further and further away.
If you don’t give a count the Ping program sends just one datagram and expects a single ECHO_RESPONSE to be returned. If you give a count Ping sends one datagram per second up to that number, and prints one line of output for every ECHO_RESPONSE returned. No output is produced if there is no response.
Packet loss statistics are computed and a brief summary is displayed when all responses have been received, or when the program times out, or when you terminate the program.
RISC OS Ping messages are not time-stamped.

See also

  • *Route
Revised on January 22, 2010 23:13:16 by Andrew Hodgkinson (6) (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: *Commands - Sorted By Name, *Route, *IfConfig

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys