I need to test program in multiple remote servers, and at the same time need to gather the CPU utilizations information during the process.

Here use one server ( as the master server

Multiple servers: ( ( ( (

Use pssh to control all parallel processes

So how to gather the CPU utilization info during the process?


If you just want to eyeball the loads while the installation is going on you could

ssh uptime

for each host

Put it in a loop like this:

while :
  for hname in "" "" "" ""
    echo $hname
    ssh $hname uptime
sleep 5

Tools such as Sysstat may be configured to collect system metrics.

If you're looking for some web-based solution, you have Munin or Collectd, maybe even http://graphite.readthedocs.io/en/latest/tools.html. We could also mention anything SNMP-based.

Let's not forget about Netdata: even though that one won't keep persistent histories, it can be pretty helpful keeping an eye on instantaneous resources usage.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.