Datapower Monitor agent as a service
search cancel

Datapower Monitor agent as a service

book

Article ID: 194133

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

In order to simplify administration, the APM DataPower Monitor agent needs to be started/stopped as a service. 

Currently, it is started/stopped via the script :

\DatapowerMonitor-4.0.0\bin\DatapowerMonitor.bat start/stop


Environment

DataPower Release : 4.0

Component : APM Agents

Resolution

Currently, there is no out-of-the-box configuration to handle the DataPower APM agent as a service. 

However, these options can be considered:

   - Use the Java Service Wrapper script. This is the wrapper used by the APM Infrastructure Agent:

https://wrapper.tanukisoftware.com/doc/english/download.jsp

the APMIAgent.bat can be used as an example:

   - Use the command ProcRun service application, Prunsrv, from the Apache Commons:

http://commons.apache.org/proper/commons-daemon/procrun.html

   - Set the batch file up as a Scheduled Task that is scheduled to run at startup

   - Use any of the free utilities to convert a batch file to a service

   - Use the PowerShell command "sc create"

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-7