Alcatel OS6602-24 Getting Started Guide - Page 47

CLI Basics, CLI Assistance Features, Syntax Checking

Page 47 highlights

CLI Basics The Command Line Interface (CLI) allows you to configure and monitor your switch by entering single-line commands. The CLI can be accessed through terminal or Telnet sessions. Note. Configuring the switch using the CLI is also referred to as "online configuration." The following section provides basic information on CLI assistance features. For detailed information on the CLI, including syntax conventions, usage rules, command documentation, and a quick reference card, refer to the OmniSwitch CLI Reference Guide and the "Using the CLI" chapter in the OmniSwitch 6600 Family Switch Management Guide. CLI Assistance Features The CLI provides built-in features that assist you while entering commands. These features include: • Syntax checking • Command line help • Partial keyword completion • Deleting and inserting characters • Previous command recall • Prefix recognition • Prefix prompt • Command history March 2005 Note. The software supports vt100 terminal emulation; CLI assistance features may be limited if your terminal emulation software is using a setting other than vt100. Syntax Checking If you make a mistake while entering command syntax, the CLI provides clues about how to correct the error. Whenever a command error is entered, two indicators are displayed: • An Error message describing the type of error. • A carat (^) character indicating where the error occurred. For example, the syntax -> show vlan router port mac status results in the following error: -> show vlan router port mac status ^ ERROR: Invalid entry: "port" Because port is not valid syntax for the command, the error message shows it as an invalid entry and the carat indicates where the problem has occurred. For this example, the valid command syntax is -> show vlan router mac status CLI Basics 41

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76

March 2005
CLI Basics
41
The Command Line Interface (CLI) allows you to configure
and monitor your switch by entering single-line commands.
The CLI can be accessed through terminal or Telnet sessions.
Note.
Configuring the switch using the CLI is also
referred to as “online configuration.”
The following section provides basic information on CLI
assistance features. For detailed information on the CLI,
including syntax conventions, usage rules, command docu-
mentation, and a quick reference card, refer to the
OmniSwitch
CLI Reference Guide
and the “Using the CLI” chapter in the
OmniSwitch 6600 Family Switch Management Guide
.
CLI Assistance Features
The CLI provides built-in features that assist you while enter-
ing commands. These features include:
Syntax checking
Command line help
Partial keyword completion
Deleting and inserting characters
Previous command recall
Prefix recognition
Prefix prompt
Command history
Note.
The software supports vt100 terminal emulation;
CLI assistance features may be limited if your terminal
emulation software is using a setting other than vt100.
Syntax Checking
If you make a mistake while entering command syntax, the
CLI provides clues about how to correct the error. Whenever a
command error is entered, two indicators are displayed:
An Error message describing the type of error.
A carat (
^
) character indicating where the error
occurred.
For example, the syntax
-> show vlan router port mac status
results in the following error:
-> show vlan router port mac status
^
ERROR: Invalid entry: "port"
Because
port
is not valid syntax for the command, the error
message shows it as an invalid entry and the carat indicates
where the problem has occurred. For this example, the valid
command syntax is
-> show vlan router mac status
CLI Basics