NET/MASTER Management Services (MS) Operator's Guide
Reexecuting Previously Entered Commands
Operator Control Services (OCS)
106379 Tandem Computers Incorporated 4–23
Retaining Commands on the Command Input Line
The commands you enter on the OCS command input line remain on the input line
after you press the ENTER key. You can override this feature and cause the command
input line to be cleared as soon as you press the ENTER key by issuing a
PROFILE CMDKEEP=NO command.
Defining Function Keys to
Issue Commands
As discussed in “Using the OCS Function Keys,” earlier in this section, you can save
time and keystrokes by defining function keys to issue frequently used commands for
you. To execute a command string assigned to a function key, simply press the
appropriate function key.
Reexecuting Previously
Entered Commands
Each OCS window maintains a history buffer (sometimes referred to as the command
stack) of the most recent unique command strings entered from the command line,
including commands entered from function keys. (If you enter the same command
string more than once consecutively, only the first occurrence of the string appears in
the history buffer.)
You can manage and use the history buffer through the following functions:
Change the number of entries kept in the history buffer by using the
PROFILE CMDSTACK=history-buffer-size command (the default size is 20; the
range of sizes is 0 through a value set by the CMDSTACK system parameter (the
maximum value is 99)).
Display the contents of the history buffer by using the HISTORY command.
Retrieve a command string from the history buffer for display on the OCS
command input line for modification and reexecution by using the FC command.
Retrieve a command string from the history buffer for display in the roll-delete
message area by using the ? command.
Immediately reexecute a command string from the history buffer without
modification by using the ! command.
Retrieve the most recently executed command string stored in the history buffer
for display on the OCS command line by using the CS+ command. The F10 (PF10)
function key is defined to perform this function.
Retrieve the earliest command string currently stored in the history buffer for
display on the OCS command line by using the CS- command. The F11 (PF11)
function key is defined to perform this function.
For complete syntax of any of the above commands, refer to the NonStop
NET/MASTER MS Command Reference Manual.
You can also reexecute previously entered commands by positioning your cursor on
an echoed command line in the OCS message area and pressing the F10 (PF10) or F11
(PF11) function key. The contents of the line are copied to the command input line for
modification and reexecution.