Configure CA Workload Automation System Agent to start automatically at server reboot
search cancel

Configure CA Workload Automation System Agent to start automatically at server reboot

book

Article ID: 10142

calendar_today

Updated On:

Products

Workload Automation Agent

Issue/Introduction

It is possible to configure the system agent service to startup automatically after the server reboot in all the supported operating systems.

This technical document provides guidance on creating Run Control scripts to automatically start the WA Agent along with the server reboot.

Environment

CA Workload Automation System Agent 11.3 and higher on all supported Linux / Unix platforms.

Cause

CA Workload Automation System Agent installer skips creating the Run Control scripts if the option to start service at system boot is not selected during the installation. And, so WA Agent does not automatically start on server reboot.

Resolution

Windows:

The System Agent service in the windows services console (services.msc) can be switched to Automatic start in the properties.

Right-click on the service name and properties

Switch the Startup-type to "Automatic". Apply the changes and click on OK.

Linux:

Follow the instructions in the KB article:

Enable Application services to start automatically after the server reboot

https://knowledge.broadcom.com/external/article/32893

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, consult Oracle documentation for details.

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