Product:
Search Type:

How do I perform some action for all VEes on the hardware node?

Article ID: 698 
Last Review: Mar,30 2006
APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

RESOLUTION


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`;
do
vzctl exec $vps ps ax;
done



This command will execute ps ax inside each VE on the node.
Keywords: vps,action,vzlist

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields