OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [ping-command.html] - Diff between revs 28 and 174

Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
<HTML
><HEAD
><HEAD
><TITLE
><TITLE
>ping</TITLE
>ping</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
<META
NAME="GENERATOR"
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
"><LINK
REL="HOME"
REL="HOME"
TITLE="eCos Reference Manual"
TITLE="eCos Reference Manual"
HREF="ecos-ref.html"><LINK
HREF="ecos-ref.html"><LINK
REL="UP"
REL="UP"
TITLE="Common Commands"
TITLE="Common Commands"
HREF="common-commands.html"><LINK
HREF="common-commands.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="mfill"
TITLE="mfill"
HREF="mfill-command.html"><LINK
HREF="mfill-command.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="reset"
TITLE="reset"
HREF="reset-command.html"></HEAD
HREF="reset-command.html"></HEAD
><BODY
><BODY
CLASS="REFENTRY"
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
BGCOLOR="#FFFFFF"
TEXT="#000000"
TEXT="#000000"
LINK="#0000FF"
LINK="#0000FF"
VLINK="#840084"
VLINK="#840084"
ALINK="#0000FF"
ALINK="#0000FF"
><DIV
><DIV
CLASS="NAVHEADER"
CLASS="NAVHEADER"
><TABLE
><TABLE
SUMMARY="Header navigation table"
SUMMARY="Header navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TH
><TH
COLSPAN="3"
COLSPAN="3"
ALIGN="center"
ALIGN="center"
>eCos Reference Manual</TH
>eCos Reference Manual</TH
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="left"
ALIGN="left"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="mfill-command.html"
HREF="mfill-command.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="80%"
WIDTH="80%"
ALIGN="center"
ALIGN="center"
VALIGN="bottom"
VALIGN="bottom"
></TD
></TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="reset-command.html"
HREF="reset-command.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"></DIV
WIDTH="100%"></DIV
><H1
><H1
><A
><A
NAME="PING-COMMAND">ping</H1
NAME="PING-COMMAND">ping</H1
><DIV
><DIV
CLASS="REFNAMEDIV"
CLASS="REFNAMEDIV"
><A
><A
NAME="AEN3744"
NAME="AEN3744"
></A
></A
><H2
><H2
>Name</H2
>Name</H2
>ping&nbsp;--&nbsp;Verify network connectivity</DIV
>ping&nbsp;--&nbsp;Verify network connectivity</DIV
><DIV
><DIV
CLASS="REFSYNOPSISDIV"
CLASS="REFSYNOPSISDIV"
><A
><A
NAME="AEN3747"><H2
NAME="AEN3747"><H2
>Synopsis</H2
>Synopsis</H2
><P
><P
><B
><B
CLASS="COMMAND"
CLASS="COMMAND"
>ping</B
>ping</B
>  [-v ] [-i <TT
>  [-v ] [-i <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
> local_IP_address</I
> local_IP_address</I
></TT
></TT
>] [-l <TT
>] [-l <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
> length</I
> length</I
></TT
></TT
>] [-n <TT
>] [-n <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
> count</I
> count</I
></TT
></TT
>] [-t <TT
>] [-t <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
> timeout</I
> timeout</I
></TT
></TT
>] [-r <TT
>] [-r <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
> rate</I
> rate</I
></TT
></TT
>] {-h <TT
>] {-h <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
> server_IP_address</I
> server_IP_address</I
></TT
></TT
>}</P
>}</P
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN3763"
NAME="AEN3763"
></A
></A
><H2
><H2
>Arguments</H2
>Arguments</H2
><DIV
><DIV
CLASS="INFORMALTABLE"
CLASS="INFORMALTABLE"
><A
><A
NAME="AEN3765"><P
NAME="AEN3765"><P
></P
></P
><TABLE
><TABLE
BORDER="1"
BORDER="1"
CLASS="CALSTABLE"
CLASS="CALSTABLE"
><THEAD
><THEAD
><TR
><TR
><TH
><TH
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Name</TH
>Name</TH
><TH
><TH
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Type</TH
>Type</TH
><TH
><TH
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Description</TH
>Description</TH
><TH
><TH
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Default</TH
>Default</TH
></TR
></TR
></THEAD
></THEAD
><TBODY
><TBODY
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-v</TD
>-v</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Boolean</TD
>Boolean</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Be verbose, displaying information about each packet sent.</TD
>Be verbose, displaying information about each packet sent.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
><SPAN
><SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>quiet</I
>quiet</I
></SPAN
></SPAN
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-n <TT
>-n <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>local_IP_address</I
>local_IP_address</I
></TT
></TT
></TD
></TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Number</TD
>Number</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Controls the number of packets to be sent.</TD
>Controls the number of packets to be sent.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>10</TD
>10</TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-i <TT
>-i <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>local_IP_address</I
>local_IP_address</I
></TT
></TT
></TD
></TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Numeric IP or DNS name</TD
>Numeric IP or DNS name</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>The IP address RedBoot should use.</TD
>The IP address RedBoot should use.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Value set by <B
>Value set by <B
CLASS="COMMAND"
CLASS="COMMAND"
>ip_address</B
>ip_address</B
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-h <TT
>-h <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>server_IP_address</I
>server_IP_address</I
></TT
></TT
></TD
></TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Numeric IP or DNS name</TD
>Numeric IP or DNS name</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>The IP address of the host to contact.</TD
>The IP address of the host to contact.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
><SPAN
><SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>none</I
>none</I
></SPAN
></SPAN
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-l <TT
>-l <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>length</I
>length</I
></TT
></TT
></TD
></TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Number</TD
>Number</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>The length of the ICMP data payload.</TD
>The length of the ICMP data payload.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>64</TD
>64</TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-r <TT
>-r <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>length</I
>length</I
></TT
></TT
></TD
></TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Number</TD
>Number</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>How fast to deliver packets, i.e. time between successive sends.
>How fast to deliver packets, i.e. time between successive sends.
A value of 0 sends packets as quickly as possible.</TD
A value of 0 sends packets as quickly as possible.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>1000ms (1 second)</TD
>1000ms (1 second)</TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>-t <TT
>-t <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>length</I
>length</I
></TT
></TT
></TD
></TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>Number</TD
>Number</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>How long to wait for the round-trip to complete, specified in milliseconds.</TD
>How long to wait for the round-trip to complete, specified in milliseconds.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>1000ms (1 second)</TD
>1000ms (1 second)</TD
></TR
></TR
></TBODY
></TBODY
></TABLE
></TABLE
><P
><P
></P
></P
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN3822"
NAME="AEN3822"
></A
></A
><H2
><H2
>Description</H2
>Description</H2
><P
><P
>The <B
>The <B
CLASS="COMMAND"
CLASS="COMMAND"
>ping</B
>ping</B
> command checks the connectivity of the local network by sending
> command checks the connectivity of the local network by sending
special (ICMP) packets to a specific host. These packets should be automatically
special (ICMP) packets to a specific host. These packets should be automatically
returned by that host. The command will indicate how many of these round-trips
returned by that host. The command will indicate how many of these round-trips
were successfully completed.
were successfully completed.
      </P
      </P
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN3826"
NAME="AEN3826"
></A
></A
><H2
><H2
>Examples</H2
>Examples</H2
><P
><P
>Test connectivity to host 192.168.1.101.
>Test connectivity to host 192.168.1.101.
<TABLE
<TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="SCREEN"
CLASS="SCREEN"
>RedBoot&#62; <TT
>RedBoot&#62; <TT
CLASS="USERINPUT"
CLASS="USERINPUT"
><B
><B
>ping -h 192.168.1.101</B
>ping -h 192.168.1.101</B
></TT
></TT
>
>
Network PING - from 192.168.1.31 to 192.168.1.101
Network PING - from 192.168.1.31 to 192.168.1.101
PING - received 10 of 10 expected</PRE
PING - received 10 of 10 expected</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
> </P
> </P
><P
><P
>Test connectivity to host 192.168.1.101, with verbose reporting.
>Test connectivity to host 192.168.1.101, with verbose reporting.
<TABLE
<TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="SCREEN"
CLASS="SCREEN"
>RedBoot&#62; <TT
>RedBoot&#62; <TT
CLASS="USERINPUT"
CLASS="USERINPUT"
><B
><B
>ping -h 192.168.1.101 -v -n 4</B
>ping -h 192.168.1.101 -v -n 4</B
></TT
></TT
>
>
Network PING - from 192.168.1.31 to 192.168.1.101
Network PING - from 192.168.1.31 to 192.168.1.101
 seq: 1, time: 1 (ticks)
 seq: 1, time: 1 (ticks)
 seq: 2, time: 1 (ticks)
 seq: 2, time: 1 (ticks)
 seq: 3, time: 1 (ticks)
 seq: 3, time: 1 (ticks)
 seq: 4, time: 1 (ticks)
 seq: 4, time: 1 (ticks)
PING - received 10 of 10 expected</PRE
PING - received 10 of 10 expected</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
> </P
> </P
><P
><P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="SCREEN"
CLASS="SCREEN"
>Test connectivity to a non-existent host (192.168.1.109).
>Test connectivity to a non-existent host (192.168.1.109).
RedBoot&#62; <TT
RedBoot&#62; <TT
CLASS="USERINPUT"
CLASS="USERINPUT"
><B
><B
>ping -h 192.168.1.109 -v -n 4</B
>ping -h 192.168.1.109 -v -n 4</B
></TT
></TT
>
>
PING: Cannot reach server '192.168.1.109' (192.168.1.109)</PRE
PING: Cannot reach server '192.168.1.109' (192.168.1.109)</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
>
>
      </P
      </P
></DIV
></DIV
><DIV
><DIV
CLASS="NAVFOOTER"
CLASS="NAVFOOTER"
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
SUMMARY="Footer navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="mfill-command.html"
HREF="mfill-command.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ecos-ref.html"
HREF="ecos-ref.html"
ACCESSKEY="H"
ACCESSKEY="H"
>Home</A
>Home</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="reset-command.html"
HREF="reset-command.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
>mfill</TD
>mfill</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="common-commands.html"
HREF="common-commands.html"
ACCESSKEY="U"
ACCESSKEY="U"
>Up</A
>Up</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
>reset</TD
>reset</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.