HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)
n
nettlgen.conf(4) nettlgen.conf(4)
Basename of the message catalog to
use when formatting data for this sub-
system.
7 Subformatter Message Catalog
C function in the subformatter library
to call when formatting data for this
subsystem.
8 Subformatter Function
C function in the subformatter library
to call to get filter options for this sub-
system.
9 Subformatter Options
A text string to be used in the header
banner line in the formatted output.
10 Group Name
The recommended setting for the default logging level is set by the products’ configuration scripts. The
available classes are Disaster (8), Error (4), Warning (2), and Informative (1). Classes can be combined by
adding the numbers; thus Disaster and Error together become 12. It can be changed by the user if another
level of logging is desired on initialization.
NOTE: for KL subsystems, logging is enabled for all classes
with greater severity than the logclass value in the
SS line.
The logging level can also be changed at run time using nettl -log command for subsystems serviced
by NetTL facility and using kl -l command for subsystems serviced by KL facility.
If the subformatter library file name does not contain an absolute path, it is assumed to be under
/usr/lib. The subformatter library must be a shared library.
EXTERNAL INFLUENCES
Message catalogs are found in the path determined by the environment variable NLSPATH. Default mes-
sage catalogs are found in /usr/lib/nls/%L/%N.cat
where the contents of the LANG environment
variable is substituted for the
%L field, and the name specified in this parameter is substituted for the
%N
field.
EXAMPLES
The following example shows the default network logging information. Console logging is enabled; logging
uses 8 Kbytes to hold log messages; the log files are limited to 1000 Kbytes total (500 Kbytes per file); the
log files are /var/adm/nettl.LOG000
and /var/adm/nettl.LOG001; and the console logging
filter file is
/var/adm/conslog.opts
. Most recent data is always in the .LOG000 file.
#
# LOG INFORMATION
#
LOG:1:8:1000:/var/adm/nettl:/var/adm/conslog.opts
The following example turns off console logging, and limits the size of the log file space to 100 Kbytes.
Other values are the same as the default.
#
# LOG INFORMATION
#
LOG:0:8:100:/var/adm/nettl:/var/adm/conslog.opts
The following example shows the default kernel logging information. Kernel logging queue can keep 1000
messages; the log file is limited to 1M bytes total (512 Kbytes for each file); the kernel log files are
/var/adm/kl.KLOG0 and /var/adm/kl.KLOG1
; and the write to disk flag is set to 0. Most recent
data is always in the
.KLOG0 file.
#
# KL INFORMATION
#
KL:1000:1000:1M:/var/adm/kl:0
The following example turns on write to disk option when KL facility is started, decreases the size of the
kernel logging queue to 500 messages and increases the size of the log file space to 5M bytes. Other values
HP-UX 11i Version 1: September 2005 − 4 − Hewlett-Packard Company Section 4−−183