Commit 2f779e48 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update vz scripts

parent 07a37199
#!/bin/sh
for i in priv host02 host03 azbyka clients devel ; do
echo -e "Check $i..."
ssh $i "df | grep '/var/lib/vz$'"
ssh $i "vzlist -a | sed -e 's|[[:space:]]*\([0-9]*\)[[:space:]]*.*|\1|g' | xargs -n1 -i{} vzctl exec {} epm clean"
done
......@@ -3,7 +3,7 @@ for id in $(vzlist | sed -e "s| *\([0-9]*\).*|\1|g") ; do
CONF=/etc/vz/conf/$id.conf
test -r $CONF || continue
eval `cat $CONF | grep ^HOSTNAME | sed -e "s|office.etersoft.ru||g"`
printf "%s (%20s):" $id $HOSTNAME
printf "%4s (%20s):" $id $HOSTNAME
vzctl exec $id uptime
done
echo "---"
......
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