Completing A Partial Command With The Tab Key; Identifying Command Syntax Errors - Cisco XR 12000 Series Getting Started Manual

Hide thumbs Also See for XR 12000 Series:
Table of Contents

Advertisement

CLI Tips and Shortcuts
Enter an IP address, followed by a space and a question mark (?), to list additional options:
Step 4
RP/0/0/CPU0:router(config)# ipv4 access-list list1 deny 172.31.134.0 ?
A.B.C.D
log
log-input
<cr>
RP/0/0/CPU0:router(config)# ipv4 access-list list1 deny 172.31.134.0
The <cr> symbol by itself indicates that there are no more keywords or arguments.
Step 5
Press Enter to execute the command:
RP/0/0/CPU0:router(config)# ipv4 access-list list1 deny 172.31.134.0
The configuration does not become active until you enter the commit command to add the target
Note
configuration to the running configuration.

Completing a Partial Command with the Tab Key

If you do not remember a complete command name or want to reduce the amount of typing you have to
perform, enter the first few letters of the command, then press the Tab key. If only one command begins
with that character string, the system automatically completes the command for you. If the characters
you entered indicate more than one command, the system beeps to indicate that the text string is not
unique and the system provides a list of commands that match the text entered.
In the following example, the CLI recognizes conf as a unique string in EXEC mode and completes the
command when you press the Tab key:
RP/0/0/CPU0:router# conf<Tab>
RP/0/0/CPU0:router# configure
The CLI displays the full command name. You must then press Return to execute the command. This
feature allows you to modify or reject the suggested command.
In the next example, the CLI recognizes two commands that match the text entered:
RP/0/0/CPU0:router# co<Tab>
configure
RP/0/0/CPU0:router# con<Tab>
RP/0/0/CPU0:router# configure
If your keyboard does not have a Tab key, press Ctrl-I instead.
Tip

Identifying Command Syntax Errors

If an incorrect command is entered, an error message is returned with the caret (^) at the point of the
error. In the following example, the caret appears where the character was typed incorrectly in the
command:
RP/0/0/CPU0:router# configure termiMal
% Invalid input detected at '^' marker.
Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router
5-96
Wildcard bits
Log matches against this entry
Log matches against this entry, including input interface
copy
Chapter 5
^
CLI Tips, Techniques, and Shortcuts
OL-24755-01

Advertisement

Table of Contents
loading

Table of Contents