List or report of uptime?

Hi all,

If I want to have a update list or monitor of the uptime of over 100 Linux device,
how can I archive it?

I have the login and password of these 1xx devices. (which actually are the same)

原帖由 volospin 於 2009-9-8 16:30 發表
Hi all,

If I want to have a update list or monitor of the uptime of over 100 Linux device,
how can I archive it?

I have the login and password of these 1xx devices. (which actually are the same) ...

If you have enabled the token login through ssh, you can use a simple script to archive this:

#!/bin/bash

for i in `cat serverlist.txt`; do
   ssh $i echo -e `hostname` "- Uptime: " `uptime`;
done

The content of the "serverlist.txt" is:
localhost
server01
domain09
mail02
...

TOP