253 r11 3 5 Cookbook
253 r11 3 5 Cookbook
253 r11 3 5 Cookbook
5 Support Cookbook
CA Workload Automation
AE r11.3.5 Support
Cookbook
The information in this document is usable on all WA AE certified Linux,
UNIX, and Windows platforms. It is verified for 11.3.5 and 11.3.5
Incremental 1 versions.
MARCH 2013
David W. Martin
Joseph E. Neumann
Lee Peterson
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.
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.
Table of Contents
EXECUTIVE SUMMARY 4
Challenge 4
Opportunity 4
Benefits 4
Section 1: CA CDF Topic 5
CA CDF Usage 5
CA CDF Example 6
Section 2: Install Caveats To Be Aware Of 9
EEM Install and A Non-root User 9
EEM Install and IPv6 10
Section 3: AE Topics 11
AE Directory and File Permissions 11
Upgrade AutoSys and WCC 13
General Principles 13
Upgrade Steps 13
Upgrade the CA EEM Server 15
Upgrade from AutoSys 4.5x or r11 to AE r11.3.5 16
Upgrade AutoSys 4.5x or r11 to AE r11.3.5 (Oracle) 16
Upgrade from AE r11.3 to AE r11.3.5 33
Upgrade AE r11.3 to AE r11.3.5 (Oracle) 34
Upgrade AE r11.3 to AE r11.3.5 (Sybase) 42
AE r11.3.5 Port Architecture 51
Repair an AE r11.3.5 Installation 52
Use the DataMover Application for Data Migrations 59
Unattended AE Install Failure Return Code Meanings 61
Create Oracle Tablespaces, Users, and Roles 63
Configure an Agent to be Compatible with AE 65
Clean Up After a Catastrophic Install or Uninstall Failure 68
Perform ‘sendevent’ in Batch 74
Debug Options, Environment Variables, and Tracing 75
AE Installation Environment Variables 75
AE Installation Tracing 76
AE Interview Forward and Backward Navigation Logic Flow 79
AE Interview Database Connection Test 81
Section 4: Benefits 82
Assist the Customer – Enable Technical Support 82
Assist the Customer 82
Enable Technical Support 82
Section 5 82
Conclusions 82
Section 6 82
References 82
Section 7 83
About the Authors 83
Executive Summary
Challenge
New releases of the WA AE product have had a number of significant architectural changes to the product to improve its
performance and robustness. These changes have resulted in differences in production installation and migration including
an increase in information that is required to be specified. Though the bulk of the information is listed in the various
platform Installation Guides, User Reference Manuals and specific Release Notes, an overall walkthrough of the install has
not always been readily available in one place. This direct walkthrough document is being made available here.
This document will not only help customers prepare for and perform installs, but it will help provide discussion points for
CA Technologies Technical Support (Level 1 support) staff when customers call in with problems they encountered. By
indicating where specifically in the install a problem arose, and what it was, Level 1 Support will better able to resolve
installation and migration issues in less time.
Opportunity
As opportunities are discovered that can improve product installation and migration, they will be incorporated within
this document. Thus this document is expected to be updated over time to continue to provide the most current steps to
successfully complete an installation and migration.
Benefits
Creating the CA Workload Automation AE r11.3.5 cookbook before the product is released as generally available gives
customers and Technical Support an important advantage, as a new set of questions and concerns will begin to emerge.
Being equipped with knowledge and results from those who have already experienced these situations, or who have
answered the questions, gives Technical Support the tools to resolve concerns and answer questions. The end result is a
satisfied customer and a confident and helpful Technical Support representative.
CA CDF Usage
The CA Common Diagnostic facility (CA CDF) is a tool provided by CA Technologies to automate the collection of problem-
solving diagnostic data for a customer’s installed CA Technologies software products. CA Workload Automation AE (AE)
leverages the capabilities of CA CDF, and therefore, is shipped on the DVD. The intent of CA CDF is to:
Minimize the amount of time required to collect the appropriate data
Standardize the type of data collected
Reduce the amount of customer skills required to process diagnostic data
This section provides the essential information to gather AE diagnostic data and log files. The latest version of CA CDF can
be downloaded at: http://cacdf.ca.com. For additional information about CA CDF, including design documents, please refer
to the official guide, CA CDF Script File Command Syntax Guide, located at the following link:
https://km.ca.com/technicalsupport/advisors/CACDF/Shared%20Documents/CACDF%20Docs/cacdf_internal_support_guid
e_2012Dec16.docx
1. CA CDF is not installed on the server when the AE components are installed. Rather, CA CDF is located on the DVD in
the CACDF directory. For example:
# [/bld/dev/prod/WAAE/11.3.5/build/unix/DVD] ls
acknowledgements.txt AIX CACDF Documentation HP-UX HP-UX_IA64 Linux Solaris-Sparc VendorEULA.txt
wa_setup.sh
To use CA CDF, you must copy the cacdf.tar.gz file to a directory on the server and extract it. For example, to copy the
file to /tmp and extract it, run the following commands:
# cp CACDF/cacdf.tar.gz /tmp
# cd /tmp
# gunzip cacdf.tar.gz
# tar xf cacdf.tar
The two files of interest are cacdf.sh and WAAE.txt. The cacdf.sh script collects the information based on what is
contained in WAAE.txt. If you edit WAAE.txt, you will see a number of commands and a number of files. One of the
commands, as_info -a is the gathers most of the information.
To run CA CDF, first set the AE environment and then run the cacdf.sh script. For example:
# . /opt/CA/WorkloadAutomationAE/autouser.ACE/*bash*
# ./cacdf.sh
You are prompted to enter the following information so that the proper information can be gathered and compressed
into the zip file:
CA Support Contact Number
CA Support Issue Number
CA Site ID
CA Product for which problem was opened
To gather diagnostic information for AE, enter WAAE when you are prompted for the name of the CA product that is
affected. Also, you can gather information for Embedded Entitlements Manager or Workload Command Center
diagnosis by entering, respectively, EEM or WCC.
Once this information has been entered and validated, the utility may take several minutes to scan the environment
and collect files. It builds a zip file with the name generated based on the contact number and the issue number, with
an added sequence number in case another zip file has already been created for that issue. The cacdf.sh script then
uses secure FTP to connect to the CA Technologies support FTP site and upload the zip file.
Note: Before running cacdf.sh (to use the FTP option), you must have reported the issue to CA Technologies support
and have a directory created on the CA Technologies support FTP site to receive the data.
CA CDF Example
The following example illustrates running cacdf.sh and supplying the appropriate command line input to gather diagnostic
information for AE. In this example, the zip file is not sent to the CA FTP site.
# cd /tmp/cacdf
# . /opt/CA/WorkloadAutomationAE/autouser.ACE/*bash* # Set the AE environment.
# ./cacdf.sh # Run the collector.
CA Problem Documentation Collection Utility
Enter your CA Contact Number > 2601
Enter CA issue number (01) > 21109890
Enter your CA Site ID number > 012
Do you want to send the zip file to the CA FTP site? (y|N) > N
Enter the name of the CA product that is affected > WAAE
Contact number is 2601
Issue number is 21109890
Site ID number is 012
CA Product is WAAE
DO NOT Send file to CA FTP site.
Is this correct?(Y|n) > Y
Answers are correct
Version 1.59
Date/Time is Fri Nov 2 15:51:31 2012
Creating ZIP file with doc for CA Contact 2601 Issue 21109890 SiteID 012
Adding file to list: /etc/services
Adding file to list: /etc/profile
Adding file to list: /etc/auto.*
Adding file to list: /etc/profile.CA
Adding file to list: /tmp/as_info_dir/waae_file_collection.tar
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/autosys.*
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/config.ACE
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/*.config
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/out/DBMaint.out
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/out/event_demon.ACE
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/out/Num*
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/out/as_server.ACE
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/webserver/conf/server.xml
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/webserver/conf/wrapper.conf
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/webserver/conf/logon.conf
Adding file to list: /opt/CA/WorkloadAutomationAE/autouser.ACE/out/waae_webservices*
Adding file to list: /opt/CA/WorkloadAutomationAE/autosys/../SystemAgent/*/agentparm.txt
Adding file to list: /opt/CA/WorkloadAutomationAE/autosys/../SystemAgent/*/log/*
Adding file to list: /opt/CA/SharedComponents/iTechnology/iGateway.log
Adding file to list: /opt/CA/SharedComponents/iTechnology/igwInstall.log
Adding file to list: /opt/CA/SharedComponents/iTechnology/logs/install/*.log
Adding file to list: /opt/CA/SharedComponents/Csam/SockAdapter/version.txt
Adding file to list: /opt/CA/SharedComponents/Csam/SockAdapter/log/*
Adding file to list: autosys_dir.txt
Adding file to list: autouser_dir.txt
Adding file to list: webserver_dir.txt
Adding file to list: agent_dir.txt
Adding file to list: csam_dir.txt
Adding file to list: treeview.css
Adding file to list: treeview.dtd
Adding file to list: treeview.js
Adding file to list: treeview.xslt
Adding file to list: imgs/*.gif
Adding file to list: probinfo.txt
Preparing to execute diagnostic command: cat /proc/version
Preparing to execute diagnostic command: cat /proc/cpuinfo
Preparing to execute diagnostic command: cat /proc/meminfo
Preparing to execute diagnostic command: cat /proc/devices
Preparing to execute diagnostic command: cat /proc/interrupts
Preparing to execute diagnostic command: cat /proc/diskstats
Preparing to execute diagnostic command: cat /proc/partitions
Preparing to execute diagnostic command: cat /proc/modules
Preparing to execute diagnostic command: cat /proc/swaps
Preparing to execute diagnostic command: cat /proc/vmstat
Preparing to execute diagnostic command: cat /proc/iomem
Preparing to execute diagnostic command: cat /proc/ioports
Preparing to execute diagnostic command: cat /proc/zoneinfo
Preparing to execute diagnostic command: cat /proc/loadavg
Preparing to execute diagnostic command: cat /proc/config.gz
The output is stored in a generated zip file in the current directory. (See below for an example of the naming conventions of
the zip file.) This file contains the results of all commands and all specified files by WAAE.txt.
# cd /tmp/cacdf
# ls *zip
2601-21109890-1.zip
Sudoers has a configurable option to not prompt the user for password. If considering this, be aware that your IT security
organization may have a concern -- of not having a secondary user password challenge. If they do, then they should
configure sudoers to just allow the no password option for the installation command instead of an unqualified switch user.
For example:
less secure -- <sudo su - root>
more secure -- <sudo /path/to/eem-installer.bin>
IPv6: ::1
bind call for host [localhost] resolving to address [::1] failed: Cannot assign requested address
CA has a program that retrieves all localhost addresses. This program is also contained in EEM. You may need to install EEM
in house and send the program to the user to run. For example:
#./testSysIP localhost
IP addresses for localhost:
IPv4: 127.0.0.1
bind suceeded for host: 127.0.0.1
IPv6: ::1
bind call for host [localhost] resolving to address [::1] failed: Cannot assign requested address
Some systems (e.g. Solaris) come with both IPv4 and IPv6 support. However, the user may not want to activate IPv6. If the
EEM install fails with the above error, the user has two options:
1. Completely disable IPv6
2. Activate IPv6
After the user performs one of the above actions, EEM should install.
Section 3: AE Topics
3. The world-writeable permissions are not required for the PIF-related directories.
drwxrwxrwx /opt/CA/SharedComponents/installer/administration/admi/CA:CCS
drwxrwxrwx /opt/CA/SharedComponents/installer/administration/admi/CA:CCS/1.0.0.0
5. Regarding the CADirectory SETUID settings, to start and stop CA Directory services when it listens to ports less than or
equal to 1024, which ports are restricted by the OS, the SETUID settings are required. By default the CA Directory
default port is 509. However, if CA Directory is installed with a port greater than 1024, the SETUID settings are not
required.
-rwsr-x--- /opt/CA/SharedComponents/CADirectory/dxserver/bin/dxadmind
-rwsr-x--- /opt/CA/SharedComponents/CADirectory/dxserver/bin/dxserver
-rwsr-x--- /opt/CA/SharedComponents/CADirectory/dxserver/bin/dxserver32
-rwsr-x--- /opt/CA/SharedComponents/CADirectory/dxserver/bin/dxserver64
6. The csampmux binary must have the SETUID bit set so that non-root users can run the broker. (Since the non-root user
cannot make any configuration changes in SSA, allowing them to run the broker service alone will not create any
problems.)
-rwsr-xr-x /opt/CA/SharedComponents/Csam/SockAdapter/bin/csampmux
General Principles
When upgrading or migrating from a previous release of AutoSys (including WCC), it is good to follow general principles.
Doing so will reduce the number of problems associated with a typical upgrade or migration. The general principles are
listed below:
1. Read and understand the documentation. In each product’s documentation is a chapter or section dealing specifically
with product upgrades. Make sure that you read and understand all steps associated with upgrading the product,
whether it is AutoSys 4.5x, AutoSys r11, AE r11.3, WCC r11, or WCC r11.3.
2. Take a backup of the product. In case problems are experienced, it is essential that you backup the existing AutoSys or
AE system, including the database, EEM server system, and WCC system before you begin the upgrade process.
3. Be methodical and take your time. Verify that each step was successful. For example, if the AE r11.3 to r11.3.5 calls for
the upgrade of EEM, verify that EEM upgraded successfully before proceeding on with the AE r11.3 to r11.3.5 upgrade.
4. Perform a product verification after the upgrade. Run a test automated workload to validate the upgrade. Report any
discrepancies to determine if they are new behavior or a problem.
Upgrade Steps
The steps and order of upgrade depends on what products you are using. For example, if you are only using AutoSys 4.5x
with no eTrust security or CA Common Components such as CA Event Management, then the upgrade is very simple. The
table below outlines the preferred order of upgrade. NSM refers to CA Common Components in the table. Also, note that
all steps may not be required, depending on which dependent products are installed.
AutoSys 4.5x NSM 3.1, eTrust 1. Upgrade NSM 3.1 to NSM r11.2 SP1 CUM1. (See CA Common Components
Implementation Guide, Release 11.3.5, Chapter 6, for more information.)
2. Upgrade eTrust to EEM r12. (Update to explain the steps in upgrading from
eTrust to EEM r12. There may not be a direct migration path.)
3. Install AE r11.3.5 and select to migrate the AutoSys 4.5x database data
to the AE r11.3.5 database. (See section Upgrade From AutoSys 4.5x or
r11 to AE r11.3.5 in this document for more information.)
4. Install WCC r11.3.5. (See CA Workload Control Center Implementation
Guide, Release 11.3.5, Chapter 4, for more information.)
References:
1. CA Common Components Implementation Guide, Release 11.3.5,
Chapter 6.
2. CA Embedded Entitlements Manager Implementation Guide, Release
12.0, Chapter 5.
3. CA Workload Automation AE UNIX Implementation Guide, Release
11.3.5, Chapter 21.
4. CA Workload Control Center Implementation Guide, Release 11.3.5,
Chapter 4.
AutoSys NSM r11, eIAM, 1. Upgrade NSM r11 to NSM r11.2 SP1 CUM1. (See CA Common Components
r11.0 WCC r11 Implementation Guide, Release 11.3.5, Chapter 6 for more information.)
2. Upgrade eIAM to EEM r12. (See section Upgrade the CA EEM Server in
this document for more information. Also, see CA Embedded
Entitlements Manager Implementation Guide, Release 12.0, Chapter 5.)
3. Install AE r11.3.5 and select to migrate the AutoSys r11 database data
to the AE r11.3.5 database. (See section Upgrade From AutoSys 4.5x or
r11 to AE r11.3.5 in this document for more information.)
5. Install WCC r11.3.5. (See CA Workload Control Center Implementation
Guide, Release 11.3.5, Chapter 4, for more information.)
4. Perform the steps to migrate the WCC r11 objects to WCC r11.3.5. (See
CA Workload Control Center Implementation Guide, Release 11.3.5,
Chapter 4 and 5, for more information.)
References:
1. CA Common Components Implementation Guide, Release 11.3.5,
Chapter 6.
2. CA Embedded Entitlements Manager Implementation Guide, Release
12.0, Chapter 5.
3. CA Workload Automation AE UNIX Implementation Guide, Release
11.3.5, Chapter 21.
4. CA Workload Control Center Implementation Guide, Release 11.3.5,
Chapter 4 and 5.
CA AE r11.3 NSM r11.2, EEM 8.4, 1. Upgrade NSM r11.2 to NSM r11.2 SP1 CUM1. (See CA Common Components
WCC r11.3 Implementation Guide, Release 11.3.5, Chapter 6 for more information.)
2. Upgrade EEM 8.4 to EEM r12, depending on the operating system. (See
section Upgrade the CA EEM Server in this document for more
information. Also, see CA Embedded Entitlements Manager
Implementation Guide, Release 12.0, Chapter 5.)
3. Install AE r11.3.5 and select upgrade. (See section Upgrade From AE
r11.3 to AE r11.3.5 in this document for more information.)
4. Install WCC r11.3.5. (See CA Workload Control Center Implementation
Guide, Release 11.3.5, Chapter 4, for more information.)
5. Perform the steps to migrate the WCC r11.3 objects to WCC r11.3.5.
(See CA Workload Control Center Implementation Guide, Release
11.3.5, Chapter 4 and 5, for more information.)
References:
1. CA Common Components Implementation Guide, Release 11.3.5,
Chapter 6.
2. CA Embedded Entitlements Manager Implementation Guide, Release
12.0, Chapter 5.
3. CA Workload Automation AE UNIX Implementation Guide, Release
11.3.5, Chapter 21.
4. CA Workload Control Center Implementation Guide, Release 11.3.5,
Chapter 4 and 5.
If, for example, the EEM server is installed on an HP-UX 11.23 system, you must first export the EEM information from the
HP-UX system because EEM r12 cannot be installed on HP-UX 11.23. Next, you must install EEM r12 on an HP-UX 11.31
system. And, finally, you must import the EEM information to the EEM r12 server. Exporting and importing the EEM
information requires that you perform the following steps. The steps are fully described in CA Embedded Entitlements
Manager Implementation Guide, Release 12.0, p. 63-68.
1. Export the CA EEM database to an LDIF file from the existing CA EEM server.
2. Install CA EEM r12.0 on a supported operating system.
3. Import the LDIF file on the CA EEM r12.0 server.
4. Configure the user store. For information about configuring user store, see the CA EEM Server User Stores
Configuration section in CA Embedded Entitlements Manager Implementation Guide, Release 12.0, p. 23.
5. Issue new certificate for each registered application using safex.
The panels that you navigate when upgrading from AutoSys 4.5x and r11 to AE r11.3.5 are similar to the previous release
(r11.3) with the exception that the Data Migration panels have been simplified. There is only one Data Migration panel with
the AE r11.3.5 upgrade process. The following example shows the panels for an AutoSys r11 upgrade with an Oracle
database. The panels are similar when upgrading with a Sybase database.
Note: Make sure that if you have EEM security activated, you should upgrade the EEM server first. See the section
Upgrade the EEM Server in this document for more information.
Click Next.
If there are active AutoSys processes, the Active Components panel displays. Click Next. Otherwise, the License Agreement
panel displays.
Scroll down to the end of the License Agreement, click I Accept the Terms of the License Agreement radio button, and click
Next.
Note: You can only upgrade one AutoSys 4.5x or r11 instance at a time.
A warning is displayed indicating that if you upgrade the selected AutoSys instance, it will no longer be usable as an AutoSys
4.5x or r11 instance. It will be upgraded to an AE r11.3.5 instance. Click Next.
Specify the installation directories and click Next. Note that AE r11.3.5 is installed into another directory and not the
directory that AutoSys 4.5x or r11 is in.
Specify the Application Server information. If you selected to install the AE web server, you must also select Activate CA
EEM and Create/Recreate Instance Policy from the CA EEM Security dropdown selection. Click Next.
If you selected to use CA EEM security, the CA EEM Properties panel displays. Specify the EEM server name and EEM
EiamAdmin user password. Click Next.
Click Test. If the test is successful, you will see the following panel. Otherwise, an error will display. In this case, click Back
and verify that you specified the correct EEM server name and EiamAdmin user password.
Click OK.
Select which application server properties you want and click Next.
Select the Migrate the Legacy Unicenter AutoSys Job Management Database check box if you want the AE installer to
migrate the data. In this example, we will select this option to show the Data Migration panel. If you do not select this check
box, you will need to manually migrate the database data using the uajmdatamover.pl utility.
Specify the SYS (or other database administrator) user password and click Next.
Click Test. If the database connection test is successful, the Database Tests panel shows a “success” message. Otherwise,
the SQL error statements are displayed. In this case, click Back and make sure you have specified the correct Oracle
database information.
Click OK.
Specify the password to be associated with the Oracle user ‘aedbadmin’ and Oracle user ‘autosys’. Click Next.
Specify the Oracle tablespace information. Note that the data and index tablespace paths must exist on the Oracle server.
Currently, there is no validation to see if the directories are present and writable. Click Next.
By default, when upgrading from AutoSys 4.5x or r11, the Configure Agent with Legacy Remote Agent Compatibility check
box is selected. (See section Configure an Agent to be Compatible with AE for information on what the AE installer does to
configure the agent in this manner.) Click Next.
If you are migrating database data from AutoSys 4.5x, make sure to specify ‘autosys’ in the Database User input area, and
specify the ‘autosys’ password in the Password input area. Otherwise, for AutoSys r11, specify ‘mdbadmin’ as the database
user and specify its password. Click Next. If the specified database information does not allow the AE interviewer to connect
to the source database, the following panel displays.
Scroll down to see the error message. Click Back and correct the information, then click Next again.
Review the settings and click Install to install AE r11.3.5 and migrate the legacy database data.
After AE r11.3.5 has been installed and the AutoSys database data has been migrated, the following panel displays.
Click Finish. The installation log is found at /opt/CA/installer/log and is called CAWorkloadAutomationAE.install.log. Looking
at the log shows that the Oracle database was created and uajmdatamover.pl was used to successfully migrate the AutoSys
r11 database data.
<snip>
<snip>
Invoking Autosys Migration utility. This may take a while based on the size of your installation.
Running CA Workload Automation AE version 11.3.5.408
Testing source connection credentials
Successful.....
The connection string for the source database is: jdbc:oracle:thin:@anyhost-rh55-64:1521:SYBASE with mdbadmin
The source database is version VER_11_0
Retrieved the source security information
Testing target connection credentials
Successful.....
The connection string for the target database is: jdbc:oracle:thin:@anyhost-rh55-64:1521:SYBASE with aedbadmin
The target database is version VER_11_3_5
The target user aedbadmin can truncate
Fri Dec 28 12:28:14 EST 2012 Start Data Copy process using 6 copiers
Fri Dec 28 12:28:14 EST 2012 Creating Connection pool...
Fri Dec 28 12:28:17 EST 2012 Creating Copy threads
Fri Dec 28 12:28:17 EST 2012 Counting rows...
Table ujo_timezones has 366 rows
Table ujo_job_status has 2 rows
Table ujo_keymaster has 3 rows
Table ujo_machine has 1 rows
Table ujo_job_cond has 2 rows
Table ujo_job has 2 rows
Table ujo_last_Eoid_counter has 1 rows
Table ujo_config has 1 rows
Fri Dec 28 12:28:18 EST 2012 There are 378 rows to read
Fri Dec 28 12:28:18 EST 2012 Truncating 88 tables
Fri Dec 28 12:28:20 EST 2012 Tables are truncated
Fri Dec 28 12:28:20 EST 2012 Copying data...
Using copier 0 for transferring job
Using copier 5 for transferring timezones
Using copier 1 for transferring keymaster
Using copier 3 for transferring job_status
Using copier 2 for transferring job_cond
Using copier 4 for transferring machine
Click Next.
Scroll down to the end of the License Agreement, click I Accept the Terms of the License Agreement radio button, and click
Next.
If there are active AE processes, the Active Components panel displays. Click Next. Otherwise, the Instance Upgrade
Information panel displays.
By default, all information that is necessary for the AE r11.3.5 installer to connect to Oracle for this AE instance is retrieved
from the previous AE r11.3 installation, except for the Oracle database user aedbadmin password. You should not have to
change any of this information. Also, notice the instance name is supplied. If you are upgrading multiple AE instances, you
will be prompted to supply this information for each AE instance.
If the AE r11.3 server does not have EEM security activated, you get this panel informing you of this fact. Click OK.
Otherwise, you get the CA EEM Properties panel.
There is no option to skip upgrading EEM policies if AE r11.3 has EEM security enabled. If you need to skip the EEM security
policy upgrade, you must run autosys_secure and set security to NATIVE. Specify the CA EEM administrator (EiamAdmin)
user password and click Next.
If the password is invalid, you get the CAUAJM_E_60246 error message. Click Back to retype the EiamAdmin user password.
If the password is valid, the CA EEM Server Connection Test panel shows with a Success message.
Click OK.
If you are upgrading multiple AE instances, the next instance’s database connection information displays in the Upgrade
Instance Information panel. When you have supplied all AE instances’ information, the Configuration Files panel displays.
On an upgrade, the default behavior is for the AE r11.3.5 installer to reuse the existing agent configuration files and
instance profile files. The reason why this option is needed during the upgrade is because the agent does not have the
ability to “upgrade”. In other words, when the AE r11.3.5 installer “upgrades” the agent, it uninstalls the agent, then installs
the new agent. In the process of uninstalling, the configuration files and profile files are removed.
If you choose not to use the default behavior, and deselect the Reuse Existing Configuration File check box, the Configure
Agent with Legacy Remote Agent Compatibility check box is enabled. You may want the agent to behave similarly to the
legacy agent (pre-r11.3 release). If you do, then select the Configure Agent with Legacy Remote Agent Compatibility check
box. See the section, Configure the Agent to be Compatible with AE, in this document, for more information on how the AE
r11.3.5 installer configures the agent for legacy behavior.
The Monitor Process panel displays until the upgrade completes, at which time the Upgrade Complete panel displays.
The upgrade log is stored in /opt/CA/installer/log/CAWorkloadAutomationAE.update.log. You will see that the Oracle
database is upgraded in place using CreateAEDB.pl. The log shows the following:
<snip>
<snip>
Click Next.
Scroll down to the end of the License Agreement, click I Accept the Terms of the License Agreement radio button, and click
Next.
If there are active AE processes, the Active Components panel displays. Click Next. Otherwise, the Instance Upgrade
Information panel displays.
By default, all information that is necessary for the AE r11.3.5 installer to connect to Sybase for this AE instance is retrieved
from the previous AE r11.3 installation, except for the Sybase database administrator user and password. You should not
have to change any of this information. Also, notice the instance name is supplied. If you are upgrading multiple AE
instances, you will be prompted to supply this information for each AE instance.
Specify the Sybase database administrator user name and password. Click Next. If you supply the incorrect information, the
following error displays.
Click Back and specify the correct Sybase connection information. When the database connection test succeeds, the
following panel displays if you do not have CA EEM security active on the r11.3 system.
If the AE r11.3 server does not have EEM security activated, you get this panel informing you of this fact. Click OK.
Otherwise, you get the CA EEM Properties panel.
There is no option to skip upgrading EEM policies if AE r11.3 has EEM security enabled. If you need to skip the EEM security
policy upgrade, you must run autosys_secure and set security to NATIVE. Specify the CA EEM administrator (EiamAdmin)
user password and click Next.
If the password is invalid, you get the CAUAJM_E_60246 error message. Click Back to retype the EiamAdmin user password.
If the password is valid, the CA EEM Server Connection Test panel shows with a Success message.
Click OK.
If you are upgrading multiple AE instances, the next instance’s database connection information displays in the Upgrade
Instance Information panel. When you have supplied all AE instances’ information, the Configuration Files panel displays.
On an upgrade, the default behavior is for the AE r11.3.5 installer to reuse the existing agent configuration files and
instance profile files. The reason why this option is needed during the upgrade is because the agent does not have the
ability to “upgrade”. In other words, when the AE r11.3.5 installer “upgrades” the agent, it uninstalls the agent, then installs
the new agent. In the process of uninstalling, the configuration files and profile files are removed.
If you choose not to use the default behavior, and deselect the Reuse Existing Configuration File check box, the Configure
Agent with Legacy Remote Agent Compatibility check box is enabled. You may want the agent to behave similarly to the
legacy agent (pre-r11.3 release). If you do, then select the Configure Agent with Legacy Remote Agent Compatibility check
box. See the section, Configure the Agent to be Compatible with AE, in this document, for more information on how the AE
r11.3.5 installer configures the agent for legacy behavior.
The Monitor Process panel displays until the upgrade completes, at which time the Upgrade Complete panel displays.
The upgrade log is stored in /opt/CA/installer/log/CAWorkloadAutomationAE.update.log. You will see that the Sybase
database is upgraded in place using CreateAEDB.pl. The log shows the following:
<snip>
<snip>
# ./setup.sh
Click Next.
Click Next.
The repair process requires the Oracle ‘aedbadmin’ user password, as well as the Oracle connection information. Specify
the required information and click Next.
To repair the EEM security policies, the repair process requires the EEM server ‘EiamAdmin’ user password. Specify the
password and click Next.
Click Test.
Click OK.
Specify the Oracle database connection information for the second server. Click Next.
If you want to reuse the existing agent configuration file (agentparms.txt), select the Reuse Existing Agent Configuration File
check box. If you want to reuse the AE instance profile files (WAAE.txt, ACE.txt, found in SystemAgent/WA_AGENT/profiles),
then select the Reuse Existing Instance Profile Files. If these files are not corrupted, you probably want to reuse them.
Otherwise, deselect the check boxes, which activates the Configure Agent with Legacy Remote Agent Compatibility check
box. Select this check box to configure the agent to behave similar to the legacy remote agent. (See the section, Configure
an Agent to be Compatible with AE, in this document for additional information on this check box.)
Review the settings and then click Next to begin the repair process.
Click Finish. The output from the repair is stored in /opt/CA/installer/log in the file named
CAWorkloadAutomationAE.reinstall.log. Notice in the log that RefreshAEDB.pl is called to repair the Oracle databases. If
there are any database errors, they are logged in the /tmp/ora_repairaedb_pri and /tmp/ora_repairaedb_sec directories
respectively.
<snip>
<snip>
If any AutoSys or AE processes are running, stop them using the unisrvcntr stop command.
3. Entries created when using the "One-Time" override option.
4. Invalid numbers specified in JIL keywords, such as:
Value set for the JIL keyword: "term_run_time". This value could be higher than the maximum value allowed,
"527040". (ERROR: CAUAJM_E_18995)
Value set for the JIL Keyword: "box_terminator". Accepted values are "0, 1, f, false, n, no, t, true, y, yes",
encountered a number. (ERROR: CAUAJM_E_18902)
Things missed during the DataMover execution or that needs to be addressed afterwards
1. The DataMover does not copy user@host or edit/exec users (see STAR issue 21191984-02).
2. All machine definitions are migrated as legacy. This encourages/assumes that every migration will utilize legacy
machine definitions. We DON’T want the customer to do that. We DO want customers to use the 11.3.5 agents - so the
DataMover should include the option to move all machine definitions as legacy, current, or only export the converted
machine jil.
3. Technical Support has found that the majority of customer migrations have required the customer to delete many
machines and then insert them with appropriate definitions. Also, there have been issues caused by having to forcibly
delete machines while orphaning the virtual machine names. This scenario has required the reinsertion of all machines
and then the separation of virtual machines, then the removal of virtual machines.
Current limitations to the DataMover
The following are current known limitations to the DataMover which will be addressed in the future:
1. Scan the database for invalid data, such as is identified in #3 and #4 above. This includes adding the newer integrity
checking, which identifies duplicate data rows. The DataMover should have a command line option to remove
duplicate data rows.
2. The DataMover does not have the ability to modify the agent paramfile.txt file so that “VERIFY=no”. Add the ability to
the DataMover to modify the agent paramfile.txt file so that “VERIFY=no”. This would be applicable for r11.0
migrations.
3. When a fatal occurs, the DataMover should write a more descriptive interpretation of the problem to the log, and
perhaps the screen. For example:
Reading table job failed on input column 4 and output column 5
Reading table job failed on row 900 -- java.sql.SQLException: Numeric Overflow
Copy Task 0 copying job has faulted (3)
4. DataMover does not have the ability to scan for corrupt job names. Add the ability to the DataMover to scan for
corrupt JOB names.
5. As part of the recommended automation, the script should perform a sanity test and verify that the required
DataMover parameter file is in place and has the following entries (note the data is for an Oracle database):
SRCDBTYPE=oracle
SRCDBMACHINE=rex
SRCDBNAME=auto451p
SRCDBPORT=1865
SRCDBUSER=autosys
SRCDBPWD=xxxxxxxxxxxx
TGTDBTYPE=oracle
TGTDBMACHINE=tex
TGTDBNAME=autop
TGTDBPORT=1609
TGTDBUSER=aedbadmin
TGTDBPWD=xxxxxxxxxxxx
NATIVEJDBCJARPATH=/usr/orasys/11.2.0.3r2/jdbc/lib/ojdbc6.jar # Oracle 1.6 compatible JDBC.
JREPATH=/usr/java6_64/jre # Mixed or 64-bit may give better performance.
VERIFY=yes # Note: You'll change this at "Go time".
MAXMEMORYLIMIT=4096 # Note: Make sure the system has the RAM.
10 There is not enough free space in the system temporary directory (e.g. /tmp).
12 Duplicate agent name. There is already an agent installed by the name in the response file.
13 Duplicate agent port. There is already an agent installed that is using the port specified in the response file.
18 There is already an AE instance on the server. An unattended install does not support “upgrade” or “modify”.
7 Duplicate agent name. There is already an agent installed by the name in the response file.
8 Duplicate agent port. There is already an agent installed that is using the port specified in the response file.
9 There is not enough free space in the system temporary directory (e.g. /tmp).
17 The machine is HP-ia64. The $Config_Agt_Port_2_SSA variable must be set to 0 in the response file.
19 The –I option was not used when installing another agent instance.
Early on in the r11.3.5 planning process, a decision was made by the R&D team to group these three database operations
together to reduce complexities. In other words, the installer would not give control to the user to execute/not execute
these three database operations individually.
An SQL script (waae_oracle.sql) was created, providing a simple utility (another requirement) so that the database
administrator could perform all three database operations (not the installer); one major result being that the system-level
database users/passwords required to perform the operations would remain secure.
The waae_oracle.sql script is shown below and fully described in the CA Workload Automation AE UNIX Implementation
Guide , p. 59.
The Create Tablespaces, Database Users, and Roles check box, located on the Primary Event Server Properties panel,
controls whether the AE r11.3.5 installer prompts for the Oracle system administrator user password. For example:
If the Create Tablespaces, Database Users, and Roles check box is not selected, as is shown above, the Installer does not ask
for the Oracle system administrator user and password. The AE r11.3.5 installer assumes that you have previously created
the tablespaces, users, and roles using waae_oracle.sql.
3. Creates the agent data encryption key and stores it in <system_agent_install>/<agent>/cryptkey.txt. This value is
created using as_config.
4. Configures the <system_agent_install>/<agent>/agentparm.txt file with the following default values (See Appendix A
for details on when each parameter is included):
agent.spool.success.autocleanup=true
runnerplugin.spool.clean.enable=true
runnerplugin.spool.expire=7d
agent.resourcemon.enable=true
filemon.firstscan.skip=true
oscomponent.joblog.success.autocleanup=true
oscomponent.noexitcode=256
oscomponent.auth.pam.svc=sshd
oscomponent.cmdprefix.force=true
oscomponent.cmdprefix.force.quotes.full=true
oscomponent.noforceprofile=true
oscomponent.cmdprefix.force=true
oscomponent.initialworkingdirectory=USER
oscomponent.profiles.src.verify=true
oscomponent.profiles.src.delay=true
oscomponent.profiles.src.order.global.first=true
security.cryptkey=cryptkey.txt
If SNMP is enabled, the following parameters are added to the <system_agent_install>/<agent>/agentparm.txt file:
management.snmp.host=<host>
snmp.trap.listener.port=<port>
management.snmp.agent.trapsink.host=<host>
management.snmp.agent.port=<port>
If the agent is installed with an AE client, application server, or scheduler, the following parameters are added to the
<system_agent_install>/<agent>/agentparm.txt file:
oscomponent.environment.variable_manager_<ACE>_SCH=<AE_install_directory>/SystemAgent/<agent>/profiles/<AC
E>
If an AE instance is added later, the WAAE installer creates another parameter in the
<system_agent_install>/<agent>/agentparm.txt file:
oscomponent.environment.variable_manager_<AC2>_SCH=<AE_install_directory>/SystemAgent/<agent>/profiles/<AC
2>
5. Because of the parameters that the AE r11.3.5 installer passes to the ESP Agent installer silently, the following
information is stored in <system_agent_install>/<agent>/cybspawn:
EWA_SHARED=<Shared_components_dir>
export EWA_SHARED
CSAM_SOCKADAPTER=$EWA_SHARED/Csam/SockAdapter
export CSAM_SOCKADAPTER
<LIBPATH_VAR_NAME>="<system_agent_install>/<agent>:$CSAM_SOCKADAPTER/lib:<AE_install_directory>/autosys/lib:
$<LIBPATH_VAR_NAME>"
export <LIBPATH_VAR_NAME>
6. Because of the parameters that the AE r11.3.5 installer passes to the ESP Agent installer silently, the following
information is stored in <system_agent_install>/<agent>/ESPmgr:
EWA_SHARED=< Shared_components_dir>
export EWA_SHARED
CSAM_SOCKADAPTER=$EWA_SHARED/Csam/SockAdapter
export CSAM_SOCKADAPTER
<LIBPATH_VAR_NAME>="<system_agent_install>/<agent>:$CSAM_SOCKADAPTER/lib:<AE_install_directory>/autosys/lib:
$<LIBPATH_VAR_NAME>"
export <LIBPATH_VAR_NAME>
Configures the agent to use PAM (Pluggable Authentication Modules) for service security checks. (UNIX only.)
oscomponent.joblog.success.autocleanup=true
Configures the agent to delete a job’s job log automatically when the job completes successfully.
runnerplugin.spool.clean.enable=true
Configures the agent to review the spool files for removal.
runnerplugin.spool.expire=7d
Configures the agent to delete spool files that are older than 7 days.
security.cryptkey=cryptkey.txt
Configures the agent to use cryptkey.txt as the encryption file.
In addition to automatically setting the aforementioned agent attributes, the AE r11.3.5 installer also allows you to tell it to
configure the agent to run in compatibility mode. When the agent runs in compatibility mode, its job processing behavior
closely mirrors that of the product’s legacy agent (remote agent).
To cause the AE r11.3.5 installer to configure the agent to run in compatibility mode, select the Configure Agent with
Legacy Remote Agent Compatibility check box on the Agent Attributes panel (for UNIX) or Agent Properties panel (for
Windows). If you select this check box, the AE installer sets the following agent attributes in agentparm.txt.
filemon.firstscan.skip=true
Configures the agent to skip the first scan of a monitored file.
oscomponent.cmdprefix.force=true
On UNIX, this parameter configures the agent to execute a temporary shell script (containing the profiles to be
sourced) without sourcing the user’s profile. On Windows, this parameter prefixes the job’s command string with a
value of “cmd /c ” to allow commands such as “dir” and “echo” to execute properly.
oscomponent.cmdprefix.force.quotes.full=true
This parameter causes file watchers to work “out of the box”. (Windows only.)
oscomponent.initialworkingdirectory=USER
Configures the agent to set the working directory of all scripts to be the script’s owner’s home directory.
oscomponent.noexitcode=256
Configures the agent to not send a completion code to the scheduling manager host if a job’s exit code is 256. This
value is chosen because the agent’s default settings are 255 for UNIX and 127 for Windows. This allows the agent to
properly return status for exit codes 0 through 255 on all platforms.
oscomponent.noforceprofile=true
Specifies whether the agent allows loading a .profile/.login file based on the usual UNIX rules for sourcing
.profile/.login. When set to true the agent does not load the .profile/.login file. (UNIX only.)
oscomponent.profiles.src.delay=true
Configures the agent to execute the sourcing of profiles (global and job) from a temporary shell script. The agent will
not add /etc/profile or the user’s login profile to this temporary shell script. To further control which profile (global or
job) gets sourced as part of execution, refer to the oscomponent.profiles.global.override parameter. (UNIX only).
oscomponent.profiles.src.order.global.first=true
Configures the agent to first source the profile pointed at by EWAGLOBALPROFILE (/etc/auto.profile) prior to execution.
oscomponent.profiles.src.verify=true
Configures the agent to verify existence of the job profile prior to execution. If the profile does not exist, job execution
is terminated and an error is returned. (UNIX only.)
Note: Enter all commands at the operating system prompt, except Step 16.
1. Enter the following command:
unisrvcntr stop CA-WAAE
All CA Workload Automation AE processes stop. To verify that all AE processes are stopped, enter the following
command:
unisrvcntr status
If any AE processes are running, kill them using the kill -9 command.
2. Enter the following command for each process_name, and note the processes that are running:
ps -ef | grep process_name
process_name
Specifies the name of the process to check. Process names to use with the command are as follows:
as_server
event_demon
cybAgent
csampmuxf
lic98fds
An active process will display its process ID. Use the process ID in Step 3.
3. Enter the following command using each process_ID listed in Step 2:
kill -9 process_ID
Note: The lsm utility can be removed during a failed un-installation. Perform this step and Steps 5-8 as needed if
lsm is available. Perform Steps 9-15 to ensure that the necessary files are removed from the server even if
you can run lsm successfully.
CA Workload Automation AE is removed.
5. (Optional) If the standalone client is installed, enter the following command:
lsm -e CAWorkloadAutomationAE-Client
7. (Optional) If multiple instances of the standalone agent are installed, enter the following command as needed for
each agent instance:
lsm -e CAWorkloadAutomationAE-Agent.agent_name
agent_name
Specifies the name of the agent.
The standalone agent is removed.
8. (Optional) If the standalone SDK is installed, enter the following command:
lsm -e CAWorkloadAutomationAE-SDK
Depending on which AE components are installed, the rpm packages listed in Step 10 are displayed.
10. (Linux only) Enter the following commands for the installed rpm packages only:
rpm -e --noscripts ca-waae-server
rpm -e --noscripts ca-waae-scheduler
rpm -e --noscripts ca-waae-db
rpm -e --noscripts ca-waae-asapi
rpm -e --noscripts ca-waae-client
rpm -e --noscripts ca-waae-common-sac
rpm -e --noscripts ca-waae-agent
rpm -e --noscripts ca-waae-sdk
rpm -e --noscripts ca-waae-common-cs2
rpm -e --noscripts ca-waae-common-cs
rpm -e --noscripts ca-waae-common
rpm -e --noscripts ca-lic
rpm -e --noscripts ca-waae-webserver
rpm -e --noscripts ca-waae-safex
rpm -e --noscripts ca-waae-jre-64
rpm -e --noscripts ca-waae-jre-32
rpm -e --noscripts ca-waae-cmd-sponsor
rpm -e --noscripts ca-waae-sockadapter
rpm -e --noscripts ca-cs-utils
install_directory
Specifies the root directory where CA Workload Automation AE is installed. By default,
/opt/CA/WorkloadAutomationAE is the installation directory.
The installation directory is removed.
12. Enter the following commands:
rm –f /etc/auto.profile
rm –f /etc/auto.instance_name
instance_name
Specifies the CA Workload Automation AE instance name.
The profile files are removed.
On HP-UX:
rm -f /sbin/init.d/waae_*
rm -f /sbin/init.d/CA-WAAE
On HP-UX:
rm -f /sbin/init.d/CA-CCS
The CA-CCS system startup files are removed and the server cleanup is complete.
16. (Optional) If your installation created a database, then depending on the database type, do the following:
To remove the AE Oracle database objects
If the uninstaller progressed to the point where it created its database uninstaller, you can simply run the database
uninstaller script. The uninstaller script is located in /tmp (or the system temporary directory) and is called
rm_waae_<p><ACE>.sh, where <p> indicates the uninstaller script is generated for the primary database, and <s>
indicates the uninstaller script is generated for the second database, in the case of a dual server install. The <ACE> is
the AE instance identifier.
To run the database uninstaller script, do the following (this example illustrates a single server install with the name
of the AE instance being PRD).
# cd /tmp
# ./ rm_waae_pPRD.sh
Enter the Oracle home directory [Default: /home/oracle/app/oracle/product/11.2.0/dbhome_1]:
Enter the directory location of the tnsnames.ora file [Default:
/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin]:
Enter the Oracle SID [Default: SYBASE]:
Enter the Oracle User ID with sufficient privileges [Default: SYS]:
Enter the Oracle User ID password:
Enter the Oracle data tablespace name [Default: AEDB_DATA]:
Enter the Oracle index tablespace name [Default: AEDB_INDEX]:
The following information will be used when removing the WA Oracle database:
ORACLE_HOME: /home/oracle/app/oracle/product/11.2.0/dbhome_1
tnsnames.ora Path: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin
Oracle SID: SYBASE
Oracle User: SYS
Oracle Data Tablespace Name: AEDB_DATA
Oracle Index Tablespace Name: AEDB_INDEX
Do you wish to change any information before continuing (Y/N) [Default:N]:
Removing the Oracle tablespaces, which can take a few minutes to complete.
Role dropped.
User dropped.
Tablespace dropped.
Tablespace dropped.
If the database uninstaller is not generated, you will need to run the following SQL statements. Enter the following
commands at the SQL prompt:
At the Oracle prompt, after logging in as user SYS or system administrator:
drop role ujoadmin;
drop user aedbadmin cascade;
drop user autosys cascade;
drop tablespace data_tablespace_name including contents and datafiles cascade constraints;
drop tablespace index_tablespace_name including contents and datafiles cascade constraints;
data_tablespace_name
Specifies the CA Workload Automation AE data tablespace name defined in the Oracle database.
index_tablespace_name
Specifies the CA Workload Automation AE index tablespace name defined in the Oracle database.
The CA Workload Automation AE database objects are removed from the Oracle database and the database cleanup
is complete.
# cd /tmp
# ./rm_waae_pPRD.sh
Enter the Sybase Server name [Default: LCIBM003]:
Enter the Sybase system administrator user ID [Default: sa]:
Enter the Sybase system administrator password:
Enter the Sybase database name [Default: AEDB]:
Enter the Sybase data device Name [Default: AEDB_DATA]:
Enter the directory that contains the Sybase data device [Default: /opt/sybase/data]:
Enter the Sybase log device name [Default: AEDB_LOG]:
Enter the directory that contains the Sybase log device [Default: /opt/sybase/data]:
Enter the $SYBASE directory [Default: /opt/sybase]:
The following information will be used when removing the Sybase database:
$SYBASE Directory: /opt/sybase
Sybase Database Name: AEDB
Sybase Servername: LCIBM003
Sybase Data Device: AEDB_DATA
Sybase Data Directory: /opt/sybase/data
Sybase Log Device: AEDB_LOG
Sybase Log Directory: /opt/sybase/data
Sybase User: sa
Do you wish to change any information before continuing (Y/N) [Default:N]:
Removing the Sybase database...
Account locked.
Login dropped.
(return status = 0)
Device dropped.
(return status = 0)
If there were no errors in dropping the Sybase AEDB database,
autosys user, AEDB_DATA device, and ujoadmin role, remove
/opt/sybase/data/AEDB_DATA.DAT by issuing the following command:
rm -f /opt/sybase/data/AEDB_DATA.DAT
Device dropped.
(return status = 0)
Remove /opt/sybase/data/AEDB_LOG.DAT by issuing the following command:
rm -f /opt/sybase/data/AEDB_LOG.DAT
After the database uninstaller script has completed, make sure that the database, users, and devices have been
dropped by reviewing the output. Then you should remove the Sybase data and log device files, as is described in the
output above. (Also, see the To remove the Sybase data and log device files section.)
If the database uninstaller is not generated, you will need to run the following SQL statements. Enter the following
commands at the SQL prompt, after logging in as user sa or system administrator:
use master
go
drop database database_name
go
exec sp_droplogin autosys
go
drop role ujoadmin with override
go
exec sp_dropdevice 'data_device'
go
exec sp_dropdevice 'log_device'
go
database_name
Specifies the CA Workload Automation AE database defined in the Sybase database.
data_device
Specifies the CA Workload Automation AE data device name defined in Sybase database.
log_device
Specifies the CA Workload Automation AE log device name defined in Sybase database.
After you have run the SQL above, you should remove the Sybase data and log device files. To remove the devices
files, follow the directions in the To remove the Sybase data and log device files section.
rm -f Sybase_datadir/data_device.DAT
rm -f Sybase_logdir/log_device.DAT
Sybase_datadir
Specifies the fully-qualified directory path where the CA Workload Automation AE data device resides.
data_device
Specifies the CA Workload Automation AE data device name defined in Sybase database.
Sybase_logdir
Specifies the fully-qualified directory path where the CA Workload Automation AE log device resides.
log_device
Specifies the CA Workload Automation AE log device name defined in Sybase database.
The CA Workload Automation AE database objects are removed from the Sybase database and the database cleanup
is complete.
1. Create a file that consists of events you wish to submit. For example, create a file by the name of batch.snd in the
/tmp directory:
# vi /tmp/batch.snd
# vi /tmp/multi_sendevent.sh
#!/bin/sh
if [ -z “$1” ]; then
echo “Specify the name of the file that contains the sendevent commands.”
exit 1
fi
if [ ! –f “$1” ]; then
echo “The file cannot be found. Please double check the name and path of the file.”
exit 1
fi
iFile=$1
cat $iFile | grep “^sendevent” | while read command
do
echo “$command” > /tmp/cmd.file$$
sendevent –F /tmp/cmd.file$$
done
rm –f /tmp/cmd.file$$
3. Save the shell script and change permissions to execute. For example:
# chmod +x /tmp/multi_sendevents.sh
4. Run the shell script (e.g. multi_sendevents.sh), after having sourced the CA Workload Automation AE environment. For
example, suppose AE is installed on machine RH3242PRD in /opt/CA/WorkloadAutomationAE, and the instance name is
PRD. Run the following:
# . /opt/CA/WorkloadAutomationAE/autouser.PRD/autosys.sh.RH3242PRD
# cd /tmp
# ./multi_sendevents.sh /tmp/batch.snd
Note: When using sendevent in batch mode, you are not limited to a particular kind of event. So, there may be other
useful applications beyond what are shown in the example.
WA_DEBUG
WA_DB_DEBUG
AS_INSTALL_DEBUG
AS_SYB_LOCALE
AS_SKIP_SPACE_CHECK
AS_MIG_VERIFY
There are a number of other environment variables not documented in the GA guides, however. These variables should be
used with care by CA Technologies Technical Support to assist in answering questions or resolving problems. Each of these
variables are described below:
AS_DENY_SU=[0|1]
By default, the AE installation uses “su” to activate EEM security. Some customers forbid the use of su. Therefore,
setting AS_DENY_SU to 1 will cause the AE installer to not activate EEM security.
AS_EEM_TEST_DEBUG=[0|1]
If the user is having difficulty getting the EEM server connection test to work, you can set AS_EEM_TEST_DEBUG to 1.
This will cause the AE interviewer to create a file in the system temporary directory called eem.debug. This file contains
the information that the AE interviewer uses to connect to the EEM server, which includes:
AUTOSYS=$AUTOSYS
AUTOUSER=$AUTOUSER
LIBRARY=$SAFE_LIB
ASSAFETOOLFIPS=$ASSAFETOOLFIPS
Also, all messages from as_safetool are logged to eem.debug. This variable should be unset as soon as you determine
that the AE interviewer is using the correct information because the file contains the EEM ‘EiamAdmin’ user password.
AS_SKIP_APPLSVR_DB_CHECK=[0|1]
You can have the AE interviewer skip the application server database check (if installing only an application server) by
setting AS_SKIP_APPLSVR_DB_CHECK to 1.
AS_SKIP_DEVTEST=[0|1]
If the user is having difficulty getting the Oracle disk device test to work, you can set AS_SKIP_DEVTEST to 1. When this
variable is set to 1, both the data and index disk device tests will be skipped.
AS_SKIP_EEM_TEST=[0|1]
If you need to skip the EEM server connection test, set AS_SKIP_EEM_TEST to 1.
AS_SKIP_OS_CHECK=[0|1]
The AE interviewer checks to see if the OS is 32 or 64-bit. The AE web server requires a 64-bit operating system. If, for
some reason, this check needs to be disabled, set AS_SKIP_OS_CHECK to 1.
AS_GLIBC_SKIP=[0|1]
To tell the AE interviewer to skip the glibc version check, set AS_GLIBC_SKIP to 1.
AS_GLIBC_VERSION=[version]
The AE product requires a version equal to or greater than 2.3.2-95.3 of glibc. If the requirement changes in the future,
you can set the “new” minimum version of glibc by using the AS_GLIBC_VERSION. Set it to the new requirement. For
example, if the glibc version changed to 2.3.3-107.1, then you would run the following commands:
# AS_GLIBC_VERSION=2.3.3-107.1
# export AS_GLIBC_VERSION
AE Installation Tracing
If a product created by the PIF Packager encounters a problem, it attempts to back out all directories and files it created or
installed, including log files. AE is created by the PIF Packager, and therefore, has this challenge. To force the PIF Packager
to not back out installed components and not remove log files, set the following environment variable:
All other environment variables dealing with AE installation tracing are documented on page 49 of the CA Workload Automation
AE UNIX Implementation Guide, Release 11.3.5. To gather information and log files for problem diagnosis, use CACDF. See Using
CACDF in this document for additional information.
Specify the –t option to enable tracing when running wa_setup.sh, client_setup.sh, sdk_setup.sh, or agent_setup.sh. For example:
./wa_setup.sh –t /tmp/install.trc
The wa_setup.sh script options are documented in CA Workload Automation AE UNIX Implementation Guide, Release
11.3.5, p. 49.
The AE install has a complex interview logic flow due to the many available installation options. If a problem occurs during
the interview process, it is important to know the interview logic path the user took to cause the problem. The interview
produces the logic path automatically. A file is created in the system’s temporary directory called as_install<pid>.trc, where
<pid> is the process ID of the installation. Possible locations for the temporary directory are:
$TMPDIR
/tmp
/var/tmp
/opt/CA/SharedComponents/tmp.
The following example shows the contents of as_install<pid>.trc. This trace file lists each dialog that the user passed
through. As is seen below, the user passed through the Welcome, License, Installation Function, Installation Definition,
Installation Type, and New Components panels.
# cd /tmp
# more as_install19542.trc
V_dlgWelcome
D_dlgWelcome
V_dlgLicense
D_dlgLicense
V_dlgInstallFunc
D_dlgInstallFunc
V_dlgInstallDef
D_dlgInstallDef
V_dlgInstallType
D_dlgInstallType
V_dlgNewComponents
D_dlgNewComponents
Each panel has two scripts associated with it: V_<dialog_name> (for verification) and D_<dialog_name> (for navigation).
The V_ and D_ names correspond to the dialog names in the CAWorkloadAutomationAE.@prm file. The dialog names are
located in the #dhead control immediately following the PIF @DIALOG: indicator. For example, the snippet from the
CAWorkloadAutomationAE.@prm file (shown on the next page) shows the Welcome and License dialog definitions.
@DIALOG:
#dhead: 650 , 500 , dlgWelcome , 211 , scripts/as_verification.sh ;
#graphic: grpGraphic , graphics/waae_w_west.gif , graphics/waae_w_header.gif , graphics/waae_w_center.gif ,
graphics/waae_footer.gif , ;
#textarea: 1 , 1 , txtWelcome1 , 702 ;
#textarea: 2 , 1 , txtWelcome2 , 705 ;
#textarea: 3 , 1 , areaEmpty1 , 900 ;
#textarea: 4 , 1 , areaEmpty2 , 900 ;
#textarea: 5 , 1 , areaEmpty3 , 900 ;
#textarea: 6 , 1 , areaEmpty4 , 900 ;
#textarea: 7 , 1 , areaEmpty5 , 900 ;
#textarea: 8 , 1 , txtReleaseN , 1341 ;
#textarea: 9 , 1 , areaEmpty6 , 900 ;
#textarea: 10 , 1 , txtCopyright , 704 ;
#navbutton: 1 , btnNext , 500 , 5 , , scripts/as_navigation.sh ;
#navbutton: 2 , btnCancel , 502 , 0 , ;
@ENDDIALOG:
<snip>
@DIALOG:
#dhead: 650 , 500 , dlgLicense , 202 , scripts/as_verification.sh , btnDecline ;
#graphic: grpGraphic , graphics/waae_w_west.gif , graphics/waae_w_header.gif , graphics/waae_w_center.gif ,
graphics/waae_footer.gif , ;
#textarea: 1 , 1 , txtLicense1 , 782 ;
#filearea: 2 , 1 , faResponseFile , License.txt , rbAccept , , 0 , 0 , 0 , 0 ;
#textarea: 3 , 1 , txtLicense2 , 707 ;
#radiobutton: 10 , 1 , rbAccept , 1343 , grpRB , $PIF_CHANGECONTROL_btnAccept=1 , 0 , , , 0 , 0 ;
#radiobutton: 9 , 1 , rbNotAccept , 1342 , grpRB , $PIF_CHANGECONTROL_btnAccept=0 , 1 , , , 0 , 0 ;
#navbutton: 1 , btnPrev , 501 , 5 , , scripts/d_pifback.sh ;
#navbutton: 2 , btnAccept , 500 , 5 , , scripts/as_navigation.sh ;
#navbutton: 3 , btnDecline , 502 , 2 , , dlgDeclineExit ;
#navbutton: 4 , btnEula , 1351 , 2 , , dlgVendorEULA ;
@ENDDIALOG:
The yellow highlighted strings above identify the name of each dialog. The gray highlighted strings above identify the
verification script that will be called prior to the calling of the navigation script (red highlighted, above). Every AE dialog (or
panel) calls the verification script before calling the navigation script. One reason for this is because the AE installation has
incorporated its own navigation mechanism. In other words, AE uses its own forward/backward logic instead of using the
built-in PIF navigation controls. This was done because the built-in PIF controls did not have all of the navigation
requirements that AE needed.
In addition to the as_install*.trc file, there are two other files automatically created in the system temporary directory that
are useful in solving interview problems:
as_install<pid>.vars
as_install<pid>.tvars
The as_install<pid>.vars file contains all environment and installer variables and values at the time the user clicks Install.
The as_install<pid>.tvars file contains a snapshot of all environment variables and installer variables at the time each dialog
is processed. Each snapshot begins with the dialog name, allowing you to easily identify its starting point. For example:
--------------------------------------------------------------------
--------------------------------------------------------------------
V_dlgWelcome
--------------------------------------------------------------------
--------------------------------------------------------------------
<snip>
PREFIX_ca_waae_server=/opt/CA/WorkloadAutomationAE
TGT_DBTYPE=Oracle
Typical_Current=0
WELCOME_VAR=maintenance
SD_EX=ex
ASI_EEM_LOGGING_CYC_BUFFERSIZE=500
ASI_ORA_STGMGT=Not Using Oracle Storage Management,Using Oracle Managed Files (OMF),Using Automatic Storage
Management (ASM)
Agent_Restart=1
Install_AGENT=1
Mod_UpgInst=0
SYB_LOCALE=iso_1
_=/usr/bin/env
--------------------------------------------------------------------
--------------------------------------------------------------------
D_dlgWelcome
--------------------------------------------------------------------
--------------------------------------------------------------------
ASI_AUTOSYS_INSTDIR=/opt/CA/WorkloadAutomationAE
ASI_DATABASE1=AEDB
ASI_DATA_DIR_save=
ASI_INSTALL_TYPE=
ASI_NCARGS_CURRENT=0
PIF_CHANGECONTROL_fldeemadmin=0
SCHED_Instd=0
SRC_JDBC_PATH=
WebSvr_Start=1
ASI_AGT_ENCRYPT_KEY_V=
ASI_SHUTDOWN_R11_AGENT=0
ASI_SHUTDOWN_SCHED_INST=
ASI_SYB_SA_USER=sa
CAPKI_WAAE_Caller=WAAE1135
<snip>
The $AS_PIF_FLOW variable serves as the dialog stack, mentioned in the above flowchart. The variable is stored in the
as_install<pid>.*vars files, and contains all dialog names, space delimited, that have been navigated. For example, by
searching for AS_PIF_FLOW using grep, you can easily “watch” the navigation path taken.
# cd /tmp
# grep AS_PIF_FLOW as_install21187.tvars
AS_PIF_FLOW=dlgWelcome
AS_PIF_FLOW=dlgMustShutDown dlgWelcome
AS_PIF_FLOW=dlgLicense dlgMustShutDown dlgWelcome
AS_PIF_FLOW=dlgInstallType dlgLicense dlgMustShutDown dlgWelcome
AS_PIF_FLOW=dlgAGTInfo dlgInstallType dlgLicense dlgMustShutDown dlgWelcome
AS_PIF_FLOW=dlgAGTInfo dlgInstallType dlgLicense dlgMustShutDown dlgWelcome
As shown above, the navigation path for this installation is Welcome, the Must-Shut-Down panel (evidently there are active
AE or CCS processes), License, Installation Type, and Agent Information. Note that pushing and popping occur LIFO (Last In
First Out).
Depending on the dialog button clicked (Next, Back, Test, or OK), a dialog name is pushed onto or popped from the stack
(the AS_PIF_FLOW variable). This process is a bit tricky because of constraints of the PIF architecture. The following steps
are used in each dialog to control the navigation flow.
On any panel you will find one or more of the buttons Next, Back, Test, and OK.
5. If Next, Test, or OK is clicked:
a. The as_verification.sh script is called to push, if applicable, the dialog name onto the stack. The exceptions to
pushing are when testing the database or EEM server connections. In all other cases, the PushDownOnDialogStack
function is used to accomplish this.
b. The as_navigation.sh script is then called to determine the dialog to display next. This script is specified in the
CAWorkloadAutomationAE.@prm prototype’s dialog definition’s #navbutton control. For example, the Welcome
panel definition’s #navbutton control identifies as_navigation.sh as the script to call.
@DIALOG:
#dhead: 650 , 500 , dlgWelcome , 211 , scripts/as_verification.sh ;
#graphic: grpGraphic , waae_w_west.gif , waae_w_header.gif , waae_w_center.gif , waae_footer.gif , ;
#textarea: 1 , 1 , txtWelcome1 , 702 ;
#textarea: 2 , 1 , txtWelcome2 , 705 ;
#textarea: 3 , 1 , areaEmpty1 , 900 ;
#textarea: 4 , 1 , areaEmpty2 , 900 ;
#textarea: 5 , 1 , areaEmpty3 , 900 ;
#textarea: 6 , 1 , areaEmpty4 , 900 ;
#textarea: 7 , 1 , areaEmpty5 , 900 ;
#textarea: 8 , 1 , txtReleaseN , 1341 ;
#textarea: 9 , 1 , areaEmpty6 , 900 ;
#textarea: 10 , 1 , txtCopyright , 704 ;
#navbutton: 1 , btnNext , 500 , 5 , , scripts/as_navigation.sh ;
#navbutton: 2 , btnCancel , 502 , 0 , ;
@ENDDIALOG:
All AE dialogs call the as_navigation.sh script, for simplicity. In as_navigation.sh is a function for each panel name.
The function has code which determines which panel should be displayed next. The function echoes the name of
the panel to display and PIF intercepts the name and displays that panel.
2. If Back is clicked:
a. The as_pifback.sh script is called to pop the last dialog name from the stack. As with as_navigation.sh, it echoes
the name of the popped dialog to PIF, who then displays that panel.
If there is a problem with the flow (such as a circular flow, skipping a panel, or displaying the same dialog), look in the
as_install<pid>.trc file to identify the dialog order. Then, determine the dialog where the logic flow faltered and fix the
navigation flow, most likely in as_navigation.sh.
# touch /tmp/.as_ora_test
# /tmp/.as_ora_test.sh
If .as_ora_test.sh fails, the database user ID, password, or Oracle SID specification is incorrect, or the Oracle
environment is not set up properly. This situation could happen under at least the two following conditions:
a. $ORACLE_HOME/bin/sqlplus is not found.
b. The Oracle user does not have sufficient privileges.
Important: Clicking Back removes /tmp/.as_ora_test.sh and /tmp/.as_ora_test. Make sure you save .as_ora_test.sh if you
need it later before clicking Back.
Sybase Database
1. Run ./wa_setup.sh. When the Database Test dialog displays, run the following command from another terminal session:
# touch /tmp/.as_syb_test
# /tmp/.as_syb_test.sh
If .as_syb_test.sh fails, the database user ID, password, or Sybase Server specification is incorrect, or the Sybase
environment is not set up properly. This situation could happen under at least the two following conditions:
a. $SYBASE/bin/isql is not found.
b. The Sybase user does not have sufficient privileges.
Important: Clicking Back removes /tmp/.as_syb_test.sh and /tmp/.as_syb_test. Make sure you save .as_syb_test.sh if you
need it later before clicking Back.
Section 4: Benefits
Section 5
Conclusions
Most of the cookbook focuses on installation, upgrade, and data migration topics. Each exercise invites stress and anxiety.
The more precise the documentation is, the more useful it becomes. As the current CA Technologies standards do not
provide for screen shots in official documentation, we have created this cookbook to show customers various screen shots
and specific methods to assist them through these often unclear screen entry and selection activities.
Section 6
References
------ CACDF Script File Command Syntax Guide, CA Technologies, December 2012:
https://km.ca.com/technicalsupport/advisors/CACDF/Shared%20Documents/Forms/AllItems.aspx
------ CA Workload Automation AE UNIX Implementation Guide, Release 11.3.5, CA Technologies, 2012.
------ CA Embedded Entitlements Manager Implementation Guide, Release 12.0, CA Technologies, 2011.
------ CA Workload Control Center Implementation Guide, Release 11.3.5, CA Technologies, 2012.
------ CA Common Components Implementation Guide, Release 11.3.5, CA Technologies, 2012.
Section 7