swagentd.1m (2010 09)
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 instal-
ling 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 dae-
mon 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.
lookupcache_timeout_minutes=10
Controls the time in minutes to cache and re-use the results of hostname or IP address
resolution lookups. A value of 0 disables the facility to cache and re-use lookup results.
The maximum value allowed is 10080 minutes, which is one week.
A value of:
0 disables the lookup caching mechanism.
10080
is the maximum value allowed.
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010