2 CEE Command Line Interface

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 the 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 example below.

switch(conf-lldp)#do dir

 

 

 

 

 

Contents of flash://

 

 

 

 

 

-rw-r-----

1276

Wed Feb

4

07:08:49 2009

startup_rmon_config

-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

switch(conf-lldp)#

 

 

 

 

 

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?

enable

Turn on privileged mode command

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 ?

length

Set number of lines

on a screen

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>

If the question mark (?) is typed within an incomplete keyword but the keyword matches several keywords, the CLI displays help for all the matching keywords.

switch#show i?

interface

Interface status and configuration

ip

Internet Protocol (IP)

18

Converged Enhanced Ethernet Administrator’s Guide

 

53-1001761-01

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