User guide
Using the CLI CLI Services
OmniSwitch 7700/7800/8800 Switch Management Guide April 2006 page 5-13
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 prompt prefix CLI command as
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 prompt string -> (prompt string arrow) syntax as follows.
-> 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 “Changing the CLI Prompt” on
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 files to 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 5-15.
You can display the commands in a numbered list by using the show history command. The following is
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 show history command is listed last because it is the command that was
executed most recently.