{"id":972,"date":"2012-04-23T09:00:14","date_gmt":"2012-04-23T13:00:14","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=972"},"modified":"2012-04-22T14:05:47","modified_gmt":"2012-04-22T18:05:47","slug":"verify-vaai-settings-with-powercli","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/verify-vaai-settings-with-powercli\/","title":{"rendered":"Verify VAAI settings with PowerCLI"},"content":{"rendered":"<p>I recently had a need to validate that all hosts in a specific vCenter had appropriate vStorage API for Array Integration (VAAI) settings.  I didn&#8217;t want to change the values, I was just looking for the existing values.  This short code will do just that:<\/p>\n<pre><code class=\"language-powershell\">\r\n$myreport = @()\r\nGet-VMHost | %{\r\n\t$DataMoverHardwareAcceleratedMove = $_ | Get-VMHostAdvancedConfiguration -Name DataMover.HardwareAcceleratedMove\r\n\t$VMFS3HardwareAcceleratedLocking = $_ | Get-VMHostAdvancedConfiguration -Name VMFS3.HardwareAcceleratedLocking\r\n\t$DataMoverHardwareAcceleratedInit = $_ | Get-VMHostAdvancedConfiguration -Name DataMover.HardwareAcceleratedInit\r\n\t$myreport += new-object psobject -property @{\r\n\t\tHost = $_.Name\r\n\t\tDataMoverHardwareAcceleratedMove = [string]$DataMoverHardwareAcceleratedMove.Values\r\n\t\tVMFS3HardwareAcceleratedLocking = [string]$VMFS3HardwareAcceleratedLocking.Values\r\n\t\tDataMoverHardwareAcceleratedInit = [string]$DataMoverHardwareAcceleratedInit.Values\r\n\t}\r\n}\r\n$myreport\r\n<\/code><\/pre>\n<p>The resulting output will list the setting for each option value for each host.  Note: 0 = disabled and 1 = enabled.<\/p>\n<p>If you need to make changes to these values on a large number of hosts, check out this article: <a href=\"http:\/\/nickapedia.com\/2011\/03\/01\/powercli-and-vaai-quick-and-dirty-script\/\">http:\/\/nickapedia.com\/2011\/03\/01\/powercli-and-vaai-quick-and-dirty-script\/<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently had a need to validate that all hosts in a specific vCenter had appropriate vStorage API for Array Integration (VAAI) settings. I didn&#8217;t want to change the values, I was just looking for the existing values. This short &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/verify-vaai-settings-with-powercli\/\">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-972","post","type-post","status-publish","format-standard","hentry","category-scripting","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/972","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=972"}],"version-history":[{"count":6,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/972\/revisions"}],"predecessor-version":[{"id":979,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/972\/revisions\/979"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}