setoncenv.1m (2010 09)
s
setoncenv(1M) setoncenv(1M)
NAME
setoncenv - NFS environment configuration command
SYNOPSIS
/usr/sbin/setoncenv
[-a[v]] variable value
/usr/sbin/setoncenv -l
[v][subsystem |variable ]
/usr/sbin/setoncenv -r
[v] variable [value ]
/usr/sbin/setoncenv -S
[v][subsystem ]
DESCRIPTION
setoncenv initializes, displays, and removes the value of NFS configuration variables, found either in
/etc/rc.config.d/nfsconf
,
/etc/rc.config.d/namesvrs
, /etc/default/autofs
,
/etc/default/keyserv
, /etc/default/nfs
, /etc/default/nfslogd
,or
/etc/pcnfsd.conf
. The value can be an integer or a string and should be consistent with the vari-
able being set. There is limited validation of the value parameter. Quotes should be avoided unless the
value can have white space; then quotes should be used. The
setoncenv command can also be used to
display the NFS kernel tunable variables.
Options
setoncenv recognizes the following options:
-a Add a supported configuration variable, or change the value of an existing configuration
variable in the configuration file. The -a option cannot be used to set a kernel tunable
variable. You must use kctune to manage kernel tunable variables.
-av Provide verbose output for the -a option.
-l Display the values of all configuration variables and kernel tunable variables supported
by setoncenv. Optionally you can specify either a subsystem or an individual variable.
For subsystem names, see the Subsystem Names section of this manpage. For variable
names, see the Variable Names sections in this manpage for each subsystem.
-lv Provide verbose output for the -l option.
-r Remove or comment out a configuration variable in a configuration file. The
setoncenv
command will not remove or comment out variables from
/etc/rc.config.d/nfsconf
or /etc/rc.config.d/namesvrs; it also cannot
be used to remove kernel tunable variables. The value parameter is only used when
removing an entry for a configuration variable that supports multiple entries in a
configuration file (for example,
AUTOMOUNTD_ENV
).
-rv Provide verbose output for the -r option.
-S Display NFS kctune variables that do not have their default value. The subsystem
parameter displays only the kctune variables of the named subsystem. For subsystem
names, see the Subsystem Names section of this manpage.
-Sv Provide verbose output for the -S option.
NOTE: Using a command or editor other than
setoncenv to modify the supported configuration files
can cause problems if used simultaneously. The setoncenv command will attempt to correct some
issues, such as duplicate entries where duplicate entries are not allowed, but there is no guarantee that
setoncenv can recover a configuration file once the file has been edited by another process. In the
event of duplicate entries in a configuration file, the following precedence is followed:
• For
/etc/rc.config.d/nfsconf, /etc/rc.config.d/namesvrs
, and
/etc/pcnfsd.conf, the last entry is the value used.
• For
/etc/default/nfs, /etc/default/nfslogd, /etc/default/keyserv, and
/etc/default/autofs, the first entry is the value used.
Subsystem Names
The
setoncenv command recognizes the following subsystem names:
autofs Display all variables associated with the AutoFS subsystem.
key Display all variables associated with the KEY, keyserv subsystem.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1