• 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 Kristof R. · Sep 02, 2014 at 12:02 AM ·

Best way to disable .Net agent via command line

Hi,

I have a client that has multiple identical system in one location, where 1 of them is the 'master' system.

This master system can change from day to day.

Only the master system has to be instrumented with dynaTrace.

This system has a .Net agent in place.

My question: what would be the best way to disable the agent via command line. When the master system changes, we will have to disable the agent on one system and activate it on another. 

In the doc I found the DT_AGENTACTIVE environment variable. Is setting that one to true and false enough to take of the agent? Will it remove all instrumentation? Is it the same as the Active/Inactive buttons on the agent configuration for .net utility?


Thanks for your help.


KR,

Kristof

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.

3 Replies

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

Answer by Sreerag M. · Apr 18, 2015 at 01:48 AM

Is there a similar way to disable java agents in a host rather than removing the entry from JVM startup.

-Sreerag

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 Andreas G. ♦ · Apr 21, 2015 at 04:46 PM 0
Share

Not that I am aware of

avatar image Sreerag M. Andreas G. ♦ · Apr 21, 2015 at 10:00 PM 0
Share

Could this be an RFE.

Global enable/disable will help in maintaining agent deployment using tools like Chef, Puppet. We could add agents on every server being built and enable agents when we are ready for profiling the application. I have seen where App team doesn't have enough time to setup agent (already in go live freeze)  and went live without instrumentation. Once live its really hard to get agents on those applications.

-Sreerag

avatar image

Answer by Kristof R. · Sep 02, 2014 at 06:25 PM

Perfect, thanks Roman.

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 Roman S. · Sep 02, 2014 at 05:59 PM

Hi Kristof,

The active/inactive toggle in the agent configuration tool is setting or removing the environment variables COR_ENABLE_PROFILING and COR_PROFILER. If you have the capability of setting/removing environment variables that would be the easiest option.

Another idea would be to modify the entries in the agent whitelist (HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\dynaTrace\Agent\Whitelist) in the Windows registry. You could just switch the active key from true to false and after a bounce of your IIS services the agent will no longer become active. It will still load - but then decide to not instrument the app. Consider setting DT_DISABLEINITIALLOGGING so that the agent does not log anything during the initial check of the whitelist.

Best, Roman

 

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