nettlgen.co.4 (2010 09)

n
nettlgen.conf(4) nettlgen.conf(4)
Name of the shared library file containing
the subformatter functions 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 subsys-
tem.
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 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.
The logging level can also be changed at run time using
nettl -log command for subsystems serviced
by NetTL 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 a typical subsystem record. These records should not be changed by the
user, but are set by the subsystems using nettlconf during product installation.
#
# TEST NetTL SUBSYSTEMS
#
SS:96:TEST_ID_1:8:u:NULL:netfmt:subsys_GENERIC_FORMAT: \
ss_96_go:FORMATTER
SS:97:TEST_ID_2:8:u:NULL:netfmt:subsys_GENERIC_FORMAT: \
ss_97_go:FORMATTER
Note: The continuation marks in this example (\ at end-of-line) and the following one are placed for
readability purposes only. nettl, and netfmt do not understand continuation mark.
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3