Can the SCM Single User Agent be configured to run as a service?
search cancel

Can the SCM Single User Agent be configured to run as a service?

book

Article ID: 49076

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

Description:

The SCM Single User Agent is most commonly implemented as an application that runs at the time the user is logged into the agent machine, and then shutsdown when, or before the user logs off. But what if you need the Single User Agent to remain running whether or not the user is logged in?

Solution:

This can be done on Unix/Linux and on Windows.

On Unix/Linux the steps include

  1. Login to the agent machine as root or as the cascm user (userid that owns the folder where CA SCM is installed) and navigate to the $CA_SCM_HOME folder

  2. If you want to run the agent using a dfo file instead of command line parameters for user and password, execute the svrenc command to create a new dfo file containing the userid and password the agent process will use

  3. Create a new batch script containing a command similar this:

    exec /bin/su - cascm -c ". /opt/CA/scm/bin/agntd -eh=/opt/CA/scm/agentinfo.dfo"	-or-exec /bin/su - cascm -c ". /opt/CA/scm/bin/agntd -usr=cascm -pwd=harvest"

  4. Test the script from the command line, logged in as the cascm user, to assure it starts the agent process as expected

  5. Have the Unix/Linux system administrator add a record to the /etc/inittab table to call the script at startup

On Windows the steps include

  1. Login to the agent machine as the cascm user and navigte to the %CA_SCM_HOME% folder

  2. If you want to run the agent using a dfo file instead of command line parameters for user and password, execute the svrenc command to create a new dfo file containing the userid and password the agent process will use

  3. Create a new batch script containing a command similar to this:

    agntd -eh=agentinfo.dfo-or-agntd -usr=cascm -pwd=harvest

  4. Test the script from the command line, logged in as the cascm user, to assure it starts the agent process as expected

  5. Have the Windows system administrator create a Windows Scheduled Task to run the script as the cascm user ever time the computer starts up. Make sure to select the option to run the script whether the user is logged in or not.

Environment

Release: SCMNCR99000-12.1-Harvest-Software Change Manager-Named User-Competitive Replacem
Component: