List containers sorted by CPU usage:
# vzlist -o ctid,name,laverage
List containers sorted by TCP sender buffer usage:
# vzlist -H -o ctid,name,tcpsndbuf | sort -r -n -k3
List containers sorted by TCP receive buffer usage:
# vzlist -H -o ctid,name,tcprcvbuf | sort -r -n -k3
List containers sorted by overall resources consumption:
for i in `vzlist -H -o veid`;do echo $i; vzcalc $i; echo "========"; done;
Add a new network interface to a container:
# vzctl set <id> --netif_add eth0 --save