ping.xml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <VIEW name="ping-view"
  8. prompt="${SYSTEM_NAME}# ">
  9. <COMMAND name="ping"
  10. help="Send echo messages"
  11. lock="false">
  12. <PARAM name="ip"
  13. help="IP echo"
  14. ptype="STRING"
  15. mode="subcommand"
  16. optional="true"/>
  17. <PARAM name="addr"
  18. help="Ping destination address or hostname"
  19. ptype="STRING"/>
  20. <ACTION>
  21. ping ${addr}
  22. </ACTION>
  23. </COMMAND>
  24. <COMMAND name="traceroute"
  25. help="Trace route to destination"
  26. lock="false">
  27. <PARAM name="ip"
  28. help="IP trace"
  29. ptype="STRING"
  30. mode="subcommand"
  31. optional="true"/>
  32. <PARAM name="addr"
  33. help="Trace route to destination address or hostname"
  34. ptype="STRING"/>
  35. <ACTION>
  36. traceroute ${addr}
  37. </ACTION>
  38. </COMMAND>
  39. </VIEW>
  40. </CLISH_MODULE>