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?
Harvest Software Change Manager v12.x and higher
This can be done on Unix/Linux and on Windows.
On Unix/Linux the steps include
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"
On Windows the steps include
agntd -eh=agentinfo.dfo-or-agntd -usr=cascm -pwd=harvest
On the AIX platform the steps include
You will create a script that does the following.
For example:
su - <userid>
<scm installation folder>/bin/agntd -usr=<userid> -eh=<encrypted password filename> -port=<port number>
Then, add an entry in /etc/inittab in the following format:
id:runlevels:action:process
id: A unique identifier for the entry (1-4 characters).
runlevels: The run levels at which the process should be active. AIX typically uses runlevel 2 for normal multi-user operation.
action: Specifies how init should handle the process. Common actions include:
process: The command or script to be executed.
For example::
hagntd:2:once:<scm installation folder>/bin/agntd -usr=<userid> - -port=<port number>
More information on starting the single user agent can be found here: Configure the Broker and Server Communication on Windows - Single-User Agent