how to chec HA status, master node etc from command line of esxi 5 host?
PowerCLI would be more easy to retrieve such information like
Get-Cluster | Get-HAPrimaryVMHost