Automation

 View Only
  • 1.  Rolling vSAN reboot, connect to multiple vCenters

    Posted Jun 21, 2020 04:29 AM

    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.



  • 2.  RE: Rolling vSAN reboot, connect to multiple vCenters

    Posted Jun 21, 2020 07:43 AM

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



  • 3.  RE: Rolling vSAN reboot, connect to multiple vCenters

    Posted Jun 22, 2020 02:14 AM

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



  • 4.  RE: Rolling vSAN reboot, connect to multiple vCenters

    Posted Jun 22, 2020 06:52 AM

    Yes, on the Connect-VIServer line

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