Thursday, August 25, 2022

Ansible ad hoc commands to find the high consuming processes

Find the high CPU consuming processes using ansible

 ansible compute/storage  -m shell -a "top -c -b | head -15"

 ansible compute/storage -m shell -a "ps -eo pid,ppid,%mem,%cpu,cmd --sort=-%mem | head"

 

No comments:

Post a Comment