Commit b5c927ff authored by Vitaly Lipatov's avatar Vitaly Lipatov

add vnstat_vz.sh

parent 2f4fc594
#!/bin/sh
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
vzctl exec $id vnstat -tr -i venet0
done
echo "---"
uptime
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