Commit 5073602c authored by Vitaly Lipatov's avatar Vitaly Lipatov

add vz_dsa_chck.sh

parent 6debf12e
#!/bin/bash
while read s
do
echo $s
curhost=$(echo $s | cut -d' ' -f1)
curvz=$(echo $s|cut -d' ' -f3)
curname=$(ssh $curhost vzctl exec $curvz hostname < /dev/null)
echo $curname
ssh $curname -p22 -i /root/.ssh/id_dsa echo ACCESSED \$\(hostname\) < /dev/null
echo "it was $curhost-$curvz"
echo
echo
done < Sisyphuslist
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment