1-12
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter1 Command-Line Interfaces
Switch CLI
Using Command Self-RepeatUse the command self-repeat function to display matches to all possible keywords if a string represents
a unique match. If a unique match is not found, the longest matching string is provided. To display the
matches, enter a space after the last parameter and enter ?. Once the matches are displayed, the system
comes back to the prompt and displays the last command without the ?. In the following example, notice
how the system repeats the command entered without the ?:
Console> (enable) set mls nde
disable Disable multilayer switching data export filter
enable Enable multilayer switching data export filter
engineer Engineer setting of the export filter
flow Setting multilayer switching export filter
<collector_ip> IP address
Console> (enable) set mls nde
Using Keyword LookupUse the keyword-lookup function to display a list of valid keywords and arguments for a command. To
display the matches, enter a space after the last parameter and enter ?. For example, five parameters are
used by the set mls command. To see these parameters, enter set mls ? at the privileged prompt. In the
following example, notice how the system repeats the command entered without the ?:
Console> (enable) set mls ?
agingtime Set agingtime for MLS cache entry
exclude Set MLS excluded protocol ports
flow Set minimum flow mask
nde Configure Netflow Data Export
statistics Add protocols to protocol statistics list
Console> (enable) set mls
Using Partial Keyword LookupUse the partial keyword-lookup function to display a list of commands that begin with a sp ec ific set of
characters. To display the matches, enter ? immediately after the last parameter. For example, enter co?
at the privileged prompt to display a list of commands that start with co. The system displays all
commands that begin with co and repeats the command entered without the ?:
Console> (enable) co?
commit Commit ACL to hardware and NVRAM
configure Configure system from network
copy Copy files between TFTP/RCP/module/flash devices
Console> (enable) co
Using Command CompletionUse the command completion function to complete a command or keyword. When you enter a unique
partial character string and press Tab, the system completes the command or keyword on the command
line. For example, if you enter co at the privileged prompt and press Tab, the system completes the
command as configure because it is the only command that matches the criteria.
If no completion can be done, no action is carried out and the system re turn s to the p rom pt an d t he l ast
command. The cursor appears immediately after t he keyword, al lowing y ou to e nte r ad dit iona l
information.