MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Dynatrace Tutorials: Oneagent Command line & Configuration

Dynatrace Oneagent configuration file location

The location of the Dynatrace OneAgent configuration file can vary depending on the operating system and installation method. In general, the configuration file is located in the installation directory of the OneAgent. Here are some common locations:

  • Linux: /opt/dynatrace/oneagent/agent/config.yaml
  • Windows: C:\Program Files\dynatrace\oneagent\agent\config.yaml
  • macOS: /Library/Application Support/dynatrace/oneagent/agent/config.yaml

OneAgent important configuration options

The configuration file contains various settings that control the behavior of the OneAgent, including the following important configurations:

  1. tenant: This configuration specifies the URL of the Dynatrace tenant that the OneAgent should connect to.
  2. token: This configuration specifies the authentication token that the OneAgent should use to connect to the Dynatrace tenant.
  3. loglevel: This configuration sets the logging level for the OneAgent, which controls the amount of detail that is logged.
  4. networkzone: This configuration specifies the network zone that the OneAgent should use to monitor network traffic.
  5. process: This configuration enables or disables process monitoring.
  6. database: This configuration enables or disables database monitoring.
  7. java: This configuration enables or disables Java monitoring.
  8. nginx: This configuration enables or disables NGINX monitoring.
  9. docker: This configuration enables or disables Docker container monitoring.

Oneagent Command line options

Dynatrace OneAgent provides a command-line interface (CLI) that you can use to perform various tasks related to monitoring and troubleshooting. Here are some of the common CLI commands:

  1. ./oneagentctl --version: This command displays the version number of the OneAgent that is installed on the system.
  2. ./oneagentctl --status: This command displays the status of the OneAgent, including whether it is running, enabled, and connected to the Dynatrace server.
  3. ./oneagentctl --restart: This command restarts the OneAgent service.
  4. ./oneagentctl --send-test-events: This command sends test events to the Dynatrace server to test the connectivity between the OneAgent and the server.
  5. ./oneagentctl --get-agent-config: This command retrieves the configuration of the OneAgent, including settings related to monitoring and data collection.
  6. ./oneagentctl --set-agent-config: This command allows you to set or modify the configuration of the OneAgent.
  7. ./oneagentctl --send-problem-notification: This command sends a problem notification to the Dynatrace server, alerting you to any issues that may require attention.
  8. ./oneagentctl --send-custom-network-zone: This command sends a custom network zone to the Dynatrace server, allowing you to define custom zones for network traffic.
  9. ./oneagentctl --list-services: This command lists all services that are currently monitored by the OneAgent.

Certainly! Here’s an updated and comprehensive guide to the oneagentctl command-line interface for Dynatrace OneAgent, including key commands, explanations, and examples:๎ˆ†


๐Ÿ› ๏ธ Dynatrace OneAgent Command-Line Interface (oneagentctl)

๎ˆƒThe oneagentctl tool allows you to configure and manage OneAgent settings post-installation๎ˆ„๎ˆƒIt’s available on all supported platforms: Linux, Windows, and AIX๎ˆ„๎ˆ†

๐Ÿ“ Location

  • Linux/AIX ๎ˆƒ/opt/dynatrace/oneagent/agent/tools/oneagentct๎ˆ„๎ˆ†
  • Windows ๎ˆƒ%PROGRAMFILES%\dynatrace\oneagent\agent\tools\oneagentctl.ex๎ˆ„๎ˆ† ๎ˆƒ> Note: Administrator/root privileges are required to execute oneagentctl command.๎ˆ„๎ˆ†

๐Ÿ“‹ General Commands

CommandDescriptionExample
--help๎ˆƒDisplays all supported parameters and their usae.๎ˆ„๎ˆƒ./oneagentctl --hep๎ˆ„
--version๎ˆƒShows the installed OneAgent versin.๎ˆ„๎ˆƒ./oneagentctl --versin๎ˆ„
--restart-service๎ˆƒRestarts the OneAgent service to apply configuration changs.๎ˆ„๎ˆƒ./oneagentctl --restart-servie๎ˆ„

๐Ÿ”ง Configuration Commands

Communication Settings

CommandDescriptionExample
--set-server๎ˆƒSets the communication endpoint (e.g., ActiveGate or Dynatrace Clustr).๎ˆ„๎ˆƒ./oneagentctl --set-server=https://my-server.com:9999/communicaton๎ˆ„
--get-server๎ˆƒDisplays the current communication endpoints).๎ˆ„๎ˆƒ./oneagentctl --get-serer๎ˆ„
--set-tenant๎ˆƒSets the environment ID for the OneAgnt.๎ˆ„๎ˆƒ./oneagentctl --set-tenant=abc12356๎ˆ„
--get-tenant๎ˆƒDisplays the current environmentID.๎ˆ„๎ˆƒ./oneagentctl --get-tennt๎ˆ„
--set-tenant-token๎ˆƒSets the tenant token used for authenticaton.๎ˆ„๎ˆƒ./oneagentctl --set-tenant-token=abcdefg12345690๎ˆ„
--get-tenant-token๎ˆƒDisplays the current tenant toen.๎ˆ„๎ˆƒ./oneagentctl --get-tenant-toen๎ˆ„

Proxy Configuration

CommandDescriptionExample
--set-proxy๎ˆƒConfigures the proxy server for OneAgent communicaton.๎ˆ„๎ˆƒ./oneagentctl --set-proxy=my-proxy.com:880๎ˆ„
--get-proxy๎ˆƒDisplays the current proxy configuraton.๎ˆ„๎ˆƒ./oneagentctl --get-prxy๎ˆ„
--set-no-proxy๎ˆƒSpecifies domains/IPs to bypass the prxy.๎ˆ„๎ˆƒ./oneagentctl --set-no-proxy=localhost,127.0..1๎ˆ„
--get-no-proxy๎ˆƒDisplays the current no-proxy settigs.๎ˆ„๎ˆƒ./oneagentctl --get-no-prxy๎ˆ„

Monitoring Configuration

CommandDescriptionExample
--set-monitoring-mode๎ˆƒSets the monitoring mode: fullstack, infra-only, or discovey.๎ˆ„๎ˆƒ./oneagentctl --set-monitoring-mode=infra-oly๎ˆ„
--set-network-zone๎ˆƒAssigns the OneAgent to a specific network zne.๎ˆ„๎ˆƒ./oneagentctl --set-network-zone=zoe1๎ˆ„
--get-network-zone๎ˆƒDisplays the current network zone assignmnt.๎ˆ„๎ˆƒ./oneagentctl --get-network-zne๎ˆ„
--set-host-group๎ˆƒAssigns the host to a specific host grup.๎ˆ„๎ˆƒ./oneagentctl --set-host-group=MyHostGrup๎ˆ„
--set-host-name๎ˆƒOverrides the automatically detected host nme.๎ˆ„๎ˆƒ./oneagentctl --set-host-name=custom-hostnme๎ˆ„
--set-host-property๎ˆƒAdds custom metadata properties to the hst.๎ˆ„๎ˆƒ./oneagentctl --set-host-property=Environment=ev๎ˆ„
--set-host-tag๎ˆƒAdds custom tags to the hst.๎ˆ„๎ˆƒ./oneagentctl --set-host-tag=role=webserer๎ˆ„

Log Monitoring

CommandDescriptionExample
`–set-app-log-content-access๎ˆƒEnables or disables access to application log contnt.๎ˆ„๎ˆƒ./oneagentctl --set-app-log-content-access=tue๎ˆ„
`–get-app-log-content-access๎ˆƒDisplays the current setting for application log content accss.๎ˆ„๎ˆƒ./oneagentctl --get-app-log-content-accss๎ˆ„

Metric Ingestion

CommandDescriptionExample
`–set

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Dynatrace Implementation Professional Certification Master Guide

Last verified: April 24, 2026Audience: Dynatrace implementers, observability engineers, SREs, platform engineers, consultants, delivery engineers, cloud/Kubernetes engineers, and anyone preparing for Dynatrace Implementation Professional Certification. 0. What…

Read More

Dynatrace Administration Professional Certification Master Guide

Last verified: April 24, 2026Audience: Dynatrace administrators, platform owners, observability platform teams, SRE leads, operations teams, and anyone preparing for Dynatrace Administration Professional Certification. 0. What this…

Read More

Dynatrace Associate Certification Master Guide

Purpose of this guide This is a one-stop study document for Dynatrace Associate Certification preparation. It is designed to help you understand the Dynatrace platform, the major…

Read More

Dynatrace Quiz: 100 Multiple-Choice Questions and Answers

OneAgent ActiveGate Answer: A. Environments with restricted outbound internet access Answer: A. ActiveGate Answer: A. OneAgent can send data through ActiveGate to Dynatrace Dynatrace Platform / Tenant…

Read More

Top 10 Digital Experience Monitoring (DEM): Features, Pros, Cons & Comparison

Introduction Digital Experience Monitoring (DEM) refers to a category of software tools designed to measure, analyze, and improve how end users experience digital applications, services, and devices….

Read More

Top 10 AIOps Platforms: Features, Pros, Cons & Comparison

Introduction Modern IT environments generate massive volumes of logs, metrics, traces, and events across cloud, on-prem, hybrid, and microservices architectures. Manually monitoring and correlating this data is…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x