Script to List All IP Addresses in Virtuozzo/OpenVZ

Script to list all IP addresses in Virtuozzo
This article will help you to list all IP addresses in Virtuozzo or OpenVZ node using the script.

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.

Share this post

Services to Explore

Stay up to date!

Stay up to date with the Web Hosting, Cloud and Server Management Industry News and Tutorials!

We will send you only the relevant emails, and we respect your privacy. Please review our privacy policy for more info.

OpenVZ / Virtuozzo Management Services

Focus on your business, and let us take care of your OpenVZ / Virtuozzo!
From what you are reading, it seems you are interested in OpenVZ / Virtuozzo and related technologies. If you have a moment to spare, please take a look at our Virtuozzo Management plan, which might interest you even more!
Virtuozzo Management Plan

Value-Added Services

We have services that can help you run a successful business. With us, you don't have to worry about these areas because our experts will take care of it for you.

ServerHealers uses cookies.