HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
s
swjob(1M) swjob(1M)
/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 (e.g., 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 logging.
TZ Determines the time zone for use when displaying dates and times.
Signals
The swjob command catches the signals SIGQUIT and SIGINT. If these signals are received,
swjob
prints a message, sends a Remote Procedure Call (RPC) to the daemons to wrap up, and then exits.
Each agent will complete the list task before it wraps up.
OPERATION
Different views of the job information are available. The types of listings that can be selected are given
below.
• Default Listing
• Target Listing
• Logfile Listing
Default Listing
If swjob is invoked with no options or operands, it lists all jobs that are on the local host. This listing
contains one line for each job. The line includes the job tag attribute and all other attributes selected via
the one_liner option.
Listing jobs on a remote controller is not supported. If a jobid is given, information for only that job is
displayed.
Status Listing
If a -R or @ target_specification is given, the targets for that job and their status are displayed. By default
the status information includes Type, State, Progress and Results.
Logfile Listing
One of the attributes "log" encompasses a variety of logfile types. The type of logfile returned when the
-a
log
attribute is given depends on the operands given. The types of logfiles:
No target_selections Show the controller logfile (default).
@ target Show the agent logfile.
RETURN VALUES
The swjob command returns:
0 The job information was successfully listed or the job was successfully removed.
1 The list /remove operation failed for all jobids.
2 The list /remove operation failed for some jobids.
DIAGNOSTICS
The swjob command writes to stdout, stderr, and to the agent logfile.
Standard Output
All listings are printed to stdout.
Standard Error
The swjob command writes messages for all WARNING and ERROR conditions to stderr.
HP-UX 11i Version 1: September 2005 − 5 − Hewlett-Packard Company Section 1M−−943