nfslog.conf.4 (2010 09)
n
nfslog.conf(4) nfslog.conf(4)
EXAMPLES
Example 1: Using the global Tag
The global tag may be modified so that all exported file systems that enabled logging use a common set
of parameters that conform to the specific needs of the user. These values are used until a specific tag
identifier overrides them.
global defaultdir=/var/nfs log=logs/nfslog fhtable=tables/fhtable \
buffer=buffers/nfslog_workbuffer logformat=basic
Example 2: Overriding the Global defaultdir and logformat
Because log files can become very large, it may be desirable to store the log and work files in separate file
systems. This can be easily accomplished by simply specifying a different
defaultdir for every file sys-
tem exported by means of a unique tag:
engineering defaultdir=/engineering/logging logformat=extended
accounting defaultdir=/accounting/logging
marketing defaultdir=/marketing/logging
File systems shared with the engineering identifier will have their log and work files located in
/engineering/logging
. For instance, the log file will be located at
/engineering/logging/logs/nfslog
. Note that the engineering log file will be stored in the
extended format, while the rest of the log files will remain in the basic format.
Any of the parameters can be updated in a tag identifier, which overrides the global settings.
SEE ALSO
nfslogd(1M), share_nfs(1M).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010