HP-UX Reference (11i v2 04/09) - 4 File Formats (vol 8)
n
nettlgen.conf(4) nettlgen.conf(4)
range, i.e. subsystems supported
by KL facility, should have Sub-
system Type to be k.
Name of the shared library file
containing the subformatter func-
tions listed below.
6 Subformatter Shared Library
Basename of the message catalog
to use when formatting data for
this subsystem.
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 subsystem.
9 Subformatter Options
A text string to be used in the
header banner line in the format-
ted 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; log-
ging 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 log-
ging 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
Section 4−−212 Hewlett-Packard Company − 4 − HP-UX 11i Version 2: September 2004