Using the Command-Line Interface
This chapter contains the following topics:
CLI Command Keyboard Shortcuts
The table below lists the CLI keyboard shortcuts to help you enter and edit command lines on the controller.
Using the Interactive Help Feature
The question mark (?) character allows you to get the following type of help about the command at the command line. The table below lists the interactive help feature list.
- Using the help Command
- Using the ? command
- Using the partial? command
- Using the partial command<tab>
- Using the command ?
- command keyword ?
Using the help Command
To look up keyboard commands, use the help command at the root level.
help
> help HELP: Special keys: DEL, BS... delete previous character Ctrl-A .... go to beginning of line Ctrl-E .... go to end of line Ctrl-F .... go forward one character Ctrl-B .... go backward one character Ctrl-D .... delete current character Ctrl-U, X. delete to beginning of line Ctrl-K .... delete to end of line Ctrl-W .... delete previous word Ctrl-T .... transpose previous character Ctrl-P .... go to previous line in history buffer Ctrl-N .... go to next line in history buffer Ctrl-Z .... return to root command prompt Tab, <SPACE> command-line completion Exit .... go to next lower command prompt ? .... list choices
Using the ? command
To display all of the commands in your current level of the command tree, or to display more information about a particular command, use the ? command.
command name ?
When you enter a command information request, put a space between the command name and ?.
Examples
This command shows you all the commands and levels available from the root level.
> ? clear Clear selected configuration elements. config Configure switch options and settings. debug Manages system debug options. help Help linktest Perform a link test to a specified MAC address. logout Exit this session. Any unsaved changes are lost. ping Send ICMP echo packets to a specified IP address. reset Reset options. save Save switch configurations. show Display switch options and settings. transfer Transfer a file to or from the switch.
Using the partial? command
To provide a list of commands that begin with the character string, use the partial command ?.
partial command?
> controller> config>ad?
advanced
Using the partial command<tab>
To completes a partial command name, use the partial command<tab> command.
partial command<tab>
There should be no space between the command and <tab>.
Controller >config>cert<tab> certificate
Using the command ?
Examples
command-name ?
There should be a space between the command and the question mark.
Controller >config acl ?
apply Applies the ACL to the data path. counter Start/Stop the ACL Counters. create Create a new ACL. delete Delete an ACL. rule Configure rules in the ACL. cpu Configure the CPU ACL Information
command keyword ?
To list the arguments that are associated with the keyword, use the command keyword ?:
command keyword ?
There should be space between the keyword and the question mark.
Controller >config acl cpu ?
none None - Disable the CPU ACL <name> <name> - Name of the CPU ACL