After you install the BMC Synthetic Transaction Execution Adapter (TEA) Agent, it automatically starts as a service on the agent computer, but you can also run the agent as process. You can run the TEA Agent as a process to support applications and technologies that require processes, such as for browser-driven scripts.
Before you run the TEA Agent as a process, ensure that the service is not running. You can stop the service in the APM Console, or through the operating system tools.
Log on to the TEA Agent computer as a user with administrator privileges.
A command prompt opens and displays the status of the TEA Agent.
You can stop the TEA Agent process from the computer with the TEA Agent, or you can stop the process from the APM Console, as described in the following procedure.
To stop a TEA Agent from the Console
Stopping and deleting a synthetic TEA Agent
3 Comments
David Taggart
Is there a way to stop a TEA Agent running as a process with a command such as taskkill? Or a batch script command? There appears to be an executable in the TEA Agent directory called SendSignalCtrlC.exe , but there is no documentation on how it functions. If I have multiple TEA Agents installed on a single host, will SendSignalCtrlC.exe attempt to end each one?
Dan Sobol
In order to shutdown the agent gracefully when running as a process either:
Console output
BMC Transaction Execution Adapter Agent 11.3.0.47 (SP 7704)(OpenSSL 1.0.2h 3 May 2016), PID 6828
Started.
Stopping TEA Agent...
TEA Agent stopped.
Terminate batch job (Y/N)?
The TEA Agent log:
TEA Agent stopped. Agent version 11.3.0.47 (SP 7704)(OpenSSL 1.0.2h 3 May 2016), PID 6828
Shutting down project manager.
Destroying controller for [EPID=165], [Ltc=141852056]
Closing Execution Log queue.
ManageExecutionLogQueue: Calling by Execution Log Queue thread
Execution Log queue has been closed.
Closing Result queue.
SendTransactionResults: Calling results thread
Results queue has been closed.
Note: in case there are many Execution Plans assigned to the agent, the shutdown process may take a while and you'll see log entry such "Destroying controller for [EPID=165], [Ltc=141852056] " for each Execution Plan.
David Taggart
Thank you Dan. I'm hoping to automate Process Agent shutdown and startup with BMC's Control-M software. Do you know of a way to extract the PID of a running TEA Agent from the agent.log file? Or perhaps it's recorded elsewhere in a more portable format?