VMware Cloud Community
kaychan
Contributor
Contributor

How do I find the PID number of a VM

Hi,

How do I find the PID number of the VM under the ESX host?? What are the commands that I can use under putty??

Thanks.

0 Kudos
4 Replies
Gerrit_Lehr
Commander
Commander

Under Putty you shoul be able to determine a VMs PID with this command:

ps auxfww | grep &lt;vmname&gt;</span>

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
0 Kudos
kastlr
Expert
Expert

Hi,

simply use vm-support -x

Upps, disregard. This doesn't provide the infos you're looking for.


Hope this helps a bit.
Greetings from Germany. (CEST)
0 Kudos
Cameron2007
Hot Shot
Hot Shot

I usually use the method supplied by Gerritt but think you can also use:

vmware-cmd /home/vmware/VMNAME/VMNAME.vmx getpid

grep VMNAME /proc/vmware/vm//

0 Kudos
espi3030
Expert
Expert

Try this

ps -ef | grep VM-Name

Hope this helps.

0 Kudos