arielsanchezmora / vDocumentation

vDocumentation provides a community-created set of PowerCLI scripts that produce infrastructure documentation of vSphere environments in CSV or Excel file format.
MIT License
157 stars 49 forks source link

Multiple vCenters #34

Closed stoneisman closed 5 years ago

stoneisman commented 6 years ago

I would like a way to have all connected vcenters information pulled for each command. Looks like only the last one connected is polled for it's information when you execute a command. I don't see a way to iterate through all connected vcenters or specify multiple datacenters.

arielsanchezmora commented 6 years ago

Hi! Yup, sounds useful. I think we had a way. @edmsanchez do you remember?

edmsanchez commented 6 years ago

you can connect to multiple vcenters and run the scripts, run Get-PowerCLIConfiguration and check DefaultVIServer is set to Multiple. thats all you need to run against multiple vCenter.. I have not validated all scripts to run against multiple vCenter, so should you encounter issues please let us know.

arielsanchezmora commented 5 years ago

I've confirmed this works for me and others, please let us know if you couldn't find the DefaultVIServer variable in PowerCLI and we'll help (maybe in the #vdocumentation channel in the public VMware Code Slack?) but I'll close this one.