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