24
edits
Changes
no edit summary
#!/bin/bash
# vzexec -- execute a command on all VEs
if [ "$1" == "" ]; then
echo "$0 -- Execute a command on all VEs"
exit
fi
for veconf veid in $CONFDIR/*.conf ; do veid=`basename $veconf .confvzlist -Hoveid` if [ "$veid" == "0" ]; then continue; fi vename=`grep ^NAME $veconf | head -1 | sed -e 's@NAME=@@' | sed -e 's@"@@g'`do echo "*** VE $veid ($vename)"
vzctl exec $veid $@
done
</code>