# Commands used by One agent for Collecting OS and Network Level Metrics

**URL:** <https://community.dynatrace.com/t/commands-used-by-one-agent-for-collecting-os-and-network-level-metrics/10974>\
**Category:** Open Q&A\
**Tags:** oneagent, hosts-classic\
**Created:** [February 23, 2018, 9:41am UTC](https://community.dynatrace.com/t/commands-used-by-one-agent-for-collecting-os-and-network-level-metrics/10974 "2018-02-23T09:41:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rk\_sakthiraam](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rk\_sakthiraam](https://community.dynatrace.com/u/rk_sakthiraam)\
**Post date:** [February 23, 2018, 9:41am UTC](https://community.dynatrace.com/t/commands-used-by-one-agent-for-collecting-os-and-network-level-metrics/10974/1 "2018-02-23T09:41:40Z")

</div>

Hi All,

Does anyone has the list of commands executed by dynatrace One Agent to collect the OS level and Network level metrics from the host ?

Thank You

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [February 23, 2018, 12:04pm UTC](https://community.dynatrace.com/t/commands-used-by-one-agent-for-collecting-os-and-network-level-metrics/10974/2 "2018-02-23T12:04:27Z")

</div>

One Agent does not execute external commands in order to collect OS and Network level metrics. For OS level metrics, they are read directly from /proc (Linux) or from WinAPI calls (Windows). Network metrics are calculated from the traffic capture performed by Network Agent.

---

<div class="post-metadata">

**Author:** ![rk\_sakthiraam](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rk\_sakthiraam](https://community.dynatrace.com/u/rk_sakthiraam)\
**Post date:** [February 27, 2018, 8:03am UTC](https://community.dynatrace.com/t/commands-used-by-one-agent-for-collecting-os-and-network-level-metrics/10974/3 "2018-02-27T08:03:53Z")

</div>

Hi Lukasz,

Thanks for your response! So it’s the same commands specified in the below link

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3Da61c5c6d-9dc4-415d-802c-b61b93fdc75c&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

When you say the Network metrics are calculated from the traffic capture, Can we understand that its sniffing every TCP packet that is passing through the server to get the information ?. Please help to clarify.

Regards

Sakthi

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [February 27, 2018, 12:37pm UTC](https://community.dynatrace.com/t/commands-used-by-one-agent-for-collecting-os-and-network-level-metrics/10974/4 "2018-02-27T12:37:49Z")

</div>

The linked page is for AppMon, which uses different code base. On a conceptual level we do it similarly, but there are differences.
