ping.xml 1.0 KB

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