{"id":1182,"date":"2013-02-13T10:00:32","date_gmt":"2013-02-13T15:00:32","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=1182"},"modified":"2013-02-10T11:30:02","modified_gmt":"2013-02-10T16:30:02","slug":"quick-vsphere-cluster-bios-check","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/quick-vsphere-cluster-bios-check\/","title":{"rendered":"Quick vSphere Cluster BIOS check"},"content":{"rendered":"<p>The following check will compare the BIOS versions of the ESX hosts in a cluster and verify they are all at a consistent level.<\/p>\n<p>The check makes use of a $Clusters variable, which can be created using the following line of code:<\/p>\n<pre>\r\n$clusters = Get-Cluster\r\n<\/pre>\n<p>This check will look for inconsistent BIOS versions between hosts in a vSphere cluster.  <\/p>\n<pre><code class=\"language-powershell\">\r\n$misMatchBios = @()\r\n$Clusters | select Name, ID | %{\r\n\t$thisClusterName = $_.Name\r\n\t$thisClusterBIOS = Get-View -ViewType HostSystem -SearchRoot $_.id -Property Name, \"Hardware.BiosInfo\" | Select Name,@{N=\"Cluster Name\";E={$thisClusterName}},@{N=\"BIOS version\";E={$_.Hardware.BiosInfo.BiosVersion}}, @{N=\"BIOS date\";E={$_.Hardware.BiosInfo.releaseDate}}\r\n\t$thisClusterBiosGroup = $thisClusterBIOS | Group-Object -Property \"BIOS Version\"\r\n\r\n\tif ( ($thisClusterBiosGroup | Measure-Object).Count -gt 1 ) { $misMatchBios += ( $thisClusterBIOS | Sort Name )\t}\r\n}\r\n$misMatchBios\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following check will compare the BIOS versions of the ESX hosts in a cluster and verify they are all at a consistent level. The check makes use of a $Clusters variable, which can be created using the following line &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/quick-vsphere-cluster-bios-check\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-1182","post","type-post","status-publish","format-standard","hentry","category-scripting","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=1182"}],"version-history":[{"count":3,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1182\/revisions"}],"predecessor-version":[{"id":1185,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1182\/revisions\/1185"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=1182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=1182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=1182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}