question

Matt L. avatar image
Matt L. asked ·

UEM JavaScript Agent Parameters Explanation

Hey Community,

We are looking to manually inject JS into the browser for UEM, and are looking into the .js file generated from the REST query. Ideally we would like the .js file to be as similar as possible between our various environments, so we have as little as possible to change with variables. The only things that I have found that change between the environments are:

  • lastModification=
  • tp=
  • agentURI= (I believe we can make sure this is the same provided we install the agent in the same location in each environment)
  • app= (we can make sure this is the same in our System Profile config)

Excerpt from one of the .js files downloaded from REST:

<script type='text/javascript'>...||(window.dT_={cfg:"lastModification=1532904626876|lab=1|tp=500,50,0,1|reportUrl=dynaTraceMonitor|agentUri=/dynatrace/dtagent_ICA23STVqr_7000100061012.js|auto=#AUTO#|domain=#DOMAIN#|rid=RID_#REQUEST_ID#|rpid=#RESPONSE_ID#|app=App-Dev-External"}))...</script>

So my questions are:

  1. Can we ignore the 'lastModification' time, or set it to some fixed value, or will that mess up how the JS agent works?
  2. What does 'tp' signify, and can we set it to some fixed value?

Thanks,

Matt Lewis

appmonuemjavascript
10 |2000000 characters needed characters left characters exceeded

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

1 Answer

Matt L. avatar image
Matt L. answered ·

Here is an update I have gotten from internal channels;

  • lastModification= Used to retrieve the config (seeing when it was last modified), so setting it to 9999999999999 (13-9's) for instance would be fine in a case such as this where you have to copy any changes over anyways every time
  • tp= Just the configuration for the Third Party/Resources setting, so should be able to make sure that's the same between our system profile apps
  • agentURI= We can make sure this is the same provided we install the agent in the same location in each environment
  • app= We can make sure this is the same in our System Profile config
Share
10 |2000000 characters needed characters left characters exceeded

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