| United States-English |
|
|
|
![]() |
Kernel Logging in HP-UX 11i Version 1.5 > Chapter 1 Kernel LoggingUsing 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:
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. Procedure 1-5 Enabling KL on a Running System
Procedure 1-6 Disabling KL on a Running System
Procedure 1-7 Obtaining Configuration and Status Information About KL You can obtain information, in the form of a report, about the status of the KL infrastructure. A typical report looks similar to this: # kl -i
Procedure 1-8 Using kl to Temporarily Reconfigure Kernel Logging The file /etc/nettlgen.conf contains the default values for
The only way these defaults can be permanently changed for your system is with the nettlconf command (see “Using nettlconf to Reconfigure the Default Level of Message Logging for a Kernel Subsystem”). However, you can temporarily set new values for these aspects of KL, as described in this procedure.
Procedure 1-9 Taking a Picture of the KL Logfile Taking an isolated picture (a snapshot) of what's in memory and writing it out to disk is useful when you don't want to use system resources by having KL write to disk full-time.
Procedure 1-10 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.
The nettlconf command is used primarily by developers to configure Kernel Logging for their product or kernel subsystem during installation. However, a system administrator or other users with appropriate privileges can use it to reconfigure the default level of messages that are logged for a given subsystem. Refer to the nettlconf(1M) manpage for complete information on using this command.
Many of the system administrator's tasks discussed in the previous sections can be accomplished with SAM (System Administration Manager), a tool that provides an easy-to-use graphical interface for system setup and other administrative tasks. If you have appropriate privileges, or are logged in as root, you can access SAM by entering the command /usr/sbin/sam Once SAM is up and running, the KL administrative interface can be reached by the following path: select Kernel Configuration -> Configurable Parameters -> Actions -> Kernel Logging. SAM has online help to assist you. You can also refer to the chapter "Using System Administration Manager" in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators" for complete information on its use. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||