first commit
This commit is contained in:
19
scripts/host_ssh_test.sh
Normal file
19
scripts/host_ssh_test.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILE=$1
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
echo "Syntax: ./`basename $0` <file name>"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
for host in $(cat ${FILE})
|
||||
do
|
||||
|
||||
#ssh -n admroy@$host "rm -rf /tmp/atlas/ && sh /root/atlas.sh init && /tmp/atlas/atlas.sh build && /tmp/atlas/atlas.sh purge && /tmp/atlas/atlas.sh install && hostname"
|
||||
#ssh -n root@$host "ps -ef |grep vmtoolsd && hostname "
|
||||
#ssh -n root@$host "hostname"
|
||||
|
||||
done
|
Reference in New Issue
Block a user