VMware Cloud Community
dwchan
Enthusiast
Enthusiast

auto join an esx host to a pre-define cluster

Is there a way to script an esx host to join a pre-define cluster? As it right now, we have script setup to do almost everything (accept for one or two minor manual cron job) but attach it to a cluster within our VC. I was wondering can this be done using vimsh?

dwc

Reply
0 Kudos
3 Replies
lamw
Community Manager
Community Manager

Did you ever figure out if this was possible, this would be something I think would be useful in automating some ESX builds.

Reply
0 Kudos
mcowger
Immortal
Immortal

It is possible, using the VISDK. Check the AddHost_Task() call.

--Matt

--Matt VCDX #52 blog.cowger.us
Reply
0 Kudos
lamw
Community Manager
Community Manager

I haven't looked into using the perl SDK, I was hoping within the vimsh there might be a way of passing some parameters, I've just started to play with vimsh more and more lately and there's so much information that you can pull out of it and I've only begun to scratch the surface. Thanks for the info, I'm trying to find some simple examples with the perl sdk, and hopefully I can tweak it to do something like automating an ESX host to connect to certain cluster in VC.

Reply
0 Kudos