VMware {code} Community
dillu
Contributor
Contributor
Jump to solution

how to check the status of the server added in vMA

Hi,

I have added 3 servers in vMA. vifp listservers list all the servers added to vMA. I have powered off one of the servers that was added to vMA. But still the vifp listservers shows all the server including the one which is powered off. Is there any way to find the status of the server added to vMA??

Thanks...

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

When you add add a target to vMA for management, all it does is adds two local accounts (vi-user and vi-admin) and keeps an internal list of the targets which can be displayed by using listservers option. There is no concept of status since it will just fail a command when you try to execute a command to a host that is not available, you might want to run a very generic script as you loop through all targets and based on this you take into account of any targets that are not online.

A good one would be /usr/lib/vmware-vcli/apps/general/viversion.pl

You would also do a simple ping test prior to executing your commands, so it really depends on what you want to check for, but there is nothing special with the vifp that provides a current status of your targets.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
1 Reply
lamw
Community Manager
Community Manager
Jump to solution

When you add add a target to vMA for management, all it does is adds two local accounts (vi-user and vi-admin) and keeps an internal list of the targets which can be displayed by using listservers option. There is no concept of status since it will just fail a command when you try to execute a command to a host that is not available, you might want to run a very generic script as you loop through all targets and based on this you take into account of any targets that are not online.

A good one would be /usr/lib/vmware-vcli/apps/general/viversion.pl

You would also do a simple ping test prior to executing your commands, so it really depends on what you want to check for, but there is nothing special with the vifp that provides a current status of your targets.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos