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

k
kl(1M) kl(1M)
4. Request a picture (snapshot) of the collected log messages.
kl -p kl_snap.kl
5. Turn on default write-to-disk logging.
kl -w on
6. Change the maximum size of the current log file to 512KB.
kl -s 512K
7. Turn off write-to-disk logging.
kl -w off
8. Disable the Kernel Logging facility.
kl -d
9. Enable on the Kernel Logging facility with the following parameters: queue size is 1000, write-to-disk
component is on, maximum file size is 4 megabytes, and log level for the KL_PM subsystem is Warn-
ing.
kl -e -q 1000 -w on -s 4M -l w KL_PM
Note that -l w KL_PM changes the initial level of the KL_PM subsystem only. This means that the
initial levels of the rest of the subsystems specified in the /etc/nettlgen.conf
file remain
unchanged.
10. Take a picture (snapshot) and start write-to-disk logging with a maximum file size of 128K.
kl -p -w on 128K
AUTHOR
kl was developed by HP in partnership with NEC.
FILES
/dev/kernlog Kernel log pseudo-device file.
/etc/nettlgen.conf
NetTL and KL subsystem configuration file.
/var/adm/kl.KLOG0
Default log files as specified in /etc/nettlgen.conf
/var/adm/kl.KLOG1
SEE ALSO
netfmt(1M), nettl(1M), nettlconf(1M), nettlgen.conf(4).
HP-UX 11i Version 1: September 2005 4 Hewlett-Packard Company Section 1M397