Alcatel Carrier Internetworking Solutions omniswitch User Manual

Page of 260
Using the CLI
CLI Services
OmniSwitch 6600 Family Switch Management Guide
March 2005
page 5-11
Syntax Checking
If you make a mistake while entering command syntax, the CLI gives you clues about how to correct your 
error. Whenever you enter an invalid command, two indicators are displayed. 
• The Error message tells you what the error is. 
• The caret (^) character tells you where the error is in your syntax.
The following example of the syntax checking feature shows an attempt to set IP routing. If you enter the 
command set ip routing the following will display:
-> set ip routing enable
^
ERROR: Invalid entry: "set" 
The set ip routing command is not valid so the CLI error message states what the problem is (Invalid 
entry) and the carat indicates where the problem is located in the syntax. Here, the problem is with the 
“set” keyword so the carat is located under “set”. The error message states the nature of the problem—that 
“set” is an invalid entry. In order to enable IP routing, you must find another command keyword because 
set is not valid.
Prefix Recognition
Prefix Recognition is a CLI feature that reduces redundant command line entry by storing prefix 
information for certain network commands. 
When you configure network services, you may have to enter the same command prefix multiple times. 
Entering the same prefix again and again can be cumbersome and prone to error. The prefix recognition 
feature addresses the problem of redundant command entry by allowing the CLI to store commonly-used 
prefix information. This prefix information stored by the switch then becomes part of the next CLI 
command entered. 
The following command families support the prefix recognition feature.
• AAA
• Interface
• Link Aggregation
• QOS
• Spanning Tree
• VLAN Management
When certain commands are entered from one of these families, the CLI will retain the prefix information 
in a memory buffer. Then, if a valid related command is entered next, the CLI will assume the stored 
prefix is part of the next command. In this case, you are only required to enter the suffix information for 
the next command.