aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ping_hosts.sh
blob: fdb692958db95db629e1445b9b5b8036c7194c25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#! /usr/bin/env sh

user="${1-$USER}"
hosts="${2-server2 server3}"

for host in $hosts; do
    echo "Checking status of '$user@$host.vhack.eu' ..."

    ssh "$user@$host.vhack.eu" "systemctl --failed"
done

# vim: ft=sh