VMware Cloud Community
MariusRoma
Expert
Expert

Checking VM health

I am working with PowerCLI script to manipulate VMs.

I find many useful commands.

I have a trouble, anyway: imagine you shotdown a Windows client, make some changes (i.e. increase disk size) and reboot the VM: how can you see that the VM is healty?

What can you test?

Regards

marius

0 Kudos
1 Reply
schepp
Leadership
Leadership

Hi Marius,

what do you mean by healthy? Like if the os booted back up and is running fine?

The easiest way is to check wether the VMware Tools are running.

When they run, the Guest OS has at least booted up until the point where it starts the VMtools daemon/service Smiley Wink

Either use the cmdlet "Wait-Tools" or build a loop that checks if (Get-VM name).Guest.State equals "Running".

Besides that you could check by invoking commands inside the guest and check if spoecific windows services are running.

Tim

0 Kudos