graphene-os-server-infrastr.../connection-stats

20 lines
221 B
Plaintext
Raw Normal View History

2023-07-08 01:03:22 -04:00
#!/bin/bash
set -o errexit -o nounset -o pipefail
2023-07-16 01:25:16 -04:00
[[ $# -eq 1 ]] || exit 1
2023-07-08 01:03:22 -04:00
user=root
. hosts.sh
declare -n hosts=hosts_$1
for host in ${hosts[@]}; do
echo $host
echo
ssh $user@$host ss -s
echo
done