----- Mail original -----
> De: "Peng Yu" <[email protected]>
> À: "ubuntu-server" <[email protected]>
> Envoyé: Vendredi 15 Mai 2015 16:27:45
> Objet: How to monitor who have logged in a number of ubuntu servers?

Hello,

> I want to check who have logged in a number of ubuntu servers. I could
> do `last` on each server. But this is tedious. Is there any easy way
> to do so? Thanks.

Hello,

You may look at fabric: http://www.fabfile.org/
This a great software for running a bunch of commands on a lot of servers.

In order to running a command on a bunch of servers this will look like the 
following:
fab -R role cmd

cmd is defined in the fabfile.py:
def cmd():
    run('cat /etc/hosts')


Regards,
-- 
Soliman Hindy

-- 
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Reply via email to