HP-UX 11i Version 1.5 Kernel Logging
Kernel Logging
Using Kernel Logging
Chapter 1 13
This causes all messages in memory to be dumped to
filename
and removed from
memory.
Obtaining Human-readable KL Reports
The KL logfile is a binary file. Before you can display or print logfile data in human-readable
form, it must be formatted by the netfmt command. The formatted data is written to
standard output by default, or to
filename
, if the -f option is specified.
Step 1. Obtain human-readable output of the collected KL messages by executing the
following command:
# netfmt -k -v -f
filename
The following is an example of the output of this command:
# netfmt -k -v -f kl.KLOG0
Time CPU SS PID TID CL ID
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@#%
06/21/2000 19:18:53.969947 0 KL_MC -1 -1 E /ux/core/kern/em/svc/cmc.c: 441
0: 00 00 00 01 00 00 00 00 e0 00 00 00 00 17 a4 b8 ................
16: 00 00 00 00 00 00 ff f6 83 55 ac e3 c8 97 db 10 .........U......
32: 00 00 00 00 00 00 ff f6 00 00 00 00 00 00 00 1f ................
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@#%
06/21/2000 19:19:02.553831 0 KL_MC -1 -1 E /ux/core/kern/em/svc/cmc.c: 441
0: 00 00 00 01 00 00 00 00 e0 00 00 00 00 17 a4 b8 ................
16: 00 00 00 00 00 00 ff f6 83 55 ac e3 c8 97 db 10 .........U......
32: 00 00 00 00 00 00 ff f6 00 00 00 00 00 00 00 1f ................
========================== Kernel Log file Summary ===========================
Node: hydra
HP-UX Version: B.11.20 A Machine Type: ia64
Total number of messages: 2
Messages dropped: 0 Data dropped(bytes): 0
First Message Last Message
Time: 19:18:53.969947 Time: 19:19:02.553831
Date: 06/21/00 Date: 06/21/00
Message distribution:
Disaster: 0 Error: 2
Warning: 0 Informative: 0
~~~~~~~~~~~~~Message distribution by Subsystem~~~~~~~~~~~~~
Subsystem Name: KL_MC Group Name: Kernel Logging
Disaster: 0 Error: 2
Warning: 0 Informative: 0
Using nettlconf to Reconfigure the Default Level of Message Logging
for a Kernel Subsystem
The nettlconf command is used primarily by developers to configure Kernel Logging for