2 CEE Command Line Interface

NOTE

In EXEC and privileged EXEC modes, use the show history command to list the commands most recently entered. The switch retains the history of the last 1000 commands entered.

Using the do command as a shortcut

You can use the do command to save time when you are working in any configuration mode and you want to run a command in EXEC or privileged EXEC mode.

For example, if you are configuring an LLDP and you want to execute a privileged EXEC mode command, such as the dir command, you would first have to exit the LLDP configuration mode. However, by using the do command with the dir command, you can ignore the need to change configuration modes, as shown in the following example.

switch(conf-lldp)#do dir

 

 

 

 

 

Contents of flash://

1276

Wed Feb

4

07:08:49 2009

startup_rmon_config

-rw-r-----

-rw-r-----

1276

Wed Feb

4

07:10:30 2009

rmon_config

-rw-r-----

1276

Wed Feb

4

07:12:33 2009

rmon_configuration

-rw-r-----

1276

Wed Feb

4

10:48:59 2009

starup-config

Displaying CEE CLI commands and command syntax

Enter a question mark (?) in any command mode to display the list of commands available in that mode.

switch>?

Exec commands:

enable

Turn on privileged mode command

exit

End current mode and down to previous mode

help

Description of the interactive help system

logout

Exit from the EXEC

quit

Exit current

mode and down to previous mode

show

Show running

system information

terminal

Set terminal

line parameters

To display a list of commands that start with the same characters, type the characters followed by the question mark (?).

switch>e?

Turn on privileged mode command

enable

exit

End current mode and down to previous mode

To display the keywords and arguments associated with a command, enter the keyword followed by the question mark (?).

switch#terminal ?

on a screen

length

Set number of lines

no

Negate a command or

set its defaults

If the question mark (?) is typed within an incomplete keyword, and the keyword is the only keyword starting with those characters, the CLI displays help for that keyword only.

switch#show d?

dot1x IEEE 802.1X Port-Based Access Control <cr>

18

Converged Enhanced Ethernet Administrator’s Guide

 

53-1002163-02

Page 40
Image 40
Brocade Communications Systems 53-1002163-02 manual Using the do command as a shortcut