I did. It would only work if connected to one vcenter, NOT using all linked, at a time. Then I didn't get duplicates.
Still odd that some clusters would give dups & others wouldn't. If it was all or none, that would be logical. Some ... isn't. Oh well, problem solved.
Original Message:
Sent: Oct 25, 2024 11:56 AM
From: LucD
Subject: Odd get-view results
You can experiment with the AllLinked switch on the Connect-VIServer cmdlet.
That works in connection with the DefaultVIServerModesetting on the Set-PowerCLIConfiguration cmdlet.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Oct 25, 2024 10:48 AM
From: StuDuncanHPE
Subject: Odd get-view results
So, a little more testing. And note that the first 2 vcenters are linked, and the second 2 vcenters are linked (ie 01,02 at each physical site are linked)
With just one vcenter connected, no duplication.
With 01 & 02 connected, duplication.
With 01 & 01 connected but with -alllinked, duplication.
With 01 & 01 connected but NOT -alllinked, duplication.
I guess I have to loop through each vcenter separately, a bit annoying. Thanks for pointing me in the right direction.
Original Message:
Sent: Oct 25, 2024 10:31 AM
From: StuDuncanHPE
Subject: Odd get-view results
Yes, I was connected to four vcenters. Getting clusters across all of them. But all clusters have unique names as they're named per physical location and redundancy zone.
And it was only about 1/3 of the clusters that had this duplication. And it was unevenly distributed.
Like DataWarehouseCluster-01 had duplication, but DataWarehouseCluster-02 and -03 did not.
It was consistent across runs (ie restarting IDE so clear out all vc connections).
I'll try in just one vc, see if I still see it then.
Original Message:
Sent: Oct 25, 2024 05:15 AM
From: LucD
Subject: Odd get-view results
Did you check if you have more than 1 vCenter connection open?
Check what is in $global:defaultVIServers
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Oct 24, 2024 11:42 AM
From: StuDuncanHPE
Subject: Odd get-view results
So, I'm working up a report script to output the DRS/HA settings of every cluster. Mechanical to walk through each setting, but straightforward. And it works fine.
Except that for a few clusters, I get two sets of settings. Which I'm having trouble wrapping my head around what that means. Nothing unusual in the GUI. And they seem to be duplicates ie they look like they're exactly the same. I can index them and address them individually. I can sort -unique and get one response instead of two.
Just seems weird to me. I don't know if it's meaningful or not. What I see:



Anyone have any ideas?