I'm new with vMA and scripting can someone share a script how to connect all my ESX hosts, I prefer to connect per cluster of hosts. After I upgraded my to vCenter4.1 all my hosts has been disconnected.
Thanks I appreciate the help or direction.
Take a look at the vMA documentation for the various CLI tools available - http://www.vmware.com/support/developer/vima/
One of the utilities that you can use to reconnect is part of the vSphere SDK for Perl Utilities - http://www.vmware.com/support/developer/viperltoolkit/viperl41/doc/vsperl_util_index.html called hostops.pl which you can use to perform various operations against an ESX or ESXi host. You can easily write a quick for loop to go through a list of ESX(i) host to reconnect if they're still disconnected from your vCenter server. In general, once the host is back online, it normally will try to reconnect, but if it fails after n-times, it may not try again.
VMware vExpert 2009,2010
If you find this information useful, please award points for "correct" or "helpful".