Admin-Ahead Community
Linux => Virtualization => Topic started by: sajugovind on August 30, 2014, 02:33:41 pm
-
You can use the below script to list all IP’s in a Virtuzzo 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
Cheeerrss!!!!!!!!11