ca workload automation agent for micro focus workload automation... · ca wa agent for micro focus...

29
Implementation Guide r11.3 CA Workload Automation Agent for Micro Focus

Upload: vucong

Post on 08-Apr-2018

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Implementation Guide r11.3

CA Workload Automation Agent for Micro Focus

Page 2: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

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 may not be copied, transferred, reproduced, disclosed, modified or duplicated, in whole or in part, without the prior written consent of CA. This Documentation is confidential and proprietary information of CA and may not be disclosed by you or used for any purpose other than as may be permitted in (i) a separate agreement between you and CA governing your use of the CA software to which the Documentation relates; or (ii) a separate confidentiality agreement between you and CA.

Notwithstanding the foregoing, 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 © 2010 CA. All rights reserved. All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.

Page 3: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

CA Technologies Product References

This document references the following CA Technologies products:

■ CA Process Automation

■ CA Workload Automation AE

■ 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 Microsoft SQL Server (CA WA Agent for Microsoft SQL Server)

■ 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 CA 7 Edition

■ CA Workload Automation DE

■ CA Workload Automation Desktop Client (CA WA Desktop Client)

■ CA Workload Automation ESP Edition

■ CA Workload Control Center

Page 4: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

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

Providing Feedback About Product Documentation

If you have comments or questions about CA Technologies product documentation, you can send a message to [email protected].

To provide feedback about CA Technologies product documentation, complete our short customer survey which is available on the CA Support website at http://ca.com/docs.

Page 5: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Contents 5

Contents

Chapter 1: Introduction 7

Intended Audience ....................................................................................................................................................... 7

Agents and Agent Plug-ins ........................................................................................................................................... 7

CA WA Agent for Micro Focus ...................................................................................................................................... 8

Job Types Supported by CA WA Agent for Micro Focus ............................................................................................... 8

Chapter 2: Implementation Checklist 9

How to Install and Configure CA WA Agent for Micro Focus ....................................................................................... 9

Deciding Whether to Create an Alias ........................................................................................................................... 9

Chapter 3: Installing the Agent Plug-in 11

Controlling the Agent Plug-in ..................................................................................................................................... 11

Install CA WA Agent for Micro Focus on Windows .................................................................................................... 11

Load the event_manager Exit Routine on Windows .................................................................................................. 13

Verify Micro Focus Loaded the event_manager Exit Routine .................................................................................... 14

How to Remove the Agent Plug-in ............................................................................................................................. 14

Disable CA WA Agent for Micro Focus ................................................................................................................ 14

Remove the Agent Plug-in from the Scheduling Manager .................................................................................. 16

Chapter 4: Your Scheduling Manager and the Agent Plug-in 17

Configuring the Scheduling Manager to Work with the Agent Plug-in ...................................................................... 17

Running a Verification Test ........................................................................................................................................ 18

Chapter 5: Configuring the Agent Plug-in 19

How to Configure Agent Parameters ......................................................................................................................... 19

Configure Agent Parameters on the Agent ......................................................................................................... 19

Configure Agent Parameters on the Scheduling Manager.................................................................................. 20

CA WA Agent for Micro Focus Parameters in the agentparm.txt File ........................................................................ 20

How to Set Up an Alias for the Agent Plug-in ............................................................................................................. 21

Create an Alias for the Agent Plug-in .................................................................................................................. 21

Configuring an Alias on the Scheduling Manager ............................................................................................... 21

Configure Local Security for Micro Focus Jobs ........................................................................................................... 22

Processing Success and Failure Criteria ..................................................................................................................... 23

Change the CMPC Offset Values ......................................................................................................................... 24

Page 6: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

6 Implementation Guide

Chapter 6: Related Documentation 27

CA Workload Automation AE Documentation ........................................................................................................... 27

CA Workload Automation DE Documentation ........................................................................................................... 28

Index 29

Page 7: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Chapter 1: Introduction 7

Chapter 1: Introduction

This section contains the following topics:

Intended Audience (see page 7) Agents and Agent Plug-ins (see page 7) CA WA Agent for Micro Focus (see page 8) Job Types Supported by CA WA Agent for Micro Focus (see page 8)

Intended Audience

This document is for system administrators who are responsible for upgrading, installing, and configuring agents.

You require knowledge of the operating system where the agent is installed and any third-party products or software technology that the agent uses.

Note: The term Windows refers to any Microsoft Windows operating system supported by the agent.

Agents and Agent Plug-ins

Agents are the key integration components of CA Technologies workload automation products. Agents let you automate, monitor, and manage workload on all major platforms, applications, and databases. To run workload on a particular system, you install an agent on that system. If your workload must run on a UNIX computer, for example, you can install and configure the CA WA Agent for UNIX. The agent lets you run UNIX scripts, execute UNIX commands, transfer files using FTP, monitor file activity on the agent computer, and perform many other tasks.

You can extend the functionality of the agent by installing one or more agent plug-ins in the agent installation directory. If you have a relational database such as Oracle, for example, you can install a database agent plug-in to query and monitor the database. Other agent plug-ins are also available. For more information about agent plug-ins, see the Implementation Guide for the appropriate agent plug-in.

Note: The agent plug-ins are only available for UNIX, Linux, and Windows operating environments.

Page 8: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

CA WA Agent for Micro Focus

8 Implementation Guide

Example: Workload with Different Types of Jobs

The following workload contains z/OS jobs, a UNIX job, an SAP job, and a Windows job, running on different computers, in different locations, and at different times:

CA WA Agent for Micro Focus

CA WA Agent for Micro Focus provides an interface to the Micro Focus Enterprise Server.

Job Types Supported by CA WA Agent for Micro Focus

With the CA WA Agent for Micro Focus, you can define and run the following job:

Micro Focus

Lets you run mainframe JCL and COBOL programs in a Windows environment.

Page 9: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Chapter 2: Implementation Checklist 9

Chapter 2: Implementation Checklist

This section contains the following topics:

How to Install and Configure CA WA Agent for Micro Focus (see page 9) Deciding Whether to Create an Alias (see page 9)

How to Install and Configure CA WA Agent for Micro Focus

CA WA Agent for Micro Focus is an agent plug-in that installs into the CA WA Agent for UNIX, Linux, or Windows installation directory.

Note: Before installing the agent plug-in, you must install and configure the agent.

To install and configure the agent plug-in, follow these steps:

1. Review the system requirements in the CA Workload Automation Agent for Micro Focus Release Notes.

2. Decide whether to create an alias (see page 9).

3. Install the agent plug-in (see page 11).

4. Load the event_manager exit routine (see page 13).

5. Verify Micro Focus loaded the event_manager exit routine (see page 14).

6. Configure local security for Micro Focus jobs (see page 22).

7. Configure the scheduling manager to work with the agent plug-in (see page 17).

8. (Optional) Run a verification test (see page 18).

Deciding Whether to Create an Alias

Note: If you are installing the agent plug-in to work with CA Workload Automation DE, you must set up an alias. Setting up an alias for use with other scheduling managers is optional.

You install an agent plug-in into the agent installation directory to extend the core functionality of the agent. By default, the agent plug-in operates under the same agent name that is assigned to the agent. An alias lets you create a unique agent name for an agent plug-in, which is useful for controlling agent security or for setting up clustered environments.

Page 10: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Deciding Whether to Create an Alias

10 Implementation Guide

Suppose you have installed an agent named AGT10 on a UNIX computer. Users who have access to that agent through their security permissions specify AGT10 as the agent name in their job definitions. Now suppose that you install an agent plug-in into the installation directory for AGT10. You can create an alias for the agent plug-in, for example, AGT10_DB. You can then restrict access to that alias to only those users that run database workload. Those specific users then must specify AGT10_DB as the agent name in their job definitions.

Each agent plug-in has a default alias that you can enable during installation. For example, the agent plug-in for CA WA Agent for Databases has the default alias agentname_DB. You can enable or change the default alias name after installation. To work, you must also configure the alias on the scheduling manager.

To configure agent aliasing for clustered environments, see the CA Workload Automation Agent for UNIX, Linux, or Windows Implementation Guide.

Page 11: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Chapter 3: Installing the Agent Plug-in 11

Chapter 3: Installing the Agent Plug-in

This section contains the following topics:

Controlling the Agent Plug-in (see page 11) Install CA WA Agent for Micro Focus on Windows (see page 11) Load the event_manager Exit Routine on Windows (see page 13) Verify Micro Focus Loaded the event_manager Exit Routine (see page 14) How to Remove the Agent Plug-in (see page 14)

Controlling the Agent Plug-in

You control the agent plug-in using the agent where the plug-in is installed. Depending on your operating system, you have several options for starting or stopping the agent. On UNIX, you must issue a command to run a start or stop script. On Windows, you must start or stop the agent as a Windows service using the command prompt.

Note: For instructions to start and stop the agent, see the CA Workload Automation Agent for UNIX, Linux, or Windows Implementation Guide.

Install CA WA Agent for Micro Focus on Windows

You install the agent plug-in using an interactive program that prompts you for the required information.

To install CA WA Agent for Micro Focus on Windows

1. Copy the microfocus_win.pak file into the agent installation directory. You can copy this file from the product CD or download a zip file that contains the file from the CA Support Online website, found at http://ca.com/support.

2. Change to the agent installation directory. For example, type the following command:

cd C:\Program Files\CA\WA Agent R11.3

3. Type the following command to stop the agent:

cybAgent -s

The agent stops.

Page 12: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Install CA WA Agent for Micro Focus on Windows

12 Implementation Guide

4. Stop the Micro Focus server.

5. Type the following command to start the installation program:

PluginInstaller.exe microfocus_win.pak "installDir"

installDir

Specifies the agent installation directory.

For example, type the following command:

PluginInstaller.exe microfocus_win.pak .

The CA WA Agent for Micro Focus installation program opens

6. Enter the path to the BIN directory of Micro Focus Enterprise Server, for example:

C:\Program Files\Micro Focus\Studio 5.0\Base\BIN

7. Type Y or N as follows:

■ Y—Enables the default alias.

■ N—Disables the default alias.

Default: Y

Note: The default alias for the Micro Focus Agent plug-in is AGENTNAME_MF.

8. Enter the number that corresponds to your version of Micro Focus Enterprise Server:

■ 0—Specifies version 5.0

■ 1—Specifies version 5.1

The installation program displays a message and closes automatically upon a successful installation.

9. Type the following command to start the agent:

cybAgent -a

The agent starts.

10. Start the Micro Focus server.

Note: The agent installation program backs up all modified and replaced files. The backup files are compressed into a file named backup_timestamp.zip, located in the backups subdirectory of the agent installation directory. You can use Winzip or other similar utilities to open the backup file. A backup copy of the agentparm.txt file is stored in the zip file.

More information:

Deciding Whether to Create an Alias (see page 9)

Page 13: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Load the event_manager Exit Routine on Windows

Chapter 3: Installing the Agent Plug-in 13

Load the event_manager Exit Routine on Windows

You configure a Micro Focus Enterprise Server environment variable to load the event_manager exit routine that passes Micro Focus event information to the agent.

To load the event_manager exit routine on Windows

1. Open the System Properties dialog on your Windows computer.

For example, click Start, Control Panel, System.

2. Click the Advanced tab.

3. Click Environment Variables.

The Environment Variables dialog opens.

4. Click New to create a system environment variable.

5. Enter the following information:

■ Variable name—ES_EMP_EXIT_1

■ Variable value—event_manager

The environment variable is added.

6. Restart the Windows computer.

7. Type the following command to start the agent:

cybAgent -a

The agent starts.

8. Start the Micro Focus server.

Page 14: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Verify Micro Focus Loaded the event_manager Exit Routine

14 Implementation Guide

Verify Micro Focus Loaded the event_manager Exit Routine

You verify that Micro Focus loaded the event_manager.dll exit routine using Enterprise Server Administration.

To verify that Micro Focus loaded the event_manager exit routine

1. Start Enterprise Server Administration.

2. Locate the row for your Micro Focus Server and click Details in the Current status column.

The details page for the server appears.

3. Click the Control tab.

4. Click ES Monitor and Control.

The Server Information page appears.

5. Press Display located in the Diagnostics section on the left side of the page.

The log activity for the server appears in a browser.

6. Search the log text for event_manager. The following text indicates Micro Focus loaded the event_manager exit routine successfully:

Event Manager exit enabled (event_manager)

How to Remove the Agent Plug-in

You can remove an agent plug-in when you no longer require it.

To remove the agent plug-in, follow these steps:

1. Disable the agent plug-in (see page 14).

2. (Optional) Remove the agent plug-in from the scheduling manager (see page 16).

Disable CA WA Agent for Micro Focus

Use this procedure when you want to remove CA WA Agent for Micro Focus from your system.

To remove CA WA Agent for Micro Focus

1. Verify that all workload is complete.

2. Stop the agent.

Page 15: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

How to Remove the Agent Plug-in

Chapter 3: Installing the Agent Plug-in 15

3. Open the agentparm.txt file located in the agent installation directory.

4. Comment out the plugins.start_internal_n parameter if you created an alias during the agent plug-in installation, and renumber any subsequent plugins.start_internal_n parameters.

Note: Renumber all other agent plug-ins that are assigned a greater number than the agent plug-in you are uninstalling.

5. Comment out the communication.alias parameter if you created an alias during the agent plug-in installation.

Note: Renumber any subsequent communication.alias_n parameters.

6. Comment out the microfocus.commandpath parameter.

7. Save and close the agentparm.txt file.

8. Remove the microfocus.jar file from the JARs subdirectory of the agent installation directory.

9. Remove the event_manager.dll and init.txt files from the agent installation directory.

10. Remove the ES_EMP_EXIT_1 variable from your system.

11. Start the agent.

Example: Renumber the plugins.start_internal_n Parameter

Suppose you have the following agent plug-ins set in the agentparm.txt file:

plugins.start_internal_1=runner

plugins.start_internal_2=sap

plugins.start_internal_3=ftp

plugins.start_internal_4=microfocus

To disable the agent plug-in for CA WA Agent for Micro Focus, you would modify the agentparm.txt file as follows:

plugins.start_internal_1=runner

plugins.start_internal_2=sap

plugins.start_internal_2=ftp

#plugins.start_internal_3=microfocus

Page 16: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

How to Remove the Agent Plug-in

16 Implementation Guide

Example: Renumber the communication.alias_n Parameter

Suppose you have two alias agent plug-ins. The agentparm.txt file has the following parameters:

communication.alias_1=AGENTNAME_SAP

communication.alias_2=AGENTNAME_MF

To disable the agent plug-in for CA WA Agent for Micro Focus, modify the agentparm.txt file as follows:

communication.alias_1=AGENTNAME_SAP

#communication.alias_1=AGENTNAME_MF

More information:

Load the event_manager Exit Routine on Windows (see page 13)

Remove the Agent Plug-in from the Scheduling Manager

In addition to disabling the agent plug-in, you can remove it from the configuration on the scheduling manager.

Note: For detailed instructions to remove the agent from the scheduling manager, see the documentation for your scheduling manager.

Page 17: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Chapter 4: Your Scheduling Manager and the Agent Plug-in 17

Chapter 4: Your Scheduling Manager and the Agent Plug-in

This section contains the following topics:

Configuring the Scheduling Manager to Work with the Agent Plug-in (see page 17) Running a Verification Test (see page 18)

Configuring the Scheduling Manager to Work with the Agent Plug-in

If you have defined the following items for the agent plug-in, you must configure the items on the scheduling manager:

■ An alias

■ A user

For detailed configuration instructions, see the documentation for your scheduling manager.

Page 18: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Running a Verification Test

18 Implementation Guide

Running a Verification Test

For your verification test, you define and run a Micro Focus job. To define the job, you require the following information:

Agent name

Specifies the name of your agent or the alias for the CA WA Agent for Micro Focus if you created an alias.

JCL name

Specifies the path to and name of a JCL file to run.

JCL type

Specifies whether to pass the JCL by content or by reference to the server.

Micro Focus server address type

Specifies whether the address is a server name or the IP address and port of the Micro Focus server.

Micro Focus server address

Specifies the server name or the IP address and port of the Micro Focus server.

For more information about defining a Micro Focus job, see the documentation for your scheduling manager.

Page 19: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Chapter 5: Configuring the Agent Plug-in 19

Chapter 5: Configuring the Agent Plug-in

This section contains the following topics:

How to Configure Agent Parameters (see page 19) CA WA Agent for Micro Focus Parameters in the agentparm.txt File (see page 20) How to Set Up an Alias for the Agent Plug-in (see page 21) Configure Local Security for Micro Focus Jobs (see page 22) Processing Success and Failure Criteria (see page 23)

How to Configure Agent Parameters

You configure agent parameters by editing the agentparm.txt file, located in the agent installation directory. When you install the agent, the installation program adds frequently-configured agent parameters to the file. Other agent parameters exist, which you must manually add to the agentparm.txt file to configure the agent. For any configuration changes to take effect, always stop and restart the agent. For some agent parameters, such as the agent name and communication parameters, also configure the parameters on the scheduling manager.

To configure agent parameters, do the following:

1. Configure agent parameters on the agent (see page 19).

2. Configure agent parameters on the scheduling manager (see page 20).

Configure Agent Parameters on the Agent

Use the following procedure to configure agent parameters on CA WA Agent for UNIX, Linux, or Windows.

To configure agent parameters on the agent

1. Change to the agent installation directory.

2. Stop the agent. At the command prompt, enter the following command:

■ On UNIX:

./cybAgent -s

■ On Windows:

cybAgent -s

The agent stops.

Page 20: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

CA WA Agent for Micro Focus Parameters in the agentparm.txt File

20 Implementation Guide

3. Open the agentparm.txt file located in the agent installation directory.

4. Edit the parameters to make the required changes.

5. Save and close the agentparm.txt file.

6. Start the agent. At the command prompt, enter the following command:

■ On UNIX:

./cybAgent &

■ On Windows:

cybAgent -a

The agent starts and the parameters are configured.

Configure Agent Parameters on the Scheduling Manager

When you change an agent parameter in the agentparm.txt file that is also defined on the scheduling manager, such as the agent name, configure the agent parameter on the scheduling manager.

Note: For detailed instructions to configure agent parameters on the scheduling manager, see the documentation for your scheduling manager.

CA WA Agent for Micro Focus Parameters in the agentparm.txt File

The agent plug-in installation program adds the following parameter to the agentparm.txt file that is located in the agent installation directory. You can open this file in any standard text editor. You must save the file after making edits to persist the changes.

microfocus.commandpath

Defines the path to the event_manager.dll. This value corresponds to the path, set during the agent plug-in installation, to the BIN directory of the Micro Focus Enterprise Server.

Page 21: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

How to Set Up an Alias for the Agent Plug-in

Chapter 5: Configuring the Agent Plug-in 21

How to Set Up an Alias for the Agent Plug-in

When you install the agent plug-in, you are prompted to create a default alias, which you can change after installation. If you enable an alias on the agent plug-in, you must also configure the alias on the scheduling manager.

To set up an alias for the agent plug-in, follow these steps:

1. Create an alias for the agent plug-in (see page 21).

2. Configure the alias on the scheduling manager (see page 21).

More information:

Deciding Whether to Create an Alias (see page 9)

Create an Alias for the Agent Plug-in

An alias lets you create a unique agent name for an agent plug-in. Each agent plug-in has a default alias, which you can enable or change.

To create an alias for the agent, configure the following agent parameter on the agent:

communication.alias_n

Defines the alias name for the agent. The n suffix increments sequentially for each alias agent.

Note: To enable an alias on the agent, verify that the comment character (#) is removed from the parameter line.

Configuring an Alias on the Scheduling Manager

When you create an alias for an agent plug-in, you must also configure the alias on the scheduling manager. You must define the alias on the scheduling manager with the same address, port number, and encryption key as the agent where the agent plug-in is installed.

Note: For detailed instructions to configure an alias on the scheduling manager, see the documentation for your scheduling manager.

Page 22: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Configure Local Security for Micro Focus Jobs

22 Implementation Guide

Configure Local Security for Micro Focus Jobs

If local security is enabled on the agent, you must add a security rule to the security.txt file so that Micro Focus jobs can run on the agent computer.

To configure local security for Micro Focus jobs

1. Open the agentparm.txt file located in the agent installation directory.

2. Review the security.level parameter setting.

■ If security.level is set to on, local security is enabled. Continue with step 3 to configure local security.

■ If security.level is set to off, local security is disabled. No changes are required. Close the agentparm.txt file.

3. Open the security.txt file located in the agent installation directory.

4. Add the following security rule.

x a * * installdir\cybMFCommand

installdir

Specifies the agent installation directory.

Note: This rule allows any scheduling manager user to submit Micro Focus jobs that run under any agent user ID.

5. Save and close the file.

6. Type the following command at the command prompt to refresh the security.txt file:

cybAgent -r

The local security is configured to allow Micro Focus jobs to run.

Page 23: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Processing Success and Failure Criteria

Chapter 5: Configuring the Agent Plug-in 23

Processing Success and Failure Criteria

Some completion codes (CMPC) returned by CA WA Agent for Micro Focus contain a character prefix to determine the completion type and distinguish the code from normal completion. For example, a Micro Focus job that ends with a JES error returns CON03, indicating a job concluded error.

Success and failure criteria specified by exit codes in the job definition are compared against the actual CMPC returned by a Micro Focus job. To evaluate job success and failure criteria, string-based CMPC values must be converted to numbers. The conversion procedure the agent uses adds a CMPC offset based on the type of completion. To treat completion code CON03 as success, for example, a user must specify 1500003 as a successful exit. The value 1500003 results from combining the CMPC offset for job concluded errors (1500000) listed in the following table with the last two digits of the CON03 completion code.

System abend completion codes (prefixed by S) are hexadecimal. The agent only looks at the actual completion code, not the appended reason code after the '-' character. To treat completion code S806-00 as success, for example, a user must specify 1102054 as a successful exit code. The value 1102054 results from combining the CMPC offset for system abends (1100000) with the hexadecimal value of 806 (2054).

Normal completion return codes have no prefix and thus no offset is added.

The following table lists the default CMPC offset values the agent uses to convert Micro Focus job completion codes.

Note: You can configure the agent to change these CMPC offset values.

Completion Type Completion Code (CMPC) Prefix

CMPC Offset

Normal

User abend U 1000000

System abend S 1100000

RU error RU 1200000

Unknown error UN 1300000

RTS error RTS 1400000

Job concluded error CON 1500000

SEP termination SEP 1600000

Page 24: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Processing Success and Failure Criteria

24 Implementation Guide

More information:

Change the CMPC Offset Values (see page 24)

Change the CMPC Offset Values

The completion code (CMPC) offset values the agent uses are set using the following algorithm:

CMPC Offset = Base + Step

By default, the agent is set to a Base value of 1000000 and a Step value of 100000. You can you configure the agent to change the default CMPC offset values by changing the Base, the Step, or both values.

To change the CMP offset values

1. Change to the agent installation directory.

2. Stop the agent.

3. Open the agentparm.txt file located in the agent installation directory.

4. (Optional) Add the following parameter to the file and set the value to change the default Base:

MF_EXITCODE_Base

Defines the starting CMPC offset value that the agent uses to convert string-based completion codes returned from Micro Focus.

Note: Setting MF_EXITCODE_Base=0 overrides the completion code conversion the agent uses and returns the completion codes as is from Micro Focus.

Default: 1000000

5. (Optional) Add the following parameter to the file and set the value to change the default Step:

MF_EXITCODE_Step

Defines the increment between completion type CMPC offset values.

Default: 100000

6. Save and close the agentparm.txt file.

7. Start the agent.

Page 25: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Processing Success and Failure Criteria

Chapter 5: Configuring the Agent Plug-in 25

Example: Changing the CMPC Offset Increment

Suppose you want to increase the increment between the completion codes the agent uses from 100000 to 200000. You can add the following parameter to the agentparm.txt file:

MF_EXITCODE_Step=200000

The agent then uses the following CMPC offset values:

Completion Type Completion Code (CMPC) Prefix

CMPC Offset

Normal

User abend U 1000000

System abend S 1200000

RU error RU 1400000

Unknown error UN 1600000

RTS error RTS 1800000

Job concluded error CON 2000000

SEP termination SEP 2200000

More information:

How to Configure Agent Parameters (see page 19)

Page 26: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following
Page 27: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Chapter 6: Related Documentation 27

Chapter 6: Related Documentation

Documentation for the agent and scheduling managers is available in PDF format at http://ca.com/support.

Note: To view PDF files, you must download and install the Adobe Reader from the Adobe website if it is not already installed on your computer.

This section contains the following topics:

CA Workload Automation AE Documentation (see page 27) CA Workload Automation DE Documentation (see page 28)

CA Workload Automation AE Documentation

To work with the agent and CA Workload Automation AE, see the following documentation:

Task Documentation

Configure the scheduling manager to work with the agent

CA Workload Automation AE UNIX Implementation Guide

CA Workload Automation AE Windows Implementation Guide

Define, monitor, and control jobs

CA Workload Automation AE Reference Guide

CA Workload Automation AE User Guide

CA Workload Control Center Workload Scheduling Guide

Page 28: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

CA Workload Automation DE Documentation

28 Implementation Guide

CA Workload Automation DE Documentation

To work with the agent and CA Workload Automation DE, see the following documentation:

Task Documentation

Configure the scheduling manager to work with the agent

CA Workload Automation DE Admin Perspective Help

Define jobs

CA Workload Automation DE Define Perspective Help

Monitor and control jobs CA Workload Automation DE Monitor Perspective Help

Note: The online help is available in HTML and PDF formats.

Page 29: CA Workload Automation Agent for Micro Focus Workload Automation... · CA WA Agent for Micro Focus 8 Implementation Guide Example: Workload with Different Types of Jobs The following

Index 29

Index

A

agent plug-in configuring • 19 controlling • 11 description • 7 function • 8 installation and configuration process • 9 installing (UNIX, Windows) • 11 uninstall process • 14 using an alias • 9

agentparm.txt file, parameters • 20 alias

description • 9 setup process • 21

C

configuration parameters, descriptions • 20 configuration process, agent plug-in • 19

D

documentation, scheduling manager • 27

I

installation instructions • 11 process • 9 removing the plug-in • 14 verification test • 18

J

job types, supported • 8

N

name, agent plug-in • 21

S

scheduling manager configuration for the agent plug-in • 17 configuring agent parameters • 20 configuring an alias • 21 documentation • 27

starting and stopping, agent plug-in • 11

V

verification test, agent plug-in installation • 18

W

workload example, different jobs • 7