Mode-based Command Line Interface 12
© 2001- 2006 Hirschmann Automation and Control GmbH. All Rights Reserved.
3.0 Mode-based Command Line Interface
The Command Line Interface (CLI) groups all the commands in appropriate modes according to the
nature of the commands. A sample of the CLI command modes is described below. Each of the
command modes supports specific switch software commands. The name „switch“ in the following
table is standing in for the name of the device.
Table 6. CLI Command Modes captures the command modes, the prompts visible in that mode and the
exit method from that mode.
Table 6. CLI Command Modes
Command
Mode
Access Method Prompt
Exit or Access
Previous Mode
User EXEC
Mode
This is the first
level of access.
Perform basic
tasks and list sys-
tem information.
Switch> Enter Logout
command
Privileged EXEC
Mode
From the User
EXEC mode,
enter the
enable
command.
Switch# To exit to the User
EXEC mode,
enter
exit or
press
Ctrl-Z.
VLAN Mode From the Privi-
leged EXEC
mode, enter the
vlan database
command.
Switch (Vlan)# To exit to the Priv-
ileged EXEC
mode, enter the
exit command,
or press
Ctrl-Z
to switch to the
User EXEC mode.
Global Config
Mode
From the Privi-
leged EXEC
mode, enter the
configure
command.
Switch (Config)# To exit to the Priv-
ileged EXEC
mode, enter the
exit command,
or press
Ctrl-Z
to switch to the
User EXEC mode.
Interface Config
Mode
From the Global
Config mode,
enter the
inter-
face
<slot/port>
command.
Switch (Interface <unit/slot/port>)# To exit to the Glo-
bal Config mode,
enter the
exit
command. To
return to the User
EXEC mode,
enter
Ctrl-Z.
Line Config
Mode
From the Global
Config mode,
enter the
lineconfig
command.
Switch (line)# To exit to the Glo-
bal Config mode,
enter the
exit
command. To
return to the User
EXEC mode,
enter
Ctrl-Z.