first commit
This commit is contained in:
16
scripts/uptime_loop.sh
Normal file
16
scripts/uptime_loop.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILE=$1
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
echo "Syntax: ./$(basename $0) <file name>"
|
||||
exit
|
||||
fi
|
||||
|
||||
for host in $(cat ${FILE})
|
||||
do
|
||||
|
||||
ssh -n root@$host "hostname && uptime && virsh -r list"
|
||||
|
||||
done
|
Reference in New Issue
Block a user