network-commands.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <CLISH_MODULE xmlns="http://clish.sourceforge.net/XMLSchema"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema
  5. http://clish.sourceforge.net/XMLSchema/clish.xsd">
  6. <!--=======================================================-->
  7. <COMMAND name="ping"
  8. help="Ping">
  9. <DETAIL>
  10. The ping utility uses the ICMP protocol's mandatory ECHO_REQUEST datagram
  11. to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST
  12. datagrams (``pings'') have an IP and ICMP header, followed by a ``struct
  13. timeval'' and then an arbitrary number of ``pad'' bytes used to fill out
  14. the packet.
  15. </DETAIL>
  16. <PARAM name="num_echos"
  17. help="Specify the number of echo requests to be sent"
  18. ptype="UINT"
  19. prefix="-c"
  20. default="5" />
  21. <PARAM name="hops"
  22. help="Specify maximum number of hops"
  23. ptype="UINT"
  24. prefix="-h"/>
  25. <PARAM name="dest"
  26. help="Host name or IP address"
  27. ptype="IP_ADDR" />
  28. <ACTION>exec ping ${-n :num_echos} ${-i :hops} ${dest}</ACTION>
  29. </COMMAND>
  30. <!--=======================================================-->
  31. <COMMAND name="traceroute"
  32. help="TraceRoute">
  33. <DETAIL>
  34. The Internet is a large and complex aggregation of network hardware, con-
  35. nected together by gateways. Tracking the route one's packets follow (or
  36. finding the miscreant gateway that's discarding your packets) can be dif-
  37. ficult. traceroute utilizes the IP protocol `time to live' field and at-
  38. tempts to elicit an ICMP TIME_EXCEEDED response from each gateway along
  39. the path to some host.
  40. The only mandatory parameter is the destination host name or IP number.
  41. </DETAIL>
  42. <PARAM name="hops"
  43. help="Specify maximum number of hops"
  44. ptype="UINT"
  45. prefix="-h"/>
  46. <PARAM name="dest"
  47. help="Remote system to trace"
  48. ptype="IP_ADDR" />
  49. <ACTION>exec tracert ${-m :hops} ${dest}</ACTION>
  50. </COMMAND>
  51. <!--=======================================================-->
  52. </CLISH_MODULE>