HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
s
swagentd(1M) swagentd(1M)
Note: The language in which the SD agent and daemon log messages are displayed is set
by the system configuration variable script,
/etc/rc.config.d/LANG
. For exam-
ple,
/etc/rc.config.d/LANG
, must be set to
LANG=ja_JP.SJIS
or
LANG=ja_JP.eucJP
to make the agent and daemon log messages display in
Japanese.
LC_ALL Determines the locale to be used to override any values for locale categories specified by
the settings of
LANG or any environment variables beginning with
LC_.
LC_CTYPE Determines the interpretation of sequences of bytes of text data as characters (for exam-
ple, single versus multibyte characters in values for vendor-defined attributes).
LC_MESSAGES
Determines the language in which messages should be written.
LC_TIME Determines the format of dates (create_date and mod_date) when displayed by
swlist.
Used by all utilities when displaying dates and times in
stdout, stderr, and log-
ging
.
TZ Determines the time zone for use when displaying dates and times.
Signals
The daemon ignores SIGHUP, SIGINT and SIGQUIT. It immediately exits gracefully after receiving
SIGTERM and SIGUSR2. After receiving SIGUSR1, it waits for completion of a copy or remove from a
depot session before exiting, so that it can register or unregister depots. Requests to start new sessions are
refused during this wait.
The agent ignores SIGHUP, SIGINT, and SIGQUIT. It immediately exits gracefully after receiving
SIGTERM, SIGUSR1, or SIGUSR2. Killing the agent may leave corrupt software on the system, and thus
should only be done if absolutely necessary. Note that when an SD command is killed, the agent does not
terminate until completing the task in progress.
Locking
The swagentd ensures that only one copy of itself is running on the system.
Each copy of swagent that is invoked uses appropriate access control for the operation it is performing
and the object it is operating on.
RETURN VALUES
When the -n option is not specified, the swagentd returns:
0 When the daemon is successfully initialized and is now running in the background.
non-zero When initialization failed and the daemon terminated.
When the -n option is specified, the swagentd returns:
0 When the daemon successfully initialized and then successfully shutdown.
non-zero When initialization failed or the daemon unsuccessfully terminated.
DIAGNOSTICS
The swagentd and swagent commands log events to their specific logfiles.
The swagent (target) log files cannot be relocated. They always exist relative to the root or depot target
path (for example, /var/adm/sw/swagent.log for the root / and
/var/spool/sw/swagent.log for the depot /var/spool/sw
).
You can view the target log files using the
swjob or sd command.
Daemon Log
The daemon logs all events to /var/adm/sw/swagentd.log. (The user can specify a different
logfile by modifying the
logfile option.)
Agent Log
When operating on (alternate) root file systems, the swagent logs messages to the file
var/adm/sw/swagent.log beneath the root directory (for example, / or an alternate root direc-
tory).
Source Depot Audit Log
If both source and target machine are updated to HP-UX version 10.30 or later, the system adminis-
trator at the source depot machine can track which user pulls which software from a depot on the
HP-UX 11i Version 2: December 2007 Update − 5 − Hewlett-Packard Company 423