# Execute commands on AIX server

**URL:** <https://community.dynatrace.com/t/execute-commands-on-aix-server/51128>\
**Category:** Open Q&A\
**Tags:** aix, extensions, oneagent-sdk\
**Created:** [April 8, 2025, 9:51pm UTC](https://community.dynatrace.com/t/execute-commands-on-aix-server/51128 "2025-04-08T21:51:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VibhashMishra](https://avatars.discourse-cdn.com/v4/letter/v/7ea924/32.png) [@VibhashMishra](https://community.dynatrace.com/u/VibhashMishra)\
**Post date:** [April 8, 2025, 9:51pm UTC](https://community.dynatrace.com/t/execute-commands-on-aix-server/51128/1 "2025-04-08T21:51:12Z")

</div>

Hi Team,

Is there a way to execute a command on the **AIX serve** r to capture the output of the following? The jbase\_agent in the T24 core banking system is managing hundreds of processes, and these processes are creating files within a specific folder. To track this, counting the active processes or the number of files in that folder would be helpful.

The command in question is:

ps -ef | grep jbase\_agent | grep -v start | wc -l

This will allow us to monitor the number of processes associated with jbase\_agent. Alternatively, we could count the files in the designated folder to get a similar count of connections.

---

<div class="post-metadata">

**Author:** ![RohitBisht](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rohitbisht/32/38577_2.png) [@RohitBisht](https://community.dynatrace.com/u/RohitBisht)\
**Post date:** [April 9, 2025, 12:19am UTC](https://community.dynatrace.com/t/execute-commands-on-aix-server/51128/2 "2025-04-09T00:19:09Z")

</div>

Hi&nbsp;[@VibhashMishra](https://community.dynatrace.com/user/63198)&nbsp;, I believe you can get the count of process with these metrics. Try these and compare with the actual count on the server.&nbsp;

> **[Built-in classic metrics](https://docs.dynatrace.com/docs/analyze-explore-automate/metrics-classic/built-in-metrics)**
>
> Explore the complete list of built-in Dynatrace metrics.

For number of files in the folder you can use below extension but these extensions don’t run on AIX.  
[Filesystem monitoring monitoring & observability | Dynatrace Hub](https://www.dynatrace.com/hub/detail/filesystem-monitoring-extension-v2/?query=folder&filter=all)

Alternate solution can be you run a shell script → log the output to a file → monitor that log file using Dynatrace.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 9, 2025, 8:00am UTC](https://community.dynatrace.com/t/execute-commands-on-aix-server/51128/3 "2025-04-09T08:00:04Z")

</div>

Hi,

You can use&nbsp;[@RohitBisht](https://community.dynatrace.com/user/45903)&nbsp;ways and [Metric scripting integration](https://docs.dynatrace.com/docs/shortlink/pipe-metric-ingestion)&nbsp;.

Best regards
