How-To: Configure CA Workload Automation System Agent on UNIX/Linux hosts to start automatically on server reboot.

Document ID : KB000010142
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

When we install CA Workload Automation System Agent 11.3  the Run Control scripts are not created by default and hence the WA Agent does not automatically start on server reboot. This technical document provides guidance on creating Run Control scripts to automatically start the WA Agent upon server reboot.

Environment:
CA Workload Automation System Agent 11.3 SPx on all supported Linux / Unix platforms.
Instructions:

 

Linux:

Follow instructions in KB article TEC1824945: Agent Doesn’t Start When Server is Rebooted

 

Solaris 10 and higher:

  • Using Run Control scripts:

    i) Copy the cybagent-AGENT.init from the System Agent installation path (Ex: /opt/CA/WA_Agent) to the /etc/init.d/ directory (where AGENT is name given to the Agent at install time).

        ii) Create the following run control scripts/symbolic links:


        # cd /etc/init.d/
        # ln -s cybagent-AGENT.init /etc/rc0.d/K64cybagent-AGENT.init
        # ln -s cybagent-AGENT.init /etc/rc1.d/K64cybagent-AGENT.init
        # ln -s cybagent-AGENT.init /etc/rc2.d/K64cybagent-AGENT.init
        # ln -s cybagent-AGENT.init /etc/rc3.d/S00cybagent-AGENT.init

        After executing the aforementioned scripts, execute the following command to confirm their existence.

        # ls -l /etc/rc?.d/*cybagent-AGENT.init
        lrwxrwxrwx 1 root root 29 Jan 11 2013 /etc/rc0.d/K64cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init
        lrwxrwxrwx 1 root root 29 Jan 11 2013 /etc/rc1.d/K64cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init
        lrwxrwxrwx 1 root root 29 Jan 11 2013 /etc/rc2.d/K64cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init
        lrwxrwxrwx 1 root root 29 Jan 11 2013 /etc/rc3.d/S00cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init

  • Set up the System Agent as a SMF-managed service. Instructions are documented in the KB: TEC618920

 

AIX

  • Copy the /opt/CA/WA_Agent_R11_3_4/cybagent-AGENT.init file to /etc/rc.d/
  • Create the symbolic links like so:

# cd /etc/rc.d/
# ln -s cybagent-AGENT.init /etc/rc.d/rc2.d/K001cybagent-AGENT.init
# ln -s cybagent-AGENT.init /etc/rc.d/rc2.d/S000cybagent-AGENT.init

 

Confirm these exist:

# ls -l /etc/rc.d/rc?.d/*cybagent-AGENT.init
lrwxrwxrwx 1 root system 22 Feb 24 17:41 /etc/rc.d/rc2.d/K001cybagent-AGENT.init -> ../cybagent-AGENT.init
lrwxrwxrwx 1 root system 22 Feb 24 17:41 /etc/rc.d/rc2.d/S000cybagent-AGENT.init -> ../cybagent-AGENT.init

 

HP-UX:

  • Copy the cybagent-AGENT.init to the /sbin/init.d directory
  • Create run control scripts/symbolic links like below:

# cd /sbin/init.d/
# ln -s cybagent-AGENT.init /sbin/rc0.d/K099cybagent-AGENT.init
# ln -s cybagent-AGENT.init /sbin/rc1.d/K099cybagent-AGENT.init
# ln -s cybagent-AGENT.init /sbin/rc2.d/K099cybagent-AGENT.init
# ln -s cybagent-AGENT.init /sbin/rc3.d/S436cybagent-AGENT.init

 

Confirm these exist:

# ls -l /sbin/rc?.d/*cybagent-AGENT.init
lrwxr-xr-x   1 root       sys             29 Sep 25 00:27 /sbin/rc0.d/K099cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init
lrwxr-xr-x   1 root       sys             29 Sep 25 00:27 /sbin/rc1.d/K099cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init
lrwxr-xr-x   1 root       sys             29 Sep 25 00:27 /sbin/rc2.d/K099cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init
lrwxr-xr-x   1 root       sys             29 Sep 25 00:27 /sbin/rc3.d/S436cybagent-AGENT.init -> ../init.d/cybagent-AGENT.init

 

NOTE: The sequence numbers for Run Control scripts (Kxxx and Sxxx) can be different than what is given in the aforementioned examples.

Additional Information: