VMware Cloud Community
jitendrakmr
Hot Shot
Hot Shot

Can I view ESX HA/DRS Settings from SC commandline?

Hello Everyone,

Need help.. I am writing a script in perl to collect all ESX host configuration for documentation purpose.. . so is there any way we can see the HA/DRS settings from ESX host command line (without using Virtual Center Server) .. I want to look for following details -

1. Name of Virtual Center Server to which that ESX host is added

2. If HA/DRS is enabled on cluster to which that ESX host is added. If so then cluster details?

Can we get any details using ESX host's command line?

Thanks in advance!

Jitendra

VCP, MCSE 2003, MCITP Enterprise Admin, CCNA, ITIL Foundation, Netapp NS0-153 (Storage Networking)

Personal Website -

VCP, MCSE 2003, MCITP Enterprise Admin, CCNA, ITIL Foundation, Netapp NS0-153 (Storage Networking) Personal Website - http://www.virtualizationtrainings.com, http://www.hillsindia.com
Reply
0 Kudos
4 Replies
lamw
Community Manager
Community Manager

Cluster related information is only avaiable via vCenter, you will not be able to retrieve this information using the ESX Service Console, here is a VMware Health Check report I wrote that uses the VI API to collect information about both your vCenter and host(s).

VI 3.5 - http://communities.vmware.com/docs/DOC-9420

vSphere 4.0 - http://communities.vmware.com/docs/DOC-9842

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

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

Reply
0 Kudos
jitendrakmr
Hot Shot
Hot Shot

As HA agents runs in service console then I think it should have information somewhere in ESX host itself which tells it to communicate with specific VC server. Or is it VC server which has ESX host IP in database polls all ESX hosts in its database at regular intervals? But in that case if vmware agent goes down on any ESX host then there should not be any error from ESX host end as it never tries to open connection to VC servers (its VC which polls all ESX hosts in its database.. correct?)

Thanks.

Jitendra

VCP, MCSE 2003, MCITP Enterprise Admin, CCNA, ITIL Foundation, Netapp NS0-153 (Storage Networking)

Personal Website -

VCP, MCSE 2003, MCITP Enterprise Admin, CCNA, ITIL Foundation, Netapp NS0-153 (Storage Networking) Personal Website - http://www.virtualizationtrainings.com, http://www.hillsindia.com
Reply
0 Kudos
lamw
Community Manager
Community Manager

There are some pieces of information on the SC regarding HA but not DRS, if you want to get further details such as configurations/cluster info/etc, you'll want to query vCenter.

For ESX 3.5 the HA directory is located at: /opt/vmware/aam/

You can also find logs regarding the nodes that is part of HA and the primary nodes under: /var/log/vmware/aam

Some interesting logs would be: aam_config_util_listnodes.log, aam_config_util_listprimaries.log, backup.def, etc.

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

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

Texiwill
Leadership
Leadership

Hello,

/etc/opt/vmware/aam/ will be the location of the configuration files for the particular ESX host. You will have to parse through quite a bit of information, but mainly you may not know the other nodes within the cluster from these files. FT_HOSTS should contain that information.


Best regards, Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009, DABCC Analyst[/url]
Now Available on Rough-Cuts: 'VMware vSphere(TM) and Virtual Infrastructure Security: Securing ESX and the Virtual Environment'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|Virtualization Security Round Table Podcast[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill