showlogs


Use the showlogs command to display the history of all events logged in the ALOM event buffer. These events include server reset events and all ALOM commands that change the state of the system (such as reset, poweroff, and poweron).

Each event recorded in the log has the following format:

date hostname: message

date signifies the time at which the event occurred, as recorded by ALOM. hostname is the name of the host server, and message is a short description of the event.

If you use the showlogs command without any option, ALOM displays the last 20 lines of the event log.

How to Use the showlogs Command

Note: You do not need user permissions to use this command.

At the sc> prompt, type the following command:

sc> showlogs option(s)

where option(s) is the desired option(s), if any.

The following example shows an event log entry:

NOV 15 11:12:25 labserver: "SC Login: User johnsmith Logged on."

Note: Time stamps shown in the ALOM event log reflect UTC (Coordinated Universal Time).

This example shows the output of the showlogs command with the -v option. The -v option displays the persistent event log. The persistent event log is comprised of the contents of NVRAM.

sc> showlogs -v
Persistent event log
--------------------
MAY 19 11:22:03 wgs40-232: 0004000e: "SC Request to Power Off Host Immediately."
MAY 19 11:22:12 wgs40-232: 00040029: "Host system has shut down."
MAY 19 11:22:43 wgs40-232: 00040002: "Host System has Reset"
Log entries since MAY 19 14:57:08
----------------------------------
MAY 19 14:57:08 wgs40-232: 00060003: "SC System booted."
MAY 19 14:57:35 wgs40-232: 00060000: "SC Login: User rich Logged on.
"

Command Options

The showlogs command uses four options. 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
-v Displays the entire contents of the buffer and the contents of NVRAM (the persistent event log).
-b lines

Displays the events from the beginning of the buffer, where lines is the number of lines that you specify. For example, the following command displays the first 100 lines in the buffer:

showlogs -b 100

-e lines

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

showlogs -e 10

-g lines Controls the number of lines displayed on the screen at a given time, where lines is the number of lines that you specify. After each pause, ALOM shows the following message: --pause-- Press 'q' to quit, any other key to continue.

 


ALOM shell commands

consolehistory

Types of ALOM commands