
CLI Services Using the CLI
page 6-15 OmniSwitch 6250/6450 Switch Management Guide May 2012
Prefix Prompt
You can 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 is displayed:
-> vlan 501
Your screen prompt includes 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 6-19.
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 6-17.
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 show arp
6 clear arp
7 show ip config
8 ip helper max hops 5
9 ip /jointfilesconvert/488278/bgp pn
10 show ip /jointfilesconvert/488278/bgp
11 show history
In the example above, the show history command is listed last because it is the command that was
executed most recently.
Kommentare zu diesen Handbüchern