Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Re: Is there any powercli command or script available from which i can pull vcenter version and esxi host belogs to which vcenter server?

$
0
0

Sure, the URL looks something like this "http://server/whatever"

 

By splitting on the '/' character, you will get an array of values:

1 - "http"

2 - empty string (there is nothing between the 2 slashes

3 - "server"

4 - ...

 

We want the servername, and since a PowerShell arrays start indexing from 0, we need to use the index 2 to get it.


Viewing all articles
Browse latest Browse all 230663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>