This is doing job in my home "lab": $clusterName = "Lab" foreach ($esx in (Get-Cluster -Name $clusterName | Get-VMHost)) { $esxcli = Get-EsxCli -vmhost $esx -V2 $argum...
See more...
This is doing job in my home "lab": $clusterName = "Lab" foreach ($esx in (Get-Cluster -Name $clusterName | Get-VMHost)) { $esxcli = Get-EsxCli -vmhost $esx -V2 $arguments = $esxcli.storage.vmfs.lockmode.set.CreateArgs() $arguments.scsi = 1 $arguments.volumelabel = "dungeon_0" $esxcli.storage.vmfs.lockmode.set.Invoke($arguments) } $esxcli.storage.vmfs.lockmode.set.Help() command opened my eyes.. br, Pertti
I'll try to list "DeviceMaxQueueDepth" per naa (in cluster). I have vCenters, vCenter 6.0 with ESXi 6.0, vCenter 6.5 with ESXi 6.5 and vCenter 6.7 with ESXi 6.7. This script works against E...
See more...
I'll try to list "DeviceMaxQueueDepth" per naa (in cluster). I have vCenters, vCenter 6.0 with ESXi 6.0, vCenter 6.5 with ESXi 6.5 and vCenter 6.7 with ESXi 6.7. This script works against ESXi 6.0 clusters but not 6.5 and 6.7. Is it possible to have script that works with all versions? $clusterName = 'ClusterName' foreach($esx in (Get-Cluster -Name $clusterName | Get-VMHost)){ $esxcli = Get-EsxCli -vmhost $esx -V2 $obj = $esxcli.storage.core.device.list.CreateArgs() $obj.device = $_.DeviceName $esxcli.storage.core.device.list.Invoke($obj) | Select Device, DeviceMaxQueueDepth } br, PeteS