enable-mode.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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="enable-view"
  8. prompt="${SYSTEM_NAME}# ">
  9. <!-- Inheritance -->
  10. <NAMESPACE ref="ping-view"
  11. help="true"
  12. completion="true"/>
  13. <!-- Simple enable mode commands -->
  14. <COMMAND name="disable"
  15. help="Turn off privileged commands">
  16. <ACTION builtin="clish_close"/>
  17. </COMMAND>
  18. <COMMAND name="reboot"
  19. help="Halt and perform a cold restart">
  20. <ACTION>reboot</ACTION>
  21. </COMMAND>
  22. <COMMAND name="configure"
  23. help="Enter configuration mode"/>
  24. <COMMAND name="configure terminal"
  25. help="Configure from the terminal"
  26. view="configure-view">
  27. </COMMAND>
  28. <!-- Show commands -->
  29. <COMMAND name="show"
  30. help="Show running system information"/>
  31. <COMMAND name="show ip"
  32. help="IP information"/>
  33. <COMMAND name="show diag"
  34. help="Show diagnostic information for port adapters/modules">
  35. <ACTION>lspci</ACTION>
  36. </COMMAND>
  37. <COMMAND name="show running-config"
  38. help="Current operating configuration">
  39. <CONFIG operation="dump"/>
  40. </COMMAND>
  41. <COMMAND name="show startup-config"
  42. help="Contents of startup configuration">
  43. <ACTION>cat /etc/startup-config</ACTION>
  44. </COMMAND>
  45. <!-- Copy commands -->
  46. <COMMAND name="copy"
  47. help="Copy from one file to another"/>
  48. <COMMAND name="copy running-config"
  49. help="Copy from current system configuration"/>
  50. <COMMAND name="copy running-config startup-config"
  51. help="Copy to startup configuration">
  52. <CONFIG operation="dump" file="/etc/startup-config"/>
  53. </COMMAND>
  54. </VIEW>
  55. </CLISH_MODULE>