Is there any way to determine when a host joined either vCenter or a cluster? We have automation that replaces a host with an error and I'd like be able to find when each host has joined.I've looked in the vmhost object and the cluster object and can't find anything.I appreciate any help.advTHANKSance!
You can look at the events with Get-VIEvent.There are the HostAddedEvent (when a host joins a vCenter) and the HostSpecificationChangedEvent, looking at the ComputeResource property you should see if a host joined a cluster.A handy way to find out if other event types would provide information is to actually join a host to a vCenter and/or cluster and then retrieve all events from that timeframe.You should be able to see which type of events are generated.
That only works if it hasn't rolled off...is that correct?That is a good way to mark future ones.
Correct, it depends on how long you have set the event retention on how far you can go back in time.