#!/bin/sh

echo "-- `hostname` validated on `date` --"
echo
hostnamectl
echo
echo "-- testing clusterhat `date` --"
echo
sudo clusterctrl hub off
sleep 5
sudo clusterctrl status
echo
sudo lsusb -t
echo
sudo clusterctrl hub on
sleep 5
sudo clusterctrl status
echo
sudo lsusb -t
echo
sudo clusterctrl status
echo
echo "-- network display & testing --"
echo
sleep 60
ifconfig -a
route
ping -c 2 192.168.1.120
ping -c 2 192.168.1.121
ping -c 2 192.168.1.122
ping -c 2 192.168.1.123
ping -c 2 192.168.1.124
ping -c 2 192.168.1.125
arp -a | sort -k2
echo
echo "-- listing serial ports --"
echo
ls -al /dev/ttypi*
