mirror of https://github.com/sipwise/klish.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.2 KiB
55 lines
2.2 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<CLISH_MODULE xmlns="http://clish.sourceforge.net/XMLSchema"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema
|
|
http://clish.sourceforge.net/XMLSchema/clish.xsd">
|
|
<!--=======================================================-->
|
|
<COMMAND name="ping"
|
|
help="Ping">
|
|
<DETAIL>
|
|
The ping utility uses the ICMP protocol's mandatory ECHO_REQUEST datagram
|
|
to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST
|
|
datagrams (``pings'') have an IP and ICMP header, followed by a ``struct
|
|
timeval'' and then an arbitrary number of ``pad'' bytes used to fill out
|
|
the packet.
|
|
</DETAIL>
|
|
<PARAM name="num_echos"
|
|
help="Specify the number of echo requests to be sent"
|
|
ptype="UINT"
|
|
prefix="-c"
|
|
default="5" />
|
|
<PARAM name="hops"
|
|
help="Specify maximum number of hops"
|
|
ptype="UINT"
|
|
prefix="-h"/>
|
|
|
|
<PARAM name="dest"
|
|
help="Host name or IP address"
|
|
ptype="IP_ADDR" />
|
|
<ACTION>exec ping ${-c :num_echos} ${-t :hops} ${dest}</ACTION>
|
|
</COMMAND>
|
|
<!--=======================================================-->
|
|
<COMMAND name="traceroute"
|
|
help="TraceRoute">
|
|
<DETAIL>
|
|
The Internet is a large and complex aggregation of network hardware, con-
|
|
nected together by gateways. Tracking the route one's packets follow (or
|
|
finding the miscreant gateway that's discarding your packets) can be dif-
|
|
ficult. traceroute utilizes the IP protocol `time to live' field and at-
|
|
tempts to elicit an ICMP TIME_EXCEEDED response from each gateway along
|
|
the path to some host.
|
|
|
|
The only mandatory parameter is the destination host name or IP number.
|
|
</DETAIL>
|
|
<PARAM name="hops"
|
|
help="Specify maximum number of hops"
|
|
ptype="UINT"
|
|
prefix="-h"/>
|
|
<PARAM name="dest"
|
|
help="Remote system to trace"
|
|
ptype="IP_ADDR" />
|
|
<ACTION>exec traceroute ${-m :hops} ${dest}</ACTION>
|
|
</COMMAND>
|
|
<!--=======================================================-->
|
|
</CLISH_MODULE>
|