about summary refs log tree commit diff stats
path: root/scripts/ping_hosts.sh
blob: fba2490f17b68ecb2150b9915c5945b6faf6f9f8 (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" "set -x; systemctl --failed"
done

# vim: ft=sh