Mode-based CLI
CLI L2P
Release
7.0
05/2011
41
3 Mode-based CLI
The CLI groups all the commands in appropriate modes according to the na-
ture of the command. A sample of the CLI command modes are described
below. Each of the command modes support specific software commands.
D User Exec Mode
D Privileged Exec Mode
D Global Config Mode
D Vlan Mode
D Interface Config Mode
D Line Config Mode
The Command Mode table captures the command modes, the prompts visi-
ble in that mode and the exit method from that mode.
Command Mode Access Method Prompt Exit or Access Next Mode
User Exec Mode This is the first level of
access. Perform basic
tasks and list system
information
(Hirschmann
Product)>
Enter Logout command
Privileged Exec
Mode
From the User Exec
Mode, enter the
enable command
(Hirschmann
Product)#
To exit to the User Exec
mode, enter exit or press
Ctrl-Z.
VLAN Mode From the Privileged
User Exec mode, enter
the vlan database
command
(Hirschmann
Product)
(Vlan) #
To exit to the Privileged
Exec mode, enter the exit
command, or press Ctrl-Z to
switch to User Exec mode.
Global Config
Mode
From the Privileged
Exec mode, enter the
configure com-
mand
(Hirschmann
Product)
(Config)#
To exit to the Privileged
Exec mode, enter the exit
command, or press Ctrl-Z to
switch to user exec mode.
Interface Config
Mode
From the Global Con-
figuration mode, enter
the interface
<slot/port> com-
mand
(Hirschmann
Product)
(Interface-
"if num-
ber")#
To exit to the Global Config
mode enter exit. To return to
user EXEC mode enter ctrl-
Z.
Line Config Mode From the Global Con-
figuration mode, enter
the lineconfig
command
(Hirschmann
Product)
(line) #
To exit to the Global Config
mode enter exit. To return to
User Exec mode enter ctrl-
Z.
Table 14: Command Mode