You can use the below bash script to list all IP Addresses in Virtuozzo or OpenVZ node.
for CT in $(vzlist -o ctid); do echo "== CT $CT =="; vzctl exec $CT ifconfig | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' | grep -v ^127; done
Feel free to modify.