HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

k
kl(1M) kl(1M)
the command nettlconf -KL -status. The keyword
all changes the logging level
for all subsystems specified in the file
/etc/nettlgen.conf.
The following table describes the classes of messages that can be logged
Message Class Description
Signals an event or condition which affected the the operation of an
entire subsystem, or the entire kernel, causing several programs to
fail or the entire machine to shut down.
Disaster
Signals an event or condition which did not affect the overall opera-
tion of an entire subsystem, or the entire kernel, but may have
caused an application program to fail.
Error
Indicates abnormal events, possibly caused by problems in an indi-
vidual subsystem.
Warning
Describes routine operations and current system values.Informative
The following table identifies the classes of messages that are captured at each log level
Log Level Classes of Messages
d Disaster
e Disaster and Error
w Disaster, Error and Warning
i Disaster, Error, Warning and Informative
Note that, although the log level is specified as a single keyword, messages are logged
according to the following rule: if level x is specified, then all messages whose severity is
greater than or equal to the severity of class x will be logged. The order of severity is as fol-
lows: Disaster (the most severe), Error, Warning, Informative (the least severe).
-s fsize Set the size of the two log files used to store logged messages when write-to-disk is enabled.
The maximum fsize is 1 gigabyte; the minimum fsize is 8 kilobytes.
When write-to-disk is started, the default log file size is taken from the file
/etc/nettlgen.conf
. The -s option allows you to modify the size of the log file
without stopping write-to-disk operations.
Note that, when setting the file size, you can specify a numeric value followed by the char-
acter
M’or’K’, which indicates that fsize is being defined in units of megabytes or kilobytes,
respectively. This suffix character is case-insensitive.
-p filename Take a picture (snapshot) of the current contents in memory of the kernel logging buffer.
This option causes all messages residing in the log queue to be dumped to filename and
removed from the queue.
Note that taking a picture (snapshot) and write-to-disk are mutually exclusive operations,
because there is no reason to take a picture of Kernel Logging messages if write-to-disk
component already writes them to disk.
If the
-w on option is specified in conjunction with the -p option, write-to-disk logging
will be started immediately after the picture is taken.
-q qsize Set the size of the Kernel Logging queue. The maximum qsize is 10000 messages; the
minimum qsize is 100 messages. Note that qsize indicates the number of messages the
queue can hold in memory, not the amount of memory the messages themselves would
occupy. At startup, this value is taken from the file /etc/nettlgen.conf.
-i Report information about the status of the Kernel Logging facility.
Information returned by the -i option includes:
kernel logging facility is on or off.
write-to-disk logging is on or off.
picture (snapshot) tool is on or off.
current size of the Kernel Logging queue.
number of messages currently held in the queue.
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 1M395