graphene-os-server-infrastr.../connection-stats
2023-07-16 01:25:27 -04:00

20 lines
221 B
Bash
Executable File

#!/bin/bash
set -o errexit -o nounset -o pipefail
[[ $# -eq 1 ]] || exit 1
user=root
. hosts.sh
declare -n hosts=hosts_$1
for host in ${hosts[@]}; do
echo $host
echo
ssh $user@$host ss -s
echo
done