# windows CPU Memory Swap-Memory utilization report in txt format

**URL:** <https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 16, 2020, 9:29am UTC](https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194 "2020-06-16T09:29:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avinash\_Jadhav](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Avinash\_Jadhav](https://forum.ansible.com/u/Avinash_Jadhav)\
**Post date:** [June 16, 2020, 9:29am UTC](https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194/1 "2020-06-16T09:29:51Z")

</div>

Hello Ansible Team

I am trying to develped below task

CPU/Memory related alerts need manual intervention to review the system health against the resources consuming the CPU/MEMORY. Every time engineer needs to login to the system and performs the troubleshooting leading more effort consumption **Objective - To develop the mechanism that enables centralized management of CPU/Memory utilization issues**  **Expected Outcome - Mechanism may provide functionality :** • Find Total MEM/CPU Utilization • List Top 20 CPU/MEM Utilization in process • List Virtual memory Statistics • List of Virtual CPU Statistics

Team any one have idea please help me on that how i do this using ansible for widows

Thank you Team  
Avinash

---

<div class="post-metadata">

**Author:** ![Igor\_Turovsky](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@Igor\_Turovsky](https://forum.ansible.com/u/Igor_Turovsky)\
**Post date:** [June 16, 2020, 10:10am UTC](https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194/2 "2020-06-16T10:10:01Z")

</div>

Well, while you can use Ansible to run smth like Get-Process with Ansible’s win\_shell or tasklist with win\_command and then parse and analyze responses, this is not smth Ansible should be used for (IMHO) as this is task for monitoring system like Zabbix/SCOM. Keep in mind that Ansible requires some CPU/Memory to run its tasks on the managed node, so if you windows machine is under heavy load, you will have to wait for Ansible’s taks completion for a long time.  
You may want to take a look into Telegraf → InfluxDB/Graphite/Prometheus-\>Grafana stack.  
In this case your metrics (CPU/Memory) are shipped by a Telegraf agent running on Windows to TSDB of your choice and exposed as graphs, tables, etc in Grafana.  
All these components can be installed and configured with Ansible.

вт, 16 июн. 2020 г. в 12:30, Avinash Jadhav \<[avinashrjadhav8@gmail.com](mailto:avinashrjadhav8@gmail.com)\>:

---

<div class="post-metadata">

**Author:** ![Avinash\_Jadhav](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Avinash\_Jadhav](https://forum.ansible.com/u/Avinash_Jadhav)\
**Post date:** [June 16, 2020, 10:32am UTC](https://forum.ansible.com/t/windows-cpu-memory-swap-memory-utilization-report-in-txt-format/33194/3 "2020-06-16T10:32:14Z")

</div>

Hi Thank you for great information on that

ill try using win\_shell and win\_command
