• 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 Andrew C. · Oct 31, 2014 at 12:56 AM ·

How to instrument .NET agent via command line

Is there any way to inject .NET processes via command line, for automation purposes? The only information I have found thus far is on this page: .NET Agent Configuration#.NETAgentConfiguration-Command-LineOptions

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.

5 Replies

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

Answer by Rick J. · Mar 18, 2015 at 09:17 AM

It would be nice if an example of how to do this for iis app pools was included in the documentation page. We have 500-1000 .Net app pools in our environment I'm trying to POC and its hard to imagine instrumenting them click by click. The manual nature of this configuration has come up as a major drawback to the solution.

Comment
Santiago G.
Shane K.

People who like this

2 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 James D. · Mar 18, 2015 at 12:20 PM 0
Share

Rick,

What we've done before is automate the creation of the registry entries for the agent under HKLM\SOFTWARE\dynaTrace\Agent\Whitelist. So, in short we do the following with an automated deploy package. Depending on your tool you should be able to create something using these high level steps.

  1. Install dynaTrace agents via a silent install
  2. Detect what environment the machine is in
  3. Enumerate the AppPools on the machine
  4. Create registry entries with all proper information 
  5. Recycle IIS
avatar image Saravanan M. James D. · Sep 03, 2015 at 02:40 PM 0
Share

James,

can you please let us know about the detailed level steps to automate the dot net configration, sicne playing in the registry is quite risky.

Saravanan

avatar image

Answer by Mike T. · Sep 03, 2015 at 06:35 PM

be cautious of web servers on the same box as they may get mapped into the .NET application pools. But you can change those manually.

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.

avatar image

Answer by Mike T. · Sep 03, 2015 at 06:33 PM

you can create a batch file. with this in side of it. Obviously you need to change AGENTNAME to match the name you would like to use.

setx DT_AGENTNAME ApplicationServer /M

setx DT_SERVER 10.10.10.1 /M

setx DT_ACTIVEAGENT true /M

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.

avatar image

Answer by Andrew C. · Oct 31, 2014 at 01:29 AM

Thanks Andreas,

I'll give this a shot today with easyTravel and figure it out. Appreciate the quick response!

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.

avatar image

Answer by Andreas G. · Oct 31, 2014 at 01:17 AM

Yes. All you need to do is to set these environment variables for that .NET Process. If you have e.g: a batch file to launch that EXE you can set the DT_XXX env variables to tell that process that dynaTrace should actively monitor it. You need to at least set the following variables:

  • DT_AGENTNAME
  • DT_SERVER
  • DT_AGENTACTIVE

And of course you need to make sure that the .NET Agent is installed on that machine which will set the two global COR_XXX variables that are required by Microsoft. If you want to - you can also set these Env Variables in your script! 

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

2 People are following this question.

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