HP-UX 11i Version 1.5 Kernel Logging
Kernel Logging
Using Kernel Logging
Chapter 110
Using Kernel Logging
Kernel Logging contributes to the high-availability of your system by giving system
administrators and other troubleshooters the ability to collect the information necessary to
diagnose problems in the HP-UX kernel while the system is still running. The cause of a
system problem can often be tracked down without having to try to reproduce the problem or
reboot the system. This is possible because, working in the background, while the system is
running, KL logs messages detailing certain events that have taken place. The contents of the
log are available to you at any time.
These three commands enable you to use and administer Kernel Logging:
kl The kl command configures, and monitors the status of, the Kernel Logging
infrastructure itself.
netfmt The netfmt command formats the KL log files (which are binary) and
allows you to get a human-readable report.
nettlconf The nettlconf command configures the Kernel Logging subsystem
database (allows you to control what gets logged).
Using kl to Enable, Disable, and Monitor Kernel Logging
The kl command controls the Kernel Logging infrastructure. It allows you to start and stop
logging and determine its current status. kl can be used to specify the levels of events to be
logged and the kernel subsystems that will write messages to memory or disk. kl also can also
be used to manage the contents of the logfile in memory and on disk.
Enabling KL on a Running System
Step 1. Enable the KL infrastructure by executing the following command:
#kl -e
Note that, if the KL infrastructure is already enabled, reissuing this command does
nothing and an error message (which may be disregarded) is issued.
Disabling KL on a Running System
Step 1. Disable the KL infrastructure by executing the following command:
#kl -d
Obtaining Configuration and Status Information About KL