HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
swagentd(1M) swagentd(1M)
Options
The swagentd command supports the following options to control its behavior. (These options do not
apply to swagent, which you cannot start from the command line.)
-k The kill option stops the currently running daemon. Stopping the daemon will not
stop any agent processes currently performing management tasks (such as installing
or removing software), but will cause any subsequent management requests to this
host to be refused. This option is equivalent to sending a SIGTERM to the daemon
that is running.
-n The no fork option runs the daemon as a synchronous process rather than the default
behavior of forking to run it asynchronously. This is intended for running the daemon
from other utilities that schedule processes, such as
init.
-r The restart option stops the currently running daemon and restarts a new daemon.
Because the swagentd daemon processes options only at startup, you must restart
the daemon after you have modified any daemon options. Otherwise, the modified
options have no effect.
-x option=value
Set the option to value and override the default value (or a value in an option_file
specified with the
-X option). Multiple -x options can be specified.
-X option_file Read the session options and behaviors from options_file.
EXTERNAL INFLUENCES
Default Options
In addition to the standard options, you can change SD behaviors and policy options by editing the system-
wide default values found in the /var/adm/sw/defaults
file. (Note that the user-specific default
values in
$HOME/.swdefaults
do not apply to the agent or daemon.)
To specify values in the defaults file, you must use the following:
[command_name.]option=value
The optional command_name prefix denotes one of the SD commands. Using the prefix limits the value
change to that command. If you leave the prefix off, the change applies to all commands that use the
option.
You can also override swagentd default values from the command line with the -x
or -X options:
command
-x option=value
command -X option_file
NOTE: the only way to change default values for the agent is to modify the system-wide defaults file. You
cannot change agent defaults from the command line.
The following section lists all of the keywords supported by the swagentd command. If a default value
exists, it is listed after the =.
Daemon Options
These options apply only to the daemon, swagentd. After changing daemon options, you must restart the
daemon for these options to take effect (see the -r command-line option above).
agent=/usr/lbin/swagent
The location of the agent program invoked by the daemon.
logfile=/var/adm/sw/swagentd.log
This is the default log file for the swagentd daemon.
max_agents=-1
The maximum number of agents that are permitted to run simultaneously. The value of -1
means that there is no limit.
minimum_job_polling_interval=1
Defines in minutes how often the daemon wakes up to scan the job queue to determine if
any scheduled jobs must be started. When set to 0, no scheduled jobs will be initiated.
rpc_binding_info=ncacn_ip_tcp:[2121] ncadg_ip_udp:[2121]
Defines the protocol sequence(s) and endpoint(s) on which the daemon listens and which the
420 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update