This document guides you through the new installationnull of a UNIX agent.
Each supported UNIX variant has a three-character code which is part of the the agent's file name. In this document the specific code is replaced by "???."
64-bit UNIX platforms: Automic recommends using a 64-bit agent in order to start 64-bit programs and applications. Problems may occur when you use a 32-bit agent for this purpose.
The following guide describes how to install an agent in an AE system in which authentication is not used. Additional installation steps are required before the agent can be started and used if you intend to use one of the available authentication methods. More detailed information is provided in the document Advanced Security.
Automic strongly recommends installing the agent in a separate directory.
Automic recommends running the UNIX agent with root rights. Without root rights, the agent cannot switch to the context of another user and jobs and file transfers must always run under the user under which the agent has started.
You can define the relevant rights for the agent by starting it under the real "root" user. Another method is to set the sbit for the agent and to define "root" as the owner. The effect is that every user of the group that is assigned to the agent can start it.
Requirements
Note that authorizations must not be changed while the agent is running.
When a login is specified in the script element PREP_PROCESS, the event file is created in the HOME directory of the user for security reasons. If no login is specified, the system assumes that the succeeding event job runs with agent rights. Therefore, PREP_PROCESS creates the file name with the temp path of the agent.
At the time when PREP_PROCESS is being processed, the system does not know whether the job will use a login or not. From a technical perspective, this cannot currently be determined, because the event job could also specify the login dynamically (with a PUT_ATT script statement). There are two possible solutions:
Authorizations for jobreport files are specified using the INI-file parameter ReportMode=.
See step 1: Unloading the TAR files and setting up the system environment.
Read the note referring to processes on AIX.
Note that on AIX, the size for Core files must be extended.
The CallAPI implementation is described in a separate document.
Procedure
1. | Rights of the user ID "AE" |
---|
2. | Transferring the TAR files to the host and setting up the system environment |
---|
Note any TAR messages and verify that all files are unpacked correctly.
chown root ucxj???
chmod 4755 ucxj???
3. | Configuring authentication via PAM (optional) |
---|
Authentication via (Pluggable Authentication Modules) is now supported for the agents of the following UNIX platforms: Solaris, Linux and AIX.
Quitting with the DEL key is only possible as of version 1.20 and when the corresponding parameter in the INI file has been set. Automic recommends that you do not set this parameter, but quit from another terminal using the kill -TERM instead.
Enter the following if the directory $HOME/bin has been set in the system environment PATH:
nohup ucxj??? 1> ucxj???.log
2>&1 &
Enter the following if the directory $HOME/bin has not
been set in the system environment PATH:
nohup ./ucxj??? 1> ucxj???.log
2>&1 &
Note displayed process ID pid.
Information about this process with ps
-ppid. Not always available.
Information about all UCX processes with ps
-ef | grep ucx.
Information about all processes with ps
-e.
The backup directory for the filebased rollback is automatically created when you start the agent. This directory is available for jobs and file transfers. You can define the path for the backup directory in the agent variable UC_EX_PATH_BACKUP. Note that for using the filebased rollback, you need the OS user under which the related jobs and file transfers are started, and write access to the backup directory.
Use the ServiceManager to start or end agents.
4. | Ending the Agent |
---|
kill-TERM pid
kill -KILL pid or
kill -9 pid