HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
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]
DESCRIPTION
setoncenv initializes, displays, and removes the value of NFS configuration variables, found either in
/etc/rc.config.d/nfsconf
,or
/etc/rc.config.d/namesvrs
. The value can be an integer
or a string and should be consistent with the variable 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.
-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.
-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,except
LOCKD_PORT , STATD_PORT, and MOUNTD_PORT configuration variables from
/etc/rc.config.d/nfsconf
. It also cannot be used to remove kernel tunable vari-
ables.
-v Provide verbose output.
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
seton-
cenv
can recover a configuration file once the file has been edited by another process. In the event of
duplicate entries in the /etc/rc.config.d/nfsconf
and /etc/rc.config.d/namesvrs
configuration files, the last entry is the value used.
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 (see keyserv(1M)) subsystem.
klm Display all variables associated with the Kernel Lock Manager subsystem.
krpc Display all variables associated with the kernel RPC subsystem.
nfs Display all variables associated with the NFS subsystem.
nis Display all variables associated with the NIS subsystem.
nisplus
Display all variables associated with the NISPLUS subsystem.
The setoncenv command recognizes the following configuration variable names for the AutoFS subsys-
tem:
AUTO_MASTER [path]
The location of the default auto_master file.
AUTOFS [0 | 1]
Used to enable or disable the AutoFS service during system startup. Allowed values are 0
to disable the service or 1 to enable the service.
AUTOMOUNT_OPTIONS [option_string]
The run time arguments for the automount command used by
338 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: December 2007 Update