Article ID: 698, created on Oct 6, 2008, last review on Apr 16, 2012

  • Applies to:
  • Virtuozzo containers for Linux


You can use vzlist utility to list all VEes on the hardware node:

vzlist -o veid -H

This will show a list of running VEes. To get a list of all VEes add -a option.

So you can write a loop like this:

# for vps in `vzlist -o veid -H`;
vzctl exec $vps ps ax;

This command will execute ps ax inside each VE on the node.

e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF