Contributor
Contributor

Connect host after upgrade

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.

0 Kudos
3 Replies
Virtuoso
Virtuoso

its not an expected behaiviour in VC upgrade. From which version of VC the binray is upgraded? Was there any error during vCenter upgrade?

VCP3, VCP4, RHCE, EMCPA

0 Kudos
Community Manager
Community Manager

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.

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

William Lam

VMware vExpert 2009,2010

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

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

VMware Developer Community

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

Contributor
Contributor

I've upgraded from vCenter4.0 to 4.1. My server was not 64 bit hardware. I re-install on a new 64bit hardware using existing db. All hosts shows disconnected. My Hosts are ESX4.0

0 Kudos