any one now how to setup the java Machine Agent as windows service ?
Hi,
You can create a windows batch file the has code that looks as follows:
#file machineAgentStartup.bat
java -jar machineagent.jar
run the windows bat file created to windows startup tasks, so that it will be scheduled to start the machine agent on machine startup
Let us know if that helps.
Thanks,
Arun
Hi Arun,
After adding the bat file to windows startup it needs a restart, but when we are deploying the agents in Production environments, restarting the servers is a concern.
Is there any other alternative you can think of in this case.
Thanks,
Raghava
Hi Raghava,
Thanks for the update, let us know if starting machine agent service using net start command helps:
net start "service name"
Thanks,
Arun
hi Arun,
Starting it as a service is a good option.
Can you point me where can I find information to create the service for the agent.
Hi Raghava,
Currently we do not see an inbuild operating system tool that helps to create service using bat files apart from adding scheduled task as mentioned at link http://support.microsoft.com/kb/137890 , and this os level restriction
To create service using net start command the we need to executable(.exe file) , if you can create exe file using some third party tool that starts machine agent bat having command java -jar machineagent.jar, then please refer docs for more information on net start command http://technet.microsoft.com/en-us/library/cc736564%28v=ws.10%29.aspx
Please let us know if that helps
Thanks,
Arun
Hello all,
we are using external tool Tanuki Service Wrapper for it. It works fine.
Another idea is to write perhaps a service with sc.exe - command but we didn't test it.
regards
Martin
As a future enhancement can we expect from AppDynamics seperate Machine agent for windows boxes as a exe, which when we run on any windows box create a service similar to controller installation, where we have option to create services for application and database service.
Hi Kaushik,
We already have this feature on roadmap and we have internal feature request filed for to run machine agent as windows service, Hope this answers your query.
Let us know if this doc helps while we are working on the feature request.
Thanks,
Arun