Using the CLI
Prefix Prompt
You may set the CLI so that your screen prompt displays the stored prefix. To display the stored prefix as
part of the screen prompt for the VLAN example above, enter the
follows:
-> prompt prefix
The following will display:
-> vlan 501
Your screen prompt will include your stored prefix until a new prompt is specified. To set the prompt back
to the arrow (->) enter the
-> vlan 501 prompt string ->
->
The arrow displays to indicate that your prompt has changed back to the default.
For more general information about changing the prompt, refer to
page
5-17.
Command History
The history command allows you to view commands you have recently issued to the switch. The switch
has a history buffer that stores up to 30 of the most recently executed commands.
Note. The command history feature differs from the command logging feature in that command logging
stores up to 100 of the most recent commands in a separate command.log file. Also, the command
logging feature includes additional information, such as full command syntax, login user name, entry date
and time, session IP address, and entry results. For more information on command logging, refer to
"Logging CLI Commands and Entry Results" on page
You can display the commands in a numbered list by using the
a sample list:
-> show history
1 show cmm
2 show fan
3 show sensor
4 show temp
5 ip load dvmrp
6 show arp
7 clear arp
8 show ip config
9 ip helper max hops 5
10 ip bgp pn
11 show ip bgp
12 show history
In the example above, the
executed most recently.
OmniSwitch 6800/6850/9000 Switch Management Guide
prompt
string -> (prompt string arrow) syntax as follows:
show history
command is listed last because it is the command that was
prompt
prefix CLI command as
"Changing the CLI Prompt" on
5-15.
show history
command. The following is
December 2007
CLI Services
page 5-13