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
Did you ever figure out if this was possible, this would be something I think would be useful in automating some ESX builds.
It is possible, using the VISDK. Check the AddHost_Task() call.
--Matt
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.