1-12
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
Switch CLI
Using Command Self-Repeat
Use 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 Lookup
Use 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 Lookup
Use 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 Completion
Use 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.