STM: Support Tools for HP-UX Computers (logo)

STM Data Sheet: Logtool

Tool Name: logtool

Tool Type: utility

Interactive or Automatic: interactive

Purpose: Format and view the system log files and memory log files

Products Supported: HP 9000 HP-UX computer systems

More Information: http://docs.hp.com/hpux/diag/ ,
see "Online Diagnostics: Individual Tools" for logtool tutorial, quick reference, specifications, etc.

Functional Description:

The Logging Daemon.

When STM is installed on a computer, a logging daemon is activated to monitor recoverable errors that have been detected by the system, for example: Logging.

When the logging daemon detects an event, it logs an entry in a system log file located (by default) in the directory "/var/stm/logs/os". The raw log file names have the format "logN.raw," where N is a number that starts at 1 and is incremented each time a new log file is created with the command Switch Log. The only exception to the raw log file naming convention is the log file to which the logging daemon is currently logging data; this file is called "logN.raw.cur."

Memory errors, when detected by the memory logging daemon, are logged into the memory log file called memlog.

You can modify the behavior of the logging daemon by editing the configuration file "diaglogd.cfg" located in the directory "/var/stm/config/sys". The file itself contains documentation regarding its format.

Logtool and the Logging Process.

The role of Logtool in the logging process is shown in the diagram and is explained in more detail below.

Block diagram of logtool's operation

Block diagram of logtool's operation (6K)

Raw Log Files.

The first step in analyzing the logs is usually to enter the "Select Raw" command. A summary of the contents of a log will automatically be displayed.

To view the entries in the log file, you use the "Raw Log" command. Looking at all the entries in the raw log file can be burdensome:

To solve these dilemmas, Logtool offers the ability to format and filter the entries in the logs.

Formatting the Data.

To translate the raw log file into a more readable format, select the "Format Raw" command. The formatted data is put into a file with the name "logN.fmtN" where the first number (N) matches that of the raw log file and the second number (N) starts at 1 and is incremented for each new formatted file generated from the same raw log file. If multiple files have been chosen, the file name will have a plus sign("+") in it. For example, log1.raw and log2.raw will be formatted into log1+.fmt1.

A summary of the contents of the formatted log can will automatically be displayed. To view the entries in the formatted log file, you use the "Formatted Log" command.

Filtering the Data.

Even if the data is formatted, there is generally a large number of entries contained in a typical log. When you are troubleshooting a problem, only certain entries may be relevant. For example, you may want to see only I/O errors that occurred during a certain time period on a certain hardware path.

Logtool offers three different filters to select the entries relevant to your task.

Memory Log.

The memory log is handled somewhat differently than the system logs described above. The commands to view the memory report log or to clear the memory log are found in the Memory Menu. You can also use the Memory->Set Timer command to change the memory polling interval.

The memory report log can be viewed in two separate ways. The entire log file can be viewed (View Detail) or information pertaining only to memory deallocation can be viewed (View Dealloc).

Log Entry Types.

The entry types currently logged by Logtool include:

Related Files:
/var/stm/logs/os/logN.raw -- old raw log files
/var/stm/logs/os/logN.cur -- curent raw log file
/var/stm/logs/os/memlog -- memory log file
/var/stm/config/sys/diaglogd.cfg -- configuration file for logging daemon


Top of Page / Diagnostics HOME
Last updated: Tue Oct 6 10:02:58 PDT 1998