VMware Communities > VMTN > VMware vCenter™ > VMware vCenter™ Server > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
3 Replies Last post: Jul 1, 2009 8:25 AM by AndreTheGiant
Reply

Disconnect and remove ESX host from Vcenter CLI?

Jun 30, 2009 6:31 AM

Click to view markdjones82's profile Enthusiast markdjones82 36 posts since
Nov 19, 2006

Hi all,

We are having major issues with our old Vcenter and it's database. We are trying to move everything to a new virtual center. We have a few hosts where we are able to disconnect, but then when we try to remove nothing happens. Is there a way to remove from the command line?

Reply Re: Disconnect and remove ESX host from Vcenter CLI? Jul 1, 2009 12:31 AM
Click to view AndreTheGiant's profile Guru AndreTheGiant 5,643 posts since
Aug 28, 2008
You can use PowerShell scripts like this:
http://blogs.vmware.com/vipowershell/2008/05/adding-and-re-a.html

Andre
Reply Re: Disconnect and remove ESX host from Vcenter CLI? Jul 1, 2009 6:05 AM
in response to: AndreTheGiant
Click to view markdjones82's profile Enthusiast markdjones82 36 posts since
Nov 19, 2006

Andre thanks for the response.

Those scripts appear to only add hosts, but I would guess we could come up with a script to remove from inventory for disconnected hosts as well. Luckily, eventually the hosts were removed from inventory after I was able to remove the entire data center.

Reply Re: Disconnect and remove ESX host from Vcenter CLI? Jul 1, 2009 8:25 AM
in response to: markdjones82
Click to view AndreTheGiant's profile Guru AndreTheGiant 5,643 posts since
Aug 28, 2008
These was only the first example that I find ;)
I do not all SDK API, but probably there is a function to disconnect an existing host.

Andre
Actions