Command Line Interface
518 1553-KDU 137 365 Uen D 2006-06-16
7.2 Entering Commands
This section describes how to enter CLI commands.
7.2.1 Keywords and Arguments
A CLI command is a series of keywords and arguments. Keywords identify a
command, and arguments specify configuration parameters. For example, in the
command show interfaces status ethernet 1/5, show interfaces
and status are keywords, ethernet is an argument that specifies the
interface type, and 1/5 specifies the unit and port.
Commands can be entered as follows:
• To enter a simple command, enter the command keyword.
• To enter multiple commands, enter each command in the required
order. For example, to enter configuration mode and enable spanning
tree for the ECN330-switch, type:
Console#configure
Console(config)#spanning-tree
• To enter commands that require parameters, enter the required
parameters after the command keyword. For example, to set a
password for the administrator, enter:
Console(config)#username admin password 0 smith
7.2.2 Minimum Abbreviation
The CLI will accept a minimum number of characters that uniquely identify a
command. For example, the command configure can be entered as con. If
an entry is ambiguous, the system will prompt for further input.
7.2.3 Command Completion
If input is terminated with a Tab key, the CLI prints the remaining characters of a
partial keyword up to the point of ambiguity. In the “logging history” example,
typing log followed by a tab results in printing the command up to logging.