HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 15

Using the command history function

Page 15 highlights

Error message % Too many parameters. % Wrong parameter found at '^' position. Cause The entered character sequence contains excessive keywords or arguments. The argument in the marked position is invalid. Using the command history function The system automatically saves commands successfully executed by a login user to two command history buffers: the command history buffer for the user interface and the command history buffer for all user interfaces. Table 4 compares these two types of command history buffers. Table 5 Comparison between the two types of command history buffers Item Command history buffer for a user interface Command history buffer for all user interfaces What kind of commands are stored in the buffer? Commands successfully executed by the current user of the user interface. Commands successfully executed by all login users. Cleared when the user logs out? Yes. No. How to view buffered commands? How to call buffered commands? Use the display history-command command. • In Windows 200x or Windows XP HyperTerminal or Telnet, use the up or down arrow key (↑ or ↓) to navigate to a command in the buffer and press Enter to execute the command again. • In Windows 9x HyperTerminal, use Ctrl+P and Ctrl+N to do so. Use the display history-command all command. You cannot call buffered commands. How to set the buffer size? Use the history-command max-size size-value command in user interface view to set the buffer size. By default, the buffer can store up to 10 commands. You cannot set the buffer size. By default, the buffer can store up to 1024 commands. How to disable the buffer? Setting the buffer size to 0 disables the buffer. You cannot disable the buffer. The system follows these rules when buffering commands: • Buffering a command in the exact format in which the command was entered. For example, if you enter an incomplete command, the buffered command is also incomplete. If you enter a command with a command keyword alias, the buffered command also uses the alias. • If you enter a command in the same format multiple times in succession, the system buffers the command only once. If you enter a command in different formats multiple times, the system buffers each command format. For example, display cu and display current-configuration are buffered as two entries but successive repetitions of display cu create only one entry. • To buffer a new command when a buffer is full, the system deletes the oldest command entry in the buffer. 8

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155

8
Error message
Cause
% Too many parameters.
The entered character sequence contains excessive
keywords or arguments.
% Wrong parameter found at '^' position.
The argument in the marked position is invalid.
Using the command history function
The system automatically saves commands successfully executed by a login user to two command history
buffers: the command history buffer for the user interface and the command history buffer for all user
interfaces.
Table 4
compares these two types of command history buffers.
Table 5
Comparison between the two types of command history buffers
Item
Command history buffer for a user
interface
Command history buffer for all
user interfaces
What kind of
commands are stored
in the buffer?
Commands successfully executed by the
current user of the user interface.
Commands successfully executed by
all login users.
Cleared when the user
logs out?
Yes.
No.
How to view buffered
commands?
Use the
display history-command
command.
Use the
display history-command all
command.
How to call buffered
commands?
In Windows 200x or Windows XP
HyperTerminal or Telnet, use the up or
down arrow key (
or
) to navigate to a
command in the buffer and press
Enter
to
execute the command again.
In Windows 9x HyperTerminal, use
Ctrl+P
and
Ctrl+N
to do so.
You cannot call buffered commands.
How to set the buffer
size?
Use the
history-command
max-size
size-value
command in user interface view to
set the buffer size.
By default, the buffer can store up to 10
commands.
You cannot set the buffer size.
By default, the buffer can store up to
1024 commands.
How to disable the
buffer?
Setting the buffer size to 0 disables the
buffer.
You cannot disable the buffer.
The system follows these rules when buffering commands:
Buffering a command in the exact format in which the command was entered. For example, if you
enter an incomplete command, the buffered command is also incomplete. If you enter a command
with a command keyword alias, the buffered command also uses the alias.
If you enter a command in the same format multiple times in succession, the system buffers the
command only once. If you enter a command in different formats multiple times, the system buffers
each command format. For example,
display cu
and
display current-configuration
are buffered as
two entries but successive repetitions of
display cu
create only one entry.
To buffer a new command when a buffer is full, the system deletes the oldest command entry in the
buffer.