VMware Cloud Community
wreedMH
Hot Shot
Hot Shot

Rolling vSAN reboot, connect to multiple vCenters

Hey guys,

I use the attached script alot to maintain my environment of 500+ vSAN 6.7 hosts. I was wondering if it was possible to change it to connect to all linked vCenters so I can specify hosts in different vCenters in one text file? All the hosts are in 8 linked vCenters.

0 Kudos
3 Replies
LucD
Leadership
Leadership

Did you already try using the AllLinked switch to the Connect-VIServer cmdlet?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
wreedMH
Hot Shot
Hot Shot

No I have not, should I add that to the text inside the .PS1 file?

0 Kudos
LucD
Leadership
Leadership

Yes, on the Connect-VIServer line

Connect-VIServer -Server $vCenterServer -AllLinked | Out-Null


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos