first commit
This commit is contained in:
18
scripts/test_scripts/uptime_hv.sh
Normal file
18
scripts/test_scripts/uptime_hv.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
HOSTS=(
|
||||
|
||||
)
|
||||
|
||||
uptime_ost ()
|
||||
{
|
||||
for host in "${HOSTS[@]}" ;
|
||||
do
|
||||
ssh -o ConnectTimeout=3 -o ConnectionAttempts=1 -n root@$host "uptime" >> uptime_$host.log
|
||||
done
|
||||
}
|
||||
|
||||
while true ;do
|
||||
uptime_ost;
|
||||
sleep 5
|
||||
done > /dev/null 2>&1
|
Reference in New Issue
Block a user