HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
swagentd(1M) swagentd(1M)
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 initializedand 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 initializedand 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 (e.g. /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 (e.g. / or an alternate root directory).
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
source machine and when the software is pulled. Refer to the swagent.source_depot_audit
option for more information.
When operating on software depots, the swagent logs messages to the file swagent.log beneath the
depot directory (e.g.
/var/spool/sw). When accessing a read-only software depot (e.g. as a source),
the
swagent logs messages to the file /tmp/swagent.log
.
EXAMPLES
To start the daemon:
/usr/sbin/swagentd
To restart the daemon:
/usr/sbin/swagentd -r
To stop the daemon:
/usr/sbin/swagentd -k
Section 1M−−838 − 5 − HP-UX Release 11i: December 2000
___
___