OpenVZ Forum


Home » General » Support » Fastest/most efficient method to get list of PIDs for VE
Re: Fastest/most efficient method to get list of PIDs for VE [message #6829 is a reply to message #6824] Sun, 24 September 2006 19:05 Go to previous message
dlzinc
Messages: 34
Registered: March 2006
Member
List all processes and which VE they live in
ps -A | awk '{print $1}' | xargs vzpid


Or... list all processes in a VE (assuming they have a good, working "ps")
vzctl exec VEID ps -A


Or... (there's probably a better way?)
ps -A | awk '{print $1}' | xargs vzpid | egrep "[[:space:]]VEID[[:space:]]"
 
Read Message
Read Message
Previous Topic: FC5 needs rpm install
Next Topic: *SOLVED* VE networking not working properly- details included.
Goto Forum:
  


Current Time: Tue Oct 01 08:39:08 GMT 2024

Total time taken to generate the page: 0.02449 seconds