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.
Thanks for your response! So it's the same commands specified in the below link
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.