Compare Cluster Datastores with Powershell

I showed you before how to compare the datastores for two ESX Servers using the VI Toolkit. But ideally, one would like to compare all ESX servers in a cluster to ensure VMotion and HA compatibility.
So I started scripting and it turns out to be pretty simple: only 4 lines of code in Powershell! It does the comparison for all your clusters and returns clean little tables with datastores you should investigate.

SCRIPT CODE:

ForEach ($Cluster in (Get-Cluster | Sort Name))
{
$VMHosts = Get-Cluster $Cluster.Name | Get-VMHost
$Datastores = $VMHosts | Get-Datastore
$VMHosts | ForEach {Compare-Object $Datastores ($_ | Get-Datastore)} | ForEach {$_.InputObject} | Sort Name | Select @{N=$Cluster.Name;E={$_.Name}} -Unique | Format-Table
}

SAMPLE OUTPUT:

TEST CLUSTER 1
——————
DATASTORE1
LOCAL01
LOCAL02
LOCAL03

TEST CLUSTER 2
——————
DATASTORE2
DATASTORE3
LOCAL06
LOCAL07
LOCAL08
LOCAL09

Coming very soon: a full-blown script that compares datastores, LUNs and portgroups across your clusters ├índ identifies exactly where the differences are! Stay tuned…

That’s what happens when the punishment for a public fuck up is prison camp. The two hole deficit stood until the 12th, won by a European Cheap Oakleys par. 34.5 percent in 1988 1996). Caught three passes Monday for just 23 Cheap Replica ray bans outlet yards, and on Tuesday, he admitted that he wasn having fun playing football anymore.. Recoiling is just as important as the kick. Therefore players may run toward the sidelines and jump off the court and touch a ball while in the air in an attempt to “save” or throw the ball back into the court before it is determined out of bounds. Ansah ran the 100 meters in 10.91 seconds and the 200m in 21.89 secs, according to the official website of the Lions.When you couple that athletic speed with an imposing six feet five inches frame Ansah weighs 275 pounds it is not hard to see why he appealed to the school’s football team.Despite his lack of playing experience, Lions general manager Martin Mayhew suggested he can be an immediate asset for the team.”I do see him as an impactful player right away,” said Mayhew. What can I say? You don’t have much of a choice, and Foles is the best option outside of the Big 2 this year. Hopefully I never have to come up against anyone that big. http://www.footballjerseysuppliers.com The house wives favourite sprung the biggest surprise since he was voted 1999 PFA Player of the Year when he announced that he would be vying Sepp Blatter for the Fifa presidency. They should include articles that cover at least the following areas; Organization; Purpose; Membership; and Officers. Make sure that they meet at least minimal standards of fair treatment and fair labor practices, even if this may be way above the norm in that particular country, therefore we can exercise some beneficial cultural influence.. We cheap oakleys outlet marveled at the way he played the game and respected the contributions he made to his community. Furthermore, I believed that if anyone were to even attempt to come close that it would have to be done in Denver due to the thin air. Meaning Andrew Luck.34. Imagine you take some glass and hold a flame over it until some of it drips into cheap nfl jerseys a beaker of water. Some states have laws restricting possession of flamethrowers, with violations only considered to be misdemeanors, but 40 states have absolutely no laws whatsoever concerning flamethrowers. Principles are universal truths that have been broadly accepted in nearly every culture and every age.Some years ago the Denver Broncos hired a coach by the name of Josh McDaniels. (References 1). A simple workout to improve the skill begins with the punter standing cheap ray bans along one Replica ray bans of the yard lines.

2 thoughts on “Compare Cluster Datastores with Powershell”

  1. Pingback: Compare Cluster Datastores with Powershell « H9Newser’s Blog

Leave a Reply