WA AE Admin ENU
WA AE Admin ENU
Administration Guide
Release 11.3.6
This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to
as the Documentation) is for your informational purposes only and is subject to change or withdrawal by CA at any time. This
Documentation is proprietary information of CA and may not be copied, transferred, reproduced, disclosed, modified or
duplicated, in whole or in part, without the prior written consent of CA.
If you are a licensed user of the software product(s) addressed in the Documentation, you may print or otherwise make
available a reasonable number of copies of the Documentation for internal use by you and your employees in connection with
that software, provided that all CA copyright notices and legends are affixed to each reproduced copy.
The right to print or otherwise make available copies of the Documentation is limited to the period during which the applicable
license for such software remains in full force and effect. Should the license terminate for any reason, it is your responsibility to
certify in writing to CA that all copies and partial copies of the Documentation have been returned to CA or destroyed.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION AS IS WITHOUT WARRANTY OF ANY
KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE,
DIRECT OR INDIRECT, FROM THE USE OF THIS DOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, LOST
INVESTMENT, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF CA IS EXPRESSLY ADVISED IN ADVANCE OF THE
POSSIBILITY OF SUCH LOSS OR DAMAGE.
The use of any software product referenced in the Documentation is governed by the applicable license agreement and such
license agreement is not modified in any way by the terms of this notice.
The manufacturer of this Documentation is CA.
Provided with Restricted Rights. Use, duplication or disclosure by the United States Government is subject to the restrictions
set forth in FAR Sections 12.212, 52.227-14, and 52.227-19(c)(1) - (2) and DFARS Section 252.227-7014(b)(3), as applicable, or
their successors.
Copyright 2013 CA. All rights reserved. All trademarks, trade names, service marks, and logos referenced herein belong to
their respective companies.
CA Technologies Product References
This document references the following CA Technologies products:
CA Automation Suite for Data Centers (formerly named CA Spectrum Automation
Manager)
CA ControlMinder (formerly named CA eTrust Access Control)
CA Embedded Entitlements Manager (CA EEM)
CA IT Client Manager
CA Job Management Option
CA Jobtrac Job Management (CA Jobtrac)
CA Network and Systems Management (CA NSM)
CA Process Automation
CA Scheduler Job Management (CA Scheduler)
CA Service Desk
CA Systems Performance for Infrastructure Managers (formerly named CA
SystemEDGE)
CA Universal Job Management Agent (CA UJMA)
CA Workload Automation AE (formerly named Unicenter AutoSys Job
Management (Unicenter AutoSys JM))
CA Workload Automation AE Connect Option
CA Workload Automation Agent for Application Services (CA WA Agent for
Application Services)
CA Workload Automation Agent for Databases (CA WA Agent for Databases)
CA Workload Automation Agent for i5/OS (CA WA Agent for i5/OS)
CA Workload Automation Agent for Linux (CA WA Agent for Linux)
CA Workload Automation Agent for Micro Focus (CA WA Agent for Micro Focus)
CA Workload Automation Agent for Oracle E-Business Suite (CA WA Agent for
Oracle E-Business Suite)
CA Workload Automation Agent for PeopleSoft (CA WA Agent for PeopleSoft)
CA Workload Automation Agent for Remote Execution (CA WA Agent for Remote
Execution)
CA Workload Automation Agent for SAP (CA WA Agent for SAP)
CA Workload Automation Agent for UNIX (CA WA Agent for UNIX)
CA Workload Automation Agent for Web Services (CA WA Agent for Web Services)
CA Workload Automation Agent for Windows (CA WA Agent for Windows)
CA Workload Automation Agent for z/OS (CA WA Agent for z/OS)
CA Workload Automation CA 7 Edition (formerly named CA Workload Automation
SE)
CA Workload Automation ESP Edition (formerly named CA Workload Automation
EE)
CA Workload Control Center (CA WCC)
Contact CA Technologies
Contact CA Support
For your convenience, CA Technologies provides one site where you can access the
information that you need for your Home Office, Small Business, and Enterprise CA
Technologies products. At http://ca.com/support, you can access the following
resources:
Online and telephone contact information for technical assistance and customer
services
Information about user communities and forums
Product and documentation downloads
CA Support policies and guidelines
Other helpful resources appropriate for your product
Contents 5
Alarm Notifications .................................................................................................................................................... 49
Set Alarm Notifications on UNIX ......................................................................................................................... 50
Configure CA Workload Automation AE to Send Email Notifications on UNIX .......................................................... 52
Send Email Notifications Using CA Workload Automation AE ............................................................................ 55
Configure CA Workload Automation AE to Send SNMP Traps on UNIX ..................................................................... 56
SNMP Traps ......................................................................................................................................................... 58
Disable IP Address Caching on UNIX .......................................................................................................................... 63
6 Administration Guide
Set Job Attribute Environment Variables ................................................................................................................. 107
Specify the Scheduler Role ....................................................................................................................................... 109
Specify the Primary Scheduler Failback Mode ......................................................................................................... 110
Activate the Cross-Platform Interface ...................................................................................................................... 111
Contents 7
Event Server Rollover Recovery ............................................................................................................................... 155
Database Storage Requirements .............................................................................................................................. 156
General Database Maintenance ............................................................................................................................... 156
Automate Database Maintenance on UNIX ...................................................................................................... 157
How the DBMaint.bat Batch File or DBMaint Script Runs ................................................................................ 158
Modify the DBMaint Script on UNIX ................................................................................................................. 159
Modify the DBMaint.bat File on Windows ........................................................................................................ 160
Configure the Event Server Time-Out Period on UNIX ............................................................................................. 161
High Availability Recovery ........................................................................................................................................ 162
Set the Number of Scheduler or Application Server Connection Attempts on UNIX........................................ 162
Configure the Scheduler Heartbeat Interval on UNIX ....................................................................................... 165
Recovery Scenarios .................................................................................................................................................. 166
Non-High Availability in Single Event Server Mode .......................................................................................... 167
Non-High Availability in Dual Event Server Mode ............................................................................................. 167
High Availability in Single Event Server Mode .................................................................................................. 168
High Availability in Dual Event Server Mode ..................................................................................................... 168
Rebuild Table Indexes for a CA Workload Automation AE Database ....................................................................... 171
reindexDB ScriptRebuild Table Indexes ......................................................................................................... 171
How to Tune the Sybase Server ............................................................................................................................... 172
Configure the Sybase Server ............................................................................................................................. 173
Tune the Sybase Server ..................................................................................................................................... 173
How to Tune the Oracle Database ........................................................................................................................... 175
Configure the Oracle Database ......................................................................................................................... 175
Tune the Oracle Database ................................................................................................................................. 176
8 Administration Guide
Start the Scheduler on UNIX .................................................................................................................................... 192
Start the Application Server on UNIX ....................................................................................................................... 192
Start the Agent on UNIX ........................................................................................................................................... 193
Start the Web Server on UNIX .................................................................................................................................. 193
Stop the Scheduler on UNIX ..................................................................................................................................... 194
Stop the Agent or Application Server on UNIX ......................................................................................................... 196
Stop the Web Server on UNIX .................................................................................................................................. 197
Restart the Web Server on UNIX .............................................................................................................................. 197
Pause the Scheduler or Application Server Service on UNIX ................................................................................... 197
Verify the Status of a Service on UNIX ..................................................................................................................... 199
Contents 9
Jobs Run Only From the Command Line ........................................................................................................... 238
Jobs To Legacy Agent Run Twice ....................................................................................................................... 239
Job Remains in STARTING or RUNNING State ................................................................................................... 241
Unable to Run Jobs Using Cross Platform Scheduling ....................................................................................... 242
Application Server Troubleshooting ......................................................................................................................... 243
Application Server Is Down ............................................................................................................................... 244
Application Server Is Down ............................................................................................................................... 245
Application Server Will Not Start ...................................................................................................................... 246
Application Server Will Not Start ...................................................................................................................... 247
Application Server Starts, Client on Remote Machine Times out ..................................................................... 249
Application Server Starts, Client on Remote Machine Times out ..................................................................... 251
Index 267
10 Administration Guide
Chapter 1: Introduction
This section contains the following topics:
Intended Audience (see page 11)
CA Workload Automation AE (see page 12)
Instance (see page 12)
CA Workload Automation AE Components (see page 13)
Communications (see page 24)
Data Encryption (see page 24)
Intended Audience
This document is for administrators who are responsible for installing, configuring,
setting up security, and maintaining the scheduler, event server, and agents.
To use this document, you must be familiar with the operating systems and with the
database server you use. This document assumes that you have already installed and
are running CA Workload Automation AE.
Notes:
The term Windows refers to any Microsoft Windows operating system supported by
CA Workload Automation AE unless otherwise noted. For information about which
specific Microsoft operating systems CA Workload Automation AE supports, see the
Release Notes.
The UNIX instructions in this document also apply to Linux systems unless otherwise
noted.
Most of the procedures in this document apply to UNIX. For information about how
to perform these tasks on Windows, see the Online Help.
For information about setting up security in CA Workload Automation AE, see the
CA Workload Automation Security Guide.
Chapter 1: Introduction 11
CA Workload Automation AE
CA Workload Automation AE
CA Workload Automation AE is an automated job control system for scheduling,
monitoring, and reporting.
A job is any single command, executable, script, or batch file. These jobs can reside on
any configured machine that is attached to a network. Corresponding job definitions
contain a variety of qualifying attributes for associated jobs, including the conditions
specifying when and where a job should run.
As with most control systems, there are many ways to correctly define and implement
jobs. It is likely that the way you use CA Workload Automation AE to address your
distributed computing needs will evolve over time. As you become more familiar with
the CA Workload Automation AE features and the characteristics of your jobs, you can
refine your use of CA Workload Automation AE.
Instance
A CA Workload Automation AE instance is a licensed version of CA Workload
Automation AE software running as a server with one or more clients or agents. Clients
and agents can run on a single computer or on multiple computers. An instance uses its
own scheduler, application server, and event server and operates independently of
other instances.
Multiple instances can run on the same computer, but they must have different instance
IDs. For example, you can have one instance for production and another for
development. Multiple instances can run on the same computer using a single copy of
the binaries, and can schedule jobs on the same computers without interfering or
affecting other instances.
12 Administration Guide
CA Workload Automation AE Components
The following illustration shows the components in a basic configuration, and displays
the communication paths between them:
Chapter 1: Introduction 13
CA Workload Automation AE Components
Event Server
The event server (database) stores all the objects that are used by CA Workload
Automation AE. The job, machine, and calendar object definitions comprise a subset of
the data contained in the event server as do job events. The application server manages
the creation, update, and deletion of the CA Workload Automation AE objects in the
event server. The scheduler polls the event server for job events and fetches the
corresponding object definitions that are referenced by the event when necessary.
Note: While CA Workload Automation AE uses the database solely as a SQL engine, it
does use Sybase Open Client C Library communications protocol, Oracle Common
Interface, or Microsoft SQL Server Multi-Protocol Net-Library to communicate with the
vendor database server installation. For more information, see the vendor
documentation.
You can configure a CA Workload Automation AE instance to run using two event
servers (databases), and this configuration is named dual event server mode. The dual
event server mode provides high availability by running two event servers that are
synchronized to maintain identical data, including object definitions and events. CA
Workload Automation AE reads from one event server and writes to both the event
servers simultaneously. If you lose one event server due to hardware, software, or
network problems, operations can continue on the second event server without losing
data or functionality. This feature is independent of any replication or redundancy
offered by the database.
For various reasons, database users often run multiple instances of servers that are
unaware of the other servers on the network. When implementing CA Workload
Automation AE, the database can run for CA Workload Automation AE only, or it can be
shared with other applications.
Note: For more information about how to install and configure dual event servers, see
the UNIX Implementation Guide or Windows Implementation Guide.
14 Administration Guide
CA Workload Automation AE Components
Application Server
The application server acts as the communication interface between the event server
and the client utilities. It receives requests from the client utilities, queries the event
server, and returns the responses to the client utilities.
Scheduler
The scheduler is the program, running either as a UNIX daemon process or a Windows
service, that runs CA Workload Automation AE. It processes all the events it reads from
the event server.
When you start the scheduler, it continually scans the database for events to process.
For example, when the scheduler finds a STARTJOB event, it verifies whether the event
satisfies the starting conditions for that job in the database. Based on this information,
the scheduler determines the actions to take and instructs the appropriate agent to
perform the actions. These actions may include starting or stopping jobs, checking for
resources, monitoring existing jobs, or initiating corrective procedures.
High Availability
To detect and recover from failure, you can configure CA Workload Automation AE with
a second scheduler, named the shadow scheduler. This shadow scheduler must run on a
separate computer, and it takes over if the primary scheduler fails. This configuration is
named high availability.
Note: Shadow and tie-breaker schedulers and dual event servers are independent
features. If you configure CA Workload Automation AE to run in high availability mode,
these components run together. For more information about shadow and tie-breaker
schedulers, installing dual event servers, and configuring high availability, see the UNIX
Implementation Guide or Windows Implementation Guide.
Chapter 1: Introduction 15
CA Workload Automation AE Components
Agent
The agent is the key integration component of CA Workload Automation AE that lets
you automate, monitor, and manage workload on different operating environments,
applications, and databases. You can extend the core functionality of the agent by
installing one or more agent plug-ins. For example, if you have a relational database
such as Oracle, you can install the Database Agent plug-in along with the agent to query
and monitor the database. Other agent plug-ins, such as Application Services, Oracle,
PeopleSoft, SAP, and Web Services, are available. You can perform all actions for the
agent plug-ins, such as starting and stopping them, on the agent.
Notes:
CA Workload Automation AE also works with agents that run on different operating
environments such as i5/OS. The agent plug-ins only work with the agent for
Windows and UNIX operating environments.
For more information about agents and agent plug-ins, see the CA Workload
Automation Agent for UNIX, Linux, or Windows Implementation Guide.
More Information:
16 Administration Guide
CA Workload Automation AE Components
The new agent provides additional job types, including monitoring and FTP jobs. The
agent is automatically installed on the computer where CA Workload Automation AE is
installed. You can also install the agent on remote computers to run jobs on those
computers.
Client
A client is any executable that interfaces with the application server. This includes CA
Workload Automation AE Command Line Interface (CLI) applications such as Job
Information Language (JIL) and autorep. It also includes the CA WCC services, which are
clients of the application server and service the CA WCC GUI components, and any
user-defined binaries that link to the CA Workload Automation AE SDK.
Client applications work by calling Application Programming Interfaces (APIs) that are
available in the application server. A client can run anywhere in the enterprise provided
it can reach the computer where the application server is running. It does not require
the installation of a database vendor client. Clients are the means by which users
control the scheduling environment by creating and monitoring the scheduling
resources.
Web Server
Apache Tomcat is the designated web server that is used to host web services. This web
server is installed and configured as part of the CA Workload Automation AE installation.
Apache Tomcat uses the CA Workload Automation AE configuration parameters for
database access and security. By default, web services use port 9443 to communicate
with the Apache Tomcat server. The Apache Tomcat server uses port 5250 to
communicate with CA EEM.
Interface Components
You can use the client utilities or CA WCC to define, monitor, and report on jobs.
Note: For more information about how to view or modify the configuration parameters
of a CA Workload Automation AE instance on Windows using CA Workload Automation
AE Administrator, see the Online Help.
Chapter 1: Introduction 17
CA Workload Automation AE Components
More Information:
On Windows:
del C:\tmp\*.*
2. The scheduler communicates with the agent on WorkStation_2. The agent receives
the instructions to run the job.
3. The agent performs resource checks and creates a process that actually runs the
specified command.
4. The agent communicates the job execution information (such as the process ID,
agent log file name, job output log file name, and so on) to the scheduler.
5. The scheduler converts the job execution information into a job event and updates
the event server with the event information.
6. The command completes and exits, and the agent captures the commands exit
code.
7. The agent communicates the job completion information (such as exit code, status,
and so on) to the scheduler.
8. The scheduler converts the job completion information into a job event and
updates the event server with the event information.
The scheduler and the event server must be running to make CA Workload Automation
AE fully operational.
18 Administration Guide
CA Workload Automation AE Components
This example illustrates the event server, scheduler, and agent running on different
computers. At a start date and time specified in the job definition, suppose you run the
command shown in the illustration on WorkStation_2 (WS2):
Notes:
The application server communicates with the agent only when client utilities like
chase and autoping are run or when jobs contain globs or blobs as input or output.
The scheduler and the event server typically run on the same computer.
Chapter 1: Introduction 19
CA Workload Automation AE Components
How the Event Server, Application Server, and Client Utilities Interact
The following steps explain the interactions between the event server, application
server, and client utilities:
1. The client utilities send requests to the application server.
2. The application server executes the request by contacting the event server. This
results in the information either being inserted, updated, retrieved, or removed
from the event server. The responses are returned to the client as the operation
executes or after the operation completes.
The following illustration shows how the event server, application server, and client
utilities interact.
Note: The application server communicates with the agent only when client utilities like
chase and autoping are run or when jobs contain globs or blobs as input or output.
Example: Interaction Between the Event Server, Application Server, and Client Utilities
Suppose that you issue the autorep command at an UNIX operating system prompt or
the Windows instance command prompt, the event server, application server, and the
client utilities interact with each other as follows:
1. The autorep client sends a request to the application server.
2. The application server queries the database, receives the data from the event
server, prepares one or more responses, and sends all the responses to the autorep
client.
3. The autorep client receives all the responses and displays the report.
20 Administration Guide
CA Workload Automation AE Components
How the Event Server, Web Server, and Web Service Consumer Interact
The following steps explain the interactions between the event server, web server, and
web service consumer:
1. The web service consumer sends requests to the web server.
2. The web server executes the request by contacting the event server. This results in
information being either inserted, updated, retrieved, or removed from the event
server. The responses are returned to the web service consumer as the operation
executes or after the operation completes.
The following illustration shows how the event server, web server, and web service
consumer interact:
Example: Interaction Between the Event Server, Web Server, and Web Service
Consumer
Suppose that your application program invokes the web service to get information on
jobs defined, the event server, web server, and the web service consumer interact with
each other as follows:
1. Your application program sends a request to the web server.
2. The web server queries the database, receives the data from the event server,
prepares the response, and sends it back to your application program.
3. Your application program receives the response and processes it.
How the Local Scheduler Interacts with Other Schedulers when Multiple
Instances of CA Workload Automation AE Run
A CA Workload Automation AE instance is one licensed version of CA Workload
Automation AE software running as a server and as one or more clients, on one or more
computers. An instance uses its own scheduler, one or more application servers, and
event server, and operates independently of other instances.
Different instances can run from the same executables and can have the same value for
$AUTOSYS. However, each instance must have different values for $AUTOUSER and
$AUTOSERV. Different instances can also be run on the same computer.
Chapter 1: Introduction 21
CA Workload Automation AE Components
Multiple CA Workload Automation AE instances are not connected, but they can
communicate with one another. This communication lets you schedule workload across
instances in your enterprise. You can define jobs that have dependencies on jobs
running on other instances (cross-instance job dependencies). A CA Workload
Automation AE job with these dependencies conditionally starts based on the status of
the job on the other instance. In this situation, the local instance scheduler acts as a
client and issues sendevent commands to the external instance. The other instance's
application server processes the sendevent request and stores the dependency request
or status update in its database. You can also manually send events from one instance
to another.
When the status of a job with cross-instance dependencies changes, the scheduler
sends a CHANGE_STATUS event to the remote instance event server while the job in the
local instance runs.
The cross-instance interface design now supports reporting status changes to the
remote instance for jobs with cross-instance dependencies when those changes result
from one of the following:
The scheduler changes the status of the job when unavailable machine load units,
resources or agents prevent a job from running.
The user changes the status of the job by issuing a sendevent command for one of
the following events: JOB_ON_HOLD, JOB_OFF_HOLD, JOB_ON_ICE, JOB_OFF_ICE,
JOB_ON_NOEXEC, JOB_OFF_NOEXEC
If the local instance scheduler does not report these status changes to the remote
instance scheduler, downstream jobs dependent on the remote jobs may not run when
they should, or may run when they should not.
The equivalent CHANGE_STATUS event represents the actual status change that occurs
in the local instance, and the event includes text specifying the actual status change. The
remote scheduler log records this information. The remote scheduler reports a
representative status and exit code for the dependent job based on the actual status
change that occurs in the local instance:
22 Administration Guide
CA Workload Automation AE Components
Notes:
The scheduler automatically sends a BYPASS event when you place a job in
ON_NOEXEC status and that job starts. In cases of cross-instance dependencies, the
local scheduler reports the translated status to the remote instance when it
bypasses the dependent job.
For more information about cross-instance dependencies, see the User Guide, UNIX
Implementation Guide, or the Windows Implementation Guide.
Chapter 1: Introduction 23
Communications
Communications
Network data between the CA Workload Automation AE Software Development Kit
(SDK) client and the application server is prepared using the proprietary CA Workload
Automation AE Request Response Protocol (RRP). The SDK clients include the following:
CA Workload Automation AE CLI utilities
CA WCC
The scheduler when transmitting external instance information to the application
server of another instance
Any product that links with the CA Workload Automation AE SDK libraries.
Network data between the scheduler and the agent, the application server and the
agent, the application server and the scheduler, or between the scheduler and the CA
Workload Automation EE manager is prepared using the proprietary Automation
Framework Message (AFM) protocol.
Both the RRP and AFM protocols are implemented using proprietary technology known
as the CA Workload Automation AE Network Messaging Library (libmsg) over SSA.
libmsg is a high-performance, multi-threaded library that manages delivery and
acknowledgement of data using SSA.
Data Encryption
CA Workload Automation AE supports the encryption of data and messages shared
between the command line utilities, agent, scheduler, and the application server. CA
Workload Automation AE uses the Advanced Encryption Standard (AES) algorithm to
encrypt and decrypt data. This algorithm requires an encryption key to encrypt data.
24 Administration Guide
Data Encryption
Notes:
For information about setting the encryption type and encryption key on CA
Workload Automation AE, see the UNIX Implementation Guide or the Windows
Implementation Guide.
For more information about setting up encryption on the agent, see the CA
Workload Automation Agent for UNIX, Linux, or Windows Implementation Guide.
For more information about setting instance-wide encryption, see the CA Workload
Automation Security Guide.
Chapter 1: Introduction 25
Chapter 2: Configuring CA Workload
Automation AE
This section contains the following topics:
Overview (see page 27)
The Configuration File (see page 28)
The auto.profile File on UNIX (see page 33)
The agentparm.txt File (see page 34)
The WAAE.txt File (see page 35)
Environment Variables (see page 35)
The CA Workload Automation AE Administrator (see page 48)
Alarm Notifications (see page 49)
Configure CA Workload Automation AE to Send Email Notifications on UNIX (see page
52)
Configure CA Workload Automation AE to Send SNMP Traps on UNIX (see page 56)
Disable IP Address Caching on UNIX (see page 63)
Overview
You can configure CA Workload Automation AE to control the run-time behavior of each
instance, including which database to connect to and how to react to error conditions.
You can also set up the Notification feature to communicate problems to users in your
enterprise.
On UNIX, you can configure CA Workload Automation AE by using the configuration file.
The parameters in the configuration file and the environment variables set in the
/etc/auto.profile file and the WAAE file control the run-time behavior of CA Workload
Automation AE.
Important! The scheduler and the application server read the settings in the
configuration file only on startup. Therefore, if you make a change that you want to
implement immediately, you must either restart the scheduler and application server or
pause and resume the scheduler and application server.
28 Administration Guide
The Configuration File
Notes:
Events are associated with a specific instance. They have a unique ID, named an
eoid, which is prefixed to the three-letter instance name. This naming convention
helps ensure the uniqueness and traceability of an event across multiple instances.
Before you can issue commands at the UNIX operating system prompt, the CA
Workload Automation AE environment must be sourced in the shell and your UNIX
user ID and password must be defined on CA Workload Automation AE. For more
information about sourcing the environment and defining user IDs, see the UNIX
Implementation Guide.
More information:
30 Administration Guide
The Configuration File
Notes:
The parameter values are set during the CA Workload Automation AE installation.
You can modify these values as required.
The following topics describe parameters that apply to the legacy agent and other
general parameters. All other parameters are described in procedures throughout
the guide. For more information about a parameter, see the related topic.
InetdSleepTime Parameter
The InetdSleepTime parameter in the configuration file defines the time interval (in
seconds) that the scheduler waits before contacting the UNIX computer's internet
service daemon (inetd) for consecutive job starts to the same agent computer. The
default value is .05 seconds.
Notes:
The InetdSleepTime parameter applies to Unicenter AutoSys JM 4.5.1 UNIX agents
only.
Setting the InetdSleepTime value too low for your hardware adversely affects
performance. You must also make sure your computer has a processor fast enough
to handle job starts at a shorter interval. Otherwise, frequent socket connection
failures occur, causing numerous job restarts.
InetdSleepTime=1
32 Administration Guide
The auto.profile File on UNIX
DateFormat Parameter
The DateFormat parameter in the configuration file specifies the date format for
entering and displaying dates.
DateFormat=date_format
date_format
Specifies the date format for entering and displaying dates.
Default: MM/DD/YYYY
Note: On Windows, you can select the equivalent value using the Date Format
drop-down list on the Instance - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For more information, see
the Online Help.
System environment variables are automatically set in the environment for a job. When
a job is submitted, the agent processes the following additional information to source
the environment, in the following order:
1. /etc/auto.profile
2. Environment variables defined using the envvars attribute in the job definition (if
specified)
3. The job profile defined using the profile attribute (if specified)
Note: For more information about the envvars and profile attributes, see the Reference
Guide. For more information about how job profiles work, see the User Guide.
install_directory/SystemAgent/agent_name
install_directory
Specifies the root directory where CA Workload Automation AE is installed.
agent_name
Specifies the name of the agent.
Notes:
If the agent was installed using a program that was not provided with CA Workload
Automation AE (for example, the installation program provided on the CA Workload
Automation Agent DVD), the path to the agentparm.txt may be different. In this
case, the agentparm.txt file is located in the root directory where the agent is
installed.
For information about the parameters in the agentparm.txt file and how to
configure them to work with the scheduling manager, see the CA Workload
Automation Agent for UNIX, Linux, or Windows Implementation Guide.
34 Administration Guide
The WAAE.txt File
Note: The WAAE.txt file applies to the CA Workload Automation Agent for UNIX, Linux,
or Windows.
Note: For more information about how to set up the environment variables for the
agent, see the CA Workload Automation Agent for UNIX, Linux, or Windows
Implementation Guide.
Environment Variables
You can define environment variables on CA Workload Automation AE to customize:
How the CA Workload Automation AE components generate and manage the
output log files
How the CA Workload Automation AE components communicate with each other
over the network
The behavior of the scheduler, application server, client utilities, or SDK
On UNIX, you can define the environment variables by issuing either the setenv or the
export command (depending on your UNIX operating system) at the operating system
prompt.
On Windows, you can define the environment variables using one of the following ways:
Using the System - CA Workload Automation AE Administrator window of the CA
Workload Automation AE Administrator. Use this method when you define
environment variables to customize the scheduler or application server behavior.
For more information about defining environment variables using the CA Workload
Automation AE Administrator, see the Online Help.
Issuing the set command at the instance command prompt. Use this method when
you define environment variables to configure the client utilities.
AUTOSYS_LOG
Specifies that the client utilities direct all output to the client_name.process_ID.out
log file in the $AUTOUSER/out (UNIX) or %AUTOUSER%\out (Windows) directory.
client_name
Specifes the name of the client.
process_ID
Specifies the process ID of the client process.
Notes:
If you set this variable, the client utilities direct all output to the
client_name.process_ID.out log file. To stop directing all trace output to the log
file, unset this variable.
Use this variable with the ISDBGACTIV variable to capture debug traces to
troubleshoot issues with the client utilities.
ISDBGACTIV
Identifies the debug level to use. The valid values are LIGHT, HEAVY, JOB, DUMP,
AFM, DBQUERY, EXTVJ, COMM, MS, GBE, OFF, and RESOURCEn.
Default: OFF
36 Administration Guide
Environment Variables
LOGROLLOVER
Identifies when the scheduler, application server, or aggregator log rolls over. The
log can roll over at midnight or when the log file size is equal to the specified size.
The valid values are OFF, SIZE(x), MIDNIGHT, and SIZE(x),MIDNIGHT.
Default: MIDNIGHT
Note: If you do not specify a value for the SIZE(x) parameter, it is set to 100 MB by
default. The scheduler, application server, or aggregator log rolls over when the log
file size reaches 100 MB.
More information:
Configure the Client Utilities to Generate Run-time Traces (see page 263)
Configure the Scheduler and Application Server to Generate Run-time Traces on UNIX
(see page 264)
Specify the Scheduler or Application Server Log Rollover on UNIX (see page 128)
ISDBGACTIV (see page 261)
CONNECTION_TIMEOUT
Specifies the time (in seconds) the CA Workload Automation AE component waits
to complete the initial connection with another CA Workload Automation AE
component. Increasing this value may delay recovery during a network failure.
Decreasing this value may result in connection failures.
Default: 20
Limits: 1 or higher.
Notes:
For communications between the application server and the scheduler, this
variable applies to the chk_auto_up request. For communications between the
application server and the agent, this variable applies to the agent autoping
and chase requests.
If you define the AGENT_RECV_TIMEOUT variable, this variable is ignored for
communications between the scheduler or application server and the agent.
MAX_BUFFER
Specifies the maximum number of bytes to allocate for buffered responses in the
application server to client communications. Increasing this value may place a
greater demand on the system memory. Decreasing this value may result in more
network activity.
Default: 65,536 (UNIX); 32,768 (Windows)
Limits: 1 or higher.
MSGSVC_LISTEN_BACKLOG
Specifies the maximum length of the queue of outstanding connections that are
associated with a socket listen operation. The underlying service provider
responsible for the socket sets the backlog to a maximum reasonable value for the
operating system. Increasing this value may silently reduce to a value imposed by
the operating system. Decreasing this value may result in a loss of socket
connections.
Limits: 1 or higher.
Note: For more information about the backlog parameter of the listen function, see
the appropriate operating system sockets documentation.
38 Administration Guide
Environment Variables
RECV_TIMEOUT
Specifies the time (in seconds) that the CA Workload Automation AE component
waits to complete a request-response exchange with another CA Workload
Automation AE component. The CA Workload Automation AE component doubles
the time that you specify in this variable to wait for each response to arrive. If no
network activity is detected during this time, the waiting component times out the
request. Increasing this value may delay the execution time of the component
during a network failure. Decreasing this value may result in more component time
outs.
Default: 30
Limits: 1 or higher.
Note: For communications between the application server and the scheduler, this
variable applies to the scheduler log retrieval and autoping requests. For
communications between the application server and the agent, this variable applies
to the agent job log retrieval and user authentication requests and to the requests
made on behalf of CA WCC.
40 Administration Guide
Environment Variables
AUTO_ALARM
Specifies the time (in seconds) that the scheduler waits to complete the initial
connection with the 4.5.1 legacy agent. Increasing this value may delay recovery
during a network failure. Decreasing this value may result in more connection
failures.
Default: Varies based on the following types of agent requests that the scheduler
makes:
autoping15
chase45
chk_auto_up180
clean_files30
job start30
CPU utilization (load balancing jobs)30
Limits: 1 or higher.
Note: If you define this variable, the USAGE_TIMEOUT variable is ignored.
AUTO_ALARM_READ
Specifies the time (in seconds) that the scheduler waits for a response from the
4.5.1 legacy agent. Increasing this value may delay the scheduler when the agent
becomes unresponsive. Decreasing this value may result in more time outs.
Default: Five times the number of seconds you specified in the AUTO_ALARM
variable. If you did not set a value for the AUTO_ALARM variable, the value varies
based on the following types of agent requests that the scheduler makes:
autoping75
chase225
chk_auto_up900
clean_files150
job start150
CPU utilization (load balancing jobs)150
Limits: 1 or higher.
BOX_NO_SUCCESS
Specifies whether the scheduler keeps the box in the RUNNING state if all the jobs
in the box enter the INACTIVE state. Valid values are 0 and 1.
Default: 0; the scheduler does not keep the box in the RUNNING state if all the jobs
in the box enter the INACTIVE state.
Note: If you do not define this variable, the scheduler evaluates the status of the
box to SUCCESS when all jobs in the box enter the INACTIVE state.
CHASE_SLEEP
Specifies the time (in seconds) that the scheduler pauses in between attempts to
resend the chase information to an agent following a communication failure.
Increasing this value may delay recovery during a network failure. Decreasing this
value may result in premature chase failures.
Default: 5
Limits: 1 or higher.
CONTINUE_JOB_COND_JOID_MISSING
Specifies that the scheduler continues to evaluate the starting conditions of other
downstream dependent jobs even when it fails to evaluate the starting conditions
of one of the downstream dependent jobs. Valid values are 0 and 1.
Default: 0; the scheduler interrupts the evaluation of other downstream dependent
jobs when it fails to evaluate the starting conditions of one of the downstream
dependent jobs.
Note: The scheduler raises an EVENT_HDLR_ERROR alarm after it completes the
evaluation of the downstream dependent jobs.
DB_CONNECTIONS
Defines the maximum number of database connections that the scheduler can
connect to. Increasing this value may increase the ability of the scheduler to
perform simultaneous database operations.
Default: 16
Limits: 1-128
EMSEC_EXIT_CRYPT
Specifies that the scheduler dynamically loads the
$CAIGLBL0000/sche/lib/libcacrexit (UNIX) or %CAIGLBL0000%\bin\cacrexit.dll
(Windows) library. This library contains routines to encrypt or decrypt user
passwords for cross-platform job submissions to and from the remote managers
using CAICCI. The valid values are ON and OFF.
Default: OFF; the scheduler does not dynamically load the library.
Note: If you set this variable to ON, ensure that you run the scheduler in an
environment where the CAIGLBL0000 variable is defined.
42 Administration Guide
Environment Variables
PE_AUTO_DISABLE
Specifies whether the scheduler disables the auto offline machine feature. The valid
values are 0 and 1.
Default: 0; the scheduler enables the auto offline machine feature.
Notes:
When the auto offline feature is enabled, the scheduler takes the following
actions:
Places all machines in the unqualified or missing state when it fails to
connect to the corresponding agents.
Places the machines in the offline state when it receives a message from
an agent that is shutting down.
Periodically tests the agents corresponding to the machines in the
unqualified and missing states to determine if it can automatically bring
the machine online when the agent becomes responsive.
When the auto offline feature is disabled, the scheduler takes the following
actions:
Maintains all machines in the online state; regardless of whether the
machines can connect to the agent or not.
Restarts jobs that are scheduled to agents with connection problems until
it exhausts the number of retries allotted to the job.
Generates an automatic MACH_OFFLINE event when it receives a message
from an agent that is shutting down. Although, the scheduler generates an
automatic MACH_OFFLINE event, it keeps the machine in online state.
Places jobs scheduled to machines that are manually placed offline in the
PEND_MACH state. You can manually send a MACH_OFFLINE event to
place a machine in the offline state. Jobs remain in the PEND_MACH state
until you manually send a MACH_ONLINE event to bring the machine back
online.
RESTRICT_FORCE_STARTJOB
Specifies that the scheduler restricts you from running multiple instances of a job
while the job is in the RUNNING state. The valid values are 0 and 1.
Default: 0; the scheduler restricts you from running multiple instances of a job
while the job is in the RUNNING state.
SCHED_SCALE
Defines the maximum limit of process threads that can be started dynamically. This
value does not represent the total number of process threads that are active.
Rather, it is a scale value that the scheduler uses to calculate the maximum limit of
process threads that can be started dynamically as the workload demands.
Therefore, a SCHED_SCALE value of 1 represents the lowest ceiling of extra dynamic
threads that can be started to process job events (some arbitrary ceiling not
necessarily equal to one). Increasing this value may increase the ability of the
scheduler to process job events.
Default: 5
Limits: 1-64
UA_PORT
Specifies the port number of the r11 legacy agent.
Default: 49152 (SSA virtual port)
Limits: 1-50176
USAGE_TIMEOUT
Specifies the time (in seconds) that the scheduler waits to complete the initial
connection with the 4.5.1 legacy agent for load balancing jobs. Increasing the value
may delay recovery during a network failure. Decreasing this value may result in
more connection failures.
Default: 30
Limits: 1 or higher.
Note: If you set the AUTO_ALARM variable, this variable is ignored.
More information:
Define the Tuning Parameters for the Scheduler on UNIX (see page 254)
Define the Tuning Parameters for the Scheduler on Windows (see page 256)
44 Administration Guide
Environment Variables
ASQMAX
Specifies the maximum length of the application server queue of outstanding client
requests. If a client request arrives when the queue is full, the application server
discards the request and the client times out. Increasing this value may place a
greater demand on the system memory. Decreasing this value may result in more
client time outs when the application server is busy.
Default: 32,768
Limits: 0 or higher.
Note: If you set this variable to 0 (zero), the queue length is set to the default.
DB_CONNECTIONS
Defines the maximum number of database connections that the application server
can connect to. Increasing this value may increase the ability of the application
server to process simultaneous CA Workload Automation AE client and agent
requests.
Default: 32
Limit: 1-128
RESTRICT_DELETE_DEPENDENT_JOB
Specifies that the application server restricts you from deleting a job with
dependencies. The valid values are 0 and 1.
Default: 0
Note: If you set this variable to 1, the application server restricts you from deleting
a job with dependencies.
RESTRICT_DELETE_JOB
Specifies that the application server restricts you from deleting a job when the job
is in the ACTIVATED, RUNNING, or STARTING state. The valid values are 0 and 1.
Default: 0
Note: If you set this variable 1; the application server restricts you from deleting a
job when the job is in the ACTIVATED, RUNNING, or STARTING state.
More information:
Define the Tuning Parameter for the Application Server on UNIX (see page 258)
Define the Tuning Parameter for the Application Server on Windows (see page 259)
46 Administration Guide
Environment Variables
Important! The scheduler and the application server read the settings in the
configuration file only on startup. Therefore, if you make a change that you want to
implement immediately, you must either restart the scheduler and application server or
pause and resume the scheduler and application server using the Services - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator.
Notes:
You must have Windows Administrators group privileges to view or modify the
configuration parameters of a CA Workload Automation AE instance using CA
Workload Automation AE Administrator.
On Windows, you can set the configuration parameters by using the CA Workload
Automation AE Administrator or the configuration file. The parameters in the
configuration file have a corresponding field on the CA Workload Automation AE
Administrator. We recommend that you use the CA Workload Automation AE
Administrator to set the configuration parameters on Windows.
For information about configuring CA Workload Automation AE on Windows using
CA Workload Automation AE Administrator, see the Online Help.
More information:
48 Administration Guide
Alarm Notifications
Alarm Notifications
The Alarm Notification feature provides a method for communicating problems to
administrators who are outside of the CA Workload Automation AE event system. You
can configure CA Workload Automation AE to call user-defined routines that
communicate alarms to specific users in your enterprise. For example, by using email or
a command line pager utility, you can notify the administrator when there is a database
problem, when the scheduler shuts down, or when the scheduler notifies all application
servers to shut down.
You can configure CA Workload Automation AE to call user-defined routines for the
following types of system alarms:
APP_SERVER_SHUTDOWN
DB_PROBLEM
DB_ROLLOVER
EP_HIGH_AVAIL
EP_ROLLOVER
EP_SHUTDOWN
50 Administration Guide
Alarm Notifications
EP_HIGH_AVAIL
Defines the user-defined routine (complete path and executable name) that CA
Workload Automation AE calls when the scheduler is shutting down and the
shadow scheduler does not see an update in the event server from the primary
scheduler, or when other scheduler takeover problems occur.
EP_ROLLOVER
Defines the user-defined routine (complete path and executable name) that CA
Workload Automation AE calls when the shadow scheduler takes over
processing.
EP_SHUTDOWN
Defines the user-defined routine (complete path and executable name) that CA
Workload Automation AE calls when the active scheduler (the primary or
shadow scheduler after failing over in high availability mode) is shutting down
because of a normal shutdown process or an error condition.
The alarm notifications are set.
Note: On Windows, you can set the alarm notifications by using the following fields on
the Alarm Notification - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator:
Application Server Shutdown
Database Problem
Database Rollover
Scheduler High Availability
Scheduler Rollover
Scheduler Shutdown
Example: Call the /usr/local/bin/pager Program when the Scheduler Shuts Down
EP_SHUTDOWN /usr/local/bin/pager $@
If the scheduler shuts down, CA Workload Automation AE passes the pager program a
numeric code and a text message. You must code the pager program to accept these
parameters.
3. Edit the following parameters in the configuration file, and save the file:
NotifyMethod=0|1
0
Specifies that CA Workload Automation AE does not send notifications to
operators or administrators even if you specify the notification attributes in the
job definition. This is the default.
1
Specifies that CA Workload Automation AE sends email notifications to
operators or administrators.
Note: If you set this parameter to 1, you must specify the Simple Mail Transfer
Protocol (SMTP) server host name and port number in the NotifySMTPHost
parameter.
NotifySMTPHost=hostname:port
hostname
Defines the host name of the SMTP server.
port
Defines the port number the SMTP server uses to send email notifications. Do
not specify this value if the SMTP server is using the default port.
Default: 25
Example: SMTPserver:333
52 Administration Guide
Configure CA Workload Automation AE to Send Email Notifications on UNIX
UseSMTPAuthentication=0|1
0
Specifies that the SMTP server does not require authentication to send an
email. This is the default.
1
Specifies that the SMTP server requires authentication to send an email.
Note: Check with your administrator and set this parameter to 1 only if the
SMTP server requires authentication to send an email.
NotifySMTPUser=user@email_domain.com/password
user@email_domain.com/password
Defines the user name, and associated password, used to connect to the SMTP
server.
Note: Specify the user name in the form of an email address. For example,
specify [email protected].
NotifySMTPFromAddress
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. CA Workload Automation AE is configured to send email
notifications.
Notes:
On Windows, you can enter the equivalent values using the Integration - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For information about configuring CA Workload Automation AE to
send email notifications on Windows, see the Online Help.
If you specify an invalid email address, CA Workload Automation AE does not send
the email notification. A login denied error message is displayed in the scheduler
log after the terminal status events are processed. CA Workload Automation AE
does not send the email notification even if one of the multiple email addresses you
specified is invalid.
54 Administration Guide
Configure CA Workload Automation AE to Send Email Notifications on UNIX
To send an email notification using CA Workload Automation AE, specify the following
attributes in the job definition:
send_notification
notification_emailaddress
notification_msg
Note: For more information about the notification job attributes, see the Reference
Guide.
insert_job: email_job_1
machine: localhost
job_type: c
command: as_test -t 2
send_notification:1
notification_emailaddress:[email protected]
notification_msg:"email_job_1 has completed"
insert_job: email_job_fails
machine: localhost
job_type: c
command: as_test -t 2 -e 2
send_notification:F
notification_emailaddress:[email protected]
notification_msg:"email_job_fails has failed"
Suppose that the scheduler receives a STOP_DEMON event. The scheduler posts the
SNMP event to OpenView. This can be particularly useful if the STOP_DEMON event is
sent to shut down the scheduler. The event is posted to OpenView before the scheduler
shuts down.
hostname1,hostname2,...
Defines the host names to which the scheduler sends SNMP traps. You can
specify a list of host names on the network that are running as the SNMP
managers, such as HP's OpenView or IBM's NetView, and to which you want to
send SNMP traps (for example, post SNMP events).
SnmpCommunity=public
public
Defines the SNMP community that is associated with all the SNMP traps sent
by the scheduler.
56 Administration Guide
Configure CA Workload Automation AE to Send SNMP Traps on UNIX
Notes:
The SnmpCommunity parameter is effectively a keyword that is used to
filter the SNMP traps that CA Workload Automation AE sends to SNMP
managers.
The SNMP community is mostly public, and so the value of this parameter
is set to public in the configuration file.
4. Enter the following command at the operating system prompt:
unisrvcntr start waae_sched.$AUTOSERV
Note: On Windows, you can enter the equivalent values using the Integration - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For more information about configuring CA Workload Automation AE to
send SNMP traps on Window, see the Online Help.
SNMP Traps
CA Workload Automation AE uses the SNMP trap mechanism to post alarms and signals.
SNMP traps notify you about events or alarms that are generated during job processing.
58 Administration Guide
Configure CA Workload Automation AE to Send SNMP Traps on UNIX
trapMaxRetrys
Indicates that the number of application restarts exceeded the n_retrys limit for the
job.
Note: The n_retrys attribute specifies the number of times to restart the job after it
exits with a FAILURE status. For more information about the n_retrys attribute, see
the Reference Guide.
Trap number: 505
trapStartJobFail
Indicates that the job cannot start.
Trap number: 506
trapEventHdlrError
Indicates that the scheduler generated an error while processing an event.
Trap number: 507
trapEventQueError
Indicates that the event cannot be marked as processed.
Trap number: 508
trapJobNotOnHold
Indicates that the job cannot be placed on hold even after the JOB_ON_HOLD event
occurred.
Trap number: 509
trapMaxRunAlarm
Indicates that the job exceeded the maximum run time limit. You can specify the
maximum run time for a job using the max_run_alarm attribute.
Note: For more information about the max_run_alarm attribute, see the Reference
Guide.
Trap number: 510
trapResource
Indicates that the resources required to run the job are not available.
Trap number: 512
trapMissingHeartbeat
Indicates that the job did not send a heartbeat within the interval specified for the
job.
Trap number: 513
trapChaseAlarm
Indicates that a chase alarm has been generated.
Trap number: 514
trapDatabaseCommAlarm
Indicates that the legacy agent cannot send an event to the database.
Trap number: 516
trapAppServerComm
Indicates that the autoping command is not successful. The agent cannot
communicate with the application server.
Trap number: 517
trapVersionMismatch
Indicates that the legacy agent version is different from the version of the routine
or process calling it.
Trap number: 518
trapDbRollover
Indicates that CA Workload Automation AE rolled over from dual event server mode
to single event server mode.
Trap number: 519
trapEpRollover
Indicates that the shadow scheduler is taking over.
Trap number: 520
trapEpShutdown
Indicates that the scheduler is shutting down.
Trap number: 521
trapEpHighAvail
Indicates that CA Workload Automation AE running in high availability mode
detected a system or network problem.
Trap number: 522
60 Administration Guide
Configure CA Workload Automation AE to Send SNMP Traps on UNIX
trapDbProblem
Indicates a problem with one of the CA Workload Automation AE databases.
Trap number: 523
trapDuplicateEvent
Indicates that the event server processed a duplicate event.
Trap number: 524
trapInstanceUnavailable
Indicates that the event server of the receiving CA Workload Automation AE
instance cannot be reached.
Trap number: 525
trapAutoPing
Indicates that the autoping -M -A command cannot connect to the client.
Trap number: 526
trapExternalDepsError
Indicates that the cross-platform interface cannot send external dependencies to
the remote node.
Trap number: 529
trapMachineUnavailable
Indicates that the machine the scheduler communicates with is not responding or
has been deleted.
Trap number: 532
trapServiceDeskFail
Indicates that the scheduler cannot open a service desk ticket for a failing job.
Trap number: 533
trapUninotifyFailure
Indicates that the scheduler cannot send a notification to the requesting job.
Trap number: 534
trapBadCPIJobName
Indicates that the cross-platform interface received a job name that is not valid for
the agent it is submitting the job to.
Trap number: 535
trapCPIUnavailable
Indicates that the CA Workload Automation AE cross-platform interface is not
running.
Trap number: 536
trapMustStartAlarm
Indicates that the must start alarm has been generated.
Trap number: 537
trapMustCompleteAlarm
Indicates that the must complete alarm has been generated.
Trap number: 538
trapKillJobFail
Indicates that the KILLJOB event failed for a job.
Trap number: 540
trapSendSigFail
Indicates that the SEND_SIGNAL event failed.
Trap number: 541
trapReplyResponseFail
Indicates that the REPLY_RESPONSE event failed because the job status is not
WAIT_REPLY.
Trap number: 542
trapReturnResourceFail
Indicates that the job failed to release resources.
Trap number: 543
trapRestartJobFail
Indicates that the RESTARTJOB event failed.
Trap number: 544
62 Administration Guide
Disable IP Address Caching on UNIX
The scheduler and application server process IDs are displayed as follows:
CA Services Status Report
3. Edit the following parameter in the configuration file, and save the file:
EnableIPCaching=0
Note: You can resume IP address caching by setting this parameter to value of 1.
scheduler_pid
Defines the process ID of the scheduler that you want to pause and resume.
applicationserver_pid
Defines the process ID of the application server that you want to pause and
resume.
The scheduler and application server resume. IP address caching is disabled.
64 Administration Guide
Chapter 3: Modifying the Scheduler
Settings on UNIX
This section contains the following topics:
Set the Minimum Scheduler Log Disk Space (see page 66)
Define the Load Balancing Method (see page 67)
Configure the Scheduler Heartbeat Interval (see page 70)
Set the Values to Calculate the Wait Time Between Restart Attempts (see page 71)
Specify the Signals for a KILLJOB Event (see page 72)
Set the Maximum Number of Job Restart Attempts (see page 74)
Set the Event Transfer Time-Out for Dual Event Server Mode (see page 76)
Set the Interval Between Job Heartbeat Checks (see page 77)
Specify a Local Machine to Run Jobs (see page 78)
Configure the Resource Wait Poll Interval (see page 80)
Control the Starting of Jobs in PEND_MACH Status (see page 81)
Control the Status of Jobs Scheduled on an Offline Machine (see page 87)
Define the Communication Ports for the Scheduler (see page 91)
Verify Whether Jobs and Agents are Running at Scheduler Startup (see page 94)
Start the Scheduler in Global Auto Hold Mode (see page 95)
Configure CA Workload Automation AE to Skip Starting Condition Evaluation for Queued
Jobs (see page 97)
Redirect Job Profile Information to a File (see page 98)
Append Information to Standard Error and Standard Output Files (see page 102)
Append Event Message Text to Event Messages (see page 104)
Aggregate Statistics Automatically (see page 105)
Set Job Attribute Environment Variables (see page 107)
Specify the Scheduler Role (see page 109)
Specify the Primary Scheduler Failback Mode (see page 110)
Activate the Cross-Platform Interface (see page 111)
value
Defines the minimum amount of disk space that must be available to write to
the scheduler log.
Default: 20480KB (20MB)
Limits: 8192KB (8MB)-102400KB (100MB)
Note: If the specified value is not in the valid range, the scheduler issues a
warning message and resets the value to the default.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The minimum scheduler log disk space is configured.
Note: On Windows, you can enter the equivalent value using the FileSystem Threshold
KB field on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about setting the minimum
scheduler log disk space on Windows, see the Online Help.
66 Administration Guide
Define the Load Balancing Method
FileSystemThreshold Parameter
The FileSystemThreshold parameter in the configuration file defines the minimum
amount of disk space that must be available to write to the scheduler log file
(event_demon.$AUTOSERV).
If the available disk space falls below the specified value, the scheduler issues warning
messages (every minute) similar to the following:
CAUAJM_W_40358 The disk partition containing the CA WAAE Scheduler log file is full
CAUAJM_W_40359 The CA WAAE Scheduler will shutdown if partition has less than 8,388,608
bytes available.
If the disk space falls below 8192KB (8MB), the scheduler issues an EP_SHUTDOWN
alarm, shuts down, and displays messages similar to the following:
CAUAJM_W_40360 Error: No disk space left to write the CA WAAE Scheduler log file.
CAUAJM_I_40247 CA WAAE Scheduler processing of events complete.
CAUAJM_I_40248 CA WAAE Scheduler shutdown complete. Exiting.
The scheduler passes the FileSystemThreshold setting to the legacy agents when
running a job. If the available disk space falls below the specified value, the legacy
agents write dots in the agent log file. If the available disk space falls below 8192KB
(8MB), the legacy agents issue a warning and stop writing to the log file, but the legacy
agent service keeps running.
3. Edit the following parameter in the configuration file, and save the file:
MachineMethod=cpu_mon|vmstat|rstatd|job_load
cpu_mon
Specifies that the cpu_mon method is used to determine the percentage of
available CPU cycles on the agent. The scheduler runs the CPU Monitoring
(OMCPU) job on the target computer to get the available CPU cycles. This is the
default.
Notes:
The cpu_mon machine method does not apply to z/OS machines (CA
Workload Automation Agent on z/OS) because the OMCPU job is not
supported on z/OS.
If the load balancing request is sent to a legacy agent, CA Workload
Automation AE uses the vmstat method to obtain the available CPU cycles.
vmstat
Specifies that the vmstat method is used to determine the percentage of
available CPU cycles on the legacy agent. This method applies to legacy agents
only. The scheduler invokes the legacy agent in a specialized mode to calculate
the available CPU cycles. The UNIX legacy agents invoke the virtual memory
statistics tool (vmstat) to get the available CPU cycles. The Windows legacy
agents utilize Windows performance counters to get the available CPU cycles.
Note: If the load balancing request is sent to an agent, CA Workload
Automation AE uses the cpu_mon method to obtain the available CPU cycles.
rstatd
Specifies that the rstatd method is used by the UNIX schedulers to determine
the percentage of available CPU cycles on UNIX computers. The scheduler
makes a UNIX remote procedure call to the remote kernel statistics daemon
(rstatd) on the target computer to get the available CPU cycles.
Notes:
You cannot configure the rstatd method for the Windows scheduler.
You must ensure that the rstatd daemon is running on the UNIX scheduler
and on all target UNIX computers.
You must set the value of the opsys attribute for type 'a' machines to one
of the following values that support the rstatd method: aix, hpux, linux,
openvms, or solaris.
If the load balancing request is sent to an agent with an opsys attribute
value that does not support the rstatd method, CA Workload Automation
AE uses the cpu_mon method to obtain the available CPU cycles.
If the load balancing request is sent to a Windows legacy agent, CA
Workload Automation AE uses the vmstat method to obtain the available
CPU cycles.
68 Administration Guide
Define the Load Balancing Method
job_load
Specifies that the job_load method is used to determine the percentage of
available CPU cycles. The scheduler uses the job_load and max_load attributes
to calculate the available load for a computer.
Note: The cpu_mon, vmstat, or rstatd settings check the CPU usage statistics of
candidate machines, whereas the job_load setting checks only the job load and no
real time usage of machine is required.
4. Enter the following command at the operating system prompt:
eventor
Notes:
The cpu_mon and vmstat default values are interchangeable. Based on the machine
to which the load balancing request is sent, CA Workload Automation AE uses
cpu_mon or vmstat method. If the load balancing request is sent to the agent, the
cpu_mon method is invoked. If the load balancing request is sent to a legacy agent,
the vmstat method is invoked.
On Windows, you can enter the equivalent value using the Machine Method field
on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about defining the load
balancing method on Windows, see the Online Help.
Note: If CA Workload Automation AE runs in high availability mode with dual event
servers, the specified high availability poll interval value doubles. The increased interval
provides enough time for both databases to be updated before the schedulers poll for
one another's status. For example, when you set the interval to 15 seconds, the
schedulers refresh their status every 15 seconds in single event server mode and every
30 seconds in dual event server mode.
value
Defines the time interval (in seconds) between status polls when the scheduler
runs in high availability mode.
Default: 15
4. Enter the following command at the operating system prompt:
eventor
Note: On Windows, you can enter the equivalent value using the HA Poll Interval field
on the Scheduler - CA Workload Automation AE Administrator window of CA Workload
Automation AE Administrator. For information about configuring the scheduler
heartbeat interval on Windows, see the Online Help.
70 Administration Guide
Set the Values to Calculate the Wait Time Between Restart Attempts
WaitTime=RestartConstant+(Num_of_Trys*RestartFactor)
if WaitTime > MaxRestartWait,
then WaitTime = MaxRestartWait
The Num_of_Trys value is specified by the internal job starter counter, which indicates
the number of times CA Workload Automation AE has already tried to start the job. If
the calculated wait time is greater than the specified value for the MaxRestartWait
parameter, then the wait time is set to the value of the MaxRestartWait parameter.
constant
Defines the Restart Constant value used for calculating the wait time (in
seconds) between attempts to restart a job.
Default: 10
RestartFactor=factor
factor
Defines the Restart Factor value used for calculating the wait time (in seconds)
between attempts to restart a job. This value multiplies with every job restart
and is used to gradually increase the number of seconds per retry attempt.
Default: 5
MaxRestartWait=wait_time
wait_time
Defines the maximum amount of time (in seconds) that CA Workload
Automation AE waits before it tries to restart a job.
Default: 300
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The wait time between restart attempts is calculated based on
the values set.
Note: On Windows, you can enter the equivalent values using the Restart Constant,
Restart Factor, and Max Restart Wait fields on the Scheduler - CA Workload Automation
AE Administrator window of CA Workload Automation AE Administrator. For
information about calculating the wait time between restart attempts on Windows, see
the Online Help.
72 Administration Guide
Specify the Signals for a KILLJOB Event
3. Edit the following parameter in the configuration file, and save the file:
KillSignals=value,value,...
value,value,...
Defines one or more signals to send to a job whenever the KILLJOB event is
sent.
Default: 2,9
Notes:
The signals are referenced by numeric process IDs (PIDs). Each signal has a
default set of effects on a program.
You can specify multiple signals. Separate each value with a comma. The
signals are sent in the order listed, with a five-second interval between
each call.
We recommend that you set the KillSignals parameter to 2,9. In most
cases, this configures CA Workload Automation AE to return a
TERMINATED state for the target job. If it does not, set the KillSignals
parameter to 9.
The KillSignals parameter applies to UNIX legacy agents only.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The signals for the KILLJOB event are configured for legacy
UNIX agents.
Notes:
The KillSignals listed in the configuration file are overridden when you issue the
sendevent command with the -k option.
On Windows, you can enter the equivalent value using the Legacy Kill Signals field
on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about specifying the
signals for the KILLJOB event on Windows, see the Online Help.
value
Defines the maximum number of times the scheduler tries to restart a job.
Default: 10
Note: When the MaxRestartTrys value is zero, the job is not restarted.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The maximum number of job restart attempts is configured.
Notes:
The MaxRestartTrys parameter is instance-specific. You can configure it to be
agent-specific for a CA Workload Automation AE instance.
The MaxRestartTrys parameter governs retries due to system or network problems.
This value is different from the n_retrys job definition attribute, which controls
restarts when a job fails due to application failure (for example, when CA Workload
Automation AE cannot find a file or a command, or permissions are not properly
set). For more information about the n_retrys job definition attribute, see the
Reference Guide.
On Windows, you can enter the equivalent value using the Max Restart Trys field on
the Scheduler - CA Workload Automation AE Administrator window of CA Workload
Automation AE Administrator. For information about setting the maximum number
of job restart attempts on Windows, see the Online Help.
74 Administration Guide
Set the Maximum Number of Job Restart Attempts
machine_name
Specifies the name of the CA Workload Automation AE machine where you
want to define the MaxRestartTrys value.
value
Defines the maximum number of times the scheduler tries to restart a job after
a system or network problem occurs.
3. Repeat Step 2 for each CA Workload Automation AE machine where you want to
define the MaxRestartTrys value.
Note: Each entry must begin on a new line.
4. Save the file.
The MaxRestartTrys parameter is defined and is now machine-specific for a CA
Workload Automation AE instance.
Notes:
If you do not create the MaxRestartTrys.%AUTOSERV% (on Windows) or
MaxRestartTrys.$AUTOSERV (on UNIX) configuration file and add entries for CA
Workload Automation AE machines where you want to define the MaxRestartTrys
value, the instance-wide MaxRestartTrys parameter is applied.
After you define the machine-specific MaxRestartTrys value, you must restart the
scheduler for the settings to take effect.
When the MaxRestartTrys value is zero, the job is not restarted.
If the entry for the machine does not follow the correct syntax or the value is either
non-numerical or less than zero, the entry is ignored.
If multiple entries exist for a machine, the last occurring entry takes effect.
Set the Event Transfer Time-Out for Dual Event Server Mode
You can set the time-out delay (in seconds) for transferring events when you run CA
Workload Automation AE in dual event server mode. An event that is missing from one
event server is copied over to the second event server after this time-out delay.
value
Defines the time-out delay for transferring events in dual event server mode.
Default: 5
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The event transfer time-out for dual event server mode is
configured.
Note: On Windows, you can enter the equivalent value using the Event Transfer Wait
field on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about setting the event
transfer time-out for dual event server mode on Windows, see the Online Help.
76 Administration Guide
Set the Interval Between Job Heartbeat Checks
value
Defines the time interval (in minutes) that the scheduler uses when checking
for heartbeats.
Default: 2
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The interval between job heartbeat checks is configured.
Note: On Windows, you can enter the equivalent value using the Job Heartbeat Interval
field on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about setting the interval
between heartbeat checks on Windows, see the Online Help.
Check_Heartbeat Parameter
The Check_Heartbeat parameter in the configuration file defines the time interval (in
minutes) that the scheduler uses when checking for late or missing heartbeats from jobs
that are running.
A heartbeat is a job event that is sent at regular intervals to the application server by a
user application started by an agent. User applications can be programmed to issue
heartbeats by linking with the CA Workload Automation AE Software Development Kit
(SDK) library. Thus, heartbeats can be used to monitor the progress of user applications.
The scheduler checks that the HEARTBEAT event has occurred during the heartbeat
interval specified in the heartbeat_interval attribute in a job definition. The scheduler
issues the MISSING_HEARTBEAT alarm for every job that has not issued the HEARTBEAT
event within the jobs heartbeat interval.
Note: The scheduler (not the agent) checks for heartbeats. If there is a problem
between the user application and the application server, the HEARTBEAT event is not
sent and the scheduler issues an alarm at the next check heart beat interval. Therefore,
the HEARTBEAT event can indicate whether the network is working properly.
78 Administration Guide
Specify a Local Machine to Run Jobs
3. Edit the following parameter in the configuration file, and save the file:
LocalMachineDefinition=name
name
Specifies the host name of the type 'a' machine that acts as the localhost. This
machine must be defined in the event server.
Notes:
If the LocalMachineDefinition parameter has an empty value, CA Workload
Automation AE performs system calls to get the host name of the machine. The
clients can add a machine definition using the resolved name as the machine
name while the scheduler is running. The scheduler detects the presence of
this machine definition and uses this machine definition when it starts running
jobs on the localhost.
When you define a job, if you set the machine attribute to localhost and the
LocalMachineDefinition parameter has an empty value and no machine
definition exists for the resolved host name of the scheduler, a warning
message is issued and CA Workload Automation AE fails to start the job on the
localhost.
The LocalMachineDefinition parameter value may differ on the primary
scheduler and the shadow scheduler. If the shadow scheduler fails over due to
the loss of the primary scheduler, the jobs that are scheduled to run on the
localhost are redirected to run either on the machine defined in the
LocalMachineDefinition parameter or on the machine with the resolved host
name of the shadow scheduler (if defined).
4. Enter the following command at the operating system prompt:
eventor
Note: On Windows, you can enter the equivalent value using the Local Machine
Definition field on the Scheduler - CA Workload Automation AE Administrator window
of CA Workload Automation AE Administrator. For information about defining a local
machine on Windows, see the Online Help.
value
Defines the poll interval value (in seconds) for how frequently the scheduler
polls for resource availability.
Default: 15
4. Enter the following command at the operating system prompt:
eventor
Note: On Windows, you can enter the equivalent value using the Res Wait Poll Interval
field on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about configuring resource
wait poll interval on Windows, see the Online Help.
80 Administration Guide
Control the Starting of Jobs in PEND_MACH Status
ResourceWaitPollInterval Parameter
The ResourceWaitPollInterval parameter in the configuration file defines how frequently
(in seconds) the scheduler polls for resource availability.
When you send a STARTJOB event to a job that is defined to use a real or virtual
resource, the scheduler queries for the availability of the required resources. If the
required resource is unavailable, the job enters RESWAIT state because the job's
resource condition is not met. The job remains in RESWAIT state until the resources are
available. The scheduler polls at the specified intervals to determine the resource
availability for all jobs in RESWAIT state. The eligible jobs are started when the resources
are available.
Note: More virtual resources can be made available by increasing their quantity using jil.
Otherwise, resources become available when other jobs that are using specific
resources go into SUCCESS, FAILURE, or TERMINATED state and the resources are
released.
When an offline machine returns to service, the scheduler immediately starts all jobs in
PEND_MACH status on that machine. Starting too many jobs in PEND_MACH status on
the machine at a time places a heavy demand for resources on both the scheduler and
agent computers. This may introduce performance problems that affect all scheduled
workload.
You can control the starting of jobs in PEND_MACH status to reduce the load on the
scheduler and agent computers.
3. Edit the following parameter in the configuration file, and save the file:
GlobalPendMachInterval=interval,burst
interval
Defines the time interval (in seconds) that the scheduler waits before starting
jobs in PEND_MACH status when an offline machine returns to service.
Default: 0; if 0, the scheduler starts all jobs in PEND_MACH status with no
delay between job starts and the burst value is ignored.
Limits: 0-3600
burst
Defines the number of jobs in PEND_MACH status that the scheduler starts
after waiting for the specified interval.
Note: Use caution when you specify the burst value. For example, if you set the
GlobalPendMachInterval value to 1,100 and three offline machines return to
service, the scheduler tries to start 300 jobs per second, which may not be
supported in all environments due to system constraints.
4. Enter the following command at the operating system prompt:
kill HUP scheduler_pid
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. The jobs in PEND_MACH status start based on the values
specified.
Note: On Windows, you can enter the equivalent values using the Global Pend Mach
Interval field on the Scheduler - CA Workload Automation AE Administrator window of
CA Workload Automation AE Administrator. For information about controlling the
starting of jobs in PEND_MACH status on Windows, see the Online Help.
82 Administration Guide
Control the Starting of Jobs in PEND_MACH Status
GlobalPendMachInterval Parameter
The GlobalPendMachInterval parameter in the configuration file defines the following:
The time interval (in seconds) that the scheduler waits before starting jobs in
PEND_MACH status when an offline machine returns to service.
The burst value, that is, the number of jobs in PEND_MACH status that the
scheduler starts after waiting for the specified interval.
The scheduler starts the specified number of jobs, waits for the specified interval, starts
the specified number of jobs, waits for the specified interval, and so on. This process
repeats until all jobs in PEND_MACH status for that machine are started.
When an offline machine returns to service, the scheduler updates the status of all jobs
scheduled for that machine from PEND_MACH to ACTIVATED unless the jobs fail their
starting condition checks. If a job fails its starting condition checks, the scheduler
updates its status to INACTIVE, unless it is in a box. All jobs contained in boxes are
placed in the ACTIVATED state, even if they fail their starting condition checks.
84 Administration Guide
Control the Starting of Jobs in PEND_MACH Status
Notes:
The GlobalPendMachInterval parameter is applied at the global level and not at the
machine level or job level. That is, this parameter value applies to all machines that
return to service and have jobs in PEND_MACH status that are scheduled to start on
them.
If you set the interval to 0 (the default value), the scheduler starts all jobs in
PEND_MACH status with no delay between job starts and the burst value is ignored.
The order in which the jobs are started depends on the job priority and amount of
time the job has been in PEND_MACH status. For example, if JOB1, JOB2, and JOB3
have the same priority and they enter the PEND_MACH status at 08:00:00 a.m.,
08:00:01a.m., and 08:00:02 a.m. respectively, the order in which they are started is
JOB1, JOB2, and JOB3. Once the scheduler determines the starting order of jobs
that are coming out of the PEND_MACH status, you cannot modify the starting
order by using the sendevent command to send the CHANGE_PRIORITY event. If
you send the CHANGE_PRIORITY event, the job priority changes do not apply to the
run of the job exiting in PEND_MACH status. The job priority changes apply to the
next run of the job.
If jobs enter PEND_MACH status at the same time and have the same priority, their
starting order is not guaranteed. If the job priority is set to 0, it overrides the
duration the job has been in PEND_MACH status and starts immediately.
If the GlobalPendMachInterval parameter is set to a new value while the scheduler
is starting jobs in PEND_MACH status, the scheduler applies the new interval only
after it completes the current wait cycle.
For more information about controlling jobs in PEND_MACH status, see the User
Guide.
Suppose that you want the scheduler to wait for 30 seconds before starting each of the
100 jobs in PEND_MACH status when an offline machine returns to service. Specify the
GlobalPendMachInterval parameter as follows:
GlobalPendMachInterval=30
The scheduler takes 50 minutes (100 jobs multiplied by 1/2 minute each) to start all of
the jobs.
Suppose that you have 600 jobs in PEND_MACH status for a machine that is currently
offline. When the machine returns to service, you want the scheduler to start 5 jobs at
5 second intervals. Specify the GlobalPendMachInterval parameter as follows:
GlobalPendMachInterval=5,5
86 Administration Guide
Control the Status of Jobs Scheduled on an Offline Machine
Note: If the scheduler changes the status of a job from PEND_MACH to any other valid
status because of the GlobalPendMachStatus setting or a manual CHANGE_STATUS
event, the job is not run when the machine returns to service. Only jobs in PEND_MACH
status are eligible to start on the machine that returns to service.
3. Edit the following parameters in the configuration file, and save the file:
GlobalPendMachStatus=value
value
Defines the completion status that the scheduler assigns to jobs that are
scheduled on an offline machine. Valid values are FAILURE, INACTIVE, ON_ICE,
PEND_MACH, SUCCESS, and TERMINATED.
Default: PEND_MACH
GlobalPendMachDelay=value
value
Defines the time interval (in seconds) that the scheduler waits before updating
the status of the job to the status specified in the GlobalPendMachStatus
parameter.
Default: 0; if you use the default value, the scheduler immediately sends a
CHANGE_STATUS event to update the status of the job to the status specified
in the GlobalPendMachStatus parameter.
Limits: 0-3600
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. The status of jobs is set based on the values specified.
Note: On Windows, you can enter the equivalent values using the Global Pend Mach
Status and Global Pend Mach Delay fields on the Scheduler - CA Workload Automation
AE Administrator window of CA Workload Automation AE Administrator. For
information about controlling the status of jobs that are scheduled on a machine that is
currently offline on Windows, see the Online Help.
GlobalPendMachStatus Parameter
The GlobalPendMachStatus parameter in the configuration file defines the completion
status that the scheduler assigns to jobs that are scheduled on an offline machine. The
jobs temporarily remain in PEND_MACH status before the scheduler assigns the status
specified in the GlobalPendMachStatus parameter.
Valid values are FAILURE, INACTIVE, ONICE, PEND_MACH, SUCCESS, and TERMINATED.
Notes:
The GlobalPendMachStatus parameter is applied at the global level and not at the
machine level or job level. That is, this parameter value applies to all jobs that are
scheduled on an offline machine.
If you set the GlobalPendMachStatus parameter to a valid status (other than
PEND_MACH), it results in a CHANGE_STATUS event being sent for the desired
completion status. The scheduler records this event in its log as an event that was
the result of setting the GlobalPendMachStatus parameter.
If the scheduler changes the status of a job from PEND_MACH to any other valid
status because of the GlobalPendMachStatus setting or a manual CHANGE_STATUS
event, the job is not run when the machine returns to service. Only jobs in
PEND_MACH status are eligible to start on the machine that returns to service.
88 Administration Guide
Control the Status of Jobs Scheduled on an Offline Machine
GlobalPendMachDelay Parameter
The GlobalPendMachDelay parameter in the configuration file defines the time interval
(in seconds) that the scheduler waits before updating the status of the job to the status
specified in the GlobalPendMachStatus parameter.
Note: The GlobalPendMachDelay parameter is applied at the global level and not at the
machine level or job level. That is, this parameter value applies to all jobs that are
scheduled on an offline machine.
If you use the default value, the scheduler immediately sends a CHANGE_STATUS event
to update the status of jobs in PEND_MACH status to the status specified in the
GlobalPendMachStatus parameter. If you specify a value other than the default, jobs
remain in PEND_MACH status until the delay interval expires, and are then assigned the
status specified in the GlobalPendMachStatus parameter. If the machine returns to
service within the delay interval, the scheduler does not set the status of the job to the
status specified in the GlobalPendMachStatus parameter. Since the job is in
PEND_MACH status when the machine returns to service, the scheduler reschedules it
to run on the online machine based on the interval specified in the
GlobalPendMachInterval parameter.
The following table shows job status based on some sample values set for the
GlobalPendMachDelay and GlobalPendMachStatus parameters:
90 Administration Guide
Define the Communication Ports for the Scheduler
port
Defines the port number the scheduler uses to communicate with 4.5 legacy
agents (4.0, 4.5, 4.5.1).
Default: 0, which indicates that the scheduler only communicates with agents
(type 'a' machines) or r11 legacy agents.
Note: If you set this parameter to a value other than the default, the scheduler
communicates with 4.5 legacy agents based on the port number you set for
this parameter. For example, if you set the port number to 5280, the scheduler
only communicates with 4.5 legacy agents that are running on 5280 port.
SchedAuxiliaryListeningPort=sch_port
sch_port
Defines the port number the scheduler uses to listen for inbound Automation
Framework Message (AFM) protocol data using non-SSA communication.
Default: 7507
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The communication ports for the scheduler are defined.
Note: On Windows, you can enter the equivalent values using the Legacy Remote Agent
Port and Auxiliary Listening Port fields on the Scheduler - CA Workload Automation AE
Administrator window of CA Workload Automation AE Administrator. For information
about defining the communication ports for the scheduler on Windows, see the Online
Help.
AutoRemPort Parameter
The AutoRemPort parameter in the configuration file defines the port number the
scheduler uses to communicate with legacy agent computers (4.0, 4.5, and 4.5.1). In
addition to setting the port number, the type attribute of the machine definition for
each legacy agent must be defined as either l or L.
The inetd on the client computer uses the port number to point to the name of the
service in /etc/services. The service name is located in the inetd configuration file
(/etc/inetd.conf), where the client computer finds the path to the legacy agent binary.
Notes:
The AutoRemPort value is set during the CA Workload Automation AE installation. If
you change it, you must change the AutoRemPort value and the port numbers in all
the /etc/services files on all CA Workload Automation AE client and server
computers.
If you use NIS or NIS+ and want to change the AutoRemPort value, you must modify
/etc/services on your NIS or NIS+ master and push it to all client computers, and run
a kill -1 process on inetd.
92 Administration Guide
Define the Communication Ports for the Scheduler
SchedAuxiliaryListeningPort Parameter
The SchedAuxiliaryListeningPort parameter in the configuration file defines the port
number the scheduler uses to listen for inbound AFM protocol data using non-SSA
communication. Network data between the scheduler and the agent or the scheduler
and the CA Workload Automation EE manager is prepared using the proprietary AFM
protocol. The scheduler auxiliary listening port is used primarily to receive inbound
messages from agents running on non-SSA ports.
Note: The scheduler auxiliary listening port must be different from the application
server auxiliary listening port. The scheduler and application server auxiliary listening
ports must be physical ports. So, we recommend that you configure the SSA port setting
to disable port multiplexing (EnablePmux=False), otherwise CA Workload Automation
AE uses the virtual ports provided by SSA. If EnablePmux is set to True or the scheduler
or application server auxiliary listening port is not defined, CA Workload Automation AE
does not initiate communication with agents that are configured to run on physical
ports. For more information about configuring CA Workload Automation AE to work
with SSA, see the UNIX Implementation Guide.
The scheduler auxiliary listening port is also used to receive job dependencies and
statuses from the mainframe scheduling managers. For example, the scheduler uses this
port to receive messages from the CA Workload Automation EE manager or CA WA
Agent for z/OS (a mainframe manager with minimal agent capabilities).
Notes:
By default, CA Workload Automation AE does not enable SSL communication for
any of its ports (physical or virtual). When you configure the SSA port settings of the
scheduler auxiliary listening port, ensure that you do not enable SSL
communication.
During the CA Workload Automation AE installation, the scheduler auxiliary
listening port is set to 7507 by default. If you are performing a custom installation,
you can specify a different scheduler auxiliary listening port using the Scheduler
Properties page. CA Workload Automation AE uses both the virtual ports and the
auxiliary ports at the same time. The scheduler log displays the ports used by CA
Workload Automation AE as follows:
CAUAJM_I_20366 CA WAAE Scheduler operational on agent listener port 49161.
CAUAJM_I_20367 CA WAAE Scheduler operational on auxiliary agent listener port
7507.
You can track network problems if you run the chase command at regular intervals. For
example, if a computer is unreachable while running a job, the chase command detects
that the computer is down and sends an alarm to alert you about the problem.
Note: For more information about the chase command, see the Reference Guide.
0
Specifies that the chase command does not run when the scheduler starts. This
is the default.
1
Specifies that the chase command runs when the scheduler starts.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts, and the chase command verifies whether jobs and agents are
running.
Note: On Windows, you can select the equivalent value using the Chase on Startup
check box on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about running the chase
command on scheduler startup on Windows, see the Online Help.
More information:
94 Administration Guide
Start the Scheduler in Global Auto Hold Mode
This approach lets you decide which jobs should run and selectively start them by using
the sendevent command to send a FORCE_STARTJOB event. The only way to start a job
when you start the scheduler in Global Auto Hold mode is to send a FORCE_STARTJOB
event.
0
Specifies that the scheduler does not start in Global Auto Hold mode. This is
the default.
1
Specifies that the scheduler starts in Global Auto Hold mode.
4. Enter the following command at the operating system prompt:
eventor
Notes:
To send a FORCE_STARTJOB event, enter the following command at the operating
system prompt:
sendevent -E FORCE_STARTJOB -J job_name
job_name
Defines the name of the job to send the FORCE_STARTJOB event.
The specified job starts.
Global autohold mode affects jobs in ON_NOEXEC status. On startup, CA Workload
Automation AE places these jobs in ON_HOLD status. The same applies to any child
jobs in boxes that utilize the auto_hold job attribute.
On Windows, you can select the equivalent value using the Global Auto Hold check
box on the Scheduler - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For information about starting the
scheduler in Global Auto Hold mode on Windows, see the Online Help.
96 Administration Guide
Configure CA Workload Automation AE to Skip Starting Condition Evaluation for Queued Jobs
When queued jobs leave the queue, they may no longer meet their starting conditions.
Starting jobs that no longer meet their starting conditions may result in scheduling
conflicts or related problems. However, skipping job starts may result in the loss of
critical work.
You can configure CA Workload Automation AE to skip starting condition evaluation for
jobs leaving a queued state. When you use this configuration option, queued jobs start
immediately upon leaving a queued state.
3. Edit the following parameter in the configuration file, and save the file:
EvaluateQueuedJobStarts=0|1
0
Specifies that the scheduler immediately starts the job without evaluating the
starting conditions of the job.
1
Specifies that the scheduler evaluates the starting conditions of the job before
starting the job. This is the default.
4. Enter the following command at the operating system prompt:
unisrvcntr start waae_sched.$AUTOSERV
98 Administration Guide
Redirect Job Profile Information to a File
3. Edit the following parameter in the configuration file, and save the file:
RemoteProFiles=1|0
1
Specifies that the legacy agent redirects the job profile information to the
auto.rem* log file for all jobs started by the scheduler.
0
Specifies that the legacy agent does not redirect the job profile information to
the auto.rem* log file for all jobs started by the scheduler. This is the default.
4. Enter the following command at the operating system prompt:
eventor
Note: On Windows, you can select the equivalent value using the Legacy Remote Profile
Logging check box on the Scheduler - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For information about
redirecting job profile information to a file on Windows, see the Online Help.
More Information:
RemoteProFiles Parameter
The RemoteProFiles parameter in the configuration file specifies whether the legacy
agent redirects the job profile information to the auto.rem* log file for all jobs started
by the scheduler. The output information is generated when the /etc/auto.profile file is
sourced.
Notes:
The RemoteProFiles parameter applies only to jobs that the scheduler sends to a
UNIX computer.
The RemoteProFiles parameter applies to legacy agents only.
The name of the file where the output is written is based on the log file name. The name
has the following format:
auto_rem_pro.joid.run_number.ntry
joid
Defines the unique job object ID associated with the job.
run_number
Defines the jobs run number.
ntry
Defines the number of tries or restarts.
This output file contains entries if anything specified in the profile fails. For example,
suppose that the profile tries to use the setenv command to set an environment
variable and the Bourne shell cannot process the C shell syntax. The output file contains
the following record:
Note: Non-fatal errors that occur when a profile is sourced are not recorded and do not
appear in the output file.
To view the output file, you must issue the autosyslog command on the client computer
as follows:
autosyslog -J job_name t P
job_name
Specifies the name of the job you want to display the log file for.
-t P
Displays the log file by type where P represents the profile output, if there is any.
If no profile output file exists, the log file contains the following record:
Notes:
If you set the CleanTmpFiles parameter to 1, the output file is removed when the
job completes successfully and the profile log information is not available. If you set
the CleanTmpFiles parameter to 0 (zero), the file remains until you use the
clean_files command to remove it.
For more information about the autosyslog command, see the Reference Guide.
More information:
0
Specifies that the agent overwrites information to the standard output and
standard error files. This is the default.
1
Specifies that the agent appends new information to the standard output and
standard error files.
2
Specifies that the information is forcefully appended to the standard output
and standard error files; the agent setting is overridden.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The new error and output information is appended to the
standard error and standard output files.
Note: On Windows, you can select the equivalent value on the Scheduler - CA Workload
Automation AE Administrator window of CA Workload Automation AE Administrator.
For information about appending information to standard error and standard output
files on Windows, see the Online Help.
AutoInstWideAppend Parameter
The AutoInstWideAppend parameter in the configuration file specifies whether the
agent overwrites or appends job command output or error information to the standard
error and standard output files.
Note: If you are running jobs across operating environments, the scheduler of the
issuing CA Workload Automation AE instance controls the default behavior. For
Windows, the default scheduler behavior is to overwrite the standard error and
standard output files.
To determine whether the information is appended to the files or the files are
overwritten, CA Workload Automation AE does the following in this order:
Checks the CA Workload Automation AE job definition for append or overwrite
notation. If there is a notation, CA Workload Automation AE uses the indicated
behavior and does not check other settings.
To set the behavior at the job definition level, place the appropriate notation as the
first characters in the std_err_file and std_out_file specification in JIL. Use the
following notation to specify whether the files should be appended or overwritten:
> Overwrite file
>> Append file
If this variable is set for the computer where the job runs, CA Workload
Automation AE uses the indicated behavior and does not check other settings.
Note: This applies to legacy agents only.
Checks the AutoInstWideAppend parameter in the configuration file and uses this
setting.
1
Specifies that the event message text is appended to the corresponding event
message in the scheduler log file. In the event message, the text is displayed
after the keyword TEXT.
0
Specifies that the event message text is printed as a standalone message. This
is the default.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. When an event message is written to the scheduler log file,
the corresponding text is appended to the message.
Note: On Windows, you can select the equivalent value using the Append Event
Message Text check box on the Scheduler - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For information about
appending event message text to the event message on Windows, see the Online Help.
The scheduler automatically aggregates the job, alarm, and scheduler statistics as
follows:
HourlyAt the start of every hour
DailyAt midnight every day
WeeklyAt midnight on the first day of every week, taken as Sunday
MonthlyAt midnight on the first day of every month
Note: In all cases, the scheduler aggregates statistics in smaller intervals before starting
the specified aggregation. For example, if you schedule a monthly aggregation process,
the scheduler aggregates the hourly, daily, and weekly statistics before starting the
monthly aggregation.
3. Edit the following parameter in the configuration file, and save the file:
AggregateStatistics=0|1
0
Specifies that the job, alarm, and scheduler statistics are not aggregated. This is
the default.
1
Specifies that the job, alarm, and scheduler statistics are aggregated
automatically. The ujo_rep_hourly, ujo_rep_daily, ujo_rep_weekly, and
ujo_rep_monthly tables are updated.
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. The statistics are aggregated automatically.
Notes:
The scheduler does not aggregate monthly statistics for the current month, week,
day, or hour. For example, if the oldest event in the ujo_proc_event table is
09/27/2011 00:05:10 and you schedule the aggregation process on 10/11/2011 at
18:30:00, the statistics are aggregated as follows:
Hourly statisticsFrom 09/27/2011 00:00:00 through 10/11/2011 17:59:59
Daily statisticsFrom 09/27/2011 00:00:00 through 10/10/2011 23:59:59 (14
days)
Weekly statisticsFrom 09/25/2011 00:00:00 through 10/08/2011 23:59:59
(two weeks)
Monthly statisticsFrom 09/01/2011 00:00:00 through 09/30/2011 17:59:59
(one month)
You can aggregate statistics manually by sending an aggregation event using the
sendevent command. You do not need to set the AggregateStatistics parameter to
aggregate statistics manually. For more information about the sendevent
command, see the Reference Guide.
When aggregation is scheduled automatically, starting and completed messages are
written in the scheduler log file. Detailed messages are written in the aggregation
log file (aggregator.instance) located in the $AUTOUSER/out directory. The
aggregation log file has the same properties as the scheduler log file and it rolls
over based on the LOGROLLOVER parameter value in the configuration file.
If the scheduler is shut down while the aggregation process is active, the
aggregation process is terminated. A message is displayed to indicate the same.
On Windows, you can select the equivalent value using the Aggregate Statistics
check box on the Scheduler - CA Workload Automation AE Administrator window of
CA Workload Automation AE Administrator. For information about aggregating
statistics automatically on Windows, see the Online Help.
__job_name=job_name
__box_name=box_name
__machine=machine
__run_machine=run_machine
__max_exit_success=max_exit_success
job_name
Specifies the name of the job in the job definition.
box_name
Specifies the name of the container box in the job definition.
Note: The __box_name environment variable is set only if the job is contained
within a box.
machine
Specifies the value of the machine attribute in the job definition.
run_machine
Specifies the CA Workload Automation AE machine name that the scheduler
resolves after processing the machine attribute.
max_exit_success
Specifies the value of the max_exit_success job attribute in the job definition.
Note: The __max_exit_success environment variable is set only for command jobs.
Notes:
This procedure applies only to CA Workload Automation AE Release 11.3.5 and
Release 11.3.6. The legacy agent supports the setting of job definition JIL attributes
as environment variables, which are sourced as part of running a job.
Custom job applications that require knowledge of additional job attributes should
be rewritten to invoke the GetJobsWithFilter class of the C++ or Java SDK.
3. Edit the following parameter in the configuration file, and save the file:
SetJobAttributeEnvironmentals=0|1
0
Specifies that CA Workload Automation AE does not automatically set the
supported job definition JIL attributes as environment variables.
1
Specifies that CA Workload Automation AE automatically sets the supported
job definition JIL attributes as environment variables.
4. Enter the following command at the operating system prompt:
kill HUP scheduler_pid
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. CA Workload Automation AE is configured to automatically
set the supported job definition JIL attributes as environment variables and the
agent passes information to custom job applications as required.
1
Specifies that the scheduler is the primary scheduler. This is the default.
2
Specifies that the scheduler is the shadow scheduler.
3
Specifies that the scheduler is the tie-breaker scheduler.
4. Enter the following command at the operating system prompt:
eventor
Note: On Windows, you can select the equivalent value using the options in the
Scheduler Role pane on the Scheduler - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For information about specifying
the scheduler role on Windows, see the Online Help.
High-availability mode is disabled when the primary scheduler fails over to the shadow
scheduler, but you can return to high-availability mode by restoring the primary
scheduler. How the primary scheduler resumes processing events after you restore it
depends on the primary failback mode.
By default, the primary failback mode is off and cannot resume processing events while
the shadow scheduler is processing events. In this case, you can restart the primary
scheduler only after you shutdown the shadow scheduler. To minimize downtime, we
recommend that set one of the following primary failback mode options:
0
Specifies that the primary scheduler cannot restart while the shadow scheduler
processes events. In this mode, you must stop the shadow scheduler and
restart the primary scheduler.
1
Specifies that the primary scheduler runs dormant and resumes processing
events only when a failback occurs. A failback occurs when the shadow
scheduler fails or when you initiate a manual failback. If a failback occurs
because the shadow scheduler fails, high-availability mode is disabled. In this
case, return to high-availability mode by restoring the shadow scheduler.
2
Specifies that the primary scheduler resumes processing events as soon as it
detects activity from the other schedulers.
Note: On Windows, you can select the equivalent value using the Scheduler - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For information about specifying the primary failback mode on Windows,
see the Online Help.
3. Edit the following parameter in the configuration file, and save the file:
CrossPlatformScheduling=0|1|2
0
Disables cross-platform scheduling. This is the default.
1
Enables outbound cross-platform scheduling (manager only). When you select
this option, a CA Workload Automation AE instance can dispatch job requests
to an agent.
2
Enables outbound and inbound cross-platform scheduling (manager and
agent). When you select this option, a CA Workload Automation AE instance
can dispatch job requests to an agent and receive job start requests from a
manager.
Note: This option takes effect only when you initialize the scheduler.
4. Enter the following command at the operating system prompt:
kill HUP scheduler_pid
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. The cross-platform interface is activated.
Note: On Windows, you can select the equivalent value using the options in the Cross
Platform Scheduling pane on the Scheduler - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For information about activating
the cross-platform interface on Windows, see the Online Help.
hostname
Specifies the host name of the application server to which all clients in the
instance connect.
4. Save and close the configuration file.
The application server host name is defined.
5. Enter the following command at the operating system prompt:
unisrvcntr start waae_server.$AUTOSERV
The application server starts. All clients within the instance connect to the specified
application server.
Note: The scheduler also requires an identifier to communicate with the agent.
However, the identifier for the scheduler is automatically set to INSTANCENAME_SCH
(in uppercase). You cannot change this value.
unique_ID
Defines a unique identifier that the application server uses to communicate
with the agent.
Default: INSTANCENAME_APP_MachineName.
4. Enter the following command at the operating system prompt:
unisrvcntr start waae_server.$AUTOSERV
The application server starts. The unique communication identifier is defined. The
application server uses this unique identifier to communicate with the agent.
Note: On Windows, you can enter the equivalent value using the Communication
Identifier field on the Application Server - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For information about defining a
unique identifier to communicate with the agent on Windows, see the Online Help.
unique_alias
Defines a unique communication alias that the application server uses to
communicate with CA Workload Automation EE and the agent on z/OS.
Default: INSTANCENAME_ABBREVIATEDHOSTNAME. The abbreviated
hostname consists of the last 12 characters of the node name excluding the
domain name. For example, the communication alias of the application server
on myhost.ca.com is set to ACE_MYHOST, where ACE is the name of the CA
Workload Automation AE instance.
Limits: Up to 16 uppercase characters
Note: If you specify the value in lowercase or mixed case, the value is
automatically changed to uppercase.
The application server starts. The unique communication alias is defined for the
application server. The application server uses this alias to communicate with CA
Workload Automation EE and the agent on z/OS.
Notes:
On Windows, you can enter the equivalent value using the Communication Alias
Identifier field on the Application Server - CA Workload Automation AE
Administrator window of CA Workload Automation AE Administrator. For
information about defining a unique communication alias for the application server
on Windows, see the Online Help.
For information about configuring CA Workload Automation EE or the agent on
z/OS to work with CA Workload Automation AE, see the UNIX Implementation
Guide or Windows Implementation Guide.
server_port
Defines the application server listening port for all SSA communication.
Default: 9000
AppSrvAuxiliaryListeningPort=appsrv_port
appsrv_port
Defines the port number the application server uses to listen for inbound AFM
protocol data using non-SSA communication. Network data between the
scheduler and the agent or the scheduler and the CA Workload Automation EE
manager is prepared using the proprietary AFM protocol. The application
server auxiliary listening port is used primarily to receive inbound messages
from agents running on non-SSA ports.
Default: 7500
Notes:
The application server auxiliary listening port must be different from the
scheduler auxiliary listening port. The scheduler and application server
auxiliary listening ports must be physical ports. So, we recommend that
you configure the SSA port setting to disable port multiplexing
(EnablePmux=False), otherwise CA Workload Automation AE uses the
virtual ports provided by SSA. If EnablePmux is set to True or the scheduler
or application server auxiliary listening port is not defined, CA Workload
Automation AE does not initiate communication with agents that are
configured to run on physical ports. For more information about
configuring CA Workload Automation AE to work with SSA, see the UNIX
Implementation Guide.
By default, CA Workload Automation AE does not enable SSL
communication for any of its ports (physical or virtual). When you
configure the SSA port settings of the application server auxiliary listening
port, ensure that you do not enable SSL communication.
During the CA Workload Automation AE installation, the application server
auxiliary listening port is set to 7500 by default. If you are performing a
custom installation, you can specify a different application server auxiliary
listening port using the Application Server Information page. CA Workload
Automation AE uses both the virtual ports and the auxiliary ports at the
same time. The application server log displays the ports used by CA
Workload Automation AE as follows:
CAUAJM_I_20366 CA WAAE Application Server operational on agent listener port
49169.
CAUAJM_I_20367 CA WAAE Application Server operational on auxiliary agent
listener port 7500.
The application server starts. The communication ports for the application server
are defined.
Note: On Windows, you can enter the equivalent values using the Client Communication
Port and Auxiliary Listening Port fields on the Application Server - CA Workload
Automation AE Administrator window of CA Workload Automation AE Administrator.
For information about defining the communication ports for the application server on
Windows, see the Online Help.
3. Edit the following parameter in the configuration file, and save the file:
LogMaxEndLines=value
value
Defines the maximum number of lines to retrieve from a log file.
Default: 0; the application server retrieves the entire contents of the log file.
Limits: 0-10000
Notes:
If the specified value is not in the valid range, the application server resets
the value to the default.
If the specified value is in the valid range, the application server passes the
request to the agent. The agent retrieves the specified number of lines
starting from the end of the log file.
4. Enter the following command at the operating system prompt:
kill HUP applicationserver_pid
applicationserver_pid
Defines the process ID of the application server that you want to pause and
resume.
The application server resumes. The specified number of lines are retrieved from
the log file.
Note: On Windows, you can enter the equivalent value using the Log Max End Lines
field on the Application Server - CA Workload Automation AE Administrator window of
CA Workload Automation AE Administrator. For information about setting the maximum
number of lines to retrieve from a log file on Windows, see the Online Help.
You must start the scheduler to schedule and run jobs. If the scheduler is not running,
you cannot initiate new job flows. If you stop the scheduler, any job flows that have
already started run to completion.
Note: The event server must be available, running, and properly identified before you
can start the scheduler.
After you start the scheduler, it performs the following tasks before it begins processing:
Verifies that no other scheduler is running on that computer.
Runs the chase command with the -A and -E parameters. The chase command
verifies whether jobs and agents are running. For each client computer, the chase
command passes a list of jobs that are supposed to be running on the agent. The
agent then verifies that the processes are running. If the chase command detects
errors, it sends an alarm. If a job is not running as expected, the scheduler sends the
necessary corrective event for the job, if the job definition allows it.
If a STARTJOB event is being processed and the job it started is still active, the
scheduler does not restart the job. The purpose of running the chase command is to
guarantee that the scheduler starts with all the processes in a known state.
Problems are detected on scheduler startup. This method is similar to a database
checkpointing and rolling forward or back upon recovery.
Note: For information about running the chase command or starting the scheduler on
Windows, see the Online Help.
More information:
To back up calendar definitions, enter the following commands at the UNIX operating
system prompt or the Windows instance command prompt:
directory
Defines a directory outside of the CA Workload Automation AE directory structure.
Note: For more information about the autocal_asc command, see the Reference Guide.
Back Up Machine, Resource, User-defined Job Type, Job, and Monitor Report
Definitions
We recommend that you back up your machine, resource, user-defined job type, job,
and monitor report definitions periodically so you have files to restore from in the event
of a system failure.
directory
Defines a directory outside of the CA Workload Automation AE directory
structure. We recommend that you use the same directory where you saved
your calendar definitions.
Your machine definitions are saved to a file named autosys.jil in the specified
directory.
Note: To append definitions to an existing file, you must enter >> (instead of >) in
the command. We recommend that you append your machine, resource,
user-defined job type, job, and monitor report definitions to the same file so you
have only one file to restore following a system failure.
2. Enter the following command at the UNIX operating system prompt or the
Windows instance command prompt:
autorep -V ALL -q >> /directory/autosys.jil
Your resource definitions are saved to a file named autosys.jil in the specified
directory.
3. Enter the following command at the UNIX operating system prompt or the
Windows instance command prompt:
autorep Y ALL q >> /directory/autosys.jil
Your user-defined job type definitions are saved to a file named autosys.jil in the
specified directory.
4. Enter the following command at the UNIX operating system prompt or the
Windows instance command prompt:
autorep -J ALL -q >> /directory/autosys.jil
Your job definitions are saved to a file named autosys.jil in the specified directory.
5. Enter the following command at the UNIX operating system prompt or the
Windows instance command prompt:
monbro -N ALL -q >> /directory/autosys.jil
Your monitor report definitions are appended to the file that contains your
backed-up machine, resource, user-defined job types, and job definitions. A backup
of the machine, resource, user-defined job types, jobs, and monitor report
definitions is created.
Note: For more information about the autorep and monbro commands, see the
Reference Guide.
To back up global variable values, enter the following command at the UNIX operating
system prompt or the Windows instance command prompt:
directory
Defines a directory outside of the CA Workload Automation AE directory structure.
We recommend that you use the same directory where you saved your calendar,
machine, resource, user-defined job type, job, and monitor report definitions.
A backup of the global variable values is created. Your global variable values are saved
to a file named globals.txt in the specified directory. This file is a record of what you
must redefine after a system failure.
Note: For more information about the autorep command, see the Reference Guide.
Restore Definitions
You must restore backed-up definitions if you have lost data during a system failure or
you want to reset the definitions in your database to a previous level. This procedure
assumes that you have previously backed up your global variables and your calendar,
machine, resource, user-defined job type, job, and monitor report definitions.
autocal_asc I /directory/autosys.ccal
autocal_asc I /directory/autosys.scal
directory
Defines the directory where you previously backed up the definitions.
Your calendar definitions are restored to the database.
2. Enter the following command at the operating system prompt:
jil < /directory/autosys.jil
Your machine, resource, user-defined job type, job, and monitor report definitions
are restored to the database.
3. Open the globals.txt file that contains your backed-up global variables and manually
redefine any global variables according to the values in the globals.txt file by
entering the following command for each global variable:
sendevent E SET_GLOBAL g VARIABLE=VALUE
To view the scheduler log file, enter the following command at the UNIX operating
system prompt or the Windows instance command prompt:
autosyslog -e
The last ten lines of the scheduler log file are displayed and all subsequent additions to
the log are automatically displayed as they occur.
Notes:
To terminate autosyslog, press Ctrl+C.
For more information about the autosyslog command, see the Reference Guide.
Note: The aggregator log file has the same properties as the scheduler log file and it
rolls over based on the LOGROLLOVER parameter value in the configuration file.
The scheduler and application server process IDs are displayed as follows:
CA Services Status Report
Component Name Pid Status
------------------------------------ ------- --------------
WAAE Scheduler (ACE) 32220 running
3. Edit the following parameter in the configuration file, and save the file:
LOGROLLOVER=OFF | SIZE(x) | MIDNIGHT | SIZE(x),MIDNIGHT
OFF
Disables the log roll over.
SIZE(x)
Specifies that the log rolls over when the log file size is equal to the specified
size.
Note: You can specify the log file size in megabytes. CA Workload Automation
AE checks the log file size every second.
MIDNIGHT
Specifies that the log rolls over at midnight. This is the default.
SIZE(x),MIDNIGHT
Specifies that the log rolls over at midnight and when the log file size is equal to
the specified size.
Note: If you do not specify a value for the SIZE(x) parameter, it is set to 100 MB by
default. The scheduler, application server, or aggregator log rolls over when the log
file size reaches 100 MB.
4. Enter the following commands at the operating system prompt:
kill HUP scheduler_pid
scheduler_pid
Defines the process ID of the scheduler that you want to pause and resume.
applicationserver_pid
Defines the process ID of the application server that you want to pause and
resume.
The scheduler and the application server resume. The scheduler or the application
server log rollover is configured.
Note: On Windows, you can specify the equivalent value by setting the LOGROLLOVER
environment variable using the System - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator. For more information about
adding, modifying, or deleting environment variables using CA Workload Automation AE
Administrator, see the Online Help.
This example rolls over the scheduler log at midnight and when the log file size is equal
to 100 MB.
LOGROLLOVER=SIZE(100),MIDNIGHT
If the primary scheduler and the event server are on the same computer, the scheduler
failure could also mean an event server failure. In this case, if dual event servers are
configured, CA Workload Automation AE rolls over to single event server mode and fails
over to the shadow scheduler. CA Workload Automation AE uses the tie-breaker
scheduler to resolve contentions and eliminates situations where one scheduler takes
over because of network problems. However, the shadow scheduler is not guaranteed
to take over in every case. For example, in the case of network problems, CA Workload
Automation AE might not be able to determine which scheduler works and might shut
down both the schedulers. In such cases, you must resolve the network problems so
that the primary, shadow, and tie-breaker schedulers can update both event servers,
and start CA Workload Automation AE.
You can also test the setup and execution of the jil command without running the
defined jobs. For example, you can check whether the conditional logic for jobs,
including nested boxes, is functioning correctly. In test mode, the scheduler runs a
simple test job instead of the defined jobs.
1
Runs each job with the following test mode variations:
The as_test command runs on the remote computer instead of the
command specified in the job definition.
Note: If you performed an agent-only install on the remote computer, you
can run the as_test command on the remote computer only if you installed
the agent using the CA Workload Automation AE media. If you installed the
agent using the CA Workload Automation Agent DVD, the as_test
command is not available on the remote computer. We recommend that
you install the agent using the CA Workload Automation AE media as it
configures the agent specifically for communication with CA Workload
Automation AE.
The scheduler redirects standard output and standard errors for the
command to the /tmp/autotest.$AUTO_JOB_NAME file, where
$AUTO_JOB_NAME is the job name as defined to CA Workload Automation
AE.
If the type of the job being run in test mode is not a command job, the job
is not disabled. The scheduler runs it as it would in normal mode.
If the opsys attribute of the type 'a' machine is set to a value other than
aix, hpux, linux, solaris, or windows, the job is not disabled. The scheduler
runs it as it would in normal mode. If the opsys attribute of the type a
machine is not set, the job runs as if it is running on a machine with a UNIX
opsys attribute value.
This test mode disables the following functions:
Minimum and maximum run alarms
Job terminations after job run exceeds the maximum runtime
Note: The scheduler cannot run partially in test mode, and CA Workload Automation AE
does not provide a test mode for the database. You must use caution when you run the
scheduler in test mode on a live production system.
You can also test the setup and execution of the jil command without running the
defined jobs. For example, you can check whether the conditional logic for jobs,
including nested boxes, is functioning correctly. In test mode, the scheduler runs a
simple test job instead of the defined jobs.
If the type of the job being run in test mode is not a command job, the job
is not disabled. The scheduler runs it as it would in normal mode.
If the opsys attribute of the type 'a' machine is set to a value other than
aix, hpux, linux, solaris, or windows, the job is not disabled. The scheduler
runs it as it would in normal mode. If the opsys attribute of the type a
machine is not set, the job runs as if it is running on a machine with a UNIX
opsys attribute value.
This test mode disables the following functions:
Minimum and maximum run alarms
Job terminations after job run exceeds the maximum runtime
Sourcing a user-defined job profile file
Minimum disk space verifications
2
Runs each job with the same behaviors as %AUTOTESTMODE% = 1, and also
includes the following functions:
Minimum disk space verifications are performed.
Alarms are sent if job run completes either before the minimum runtime
or after the maximum runtime.
Job runs exceeding the maximum runtime are terminated.
A user-defined job profile is sourced.
The scheduler redirects output from the as_test command to the
user-defined standard output and standard error files (if they are defined).
Otherwise, the scheduler redirects output to the
%TEMP%\autotest.%AUTO_JOB_NAME% file.
5. Click Set.
The %AUTOTESTMODE% environment variable is listed in the Environment
Variables pane. The level the test mode must run in is set.
Notes:
The as_test command is new in r11.3 and obsoletes the ntgetdate command
from previous releases. When running test mode jobs to legacy agents, the
agents invoke the ntgetdate command instead of the command specified in the
job definition.
When a test mode job runs on a machine of type r or n, the output log files
are written to the legacy agent override logging directory (if defined) or to the
enterprise-wide logging directory.
To ensure that the as_test command runs properly, set the value of the opsys
attribute of the type 'a' machine to windows for each Windows agent.
When a test mode job runs on a machine of type a with the opsys attribute
value set to windows, the output log files are written to the %TEMP% location
as defined by the job owners environment.
6. Click the Services icon on the toolbar.
The Services - CA Workload Automation AE Administrator window appears,
displaying a list of services installed on the selected instance.
7. Right-click the scheduler service, and click Start.
The scheduler starts and runs in test mode.
Note: The scheduler cannot run partially in test mode, and CA Workload Automation AE
does not provide a test mode for the database. You must use caution when you run the
scheduler in test mode on a live production system.
When CA Workload Automation AE is running in dual event server mode and the
scheduler detects an unrecoverable error condition on one of the event servers, it
automatically rolls over to single event server mode using the other event server.
The following illustration shows how the primary components (the scheduler, the
application server, the event server, the web server, and the agent) interact in single
event server mode:
More Information:
We recommend that you synchronize the event servers when you configure CA
Workload Automation AE to run in dual event server mode. Event server
synchronization ensures that CA Workload Automation AE recovers after one of the
event servers fails.
The scheduler reads from both event servers when it processes events. Sometimes the
scheduler detects an event on one event server but not on the other event server. The
scheduler copies any missing events to the other event server to prevent temporary
problems from interrupting event processing.
Note: To avoid a single point of failure, ensure that the two event servers reside on two
different data servers that are running on two different computers.
The following diagram illustrates how dual event server mode operates:
How the databases are laid out
How CA Workload Automation AE verifies which database to use
How the primary components (the scheduler, the application server, the event
server, the agent, and the web server) interact
More Information:
ORA
Identifies Oracle as the database provider.
SYB
Identifies Sybase as the database provider.
DBAccess=username/password
username/password
Defines the user name and the password (in encrypted format) the scheduler,
application server, or the web server use to connect to the database.
EventServer_1=SYBASE_SVR:SYBASE_DB,DBPORT,DBHOST | ORACLE_SVR,DBPORT,DBHOST
SYBASE_SVR:SYBASE_DB,DBPORT,DBHOST
Identifies the Sybase database for a specific event server.
ORACLE_SVR,DBPORT,DBHOST
Identifies the Oracle database for a specific event server.
Note: If CA Workload Automation AE is running in dual event server mode, edit the
EventServer_2 parameter to define the event server information for the second
event server.
The scheduler, application server, and the web server start. The event server
information is defined.
Note: On Windows, you can define the event server information using the Event Server -
CA Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For more information, see the Online Help.
Provider Parameter
The Provider parameter in the configuration file specifies the database provider of the
Relational Database Management System (RDBMS) that is used by CA Workload
Automation AE.
Provider=ORA|SYB|MSQ
ORA
Identifies Oracle as the database provider.
SYB
Identifies Sybase as the database provider.
MSQ
Identifies Microsoft SQL Server as the database provider.
Note: On Windows, you can select the equivalent value using the Provider drop-down
list on the Event Server - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For more information, see the Online Help.
DBAccess Parameter
The DBAccess parameter in the configuration file defines the user name and password
(in encrypted format) the scheduler, application server, or the web server uses to
connect to the database. This database user name and password are defined during the
CA Workload Automation AE installation.
DBAccess=username/password
username/password
Defines the user name and password (in encrypted format) the scheduler,
application server, or the web server uses to connect to the database.
Notes:
When you install CA Workload Automation AE, a database user is added. Typically,
this database user is named autosys. The database user is granted rights to the CA
Workload Automation AE objects and can make changes to specific information in
the database.
You can generate the DBAccess parameter password in AES encrypted format using
the autosys_secure command (using option 6 and then option 1). However, if you
change the password using option 3 of the autosys_secure command, the local
configuration file is automatically updated. To update the configuration files on
other machines with server installations, you can either copy the new password in
all configuration files or issue the autosys_secure command on all server machines.
For more information about the autosys_secure command, see the Reference
Guide.
On Windows, you can enter the equivalent values using the User and Password
fields on the Event Server - CA Workload Automation AE Administrator window of
CA Workload Automation AE Administrator. For more information, see the Online
Help.
EventServer_1=SYBASE_SVR:SYBASE_DB,DBPORT,DBHOST | ORACLE_SVR,DBPORT,DBHOST |
MSSQL_SVR:MSSQL_DB,DBPORT,DBHOST
EventServer_2=SYBASE_SVR:SYBASE_DB,DBPORT,DBHOST | ORACLE_SVR,DBPORT,DBHOST |
MSSQL_SVR:MSSQL_DB,DBPORT,DBHOST
SYBASE_SVR:SYBASE_DB,DBPORT,DBHOST
Identifies the Sybase database for a specific event server.
Notes:
The EventServer_1 and EventServer_2 parameter values are defined by the
sybase server name:database name,database TCP/IP listener port,database
host name combination.
For Sybase, the database name is defined in the interface file. In dual event
server mode, the value for both event servers can be different.
ORACLE_SVR,DBPORT,DBHOST
Identifies the Oracle database for a specific event server.
Note: The EventServer_1 and EventServer_2 parameter values are defined by the
Oracle system identifier (ORACLE_SID),database TCP/IP listener port,database host
name combination.
MSSQL_SVR:MSSQL_DB,DBPORT,DBHOST
Identifies the Microsoft SQL Server database for a specific event server.
Notes:
The EventServer_1 and EventServer_2 parameter values are defined by the
Microsoft SQL Server server name:database name, database TCP/IP listener
port,database host name combination.
For Microsoft SQL Server, use the Client Network Utility to define the database
name. In dual event server mode, the value for both event servers can be
different.
Notes:
On Windows, the entire value of the database server name and the database name
can be up to 64 characters.
On Windows, you can enter the equivalent values using the Event Server - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For more information, see the Online Help.
If you configured CA Workload Automation AE to run in dual event server mode and one
event server goes down, CA Workload Automation AE automatically rolls over to the
second event server and continues running in single event server mode. After you
recover the event server that failed, you can reconfigure CA Workload Automation AE to
run in dual event server mode.
Important! Do not try to run CA Workload Automation AE in dual event server mode if it
was previously running in single event server mode or if it rolled over to single event
server mode. You must synchronize the two event servers before configuring CA
Workload Automation AE to run in dual event server mode.
Note: For more information about how to install and configure dual event servers, see
the UNIX Implementation Guide.
SYBASE_DB,DBPORT,DBHOST
Identifies the Sybase database for the second event server.
ORACLE_SVR,DBPORT,DBHOST
Identifies the Oracle database for the second event server.
Note: When the scheduler automatically rolls over to single event server mode, it
creates a backup of the configuration file and modifies the existing file by
commenting out the EventServer_1 or EventServer_2 parameter based on the
event server that experienced the unrecoverable error. Uncomment the parameter
to recover the event server. Alternatively, you can delete the modified
configuration file and rename the backed up copy to config.INSTANCENAME.
4. Specify the database reconnect behavior for the second event server by modifying
the following parameter in the configuration file:
DBEventReconnect=value, value2
value
Identifies the database reconnect behavior for the first event server.
Limits: 0-99
value2
Identifies the database reconnect behavior for the second event server.
Limits: 0-99
Note: During typical installation, CA Workload Automation AE sets the reconnect
value for the single event server to 50 by default. During a custom installation in
which you enable dual event server mode, CA Workload Automation AE sets the
reconnect value for both event servers to 50.5 by default. Ensure that you add a
reconnect value for the second event server when you configure CA Workload
Automation AE to run in dual event server mode after running it in single event
server mode. Optionally, you can modify the default reconnect value for the first
event server.
5. Save and exit the configuration file.
The database information and reconnect behavior for the second event server is
defined. The database configuration changes from single event server mode to dual
event server mode.
6. Run the CA Workload Automation AE bulk copy script (autobcpORA or autobcpSYB)
based on your database type.
The event servers are synchronized.
7. Enter the following commands at the operating system prompt:
unisrvcntr start waae_sched.$AUTOSERV
unisrvcntr start waae_server.$AUTOSERV
Note: On Windows, you can enable dual event server mode using the Event Server - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For information about enabling dual event server mode using CA
Workload Automation AE Administrator on Windows, see the Online Help. For more
information about how to install and configure dual event servers on Windows, see the
Windows Implementation Guide.
Notes:
The autobcpDB script deletes all of the data in the target database and replaces it
with the data in the source database. If you want to save the data in the target
database, archive it before you run the autobcpDB script.
You must stop the scheduler and application server before you run the autobcpDB
script.
You can enter the autobcpDB script on a single line or in interactive mode which
prompts you for the required information line by line.
An autobcpDB script for each database vendor is included in the following directories:
Oracle
$AUTOSYS/dbobj/ORA/autobcpORA.pl
Sybase
$AUTOSYS/dbobj/SYB/autobcpSYB.pl
The autobcpDB script that you use to synchronize the event servers depends on your
database platform:
Oracle
perl autobcpORA.pl source_server target_server source_userid source_password
target_userid target_password dump_file oracle_directory
Sybase
perl autobcpSYB.pl source_server source_db target_server target_db source_userid
source_password target_userid target_password dump_file blk_size
source_server
Defines the name of the source Oracle System ID (for example, AEDB), Sybase
server (for example, SourceServer), or Microsoft SQL Server server (for
example, SourceServer). For Sybase, the source server name is defined in the
interfaces file. For Microsoft SQL Server, you can view the source server name
using Microsoft SQL Enterprise Manager.
Note: On Windows, the entire value of the database server name and the
database name can be up to 64 characters.
source_db
Defines the source Microsoft SQL Server or Sybase database (for example,
AEDB).
source_userid
Defines the user ID that is used to connect to the source Oracle System ID,
Microsoft SQL Server server, or Sybase server.
Note: On Oracle, use aebadmin as the source user ID.
source_password
Defines the password that corresponds to the user ID that is used to connect to
the source Oracle System ID, Microsoft SQL Server server, or Sybase server.
target_server
Defines the target Oracle System ID (for example, AEDB2), Microsoft SQL
Server server (for example, DestinationServer), or Sybase server (for example,
DestinationServer). For Sybase, the target server name is defined in the
interfaces file. For Microsoft SQL Server, you can view the target server name
using Microsoft SQL Enterprise Manager.
Notes:
For Oracle, the source server must be different from the target server.
On Windows, the entire value of the database server name and the
database name can be up to 64 characters.
target_db
Defines the target Microsoft SQL Server or Sybase database (for example,
AEDB2).
Note: The autobcpDB script deletes all of the data in the target database and
replaces it with the data in the source database. If you want to save the data in
the target database, archive it before you run the autobcpDB script.
target_userid
Defines the user ID that is used to connect to the target Oracle System ID,
Microsoft SQL Server server, or Sybase server.
Note: On Oracle, use aedbadmin as the target user ID.
target_password
Defines the password that corresponds to the user ID that is used to connect to
the target Oracle System ID, Microsoft SQL Server server, or Sybase server.
dump_file
Defines the temporary file that is used in the transfer of data from one
database to the other database.
Note: Specify a file that is local to the computer where this script is running.
oracle_directory
Defines the path to the Oracle home directory.
blk_size
(Optional) Specifies the number of rows that can be inserted from the
dump_file to the destination database at a time.
Default: 5000
Note: The default value is used if you run the autobcpSYB.pl script in the
interactive mode or you do not specify the blk_size value. Do not specify a large
value because the transaction log encounters problems when it becomes too
full.
Note: While running the autobcpSYB.pl script on Sybase, ensure the following:
Both event servers use the same Character set.
The LANG environment variable is unset from the shell or the command prompt
window (from which the autobcpSYB.pl script is executed) using the following
command:
On UNIX, use the following command:
$ unset LANG
The autobcpSYB.pl script may have problems while copying data from one event server
to another, and may fail with errors if the environment variables are different. For more
information, see the Sybase documentation.
This example copies data from the source database (AEDB) to the target database
(AEDB2) on the source server (AUTOSYSDB) and the target server (AUTOSYSDB2).
Note: You can copy data faster and reduce the database log requirements by using the
target user ID with the truncate command.
Note: Before you run the expdb utility, we recommend that you truncate the contents
of all the tables on the target database to avoid errors or data duplication.
DATABASE_LINK_NAME
Defines the name of the public database link that is created between the
source database and the target database.
aedbadmin_pwd
Defines the password associated with the aedbadmin user.
DATABASE_SID
Defines the service name of the database. If you are using the impdp utility,
specify the service name of the source database. If you are using the expdp
utility, specify the service name of the target database.
path_to_oradata
Defines the absolute directory path on the computer where you run the
command to create the public database link.
A public database link is created. autobcpdump is set as an alias to the
path_to_oradata directory. The aedbadmin user is granted read and write access to
autobcpdump.
2. Run the following command on the target database (if you are using the impdp
utility) or the source database (if you are using the expdp utility) to test the
database link:
SELECT * FROM ujo_alamode@DATABASE_LINK_NAME;
3. Run the following command on the target database (if you are using the impdp
utility) or the source database (if you are using the expdp utility) if the database link
test was successful:
If you are using impdp utility:
$ORACLE_HOME/bin/impdp aedbadmin/aedbadmin_pwd@DEST_ORA_SID
network_link=aedb_dblink table_exists_action=replace
directory=autobcpdump exclude=view,package,function,procedure
DEST_ORA_SID
Defines the service name of the target database.
SOURCE_ORA_SID
Defines the service name of the source database.
The data is moved from the source database to the target database.
Notes:
You must synchronize the event servers before enabling dual event server mode.
The greater the data that must be synchronized, the longer the CA Workload
Automation AE bulk copy script runs.
Note: When you stop the scheduler, any jobs that are running on the agent run to
completion. Although it is recommended that you stop all jobs before synchronizing the
databases, you can run the CA Workload Automation AE bulk copy script while the jobs
are running on the agent.
You can handle errors by correcting data server problems and rerunning the script.
To handle errors, verify the following and rerun the autobcpORA, autobcpSYB, or
autobcpMSQ script:
Are both event servers running?
To verify this, ensure that you can connect to the event server.
For Microsoft SQL Server, look for the MSSQLSERVER and SQLSERVERAGENT
services.
For Oracle, look for the OracleService*, OracleStart*, and OracleTNSListener
services (where * indicates the Oracle SID).
For Sybase, the service name is user-configurable.
Did you specify the source and the target event servers correctly in the
autobcpORA, autobcpSYB, or autobcpMSQ script?
Did you enter the passwords correctly in the autobcpORA, autobcpSYB, or
autobcpMSQ script?
Did you set the Sybase or Oracle environment variables correctly?
The Oracle environment variable, ORACLE_HOME, defines the path to the
top-level Oracle directory.
The Sybase environment variables are DSQUERY and SYBASE. The DSQUERY
variable defines the name of the Sybase event server. The SYBASE variable
defines the complete path to the Sybase software directory.
Did you specify the event server names and ports correctly?
For Microsoft SQL Server, you can view this information using the Microsoft
SQL Enterprise Manager.
For Oracle, this information is located in the TNSNAMES.ORA file.
For Sybase, this information is located in the interfaces file.
The scheduler and the application server start. CA Workload Automation AE is now
configured to run in single event server mode.
When an event server rollover occurs, CA Workload Automation AE does the following:
On UNIX, the configuration file indicates whether a database rollover has occurred
from dual event server mode to single event server mode by commenting out
(prefixes #AUTO-ROLLOVER#) the EventServer_1 or EventServer_2 parameter that
defines the event server that went offline.
Notes:
A backup of the original configuration file is saved in
$AUTOUSER/config.$AUTOSERV.rollover.
The configuration file is modified on the primary or shadow scheduler or both.
The configuration file on the client computers is not modified.
On Windows, the Event Server - CA Workload Automation AE Administrator
window of CA Workload Automation AE Administrator indicates whether a
database rollover has occurred from dual event server mode to single event server
mode. If there has been a database rollover and a switch to single event server
mode, the A Database Rollover Has Occurred check box is selected and the Status
field displays which event server is DOWN.
Note: For more information about switching to single event server mode on
Windows, see the Online Help.
Note: Every time a job runs, it generates at least three events and an entry in both the
ujo_job_runs and ujo_extented_jobrun_info tables.
The database tables are created with the option that automatically extends as long as
there is space in the file system. The database sizes specified are the recommended
initial size. If your job load is large, create a larger database.
HH:MM
Defines the time when the database maintenance command runs the
maintenance script.
Default: 3:30
Limits: 24-hour format
DBMaintCmd=pathed_command
pathed_command
Defines the location of the DBMaint script.
Default: $AUTOSYS/bin/DBMaint
4. Enter the following command at the operating system prompt:
eventor
Notes:
You must schedule the maintenance command to run when the system activity is
minimal. We recommend that you configure your system to back up the database
during the maintenance cycle.
On Windows, you can enter the equivalent values using the Scheduler - CA
Workload Automation AE Administrator window of CA Workload Automation AE
Administrator. For information about automating database maintenance on
Windows, see the Online Help.
More Information:
The DBMaint command runs the dbstatistics command to perform the following tasks:
Update statistics in the database for optimal performance. For Oracle and Sybase
databases, it computes statistics for all the tables.
Run the dbspace command to check the available space in the database. If the
amount of free space is insufficient, the dbspace command issues warning
messages and generates a DB_PROBLEM alarm.
Note: The DB_PROBLEM alarm is issued if the database space exceeds the value
specified in the DBSPACE_ALARM_SPACE environment variable. The default value is
1000 MB.
Calculate and update the average job run statistics in the ujo_avg_job_run table.
When the dbstatistics command runs, it overwrites old data with the new data.
The DBMaint command runs the archive_events command to remove old information
from various database tables. Specifically, the archive_events command removes the
following:
Events and associated alarms from the ujo_event table
Job run information from the ujo_job_runs table
autotrack log information from the ujo_audit_info and ujo_audit_msg tables
The DBMaint command runs the archive_jobs command to delete obsolete job versions
from the database tables. It specifically removes the obsolete information from the job
type database tables.
The output from the DBMaint command reports the amount of space remaining in your
database so you can monitor whether the event tables are filling up. By monitoring
these values, you can calculate how many events you can safely maintain in a day
before archiving.
Note: For more information about the DBMaint, dbspace, dbstatistics, archive_events,
and archive_jobs commands, see the Reference Guide.
pathed_command
Defines the location of the DBMaint script.
Default: $AUTOSYS/bin/DBMaint
CA Workload Automation AE uses the modified DBMaint script to perform database
maintenance.
Note: When you upgrade from Unicenter AutoSys JM r11 to CA Workload Automation
AE r11.3, Release 11.3.5, or Release 11.3.6 you will not lose the changes you made in
the copied version. You can modify the DBMaint script that is installed when you
upgrade to CA Workload Automation AE r11.3, Release 11.3.5, or Release 11.3.6 to
match your copied version.
Note: When you upgrade from Unicenter AutoSys JM r11 to CA Workload Automation
AE r11.3, Release 11.3.5, or Release 11.3.6, you will not lose the changes you made in
the copied version. You can modify the DBMaint file that is installed when you upgrade
to CA Workload Automation AE r11.3, Release 11.3.5, or Release 11.3.6 to match your
copied version.
value
Defines the time (in seconds) the scheduler, application server, or web server
waits before breaking the connection with an event server in an unknown
state.
Default: 90
Note: If you set the DBLibWaitTime parameter to 0 (zero), the scheduler,
application server, or web server does not time out. They wait until the
database responds. We do not recommend setting this parameter to 0 because
the scheduler may stop responding.
4. Enter the following commands at the operating system prompt:
unisrvcntr start waae_sched.$AUTOSERV
unisrvcntr start waae_server.$AUTOSERV
unisrvcntr start waae_webserver.$AUTOSERV
The scheduler, application server, and web server start. The event server time-out
period is configured.
Notes:
On Windows, you can enter the equivalent value using the Wait Time field on the
Event Server - CA Workload Automation AE Administrator window of CA Workload
Automation AE Administrator. For more information, see the Online Help.
Typically, the database should never time out. However, if it does, CA Workload
Automation AE tries to reconnect to the database the number of times specified in
the DBEventReconnect parameter. If the database connections are frequently
timing out, it probably indicates a system or event server contention problem.
Note: For more information about the high availability options and how to configure
them, see the UNIX Implementation Guide or the Windows Implementation Guide.
More Information:
3. Edit the following parameter in the configuration file, and save the file:
DBEventReconnect=value [,value2]
value
Defines the number of times the scheduler or application server tries to
connect (or reconnect) to the event server before shutting down or before
rolling over to single event server mode.
value2
(Optional) Defines the number of times the scheduler or application server tries
to connect (or reconnect) to the second event server before shutting down or
before rolling over to single event server mode.
Default: 50 in single event server mode; 50,5 in dual event server mode
Notes:
Ensure that you specify value2 when you configure CA Workload Automation
AE to run in dual event server mode.
In single event server mode, the default setting specifies that the scheduler
tries to connect to the event server 50 times before shutting down. That is, the
scheduler tries to reconnect 50 times both on startup or when there is a
connection problem.
In dual event server mode, the default setting specifies that the scheduler tries
to connect to the event server (that is not responding) 5 times before switching
over to single event server mode. On startup, CA Workload Automation AE
makes 50 attempts to create a pool of connections to both event servers. If CA
Workload Automation AE exhausts all its attempts to either create a pool of
connections or restore its lost connections to both event servers, it assumes
that there is a connection or configuration problem and shuts down.
4. Enter the following commands at the operating system prompt:
unisrvcntr start waae_sched.$AUTOSERV
unisrvcntr start waae_server.$AUTOSERV
The scheduler and application server start. The number of scheduler or application
server connection attempts is set.
Notes:
In dual event server mode, the DBEventReconnect parameter is set to the default
only if you initially install dual event servers. If you add a second event server after
the CA Workload Automation AE installation, you must set the DBEventReconnect
value appropriately.
On Windows, you can enter the equivalent value using the Event Reconnect field on
the Event Server - CA Workload Automation AE Administrator window of CA
Workload Automation AE Administrator. For more information about setting the
number of scheduler or application server connection attempts on Windows, see
the Online Help.
DBEventReconnect Parameter
The DBEventReconnect parameter in the configuration file controls the number of times
the scheduler or application server tries to connect (or reconnect) to an event server
before shutting down or before rolling over to single event server mode. This parameter
is used on startup and when there is a connection problem at run time.
Notes:
Only the primary and shadow schedulers roll over to single event server mode
when the number of reconnection attempts is exceeded. The primary or shadow
scheduler performs the following actions during a database rollover:
Sends a DB_ROLLOVER alarm to the event server.
Updates the event server to reflect that CA Workload Automation AE is running
in single event server mode.
A copy of the current configuration file is saved as config.rollover.$AUTOSERV
(on UNIX), where AUTOSERV defines the name of the instance. The
EventServer_1 or EventServer_2 parameter in the configuration file is updated
to include the active event server.
On Windows, the status of the failed event server is updated in the
configuration file. This configuration file entry activates the Enable button
corresponding to the failed event server on the Event Server - CA Workload
Automation AE Administrator window of CA Workload Automation AE
Administrator.
The tie-breaker scheduler and the application server do not automatically roll over
to single event server mode. They maintain both their connections to the event
server and try to reconnect until they receive notification from either the primary
or shadow scheduler to roll over. The application server does not service API
requests from CA Workload Automation AE clients from the time the application
server detects the failure of one of the event servers until the time it receives
notification to roll over.
If any of the CA Workload Automation AE components lose their database
connectivity to all event servers, either before or after the database rollover occurs,
the components shut down. If the scheduler or the application server receives a
request to shut down, the database reconnection process is interrupted
immediately after the active connection attempt is completed.
More information:
Set the Number of Scheduler or Application Server Connection Attempts on UNIX (see
page 162)
value
Defines the time interval between status polls when the scheduler runs in high
availability mode.
Default: 15 seconds
4. Enter the following command at the operating system prompt:
eventor
Notes:
In single event server mode, CA Workload Automation AE enters high availability
mode when both the primary and shadow schedulers are running. If the shadow
scheduler does not update the database for two consecutive intervals after
entering high availability mode, the primary scheduler issues an EP_HIGH_AVAIL
alarm with a message to indicate that the shadow scheduler has not updated its
status. If the shadow scheduler returns and posts updates at regular intervals, CA
Workload Automation AE re-enters high availability mode. If the primary scheduler
does not update the database for two consecutive intervals, the shadow scheduler
issues an EP_ROLLOVER alarm with a message to indicate that the primary
scheduler has not updated its status. It proceeds to failover and starts processing
events. If the original primary scheduler returns, it detects that the shadow
scheduler has failed over and shuts down. CA Workload Automation AE remains in
failover status until the shadow scheduler is shut down. If the primary or shadow
scheduler loses its connection to the event server, the high availability evaluations
stop until the scheduler restores its connection to the event server.
In dual event server mode, CA Workload Automation AE enters high availability
mode when the primary, shadow, and tie-breaker schedulers are running. The
detection and failover procedure is the same as in single event server mode.
However, before either of the schedulers make the final decision to failover, CA
Workload Automation AE verifies the tie-breaker scheduler has sent regular
updates. If either the primary or shadow scheduler fails to detect two consecutive
updates from both its counterparts and the tie-breaker scheduler, the scheduler
shuts down. If the primary, shadow, or tie-breaker scheduler loses its connection to
one or both event servers, the high availability evaluations stop until the scheduler
restores its connection to the event server or rolls over to single event server mode.
In the meantime, the scheduler continues to update the accessible database at
regular intervals.
On Windows, you can enter the equivalent value using the HA Poll Interval field on
the Scheduler - CA Workload Automation AE Administrator window of CA Workload
Automation AE Administrator. For more information about configuring the
scheduler heartbeat interval on Windows, see the Online Help.
Recovery Scenarios
The following sections describe the recovery behavior of CA Workload Automation AE
after a point of failure. The recovery scenarios apply to single event server mode and
dual event server mode, as well as to non-high availability and high availability modes.
Note: In the dual event server mode scenarios documented in this section, the primary
or shadow scheduler notifies the tie-breaker scheduler and the application server to roll
over by updating the accessible database. The tie-breaker scheduler and the application
server receive the notification when they fetch the updated database entry. If both the
databases are unavailable, the notification cannot be written and the tie-breaker
scheduler and the application server do not roll over.
If the connections to both event servers are lost, CA Workload Automation AE does the
following:
The scheduler tries to reconnect to the event server for the configured number of
times. If the scheduler cannot reconnect, it rolls over and fails to notify the
application server. If the scheduler fails to connect to the second event server after
the configured number of times, it shuts down.
The application server tries to reconnect to the event server for the configured
number of times. It continues to try to reconnect to the event server at regular
intervals until one of the following occurs:
It re-establishes a connection.
It receives a shutdown request.
It detects the loss of connection to the second event server and shuts down.
If the event server connection is lost, CA Workload Automation AE does the following:
The scheduler tries to reconnect to the event server for the configured number of
times. If the scheduler cannot reconnect, it shuts down.
The application server tries to reconnect to the event server for the configured
number of times. If the application server cannot reconnect, it shuts down.
If the connection to one of the event servers is lost, CA Workload Automation AE does
the following:
The primary scheduler tries to reconnect to the event server for the configured
number of times. If the primary scheduler cannot reconnect, it rolls over and
notifies the tie-breaker scheduler and the application server. The primary scheduler
then checks for status updates from the shadow and tie-breaker schedulers. If the
shadow and tie-breaker schedulers have updated the event server, the primary
scheduler continues to run. If neither the shadow scheduler nor the tie-breaker
scheduler has updated the event server in two consecutive poll intervals, the
primary scheduler shuts down. If only the shadow scheduler has not updated the
event server in two consecutive poll intervals, the primary scheduler issues an
EP_HIGH_AVAIL alarm and continues to run.
The shadow scheduler tries to reconnect to the event server for the configured
number of times. If the shadow scheduler cannot reconnect, it rolls over and
notifies the tie-breaker scheduler and the application server. The shadow scheduler
then checks for status updates from the primary and tie-breaker schedulers. If the
primary and tie-breaker schedulers have updated the event server, the shadow
scheduler continues to run. If neither the primary scheduler nor the tie-breaker
scheduler has updated the event server in two consecutive poll intervals, the
shadow scheduler shuts down. If only the primary scheduler has not updated the
event server in two consecutive poll intervals, the shadow scheduler fails over and
starts processing events.
The tie-breaker scheduler tries to reconnect to the event server for the configured
number of times. It continues to try to reconnect to the event server at regular
intervals until one of the following occurs:
It re-establishes a connection.
It receives notification to roll over.
It receives a shutdown request.
In the meantime, it continues to update the accessible event server with its
heartbeat.
The application server tries to reconnect to the event server for the configured
number of times. It continues to try to reconnect to the event server at regular
intervals until one of the following occurs:
It re-establishes a connection.
It receives notification to roll over.
It receives a shutdown request.
If the connections to both event servers are lost, CA Workload Automation AE does the
following:
The primary and shadow schedulers try to reconnect to the event server for the
configured number of times. If the primary and shadow schedulers cannot
reconnect, they roll over and fail to notify the tie-breaker scheduler and the
application server. If the primary and shadow schedulers fail to connect to the
second event server after the configured number of times, they shut down.
The tie-breaker scheduler tries to reconnect to the event server for the configured
number of times. It continues to try to reconnect to the event server at regular
intervals until one of the following occurs:
It re-establishes a connection.
It receives a shutdown request.
It detects the loss of connection to the second event server and shuts down.
The application server tries to reconnect to the event server for the configured
number of times. It continues to try to reconnect to the event server at regular
intervals until one of the following occurs:
It re-establishes a connection.
It receives a shutdown request.
It detects the loss of connection to the second event server and shuts down.
Note: We recommend that you run the reindexDB script when the system activity is
minimal. Otherwise, CA Workload Automation AE may experience a slow down or
time-out condition while performing database transactions.
To rebuild indexes for a CA Workload Automation AE database, you must run the
reindexDB script at the UNIX operating system prompt or the Windows instance
command prompt.
database_type
Specifies the database type. This value can be one of the following:
ORA
Identifies Oracle as the database.
SYB
Identifies Sybase as the database.
MSQ
Identifies Microsoft SQL Server as the database.
server_name
Defines the name of the Oracle System ID, Sybase server, or Microsoft SQL Server
server.
server_userid
Defines the user ID that is used to connect to the Oracle, Sybase, or Microsoft SQL
Server server.
Default: sa (Sybase, Microsoft SQL Server)
Note: For Oracle, you must use aedbadmin as the server user ID.
server_password
Defines the password that corresponds to the user ID that is used to connect to the
Oracle, Sybase , or Microsoft SQL Server server.
Default: autosys
database_name
Defines the name of the Sybase or Microsoft SQL Server database.
Note: The database_name parameter does not apply to Oracle.
Note: You can tune the Sybase server based on the number of jobs that run every day in
your enterprise. In this procedure, the Sybase server is tuned to run 50,000 jobs every
day.
Notes:
The max online engines and number of engines at startup parameters specify
the number of CPUs on the database server computer.
You must increase the kernel shared memory if it is not sufficient to increase
the Adaptive Server Enterprise (ASE) memory. Kernel shared memory is an
operating system specific variable. For more information about modifying the
kernel shared memory value, contact your UNIX administrator.
If you increase the number of user connections, you must increase the ASE
physical memory that is allocated to the server.
The master device size is extended from 120 MB (default) to 300 MB.
b. Issue the following commands:
sp_helpdevice
go
Note: The processes parameter specifies the maximum number of operating system
processes that can be connected to the Oracle database concurrently. For more
information about the processes parameter that is installed with Oracle, see the Oracle
documentation.
sys_password
Defines the password that corresponds to the Oracle system user ID.
The Oracle database stops.
2. Issue the following commands:
# cd $ORACLE_HOME/dbs
# cp -rfp spfileORACLE_SID.ora spfileORACLE_SID.ora.orig
The PFILE text file is created from the SPFILE binary file.
4. Issue the following commands:
# cd $ORACLE_HOME/dbs
# cp -rfp initORACLE_SID.ora initORACLE_SID.ora.orig
value
Defines the number of processes. The recommended value is 300.
The SPFILE binary file is created from the PFILE text file.
7. Issue the following command:
SQL> startup
The database starts. The default value for the processes parameter is increased to
300.
8. Issue the following command:
SQL> show parameter processes;
You can verify the number of processes has been changed to 300.
In Unicenter AutoSys JM 4.5.1 and r11, the legacy agent's log files are written to the
directory specified in the following locations:
On UNIX, the AutoRemoteDir parameter in the configuration file.
On Windows, the Enterprise Wide Logging Directory field in CA Workload
Automation AE Administrator.
Note: In Unicenter AutoSys JM 4.5.1 and r11, you had to override the default log file
directory on operating systems that do not support the locking of files in the /tmp
directory. This is because the agent used the locks to check whether a job was running.
You no longer have to change the default log file directory in the current release
because the agent stores the job spool files in the
installation_directory/SystemAgent/agent_name/spool directory by default. However,
you must change the default log file directory if you run jobs on legacy agents and the
operating system on any of the legacy agent computers does not support the locking of
files in the /tmp directory.
More Information:
You can configure agent log file properties that control the log file size, the types and
number of log files that are generated, and how the agent archives the log files.
Note: For information about configuring the agent log file properties or enabling or
disabling job logs, see the CA Workload Automation Agent for UNIX, Linux, or Windows
Implementation Guide or the CA Workload Automation Agent for i5/OS Implementation
Guide.
More Information:
Spool files are limited in size by the available space on the file system where they reside.
To maintain storage space, the agent immediately clears the spool files for successfully
completed jobs. After seven days, the agent clears the spool files for failed jobs. You can
change these default settings.
WA_AGENT
Defines the name of the agent to stop.
The agent stops.
3. Open the agentparm.txt file located in the agent installation directory.
4. Add or edit the following parameters:
oscomponent.joblog.success.autocleanup=true
agent.spool.success.autocleanup=true
runnerplugin.spool.clean.enable=true
These settings configure the agent to immediately clear log and spool files for
successfully completed jobs.
5. Add or edit the following parameter:
runnerplugin.spool.expire=expire_time
expire_time
Specifies how long to keep the spool files for. The files are cleared after the
specified period of time. Options are the following:
nd
Specifies that spool files are kept for n days. This is the default.
Default: 7d (7 days)
nh
Specifies that spool files are kept for n hours.
Example: 10h
nm
Specifies that spool files are kept for n minutes.
Example: 50m
ns
Specifies that spool files are kept for n seconds.
Example: 30s
Note: You cannot specify combinations of time periods. For example, 12d3h is
not valid. If you specify a number only, the agent uses days by default.
This setting configures the agent to clear the spool files for failed jobs after the
specified expiration time.
6. Save the file.
7. Enter the following command at the operating system prompt:
unisrvcntr start waae_agent-WA_AGENT
WA_AGENT
Defines the name of the agent to start.
The agent starts. The agent is configured to clean the spool and job log files.
Notes:
Spool and log files of jobs that completed successfully before the cleanup are not
affected.
For more information about the agent spool or job log files or the parameters in the
agentparm.txt file, see the CA Workload Automation Agent for UNIX, Linux, or
Windows Implementation Guide or the CA Workload Automation Agent for i5/OS
Implementation Guide.
These settings configure the agent to immediately clear log and spool files for
successfully completed jobs.
4. Add or edit the following parameter:
runnerplugin.spool.expire=expire_time
expire_time
Specifies how long to keep the spool files for. The files are cleared after the
specified period of time. Options are the following:
nd
Specifies that spool files are kept for n days. This is the default.
Default: 7d (7 days)
nh
Specifies that spool files are kept for n hours.
Example: 10h
nm
Specifies that spool files are kept for n minutes.
Example: 50m
ns
Specifies that spool files are kept for n seconds.
Example: 30s
Note: You cannot specify combinations of time periods. For example, 12d3h is
not valid. If you specify a number only, the agent uses days by default.
This setting configures the agent to clear the spool files for failed jobs after the
specified expiration time.
5. Save the file.
6. Do the following:
a. Click Start, Programs, CA, Workload Automation AE, Administrator.
The Instance - CA Workload Automation AE Administrator window opens.
b. Click the Services icon on the toolbar.
The Services - CA Workload Automation AE Administrator window appears,
displaying a list of services installed on the selected instance.
c. Right-click the agent service, and click Start.
The agent starts. The agent is configured to clean the spool and job log files.
Notes:
Spool and log files of jobs that completed successfully before the cleanup are not
affected.
For more information about the agent spool or job log files or the parameters in the
agentparm.txt file, see the CA Workload Automation Agent for UNIX, Linux, or
Windows Implementation Guide.
A detailed report is generated. This report displays the job run number in the Run
column.
2. Connect to the database, and run the following query:
select joid from ujo_job where job_name='job_name'
job_name
Defines the name of the job.
The job ID is displayed.
Notes:
You can also obtain the job run number for command jobs by viewing the log
returned by the autosyslog command. For more information about the autosyslog
command, see the Reference Guide.
You can also obtain the job run number and the job ID by extracting the most
recent CAUAJM_I_10082 message for the job name from the scheduler log file. The
CAUAJM_I_10082 message is displayed as follows:
CAUAJM_I_10082 [machine_name connected for job_name
job_ID.run_number.retry_number]
This example obtains the job run number and job ID of the payload job.
1. Enter the following command at the UNIX operating system prompt or the
Windows instance command prompt:
autorep -J payload -d
A detailed report is generated. The payload job run number (50130) is displayed in
the Run column, as follows:
Job Name Last Start Last End ST Run/Ntry Pri/Xit
_____________________________ ____________________ __ ________ _______
payload 07/16/2009 10:45:09 07/16/2009 10:45:09 FA 50130/1 20005
Note: In the scheduler log file, the CAUAJM_I_10082 message for the payload job is
displayed as follows:
To obtain the job log ID, connect to the database, and run the following query:
job_ID
Defines the job ID.
run_num
Defines the job's run number.
The job log ID is displayed. You can now use the job log ID to track the job.
This example obtains the job log ID of the payload job. Connect to the database and run
the following query:
WobId(172.50130_1/WAAE_WF0.1/MAIN)
JobLogId(9D7F247C63C2D21061CB83AB7AADDFFAD9563A10)
To delete the legacy agent log files, enter the following command at the UNIX operating
system prompt or the Windows instance command prompt:
clean_files -d days
-d days
Defines the threshold for deleting legacy agent log files. When you run the
command, files older than the specified number of days are deleted.
The clean_files command searches the database for all computers that have had jobs
started on them. The command instructs the agents on the returned machines to delete
all log files from each machines agent log directory.
Notes:
The clean_files command applies to legacy agents only.
For more information about the clean_files command, see the Reference Guide.
AutoRemoteDir Parameter
The AutoRemoteDir parameter in the configuration file defines the enterprise wide
logging directory on the scheduler computer where CA Workload Automation AE writes
the legacy agent's (4.0, 4.5, 4.5.1, and r11) log files to. This directory must be writable
and must exist on startup. For legacy agents, you can override the enterprise wide
logging directory by setting the local agent logging directory.
Notes:
For some operating systems, locking of files located in the /tmp directory is not
supported. For example, on SunOS platforms when /tmp is mounted on tmpfs. In
such cases, you must use the AutoRemoteDir parameter to specify a different
directory because legacy agents use the locks to check if a job is running.
The agent on the local computer uses its own logging directory, which is created
during the CA Workload Automation AE installation.
AutoRemoteDir=directory
directory
Defines the enterprise wide logging directory on the scheduler computer where CA
Workload Automation AE writes the legacy agent's log files to.
Default: /opt/CA/WorkloadAutomationAE/autouser.instance_name/tmp
instance_name
Defines the name of the CA Workload Automation AE instance.
Notes:
In a cross-platform environment where a UNIX scheduler starts a legacy
Windows agent (or a Windows scheduler starts a legacy UNIX agent), the path
to the log files directory is translated into the format expected by the recipient
operating environment. A UNIX agent removes the drive letter and colon, if
present, and replaces \ characters with / characters. For example, C:\tmp
becomes /tmp. A Windows remote agent adds the system drive letter and
colon (if none is present), and replaces all / characters with \ characters. For
example, /tmp becomes C:\tmp.
On Windows, you can enter the equivalent value using the Legacy Enterprise
Wide Logging Directory field on the Instance - CA Workload Automation AE
Administrator window of CA Workload Automation AE Administrator. For more
information, see the Online Help.
More Information:
1
Specifies that the legacy agents remove the temporary log files
(/tmp/auto_rem*) from the local agent logging directory when a job completes
successfully. This is the default.
0
Specifies that the legacy agents do not remove the temporary logs files when a
job completes successfully. The files remain in the directories until you run the
clean_files process.
4. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The temporary legacy agent log files are removed when jobs
complete successfully.
Note: On Windows, you can select the equivalent value using the Legacy Clean
Temporary Files check box on the Scheduler - CA Workload Automation AE
Administrator window of CA Workload Automation AE Administrator. For information
about removing temporary legacy agent log files on Windows, see the Online Help.
CleanTmpFiles Parameter
A file is created in the agent log directory for every job that CA Workload Automation AE
runs. The CleanTmpFiles parameter in the configuration file specifies whether the legacy
agents remove these temporary log files when a job completes successfully.
auto_rem.joid.run_number.ntry
joid
Defines the unique job object ID associated with the job.
run_number
Defines the jobs run number.
ntry
Defines the number of tries or restarts.
If a job is not successful, the files remain in the directory for diagnostic purposes
regardless of the setting. Therefore, we recommend that you run the clean_files process
periodically to remove files after unsuccessful job completions.
To view the agent log file, you must issue the autosyslog command on the client
computer as follows:
autosyslog -J job_name
job_name
Specifies the name of the job you want to display the log file for.
Note: For more information about the autosyslog command, see the Reference Guide.
Note: The procedures in this chapter describe how to control the scheduler, application
server, web server, and agent services on UNIX. For information about performing the
equivalent procedures on Windows, see the Online Help.
Notes:
The event server must be available, running, and properly identified before you can
start the scheduler.
If you make changes to your configuration settings, you must restart the scheduler
and the application server for the configuration settings to take effect.
To start the scheduler on UNIX, enter the following command at the operating system
prompt:
Notes:
You can also start the scheduler using the eventor command. For more information
about the eventor command, see the Reference Guide.
For information about starting the scheduler on Windows, see the Online Help.
Note: To change application server configuration settings, stop the application server
and then edit the configuration file. The changes take effect when you restart the
application server.
To start the application server on UNIX, enter the following command at the operating
system prompt:
Note: For more information about starting the application server on Windows, see the
Online Help.
Notes:
During the installation, if you select the Set the Agent to Start Automatically at
System Startup check box, the agent starts automatically on system startup.
If you modify the agent's agentparm.txt file, you must restart the agent for the
configuration settings to take effect.
WA_AGENT
Defines the name of the agent to start.
The agent starts.
Note: For information about starting the agent on Windows, see the Online Help.
More Information:
Note: For information about starting the web server on Windows, see the Online Help.
Stopping the scheduler does not affect jobs that are already running. They continue to
run to completion, at which time their exit events are stored until the scheduler is
restarted. When you stop the scheduler, jobs dependent on the events processed at the
time of shut down are scheduled but are not run until you start the scheduler.
Note: Only a user authorized to stop the scheduler can stop the scheduler. It is safe to
stop the scheduler at any time if you do it properly.
The STOP_DEMON event is sent to the database. The scheduler reads the
STOP_DEMON event, enters an orderly shutdown cycle by completing any
processing it is currently performing, and stops.
Note: There might be a delay between when you send the STOP_DEMON event
and when the scheduler reads it and shuts down. If the scheduler does not stop
immediately, do not send another STOP_DEMON event because the scheduler
will process that event the next time it starts and promptly shuts down. To
assign a high priority to the sendevent command, include the -P 1 option as
follows:
sendevent -E STOP_DEMON -P 1
ROLE=value
Stops the scheduler according to the role or combination of roles specified.
Specify the value as follows:
P
Stops the primary scheduler.
S
Stops the shadow scheduler.
T
Stops the tie-breaker scheduler.
The specified scheduler stops.
Note: You can specify any combination of roles. For example, if you specify
ROLE=PST, the primary, shadow, and tie-breaker scheduler are shut down. For
more information about the -E STOP_DEMON -v options, see the Reference
Guide.
Notes:
Do not attempt to stop the scheduler by terminating the process. This method
stops the scheduler immediately, even if it is processing an event. Also, if you are
using dual event servers and you terminate the process in any way other than
issuing the sendevent command, the databases can lose synchronization. For more
information, see the Reference Guide.
For information about stopping the scheduler on Windows, see the Online Help.
Note: Jobs that are processing when you stop the agent continue to run, but the agent
cannot track the process of those jobs.
WA_AGENT
Defines the name of the agent to stop.
The agent or application server stop.
Notes:
You can stop other server processes with the STOP_DEMON event by specifying
different arguments for the -v parameter. For more information the unisrvcntr
command and the sendevent command, see the Reference Guide.
For information about stopping the agent or application server on Windows, see
the Online Help.
Note: For information about stopping the web server on Windows, see the Online Help.
GlobalPendMachInterval
AggregatorStatistics
EnableIPCaching
ISDBGACTIV
LOGROLLOVER
NotifyMethod
NotifySMTPHost
UnicenterEvents
ServiceDeskUser
ServiceDeskCust
ServiceDeskURL
DCAUser
DCAURL
UseSMTPAuthentication
NotifySMTPUser
NotifySMTPFromAddress
SetJobAttributeEnvironmentals
Note: The scheduler and application server also refresh the internal components
responsible for managing real resources.
scheduler_pid
Defines the process ID of the scheduler that you want to pause and resume.
applicationserver_pid
Defines the process ID of the application server that you want to pause and
resume.
The scheduler or application server service pauses and resumes.
More information:
Specify the Scheduler or Application Server Log Rollover on UNIX (see page 128)
CA-WAAE
Displays the status of the agent, scheduler, application server, and the web
server.
waae_agent-WA_AGENT
Displays the status of the specified agent.
waae_sched.$AUTOSERV
Displays the status of the scheduler.
waae_server.$AUTOSERV
Displays the status of the application server.
waae_webserver.$AUTOSERV
Displays the status of the web server.
The status of the specified services has been verified.
Notes:
For information about verifying the status of a service on Windows, see the Online
Help.
You can start, stop, or verify the status of the web server service only if you
installed a web server during the custom installation.
You can use the statistical data to determine, for example, how many of your jobs are
ending in a failure status each month, alarms get acknowledged or closed on average in
an hour, the average daily latency in event processing, and so on.
When you aggregate statistics for the first time, depending on the hardware the product
is installed on, the current active workload and the total number of events stored in the
database, the aggregation process may take a considerable amount of time. Therefore,
we recommend that you schedule a manual aggregation process and then configure the
scheduler to aggregate statistics automatically at a specified interval. When you
configure the scheduler to aggregate statistics automatically after the manual
aggregation process is complete, the scheduler aggregates new statistics for hourly
aggregation from the point where the manual aggregation process was completed. The
scheduler uses the existing aggregated statistics for the daily, weekly, and monthly
aggregation.
This scenario walks you through the recommended aggregation process and then shows
you how to generate reports on the resulting data. Separate reports are generated for
hourly, daily, weekly, and monthly data.
Aggregation Considerations
The following are the important considerations for aggregating statistics:
The scheduler does not aggregate statistics for the current month, week, day, or
hour. For example, if the oldest event in the ujo_proc_event table is 09/27/2011
00:05:10 and you schedule the aggregation process on 10/11/2011 at 18:30:00, the
statistics are aggregated as follows:
Hourly statisticsFrom 09/27/2011 00:00:00 through 10/11/2011 23:59:59
Daily statisticsFrom 09/27/2011 00:00:00 through 10/10/2011 23:59:59 (14
days)
Weekly statisticsFrom 09/25/2011 00:00:00 through 10/08/2011 23:59:59
(two weeks)
Monthly statisticsFrom 09/01/2011 00:00:00 through 09/30/2011 23:59:59
(one month)
When aggregation is scheduled, starting and completed messages are written in the
scheduler log file. Detailed messages are written in the aggregation log file
(aggregator.instance) located in the $AUTOUSER/out (on UNIX) or
%AUTOUSER%/out (on Windows) directory. The aggregation log file has the same
properties as the scheduler log file and it rolls over based on the LOGROLLOVER
parameter value (on UNIX) or LOGROLLOVER environment variable setting (on
Windows).
In all cases, the scheduler aggregates statistics in smaller intervals before starting
the specified aggregation. For example, if you schedule a monthly aggregation
process, the scheduler aggregates the hourly, daily, and weekly statistics before
starting the monthly aggregation.
You can aggregate statistics manually by sending an aggregation event using the
sendevent command. You do not need to select the Aggregate Statistics check box
to aggregate statistics manually. For more information about the sendevent
command, see the Reference Guide.
If the scheduler is shut down while the aggregation process is active, the
aggregation process is terminated. A message is displayed to indicate this.
-l option
Specifies the type of statistics to aggregate, where option is as follows:
HOURLY
Aggregates hourly statistics.
DAILY
Aggregates daily statistics.
WEEKLY
Aggregates weekly statistics.
MONTHLY
Aggregates monthly statistics.
Notes:
The HOURLY, DAILY, WEEKLY, and MONTHLY options are mutually exclusive. You
must specify one of these options.
You can also aggregate automatically by setting the AggregateStatistics parameter
to 1 (on UNIX) or selecting the Aggregate Statistics check box (on Windows).
The scheduler automatically aggregates the job, alarm, and scheduler statistics as
follows:
HourlyAt the start of every hour
DailyAt midnight every day
WeeklyAt midnight on the first day of every week, taken as Sunday
MonthlyAt midnight on the first day of every month
scheduler_pid
Defines the process ID of the scheduler to pause and resume.
The scheduler resumes. The statistics are aggregated automatically.
The scheduler automatically aggregates the job, alarm, and scheduler statistics as
follows:
HourlyAt the start of every hour
DailyAt midnight every day
WeeklyAt midnight on the first day of every week, taken as Sunday
MonthlyAt midnight on the first day of every month
The autoaggr command is a client component utility that generates reports based on
the aggregated job, alarm, and scheduler statistics retrieved from the database.
-d
(Optional) Generates a report on daily aggregated statistics.
-h
(Optional) Generates a report on hourly aggregated statistics.
-m
(Optional) Generates a report on monthly aggregated statistics.
-w
(Optional) Generates a report on weekly aggregated statistics.
-A
(Optional) Generates a report only on alarm statistics.
-J
(Optional) Generates a report only on job statistics.
-S
(Optional) Generates a report only on scheduler statistics.
-o "filename"
(Optional) Defines the path and file name where you want to direct all standard
output.
Notes:
You can specify only the file name in this option. If you specify only the file
name, the file is written to the current directory.
For readability purposes, we recommend that you direct the output to a file by
using either the o parameter or the command shell redirection command (>
or >>).
Enclose the file name in double quotation marks.
-F "from_date_time"
(Optional) Specifies the aggregation start date and time in "MM/dd/yyyy hh:mm"
format. The report displays the aggregated statistics starting from this specified
date and time.
Notes:
If you do not specify the F from_date_time parameter, it defaults to the oldest
processed event in the database.
Enclose the start date and time in double quotation marks.
-T "to_date_time"
(Optional) Specifies the aggregation end date and time in "MM/dd/yyyy hh:mm"
format. The report displays the aggregated statistics up to this specified date and
time.
Notes:
If you do not specify the T to_date_time parameter, it defaults to the current
time.
Enclose the end date and time in double quotation marks.
-c
(Optional) Generates the output in a comma-separated format.
-x
(Optional) Returns the autoaggr version number to standard output.
-?
(Optional) Displays help for the command.
Notes:
The -d, -h, -m, and -w options are mutually exclusive. You must specify one of these
options.
The -A, -J, and -S options can be specified in any combination. If you do not specify
the -A, -J, or -S options, the report includes job, alarm, and scheduler statistics.
Verify that you issue the autoaggr command after the time range (specified using
the -F and -T parameters) for which you want to generate a report has passed. For
example, to generate a report on aggregated hourly statistics from 10/13/2011
16:00 to 10/13/2011 16:59:59, issue the autoaggr command after 17:00 on
10/13/2011.
You can run these reports at any later time to view this output on a regular basis.
This example generates a report that displays the hourly job, alarm, and scheduler
statistics from 09/26/2011 00:00 to 10/03/2011 00:00. The output is directed to the
c:\all.out file.
This example generates a report that displays the hourly job statistics in a
comma-separated format from 09/26/2011 00:00 to 10/03/2011 00:00. The output is
directed to the /tmp/job.csv file.
This example generates a report that displays the daily alarm statistics from 09/26/2011
00:00 to 09/29/2011 00:00. The output is directed to the c:\alarm.out file.
The autoaggr command generates reports on the aggregated job, alarm, and scheduler
statistics.
Note: The time column in the report represents the hourly time after the reported time.
For example, if the reported time is 10:00:00, it represents the aggregated statistics
generated from the activity that occurred from 10:00:00 to 10:59:59.
The reports display job statistics that show the total number of jobs in STARTING,
RUNNING, SUCCESS, BYPASS, FAILURE, TERMINATED, ON_HOLD, OFF_HOLD, ON_ICE,
OFF_ICE, ON_NOEXEC, OFF_NOEXEC, INACTIVE, and RESTART status.
SCHEDULER FAILOVER
Displays the total number of EP_ROLLOVER alarms.
SCHEDULER SHUTDOWN
Displays the total number of EP_SHUTDOWN alarms.
This example sends a manual aggregation event to delete all statistics from the
database.
sendevent E AGGREGATE d
This example sends a manual aggregation event to delete the statistics from the
ujo_rep_hourly, ujo_rep_daily, ujo_rep_weekly, and ujo_rep_monthly tables and then
aggregates hourly statistics.
This chapter describes a number of common problems, their symptoms, and possible
solutions. It provides useful information about troubleshooting the primary CA
Workload Automation AE components.
When you define a job, CA Workload Automation AE saves its starting conditions to the
event server (database), and the following occur:
When the job's starting conditions are met, the scheduler submits the job to an
agent.
The agent runs the job and returns the job's exit status to the application server.
The application server updates the event server.
After the job completes, it does not run again until its starting conditions are met.
Note: On UNIX, Sybase and Oracle are supported. On Windows, Microsoft SQL Server,
Oracle, and Sybase are supported. Database specific tools like SQLPLUS (Oracle) and
ISQL (Sybase/Microsoft SQL Server) are recommended for any database-specific tasks.
You must use OSQL for Microsoft SQL Server 2005, because ISQL is not available;
however, for the purposes of this documentation, the group ISQL contains OSQL. The
XQL and ZQL database tools installed by the previous releases of CA Workload
Automation AE are deprecated and have been phased out in the current release.
Note: For more information about how to remove CA Workload Automation AE, see the
Windows Implementation Guide. For more information about starting CA Workload
Automation AE services using CA Workload Automation AE Administrator, see the
Online Help.
To verify whether the event server service (the database service) is started, look at the
Windows Control Panel Services dialog. You can verify the following:
If you are running Microsoft SQL Server, verify the status of the MSSQLServer
service.
If you are running Oracle, verify the status of the following services (substitute your
Oracle SID for the asterisk): OracleService*, OracleStart*, and OracleTNSListener.
If you are running Sybase, verify that a service with a name that starts with SYBSQL
is started. It is possible that a different name was selected for the service when
Sybase was installed.
Symptom:
When I issue the chk_auto_up command, a message similar to the following is
displayed:
Solution:
Either the database server is down or the process in question cannot access the
database server.
To verify whether the database server is down, log in to the event server and check if
the database processes are active.
If the database is running, the problem could be that CA Workload Automation AE is
configured to the wrong event server or communication between CA Workload
Automation AE and the event server is not configured correctly.
Deadlocks
Valid on UNIX and Windows
Symptom:
The database server error log or the scheduler log (the output of the autosyslog -e
command) displays a message similar to the following:
Your server command (process id #11) was deadlocked with another process and has been
chosen as deadlock victim. Re-run your command.
Solution:
A deadlock is a condition that occurs when two users have a lock on separate objects,
and they each want to acquire an additional lock on the other user's object. The first
user is waiting for the second user to release the lock, but the second user will not
release it until the lock on the first user's object is released.
The database server detects the situation and selects the user whose process has
accumulated the least amount of CPU time. The database server rolls back that user's
transaction, notifies the application with the indicated error message, and lets the other
user's processes continue.
CA Workload Automation AE tries to rerun the command until it is successful or until it
has exceeded the maximum number of retries.
Symptom:
CA Workload Automation AE processes cannot make connections to the database; they
cannot start the CA WCC GUI or send events.
Solution:
Verify the maximum number of user connections your system can support. If the
current number of connections does not exceed the capacity of your environment, you
can increase the number of user connections.
Note: For more information about increasing the maximum number of user
connections, contact your database administrator or see the database documentation.
Scheduler Troubleshooting
This section describes scenarios for troubleshooting the scheduler.
You must issue the autosyslog -e command to view the scheduler log file. This log file
contains a record of all the actions taken by the scheduler (in the order performed).
Network problems are usually reflected in this log file. This log file is very useful for
reconstructing what happened when a problem occurs.
Note: For more information about the autosyslog command, see the Reference Guide.
To terminate autosyslog, press Ctrl+C.
More Information:
Scheduler Is Down
Valid on UNIX and Windows
Symptom:
Jobs do not start.
When I issue the chk_auto_up command, a message similar to the following is
displayed:
No Scheduler is RUNNING.
The scheduler log has not registered a date and time stamp for a while. The
scheduler log should register date and time stamps each minute.
Solution:
Do one of the following to verify whether the scheduler is down:
Issue the chk_auto_up command. This command verifies if the scheduler is running.
Issue the autosyslog -e command. This command displays the scheduler log file.
Check for date and time stamps.
On Windows, verify the status of the scheduler using the Services - CA Workload
Automation AE Administrator window of CA Workload Automation AE Administrator. If
the scheduler is down, you must start it using the Services - CA Workload Automation
AE Administrator window of CA Workload Automation AE Administrator.
Note: For more information about how to verify the scheduler status or start the
scheduler using CA Workload Automation AE Administrator, see the Online Help.
Symptom:
The autosyslog -e command displays messages indicating that it cannot connect to the
database.
Solution:
This problem occurs if the database is down or there are database problems. To correct
this problem, verify that the database is running and that you can connect to it by
issuing the autoping command. After the database is accessible, the scheduler should be
able to connect to the database.
Symptom:
The autosyslog -e command displays messages indicating that the scheduler log file
does not exist, or that no entries were made when the scheduler service was
started.
The scheduler service does not remain running or never starts.
Solution:
Note: The scheduler appends the event_demon.$AUTOSERV file each time it starts.
Symptom:
The scheduler does not remain running and does not write log output to the
$AUTOUSER/out/event_demon.$AUTOSERV file.
Solution:
This problem could have various causes and the solution depends on which of the
following message is displayed:
The log file $AUTOUSER/out/event_demon.$AUTOSERV is missing!
The scheduler must have been started on the computer at least once or this
message is displayed. If the scheduler has been started, ensure that permissions are
set on the log file that enables a system program to read and write to it.
The environment variable AUTOSYS is not set.
This message is displayed if the $AUTOSYS system environment variable is not
available to the scheduler. You must ensure that the CA Workload Automation AE
source file has been sourced in your session.
The CA Workload Automation AE environment has not been installed correctly.
This message is displayed when the scheduler runs the chk_auto_up command on
initialization, and it reports that the setup is incorrect. You must ensure that the CA
Workload Automation AE source file has been sourced in your session.
The primary, shadow, or the tie-breaker scheduler is already running. Startup aborted.
This message is displayed when the scheduler starts, and it detects another
scheduler running with the same instance ID. Only one scheduler can run in an
instance. Either stop the other scheduler, or do not try to start this scheduler.
Scheduler cannot open its log file event_demon.$AUTOSERV. Some directory in the
path is not accessible to the SYSTEM.
This message is displayed when the scheduler cannot create the
event_demon.$AUTOSERV log file. You must ensure that the log file has
permissions that enable a system program to read and write it. Also, verify that the
disk drive has not run out of space.
Could not rename the LARGE scheduler file: event_demon.$AUTOSERV to backup
archive file: event_demon.$AUTOSERV.date. Fix file and directory permissions so
accessible by SYSTEM, or remove the files.
This message is displayed when the scheduler starts and checks the size of the
event_demon.$AUTOSERV log file. If this file is larger than 100 MB, the scheduler
tries to rename it to event_demon.$AUTOSERV.date and creates a new
event_demon.$AUTOSERV log file. If the scheduler cannot do this, verify that
event_demon.$AUTOSERV has permissions that enable a system program to read
and write it. Also, verify that the disk drive has not run out of space.
Note: You can use the LOGROLLOVER environment variable to specify when the
scheduler or the application server log rolls over.
Symptom:
The autosyslog -e command displays messages indicating that it cannot connect to the
database.
Solution:
This problem occurs if the database is down or there are database problems. To correct
this problem, verify that the database is running and that you can connect to it by
issuing the autoping command. After the database is accessible, the scheduler should be
able to connect to the database.
Symptom:
The autosyslog -e command displays messages indicating that the scheduler log file
does not exist, or that no entries were made when the scheduler service was
started.
The scheduler service does not remain running or never starts.
Solution:
Note: The scheduler appends the event_demon.%AUTOSERV% file each time it starts.
Symptom:
The scheduler does not remain running and does not write log output to the
%AUTOUSER%\out\event_demon.%AUTOSERV% file.
Solution:
This problem could have various causes; and the solution depends on which of the
following message is displayed on the Event Log Viewer dialog. You can access the Event
Log Viewer dialog using the Windows Control Panel Administrative Tools dialog.
The log file %AUTOUSER%\out\event_demon.%AUTOSERV% is missing!
The scheduler must have been started on the computer at least once or this
message is displayed. If the scheduler has been started, ensure that permissions are
set on the log file that enables a system program to read and write to it.
The environment variable AUTOSYS is not set.
This message is displayed if the %AUTOSYS% system environment variable is not
available to the scheduler. You must ensure that the %AUTOSYS% system
environment variable is set properly by using the Windows Control Panel or the
System - CA Workload Automation AE Administrator window of CA Workload
Automation AE Administrator.
Note: For more information about how to add, modify, or delete a system
environment variable using CA Workload Automation AE Administrator, see the
Online Help.
The environment variable AUTOSYS is too long.
This message is displayed if the %AUTOSYS% system environment variable value is
set to a path that is more than 80 characters in length. You must uninstall CA
Workload Automation AE, and reinstall it to a directory path that is fewer than 80
characters in length.
Agent Troubleshooting
This section describes scenarios for troubleshooting the agent.
You can use the autoping command to verify the agent and the agents database
connection from the application server are functioning correctly. The autoping
command also verifies whether the server and client computers are properly configured
and are communicating successfully.
To verify whether the agent is functioning correctly, issue the following command at the
UNIX operating system prompt or the Windows instance command prompt:
autoping -m machine_name
machine_name
Identifies the machine to verify. The machine must be defined in the database and
accessible over the network. Specify -m ALL to verify all machines.
The IP address or DNS name of the machine must be listed in the /etc/hosts file (on
UNIX) or accessible through TCP/IP (on Windows) on the machine from which you
issue the autoping command.
Notes:
When you issue the autoping command to a machine of type 'a', the client (the
machine from which you issued autoping) sends a request to the application server
and waits for the application server to respond. The application server contacts the
scheduler and notifies it to ping the agent and waits for the scheduler to respond.
The application server then pings the agent and prepares a response to autoping. If
successful, the autoping command writes the following message to standard output
on the server:
AutoPinging Machine [machine]
AutoPing WAS SUCCESSFUL!
When you issue the autoping command to a machine of type 'r', 'n', l, or L (legacy
agent), the client (the machine from which you issued autoping) establishes a
connection with the legacy agent and waits for the legacy agent to respond. If
successful, the autoping command writes the following message to standard output
on the server:
AutoPinging Machine [machine]
AutoPing WAS SUCCESSFUL!
This example verifies that the machine venice is properly configured and that the
agent's database connection from the application server is functioning properly.
autoping -m venice -S
CAUAJM_I_50023 AutoPinging Machine [venice]
CAUAJM_I_50031 Checking the Agent's connectivity to the Application Server.
CAUAJM_I_50025 AutoPing WAS SUCCESSFUL.
Symptom:
The autosyslog -e command displays a message similar to the following:
Solution:
WA_AGENT
Defines the name of the agent for which you are verifying the status.
The agent's current status is displayed.
3. If the agent is not running, enter the following command at the operating system
prompt:
unisrvcntr start waae_agent-WA_AGENT
WA_AGENT
Defines the name of the agent to start.
The agent starts.
Note: You must verify the machine definition to ensure that the parameters you specify
when you define an agent on CA Workload Automation AE match the corresponding
parameters in the agentparm.txt file. If the agent_name, node_name, port, and
key_to_agent attribute values do not match, it can result in communication problems.
Symptom:
The autosyslog -e command displays a message similar to the following:
Solution:
Note: You must verify the machine definition to ensure that the parameters you specify
when you define an agent on CA Workload Automation AE match the corresponding
parameters in the agentparm.txt file. If the agent_name, node_name, port, and
key_to_agent attribute values do not match, it can result in communication problems.
Symptom:
Job does not advance from STARTING state.
The scheduler log or the output of the autorep command on the job contains the
following event with nothing after it, but the job runs to completion on the client
computer:
CHANGE_STATUS Status: STARTING Job: test_install
Solution:
This is a common problem and occurs when the agent is unable to contact the
scheduler. You must verify the following:
Ensure that network problems are not preventing the communication between the
agent and the scheduler computers.
Verify the encryption settings between the scheduler and the agent in the
receiver.log file. The receiver.log file is located in the log subdirectory in the
SystemAgent directory. If the agent detects a problem with encryption, the
receiver.log file will include messages related to the encryption problem.
Note: For the communication between the scheduler and the agent to be
successful, you must ensure that the agent encryption settings on CA Workload
Automation AE match the encryption settings defined in the agentparm.txt file on
the agent. If you detect any encryption problems, you must modify the encryption
type and encryption key on CA Workload Automation AE to match the encryption
settings defined in the agentparm.txt file on the agent. For more information about
modifying the encryption type and encryption key on CA Workload Automation AE,
see the UNIX Implementation Guide.
The agent must be able to contact the scheduler, and the scheduler must be able to
connect to the database to send the RUNNING, SUCCESS, FAILURE, or TERMINATED
status events.
To verify the problem, issue the following command at the operating system prompt:
autosyslog -J job_name
job_name
Defines the name of the job.
Symptom:
Job does not advance from STARTING state.
The scheduler log or the output of the autorep command on the job contains the
following event with nothing after it, but the job runs to completion on the client
computer:
CHANGE_STATUS Status: STARTING Job: test_install
Solution:
This is a common problem and occurs when the agent is unable to contact the
scheduler. You must verify the following:
Ensure that network problems are not preventing the communication between the
agent and the scheduler computers.
Verify the encryption settings between the scheduler and the agent in the
receiver.log file. The receiver.log file is located in the log subdirectory in the
SystemAgent directory. If the agent detects a problem with encryption, the
receiver.log file will include messages related to the encryption problem.
Note: For the communication between the scheduler and the agent to be
successful, you must ensure that the agent encryption settings on CA Workload
Automation AE match the encryption settings defined in the agentparm.txt file on
the agent. If you detect any encryption problems, you must modify the encryption
type and encryption key on CA Workload Automation AE to match the encryption
settings defined in the agentparm.txt file on the agent. For more information about
modifying the encryption type and encryption key on CA Workload Automation AE,
see the Windows Implementation Guide.
The agent must be able to contact the scheduler, and the scheduler must be able to
connect to the database to send the RUNNING, SUCCESS, FAILURE, or TERMINATED
status events.
To verify the problem, issue the following command at the Windows instance command
prompt:
autosyslog -J job_name
job_name
Defines the name of the job.
Symptom:
When the legacy agent started, the auto_remote memory increased significantly, and
the following messages were displayed:
Solution:
Note: If you delete the data files in the tx directory while job agents are running, it may
result in jobs being stuck in the STARTING state or in a delay in updating the job status.
Job Troubleshooting
This section describes scenarios for troubleshooting job failures and problems.
Each time the agent starts on a computer, it creates a log file for command jobs in the
spool subdirectory in the SystemAgent directory. This log file contains all the
instructions passed to the agent by the scheduler, the results of any resource checks,
and a record of all actions taken. Any problems encountered by the agent are recorded
in this log file.
To retrieve the most recent instance of the agent log for a given job, enter the following
command on the computer where the job last ran:
autosyslog -J job_name
job_name
Defines the name of the job.
To retrieve a particular instance of the agent log for a given job run, enter the following
command on the computer where the job last ran:
run_num
Defines the job's run number.
ntry
Defines the number of tries or restarts.
Symptom:
When I issue the autosyslog -e command, the scheduler log displays a message similar
to one of the following:
or
Owner UserId/Password error! ERROR: No valid password was found for USER@HOST or
USER@DOMAIN. Cannot run job for user USER! Run "autosys_secure" to enter the user
password.
When I issue the autorep -J job_name command, the agent log might also display a
message similar to one of the following:
The password specified for USER@DOMAIN is invalid! Run "autosys_secure" to enter the
correct password.
or
No valid password was found for USER@HOST or USER@DOMAIN. Cannot run job for user USER!
Run "autosys_secure" to enter the user password.
Solution:
The password for user@host_or_domain does not exist or is invalid. To fix this problem,
issue the autosys_secure command to enter or change the user ID and password.
Note: For more information about the autosys_secure command, see the Reference
Guide or the CA Workload Automation Security Guide.
Symptom:
When I issue the autosyslog -e command, the scheduler log indicates that the job
immediately returned a FAILURE status.
Solution:
To verify this problem, issue the autosyslog -e command on the scheduler computer and
the autorep -J job_name command on the computer where the job should have run,
and review the resultant error messages.
For example, if the job's standard output file was read-only, a message indicating this is
included in the scheduler log.
You should also verify the following:
Ensure that the default profile or the job's specified user-defined profile defines the
appropriate job environment. In particular, ensure that the path variable, if defined
in a job profile, is correct. You should always include the following in any job profile
that defines a path variable to help ensure that all system path directories are
accessible:
On UNIX$PATH
On Windows %PATH%
Ensure that the file system where the job command resides is accessible from the
computer where the job should have run.
Ensure that the system permissions are correct for the command job to run.
Ensure that the permissions are correct on any standard input and output files
specified for redirection.
Note: A valuable debugging technique is to specify a file to use for standard output and
standard error for a job that is having run problems. If there are any command
problems, most of the error messages are recorded in that file.
Symptom:
When I issue the autosyslog -e command, the scheduler log displays a message similar
to the following when a job starts:
Solution:
This message is displayed in the following situations:
Performance problems with the network or machine
Network problems
Incompatible encryption settings between the scheduler and agent
Machine definition for the agent is not correct
Port number that is used by the agent is not correct
Occasionally, performance problems on the network or computer might cause
communication failures. The network might be down or slow due to high traffic volume.
The computer might be underpowered, or you are trying to do too much on it at one
time.
Note: For the communication between the scheduler and the agent to be successful,
you must ensure that the agent encryption settings on CA Workload Automation AE
match the encryption settings defined in the agentparm.txt file on the agent. If you
detect any encryption problems, you must modify the encryption type and encryption
key on CA Workload Automation AE to match the encryption settings defined in the
agentparm.txt file on the agent. For more information about modifying the encryption
type and encryption key on CA Workload Automation AE, see the UNIX Implementation
Guide or the Windows Implementation Guide.
Symptom:
When I issue the autosyslog -e command, the scheduler log displays the following
message when I try to start a job or try to start the scheduler with a shadow scheduler:
Solution:
This message is displayed in the following situations:
1. There is a network problem and the scheduler cannot connect to the agent
computer.
2. The agent computer is not in /etc/hosts or DNS.
3. The CA Workload Automation AE configuration file lists the computer; however,
there is a space after the computer name. Check /etc/hosts or DNS for the
computer name, and correct it if necessary.
Symptom:
When a command job with the interactive attribute set to true is scheduled, the job fails
when the userid defined to run the job is currently logged on to Windows with more
than one session. The autorep -d command displays the following error message:
Solution:
The agent works according to Microsoft restrictions. To schedule interactive jobs, follow
these two rules:
1. The user specified to run the job MUST be logged on with an active session.
2. The user can have ONLY one active session.
If more than one session exists for the specified user, the agent cannot determine which
session to use and therefore fails the job.
Symptom:
Jobs run from the command line, but they fail when run.
Solution:
This problem is nearly always in the shell environment where the job runs. The following
are the possible reasons:
The profile in the job definition is not a Bourne shell (sh) type profile. If this is the
case, the profile fails.
The default profile does not produce the proper environment for the job to run. The
default profile for all jobs is /etc/auto.profile, not the job owner's log in profile
$HOME/.profile. If the job owner's profile is not specified in the job definition, it is
never sourced.
The oscomponent.defaultshell.force parameter is set to true in the agentparm.txt
file for the agent. This loads the /etc/auto.profile in the shell specified in the
oscomponent.defaultshell parameter rather than the job owners login shell.
To verify the difference between the job definition and the user environment
1. Log in as the owner of the job on the computer where the job runs, and enter the
following command at the operating system prompt:
env >user.env
client_hostname
Defines the host name of the computer where the problem job runs.
owner
Defines the owner of the job that will not run.
The agent environment is written to a file.
The differences in the two files (std_out_file and std_err_file) are verified. The diff
command displays where the environment and the user environment files differ.
Make the necessary changes in the job definition and the user profile.
It is also useful to define the std_err_file file for the job that fails, because you can check
the errors from the shell to get an indication about what is missing.
Note: No spaces are allowed between the >> characters and the full path or file name in
the std_out_file or std_err_file fields in a job definition.
Symptom:
The scheduler failed to connect due to socket errors that occur during a job run and the
job runs more than once.
Solution:
The main reason for this problem to occur is severe performance problems on the
legacy agent computer. For example, the following might affect performance:
Running a full system backup on the legacy agent computer at the same time as
jobs are starting might slow the system down and cause the timeout because it
cannot respond to the server.
Network problems. If a job's home directory is on an NFS drive and there are
bandwidth problems, the job might take so long to start that the socket times out.
Because socket time-out is not a customizable parameter, there is little you can do to
avoid this situation from a CA Workload Automation AE perspective. However, you can
analyze the performance of the client by asking these questions:
Are there too many processes running on the legacy agent computer when you run
jobs?
Are you having network problems?
Are you using NFS-mounted directories?
Do you need more memory or processors on the legacy agent computer?
Does the legacy agent computer have the latest maintenance?
Notes:
You must install the latest maintenance on the legacy agent to ensure that it
receives the updates required to solve this problem.
The architecture of the r11.3, Release 11.3.5, or Release 11.3.6 agent is different
from that of the legacy agent. The sequence of events (documented in this topic) no
longer apply.
Symptom:
The state of a job remains in STARTING or RUNNING.
Solution:
A job remaining in the STARTING or RUNNING state is indicative of the following issues:
Agent is unable to communicate with the scheduler on the agent listener port of
the scheduler
Verify that the Secure Sockets Adapter port configurations are identical on both the
agent machine and on the scheduler machine for the 49152-50176 port range.
Run chk_auto_up to exercise the agent listener port of the scheduler. If
chk_auto_up reports that the scheduler is running, then the scheduler is capable of
accepting communications on its agent listener port.
Run autoping m <machine> to exercise the communication path between the
agent and the scheduler If autoping reports success then the agent is capable of
communicating with the scheduler on its agent listener port. Autoping returns the
following to indicate that the agent is experiencing an internal delay:
CAUAJM_W_10496 Agent on [<machine>] has not responded in a timely fashion. Try
again later.
Agent has encountered an internal limitation preventing it from executing the job
or sending status
The agent logs in both the SystemAgent/<agent_name> and
SystemAgent/<agent_name>/logs subdirectories of the install path need to be
consulted to determine the nature of the limitation:
1) The nohup.stderr file may contain miscellaneous operating system error
messages.
2) The default_agent.log file may contain agent-specific errors not applicable to any
one agent component.
3) The various agent component logs contain errors specific to a function of the
agent.
The agent may have temporarily exhausted all of its internal initiators. This means
that the agent is trying to start too many jobs at once. Consult the CA Workload
Automation Agent for UNIX, Linux, or Windows Implementation Guide for
information on how to increase the number of initiators.
Check that the SystemAgent/<agent_name> subdirectory of the install path on the
agent machine has sufficient disk space.
Symptom:
CAUAJM_E_40320 User authentication failure for {0}. User does not exist or bad password
has been specified.
Solution:
The problem is with the agent associated with the job. To correct the problem, add the
following line to the agentparm.txt file for the agent.
oscomponent.auth.pam.svc=sshd
Note: By default, the agent verifies the user password using the default service, for
example login. The sshd service changes the way the agent verifies the password.
The output from the application server is redirected to the following log file:
On UNIX$AUTOUSER/out/as_server.$AUTOSERV
On Windows%AUTOUSER%\out\as_server.%AUTOSERV%
To view the application server log file, enter the following command at the UNIX
operating system prompt or the Windows instance command prompt:
autosyslog -s
The application server log file displays error messages as they occur.
Notes:
You can enable run-time traces to view incoming client requests in the order they
were received by the application server and use them for troubleshooting
communications with the CA Workload Automation AE client or an application using
the SDK.
To terminate autosyslog, press Ctrl+C.
Symptom:
CA Workload Automation AE client utilities on the local machine time out.
When I issue the chk_auto_up command, a message similar to the following is
displayed:
CAUAJM_E_50033 Error initializing tx subsystem: CAUAJM_E_10527 Timed out waiting
for response from the Unicenter AutoSys JM Application Server.
CAUAJM_E_10062 Failed to get initial configuration Unicenter AutoSys JM
Application Server: [<application server machine>:9,000]
The application server log has not registered an error message since it was started.
Solution:
To test that communication from the application server to the event server is set up
properly, log in to the event server from the computer where the application server
is available by using the following:
For Oracle, use the SQL*Plus command language interface.
For Sybase, use the ISQL utility.
Note: Use the CA Workload Automation AE user name and password to log on to
the event server.
Check for running as_server processes for the given $AUTOSERV using the ps
command.
If the application server is down, enter the following command at the operating system
prompt:
Symptom:
CA Workload Automation AE client utilities on the local machine time out.
When I issue the chk_auto_up command, a message similar to the following is
displayed:
CAUAJM_E_50033 Error initializing tx subsystem: CAUAJM_E_10527 Timed out waiting
for response from the Unicenter AutoSys JM Application Server.
CAUAJM_E_10062 Failed to get initial configuration Unicenter AutoSys JM
Application Server: [<application server machine>:9,000]
The application server log has not registered an error message since it was started.
Solution:
Do one of the following to verify whether the application server is down:
Issue the chk_auto_up command. This command verifies if the application server is
running.
Issue the autosyslog -s command. This command displays the application server log
file. Check for date and time stamps of the last run and any other error messages.
To test that communication from the application server to the event server is set up
properly, log in to the event server from the computer where the application server
is available by using the following:
For Microsoft SQL Server, use the ISQL/w graphical query interface.
For Oracle, use the SQL*Plus command language interface.
For Sybase, use the ISQL utility.
Note: Use the CA Workload Automation AE user name and password to log on to
the event server.
Check the status of the application server using the Services - CA Workload
Automation AE Administrator window of CA Workload Automation AE
Administrator. You can also check the status of the application server using the
Windows Control Panel Services dialog.
If the application server is down, you must start it using the Services - CA Workload
Automation AE Administrator window of CA Workload Automation AE Administrator.
Note: For more information about how to start the application server or verify the
application server status using CA Workload Automation AE Administrator, see the
Online Help.
Symptom:
The autosyslog -s command displays messages indicating that it cannot connect to the
database.
Solution:
This problem occurs if the database is down or there are problems with the database
installation. To test that communication from the application server to the event server
is set up properly, log in to the event server from the application server computer by
using the following:
For Oracle, use the SQL*Plus command language interface.
For Sybase, use the ISQL utility.
Note: Use the CA Workload Automation AE user name and password to log in to the
event server.
Symptom:
The application server is not running and does not write log output to the
$AUTOUSER/out/as_server.$AUTOSERV file.
Solution:
This problem could have various causes and the solution depends on which of the
following message is displayed:
The environment variable AUTOSYS is not set.
This message is displayed if the $AUTOSYS system environment variable is not
available to the application server. You must ensure that the CA Workload
Automation AE source file has been sourced in your session.
The environment variable AUTOSYS is too long.
This message is displayed if the $AUTOSYS system environment variable value is set
to a path that is more than 80 characters in length. You must uninstall CA Workload
Automation AE, and reinstall it to a directory path that is fewer than 80 characters
in length.
Application server cannot open its log file as_server.$AUTOSERV. Some directory
in the path is not accessible to the SYSTEM.
This message is displayed when the application server cannot create the
as_server.$AUTOSERV log file. You must ensure that the log file has permissions
that enable a system program to read and write it. Also, verify that the disk drive
has not run out of space.
Symptom:
The autosyslog -s command displays messages indicating that it cannot connect to the
database.
Solution:
To verify whether the application server is down, log on to the event server computer
and issue the chk_auto_up command. If the database is running, there is a possibility
that CA Workload Automation AE is configured to the wrong application server or
communication between CA Workload Automation AE and the application server is not
successful.
To test that communication from the application server to the event server is set up
properly, log on to the event server from the application server computer by using the
following:
For Microsoft SQL Server, use the ISQL/w graphical query interface.
For Oracle, use the SQL*Plus command language interface.
For Sybase, use the ISQL utility.
Note: Use the CA Workload Automation AE user name and password to log in to the
event server.
Symptom:
The application server does not remain running and does not write log output to the
%AUTOUSER%\out\as_server.%AUTOSERV% file.
Solution:
This problem could have various causes; and the solution depends on which of the
following message is displayed on the Event Log Viewer dialog. You can access the Event
Log Viewer dialog using the Windows Control Panel Administrative Tools dialog.
The environment variable AUTOSYS is not set.
This message is displayed if the %AUTOSYS% system environment variable is not
available to the application server. You must ensure that the %AUTOSYS% system
environment variable is set properly by using the Windows Control Panel or the
System - CA Workload Automation AE Administrator window of CA Workload
Automation AE Administrator.
Note: For more information about how to add, modify, or delete a system
environment variable using CA Workload Automation AE Administrator, see the
Online Help.
The environment variable AUTOSYS is too long.
This message is displayed if the %AUTOSYS% system environment variable value is
set to a path that is more than 80 characters in length. You must uninstall CA
Workload Automation AE, and reinstall it to a directory path that is fewer than 80
characters in length.
Application server cannot open its log file as_server.%AUTOSERV%. Some
directory in the path is not accessible to the SYSTEM.
This message is displayed when the application server cannot create the
as_server.%AUTOSERV% log file. You must ensure that the log file has permissions
that enable a system program to read and write it. Also, verify that the disk drive
has not run out of space.
Symptom:
When I issue the chk_auto_up command from a remote machine, a message similar to
the following is displayed:
Solution:
You must ensure that network problems are not preventing communication between
the client and the application server computers through the Operating System ping
command.
value
Defines the port number to display.
Default: 9000
2. On the application server computer , change to the $CSAM_SOCKADAPTER/bin
directory, and enter the following command at the operating system prompt:
csamconfigedit Port=value display
value
Defines the port number to display.
Default: 9000
3. Compare the outputs in Step 1and Step 2, and ensure that both the EnablePmux
and EnableSSL settings are identical.
4. On both the client and application server computers, enter the following command
at the operating system prompt:
csamconfigedit PortRange=49152-50176 display
The port settings are compared. If the settings do not match, change the settings
such that the settings match on both the computers, and restart the CA Workload
Automation AE services.
If the settings match, verify that physical port 7163 is not being blocked by a
firewall software on either of the computers.
Symptom:
When I issue the chk_auto_up command from a remote machine, a message similar to
the following is displayed:
Solution:
You must ensure that network problems are not preventing communication between
the client and the application server computers through the Operating System ping
command.
value
Defines the port number to display.
Default: 9000
2. On the application server computer , change to the %CSAM_SOCKADAPTER/bin
directory, and enter the following command at the instance command prompt:
csamconfigedit Port=value display
value
Defines the port number to display.
Default: 9000
3. Compare the outputs in Step 1and Step 2, and ensure that both the EnablePmux
and EnableSSL settings are identical.
4. On both the client and application server computers, enter the following command
at the instance command prompt:
csamconfigedit PortRange=49152-50176 display
The port settings are compared. If the settings do not match, change the settings
such that the settings match on both the computers, and restart the CA Workload
Automation AE services.
If the settings match, verify that physical port 7163 is not being blocked by a
firewall software on either of the computers.
setenv DB_CONNECTIONS=max_number
Or
export SCHED_SCALE=limit
export DB_CONNECTIONS=max_number
limit
Defines the maximum limit of process threads that can be started dynamically.
This value does not represent the total number of process threads that are
active. Rather, it is a scale value used by the scheduler to calculate the
maximum limit of process threads that can be started dynamically as the
workload demands. Therefore, a SCHED_SCALE value of 1 represents the
lowest ceiling of additional dynamic threads that can be started to process job
events (some arbitrary ceiling not necessarily equal to one). Increasing this
value increases the ability of the scheduler to process job events.
Default: 5
Limits: 1-64
max_number
Defines the maximum number of database connections that the scheduler can
connect to. Increasing this value increases the ability of the scheduler to
perform simultaneous database operations.
Default: 16
Limits: 1-128
3. Enter the following command at the operating system prompt:
eventor
The scheduler starts. The tuning parameters for the scheduler are defined. On
startup, the scheduler reads and applies the tuning parameters and these
parameter values persist throughout the life of the process.
Notes:
You can also define the SCHED_SCALE and DB_CONNECTIONS parameters in any of
the environment script files (autosys.UNIX shell.computer name) located in the
$AUTOUSER directory.
The application server also shares the same DB_CONNECTIONS tuning parameter.
The DB_CONNECTIONS parameter value is applied to both the scheduler and the
application server on startup under the following conditions:
You set this value in the environment script files located in the $AUTOUSER
directory.
You start the scheduler and the application server on the same computer after
sourcing the environment.
Example: Set the Maximum Limit of Process Threads That the Scheduler Can Start
Dynamically
This example sets the value used in the algorithm for controlling the maximum number
of process threads that the scheduler can start dynamically to seven.
setenv SCHED_SCALE 7
Example: Set the Maximum Number of Database Connections That the Scheduler Can
Connect To
This example sets the maximum number of database connections that the scheduler can
have to 17.
export DB_CONNECTIONS=17
7. Enter the following variable in the Variable field and its value in the Value field, and
click Set.
DB_CONNECTIONS
Defines the maximum number of database connections that the scheduler can
connect to. Increasing this value increases the ability of the scheduler to
perform simultaneous database operations.
Default: 16
Limits: 1-128
The DB_CONNECTIONS variable is listed in the Environment Variables pane.
8. Click the Services icon on the toolbar.
The Services - CA Workload Automation AE Administrator window appears,
displaying a list of services installed on the selected instance.
9. Right-click the scheduler service, and click Start.
The scheduler starts. The tuning parameters for the scheduler are defined. On
startup, the scheduler reads and applies the tuning parameters and these
parameter values persist throughout the life of the process.
Note: The application server also shares the same DB_CONNECTIONS tuning parameter.
On startup, if the scheduler and application server are running on the same computer,
the DB_CONNECTIONS parameter value is applied to both the scheduler and the
application server.
Example: Set the Maximum Limit of Process Threads That the Scheduler Can Start
Dynamically
Suppose that you want to set the value used in the algorithm for controlling the
maximum number of process threads that the scheduler can start dynamically to seven,
enter SCHED_SCALE in the Variable field and 7 in the Value field and click Set on the
System - CA Workload Automation AE Administrator window of the CA Workload
Automation AE Administrator.
Example: Set the Maximum Number of Database Connections That the Scheduler Can
Connect To
Suppose that you want to set the maximum number of database connections that the
scheduler can have to 17, enter DB_CONNECTIONS in the Variable field and 17 in the
Value field and click Set on the System - CA Workload Automation AE Administrator
window of the CA Workload Automation AE Administrator.
Or
export DB_CONNECTIONS=max_number
max_number
Defines the maximum number of database connections that the application
server can connect to. Increasing this value increases the ability of the
application server to process simultaneous CA Workload Automation AE client
and agent requests.
Default: 32
Limit: 1-128
3. Enter the following command at the operating system prompt:
unisrvcntr start waae_server.$AUTOSERV
The application server starts. The application server tuning parameter is defined.
On startup, the application server reads and applies the DB_CONNECTIONS
parameter and this parameter value persists throughout the life of the process.
Notes:
You can also define the DB_CONNECTIONS tuning parameter in any of the
environment script files (autosys.UNIX shell.computer name) located in the
$AUTOUSER directory.
The scheduler also shares the same DB_CONNECTIONS tuning parameter. The
DB_CONNECTIONS parameter value is applied to both the scheduler and the
application server on startup under the following conditions:
You set this value in the environment script files located in the $AUTOUSER
directory.
You start the scheduler and the application server on the same computer after
sourcing the environment.
Example: Set the Maximum Number of Database Connections That the Application
Server Can Connect To
This example sets the maximum number of database connections that the application
server can have to 42.
export DB_CONNECTIONS=42
Note: The scheduler also shares the same DB_CONNECTIONS tuning parameter. On
startup, if the scheduler and application server are running on the same computer, the
DB_CONNECTIONS parameter value is applied to both the scheduler and the application
server.
Example: Set the Maximum Number of Database Connections That the Application
Server Can Connect To
Suppose that you want to set the maximum number of database connections that the
application server can have to 42, enter DB_CONNECTIONS in the Variable field and 42
in the Value field and click Set on the System - CA Workload Automation AE
Administrator window of the CA Workload Automation AE Administrator.
Trace Settings
The scheduler, application server, agent, client utilities, and communication and
database infrastructure routines generate trace messages.
For the scheduler, application server, or the agent that generate their own log files,
trace messages are added to the log files when the components encounter them.
For applications (such as jil, autorep, and sendevent client utilities) that are executed
interactively or in batches, trace messages are written to the active window or to a file if
streamed.
ISDBGACTIV
The ISDBGACTIV setting controls the display of trace messages. This setting is different
for the various CA Workload Automation AE components as follows:
For the client utilities, it is an operating system environment variable.
For the scheduler and application server, it is a parameter in the configuration file.
For the agent, it is a parameter in the agentparm.txt file.
Note: For more information about the parameters in the agentparm.txt file, see the
CA Workload Automation Agent for UNIX, Linux, or Windows Implementation Guide.
DBQUERY
Traces and measures the elapsed time of calls to the database.
DUMP
Traces data that CA Workload Automation AE sends or receives when
communication occurs through the internal communication interface or the
cross-platform interface.
Note: The dump files are located in the $AUTOUSER/out (on UNIX) or
%AUTOUSER%\out (on Windows) directory. The dump files with a prefix libmsg.*
are created when communication occurs through the internal communication
interface. The dump files with a prefix event_demon_dump.* are created when
communication occurs through the cross-platform interface.
EXTVJ
Generates trace data pertaining to user-defined job validation.
GBE
Traces scheduler events as they are read from the ujo_event table.
HEAVY
Returns full trace information.
JOB
Traces the run time of a job.
LIGHT
Returns light trace information.
MS
Adds milliseconds to the time in the log output.
OFF
Returns no trace information. This is the default.
RESOURCEn
Traces CA Automation Suite for Data Centers SDK.
Notes:
n specifies the level of tracing. This value can be a number in the range 1 to 10,
where 1 is the lowest level of tracing and 10 is the highest.
The dcam_appsrvr.log and dcam_scheduler.log log files are created in the
$AUTOUSER/out (on UNIX) or %AUTOUSER%/out (on Windows) directory.
Note: To combine trace settings, separate each setting with a comma (,). If you use the
OFF setting with other settings, the traceable applications will not display a trace.
More Information:
To configure the client utilities to generate run-time traces, set the ISDBGACTIV value as
follows:
On UNIX, issue either the setenv or export command (depending on your UNIX
operating system) at the operating system prompt.
On Windows, issue the set command at the instance command prompt.
Notes:
You must set the ISDBGACTIV value before initiating the client utilities.
On startup, the traceable applications search for the specified ISDBGACTIV value
and output the appropriate trace messages according to the value assigned.
This example configures the client utilities to generate light trace information on UNIX.
export ISDBGACTIV=LIGHT
This example configures the client utilities to generate light trace information on
Windows.
set ISDBGACTIV=LIGHT
More Information:
The scheduler and application server process IDs are displayed as follows:
CA Services Status Report
Component Name Pid Status
------------------------------------ ------- --------------
WAAE Scheduler (ACE) 32220 running
3. Edit the following parameter in the configuration file, and save the file:
ISDBGACTIV=value,value,...
value, value,...
Defines the level of trace information to return to the scheduler and
application server logs.
4. Enter the following commands at the operating system prompt:
kill HUP scheduler_pid
scheduler_pid
Defines the process ID of the scheduler that you want to pause and resume.
applicationserver_pid
Defines the process ID of the application server that you want to pause and
resume.
The scheduler and the application server resume. The scheduler and the application
server are configured to generate run-time traces. The new trace level is displayed
in the log file for confirmation.
Notes:
You can modify the ISDBGACTIV value at any time while the traceable applications
are running. On startup, the traceable applications search for the specified
ISDBGACTIV value and output the appropriate trace messages.
On Windows, you can configure the scheduler and application server to generate
run-time traces by setting the ISDBGACTIV value using the System - CA Workload
Automation AE Administrator window of CA Workload Automation AE
Administrator. After you modify the ISDBGACTIV value, you must pause and resume
the services using the System - CA Workload Automation AE Administrator window
of CA Workload Automation AE Administrator. For more information about adding,
modifying, or deleting environment variables or pausing and resuming a service
using CA Workload Automation AE Administrator, see the Online Help.
More information:
Note: For more information about the log.level, log.archive, and log.maxsize parameters
and configuring agent log file properties, see the CA Workload Automation Agent for
UNIX, Linux, or Windows Implementation Guide.
More Information:
Index 267
commands synchronizing 147
autoaggr 206 tuning 172, 175
components verifying connection 227
agent 16 Database Problem 50
application server 15 Database Rollover 50
clients 17 DateFormat 33
event server 14 DBAccess 143
example scenario 18, 20 DBAccess Parameter 143
interacting 18, 20 DBEventReconnect 162, 164
overview 13 DBLibWaitTime 161
schedulers 15 DBMaint script 158, 159
troubleshooting 215 DBMaint.bat batch file 158, 159
web server 17 DBMaintCmd 157
configuration files DBMaintTime 157
file on UNIX 28 DCAURL 30
parameters 30 DCAUser 30
sample 29 deadlock 218
configuring debugging 261
agent log file properties 265 defining
CA Workload Automation AE to send SNMP traps application server host name 113
on UNIX 56 communication alias 115
CA Workload Automation AE to skip starting communication ports 91, 116
condition evalauation for queued jobs 97 event server information 141
client utilities 263 load balancing method 67
event server time-out 161 unique identifier 114
file on UNIX 28 deleting aggregated statistics 213
Oracle database 175 dual event server mode 139
overview 27 dual event servers 14
resource wait poll interval 80
scheduler heartbeat interval 70, 165 E
SNMP traps 56 email notifications
Sybase server 173 on UNIX 52
controlling using CA Workload Automation AE 55
job starts 81 enabling IP address caching 63
job status 87 event servers
CrossPlatformScheduling 111 defining the information on UNIX 141
dual event server mode 139
D maintaining 137
database overview 14
connections 164 rollover recovery 155
daily maintenance 157 single event server mode 138, 154
defined 14 synchronizing 152
general maintenance 156 troubleshooting 217, 218
maintenance 157 EventServer 30, 143
maintenance command 157 EventServer parameters 143
maintenance time 157 EvtTransferWaitTime 76
rebuilding table indexes 171
storage requirements 156
Index 269
GlobalPendMachStatus 30, 88 definitions 126
HAPollInterval 70, 165 primary scheduler after a failover 131
InetdSleepTime 32 restoring definitions 126
ISDBGACTIV 261 RoleDesignator 109
KillSignals 72 rstatd daemon 67, 69
LocalMachineDefinition 78
LOGROLLOVER 128 S
MachineMethod 67 sample configuration file 29
MaxRestartTrys 74, 75 sample files 29, 33
MaxRestartWait 71 SchedAuxiliaryListeningPort 91, 93
NotifyAckTimeout 30 schedulers
NotifyMethod 30 log disk space 67
NotifyServerNode 30 log file location 127
NotifySMTPHost 30 maintaining 121
NotifySMTPUser 30 monitoring 127
overview 30 overview 15
PrimaryFailbackMode 30 restoring primary 131
Provider 142 rollover notification 130
RemoteProFiles 98, 100 running in test mode 132, 134
ResourceWaitPollInterval 80, 81 start processing 121
RestartConstant 71 starting 192
RestartFactor 71 starting in global mode 95
RoleDesignator 109 stopping 194
SchedAuxiliaryListeningPort 91, 93 troubleshooting 219, 220
ServiceDeskCust 30 tuning 254, 256
ServiceDeskURL 30 ServiceDeskCust 30
ServiceDeskUser 30 ServiceDeskURL 30
SnmpCommunity 30, 56 ServiceDeskUser 30
SnmpManagerHosts 30, 56 services
UnicenterEvents 30 pausing 197
UseEncryption 30 restarting 197
pausing services 197 starting 192, 193
PrimaryFailbackMode 30 status 199
PrimaryFailbackMode file 30 stopping 194, 196, 197
Provider 142 setting
provider parameter 142 connection attempts 162
event transfer time-out 76
Q job heartbeat interval 77
queuing jobs 97 job restart attempts 74
notifications 50
R scheduler log disk space 66
reindexDB script 171 single event server mode 138
RemoteProFiles 98, 100 SNMP traps 56, 58
reporting aggregated statistics 210 SnmpCommunity 30, 56
ResourceWaitPollInterval 80, 81 SnmpManagerHosts 30, 56
RestartConstant 71 specifying
RestartFactor 71 local machine 78
restoring log roll over 128
T
trace messages 261
troubleshooting
agent 228, 229, 230, 231
application server 244, 245, 246, 247, 249, 251
components 215
event server 217, 218
job failure 232, 236, 237, 238, 239, 241, 242
scheduler 220, 221, 223
Windows services 216
tuning
application server 258, 259
Oracle database 175, 176
scheduler 254, 256
Sybase server 172, 173
U
UnicenterEvents 30
UNIX
defining the event server information 141
UseEncryption 30
V
verifying
service status 199
viewing scheduler log file 127
W
WAAE.txt file 35
Windows
controlling services 191
Index 271