Installing the AE - UNIX
The following steps will help you install the Automation Engine on UNIX.
Notes:
-
The Automation Engine for UNIX is available for different platforms; a three-figure code is supplied for each supported UNIX platform. The codes are the same as for agents. In this document, the specific code is replaced by the characters "???". This document describes the installation of the Automation Engine for Oracle and DB2 databases. Specific differences are described in the individual processing steps. MS SQL Server is not supported.
-
It is best to install the Automation Engine in a separate directory (such as /opt/automic/server).
This page includes the following:
Requirements
-
Information security services, such as the TLS implementation of the ServiceManager, require features provided by the CAPKI package. You need to install CAPKI on all computers in which the Automation Engine Server Processes or the ServiceManager and any of its clients will run. For more information, see CAPKI - Securing the ServiceManager, Server Processes and ServiceManager.
-
After installation, rebooting the UNIX System is NOT necessary.
-
Own UNIX user ID for the Automation Engine (default: uc4, Home = /opt/uc4).
-
For Solaris: The most current patch cluster for Sun OS has been installed.
Important! Adhere to the note that describes processes on AIX. For more information, see AIX Processes Abort Due to Lack of Memory.
When using an Oracle Database
- Functioning Oracle installation (access to the database must be possible)
- User ID for the Oracle database
Platform specific three-character codes for UNIX
Each supported UNIX variant is assigned a three-character code. This code appears in all of the agent's file names and is explained below:
UCXJSSVA
SSV = System ID and Version
A = Task (only for messenger program and CallAPI)
System ID and Version | Hardware, Operating System, Version |
---|---|
D.. |
UNIX - DEC OSF |
DA4 | Alpha - DEC-OSF/1 - Digital UNIX - Tru64 UNIX |
H.. | UNIX - HP-UX |
HP1 | HP Workstation (9000), HP-UX |
HI6 |
rx2600 machine with Itanium, HP-UX |
A.. |
UNIX - IBM AIX |
A64 | Power PC64, AIX |
AP6 | Power PC, AIX |
L.. | UNIX - Linux |
LI3 | Intel, Linux |
LI6 |
Itanium, Linux |
LX6 | Linux (x64) |
LZ3 |
zSeries, zLinux |
LZ6 | zSeries, zLinux 64bit |
C.. | UNIX - SCO |
CI5 | Intel, SCO-UNIX ODT |
CI7 | Intel, SCO Unixware |
U.. | UNIX - Sun OS (Solaris) |
U64 | Sparc64, Solaris |
US8 | Sparc, Solaris |
UI8 | Intel, Solaris |
SI6 | Intel 64 bit (x64), Solaris |
In this document, the specific code is replaced by the characters "???." This document describes the installation of the Automation Engine for Oracle databases.
Install the AE
Oracle Databases
- Log on as AE.
- Create a new directory: /opt/automic/server.
- Transfer the ucs???.tar.gz file from
/cdrom/cdrom0/<
version>/AutomationEngine/unix/<
platform>
with ftp (binary) to the created directory. - Unpack the tar file using one of the following commands:
gzip -d ucs???.tar.gzgunzip ucs???.tar.gz
tar xvf ucs???.tar - Set the environment variables in $HOME/.profile if the Automation Engine does not run on the same computer as the utilities. For more information, see Installing the Utilities - UNIX.
- Rename the ucsrv.ori.ini file to ucsrv.ini:mv ucsrv.ori.ini ucsrv.ini
- Adjust the INI file of the Automation Engine to your system environment ,see Automation Engine. The following list shows the INI file entries which must be adjusted in all cases. All other parameters can be configured as needed.
- Name of the AE system (system= )
- Activate the SNMP connection (snmp= ) if used.
- Port number of the primary work process (pwpport= )
As of version 12.3, the assignment of process numbers has changed, see Types of Server Processes. - Connection for the database (SQLDRIVERCONNECT= )
- Remove the AE IMAGE:
umount /cdrom or eject cdrom - Check the libraries:
AIX:
- Check the Oracle library libclntst*.a.
- Library check:
dump -X64 -H ucsrvcp > wk.txt (use a blank after "dump"). - Open the created file with a text editor (sed or vi). Verify that all libraries were found.
- Repeat the above procedure with ucuoci.a and ucsrvwp. Some missing entries might be reported that refer to the file ucuoci.a, because it is a library instead of a main program. If these messages refer to the libraries ucuoci.a, libzu00132.a and libucudb32.a, they can be disregarded. If an entry cannot be found in a different library (Oracle, for example), this is an error.
HP-UX:
- Check the Oracle library libclntsh.so.*.0.
- Library check:
ldd -r ucsrvcp > wk.txt
The option -s can be used instead of -r for ldd. - Open the created file with a text editor (sed or vi). Verify that all libraries were found.
- Repeat the above procedure with ucuoci.sl and ucsrvwp. Some missing entries might be reported that refer to the file ucuoci.sl, because it is a library instead of a main program. If these messages refer to the libraries ucuoci.sl, libzu00132.sl, or libucudb32.sl, they can be disregarded. If an entry cannot be found in a different library (Oracle, for example), this is an error.
Linux, Solaris and zLinux:
- Check the Oracle library libclntsh.so.*.0.
- Library check:
ldd -r ucsrvcp > wk.txt
The option -s can be used instead of -r for ldd. - Open this file with a text editor (sed or vi). Verify that all libraries were found.
- Repeat the above procedure with ucuoci.so and ucsrvwp. Some missing entries might be reported that refer to the file ucuoci.so, because it is a library. If these messages refer to the libraries ucuoci.so, libzu00132.so, or libucudb32.so, they can be disregarded. If an entry cannot be found in a different library (Oracle, for example), this is an error.
For more information, see Preparing the AE Database - Oracle).
DB2 Databases
Install the AE SNMP Subagent (Optional)
(Server computer). You may want to install the AE SNMP subagent to monitor the various conditions which occur within an AE system (e.g. availability of the Automation Engine and agents, active notifications or blocking tasks). For more information, see Installing the Automation Engine SNMP Subagent (UNIX).
Start the Automation Engine
Manually start the Automation Engine for a test. (Server computer).
-
Log on with the AE User ID.
-
Change to the installation directory of the executable programs:
cd $UC4/bin -
Start the communication process in the background:
./ucsrvcp & -
Start the work process in the background:
./ucsrvwp & -
Verify that the Automation Engine is running:
ps -ef|grep ucsrv or ps -fu uc4 -
It should now be possible to log on to the active Automation Engine with an AWI. The relevant information about the running Automation Engine is available in the Administration perspective.
Shut Down the Automation Engine
(Server computer). Use the ServiceManager to start and end server processes. For more information, see ServiceManager and Start Parameters - ServiceManager.
Shutdown
-
Find out the Process ID pid:ps -ef|grep ucsrv
-
End a server process:kill -TERM pid
Cancel
-
Find out the Process ID pid:
-
End a server process:kill -KILL pid
Possible Issues
At program start:
- Automation Engine ends when starting up:
Activate traces (the database trace is the most important).
Missing libraries or other errors are best found by starting the Automation Engine using:
truss 2>truss.out -f ucsrvcp
The resulting file, truss.out, contains all system calls of the Automation Engine and all attempts to load shared objects.
If a library is missing, the problem can be that it exists in the system, but its path has not been specified in the environment variable (LIBPATH, SHLIB_PATH or LD_LIBRARY_PATH). Search the library as "root" by using:
find / -name 'library' -print
(wildcard characters are allowed).
Add the located path to the environment variable. If the library cannot be found, it has not been installed on this system or it has been deleted. Search the library to check whether it is available:
AIX, Linux, Solaris and zLinux: /var/sadm/install/contents
HP-UX: /var/adm/sw/ sw install.log and /var/adm/sw/ sw remove.log
- If it cannot be found here, it has been deleted. The names of the packages in which the libraries are available are found at the end of the relevant lines. The best solution in this case is to install the package again.
- Automation Engine drags and/or hangs.
Usetruss -f -p pid 2>&1 | tee -a truss.out
to trace the system calls of a running process. "tee" makes the output available on the screen and in the truss.out file. - Remove <CR> (^M) from the text files:
vi Text file
%s/<Ctrl-V><Ctrl-M>$//g
:wq!
Next step:
-
Installing the ServiceManager (recommended)
-
Setting Up a Distributed Server Environment if you are using more than one server