consolehistory


Use the consolehistory command to display system console messages logged in ALOM buffers. You can read the following system console logs:

Each buffer can contain up to 64 Kbytes of information.

If ALOM senses a host server reset, it begins to write that data into the boot log buffer. When the server senses that the Solaris operating environment is up and running, ALOM switches the buffer to the run log.

How to Use the consolehistory Command

Note: You must have c level user permission to use this command.

At the sc> prompt, type the following command:

sc> consolehistory logname option(s)

where logname is the name of the log you want to display (boot or run). If you type the consolehistory command without an option, ALOM returns the last 20 lines of the run log.

Note: Time stamps recorded in console logs reflect server time. These time stamps reflect local time, and ALOM event logs use UTC (Coordinated Universal Time). The Solaris operating environment synchronizes system time with ALOM time.

Command Options

The consolehistory command uses the following options for both logs. You can use the -g option in combination with the -b, -e, or -v options. If you do not specify the -g option, the screen output will not pause.

Option Description
-b lines

Displays the number of lines that you specify for lines from the beginning of the log buffer. For example:

consolehistory boot -b 10

-e lines

Displays the number of lines that you specify for lines from the end of the log buffer. If new data appears in the log while you are executing this command, the new data is appended to the screen output. For example:

consolehistory run -e 15

-g lines

Specifies the number of lines to display before pausing the output to the screen. After each pause, ALOM shows the following message: Paused: Press 'q' to quit, any other key to continue. For example:

consolehistory run -v -g 5

-v Displays the entire contents of the specified log.

 


ALOM shell commands

Types of ALOM commands