• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Haider A. · Nov 01, 2012 at 09:52 PM ·

Automation of new agent setup

Hey,

I am looking into automating the setup of the agents on .NET and JAVA clients.
Currently I am using a shell on my windows boxes to install the msi file as such:

msiexec.exe /i dynatrace-agent-4.2.0.3154.msi

So far so good, now I want to add my .net and java processes to the client using command-line options, note that I have done it manually using the interface which doesn't scale with 100s of machines.

Any idea would be appreciated.

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Andreas G. · Nov 05, 2012 at 06:07 PM

For .NET you could do the following
a) configure one machine using the .NET Agent configuration Tool
b) export the registry entries that the .NET Config Tool writes -> look at HKLM\Software\Wow6432Node\dynaTrace\Agent\WhiteList
c) import these registry keys on your other .NET Servers

Andi

Comment

People who like this

0 Show 2 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Haider A. · Nov 06, 2012 at 02:41 AM 0
Share

Thanks Andi for the reply, that's exactly what I was looking for.
Put it together in a quick shell script below for future references,

Running this script you will need 2 files,

  • production_servers.list (should have list of your servers - one server per line)
  • exported.reg (The manually exported registry file)
install_agent.sh
#!/bin/bash

for server in `cat production_servers.list`
  do 
	scp -r dynatrace-agent-4.2.0.3154.msi exported.reg $server:
	echo "installing"
	ssh $server "msiexec.exe /i dynatrace-agent-4.2.0.3154.msi"
	echo "Agent is installed"
	ssh $server "regedit.exe /S exported.reg"
	echo "Registry changes are done for $server"
	echo "Restarting IIS"
	ssh $server "iisreset.exe /restart"
done
avatar image Andreas G. ♦ Haider A. · Nov 06, 2012 at 02:37 PM 0
Share

nice - thanks for the script!
happy deploying (smile)

avatar image

Answer by Derek A. · Nov 02, 2012 at 09:24 PM

Perhaps the REST Interface might be able to help?

You certainly don't have to add an agent via the dT client. On the application server you can add the agent mapping details directly into the JVM options of a java based application such as a Tomcat application or launch the .net configuration editor and add a .net app that way.

As far as "automating" it through a command line, some java applications like a Tomcat application probably have their JVM options stored in the registry which you could manipulate via the command line. It doesn't look like the .net configuration editor has any additonal parameters associated with the dtagentconf.exe. Perhaps it would be a good feature enhancement?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A