1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?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">
- <!--=======================================================-->
- <VIEW name="enable-view"
- prompt="${SYSTEM_NAME}# ">
- <!------ Inheritance ------>
- <NAMESPACE ref="ping-view"
- help="true"
- completion="true"/>
- <!------ Simple enable mode commands ------>
- <COMMAND name="disable"
- help="Turn off privileged commands">
- <ACTION builtin="clish_close"/>
- </COMMAND>
- <COMMAND name="reboot"
- help="Halt and perform a cold restart">
- <ACTION>reboot</ACTION>
- </COMMAND>
- <COMMAND name="configure"
- help="Enter configuration mode"/>
- <COMMAND name="configure terminal"
- help="Configure from the terminal"
- view="configure-view">
- </COMMAND>
- <!------ Show commands ------>
- <COMMAND name="show"
- help="Show running system information"/>
- <COMMAND name="show ip"
- help="IP information"/>
- <COMMAND name="show diag"
- help="Show diagnostic information for port adapters/modules">
- <ACTION>lspci</ACTION>
- </COMMAND>
- <COMMAND name="show running-config"
- help="Current operating configuration">
- <CONFIG operation="dump"/>
- </COMMAND>
- <COMMAND name="show startup-config"
- help="Contents of startup configuration">
- <ACTION>cat /etc/startup-config</ACTION>
- </COMMAND>
- <!------ Copy commands ------>
- <COMMAND name="copy"
- help="Copy from one file to another"/>
- <COMMAND name="copy running-config"
- help="Copy from current system configuration"/>
- <COMMAND name="copy running-config startup-config"
- help="Copy to startup configuration">
- <CONFIG operation="dump" file="/etc/startup-config"/>
- </COMMAND>
- </VIEW>
- </CLISH_MODULE>
|