Wednesday, December 30, 2020

VMworld on demand library 2020

 https://www.vmworld.com/en/video-library/search.html#year=2020


How to get the Predictive Failure Count on VSAN disks from esxi host.

Run below command on VSAN esxi host to get the "Predictive Failure Count"

 

[root@ESXIhost: /opt/lsi/storcli]  /opt/lsi/storcli/storcli /c0/eALL/sALL show all | grep -e ' State : ' -e "Predictive Failure Count"


Command output

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0

Predictive Failure Count = 0


Here is a handy bit of PowerCLI to return the VMhost Name, Product, ESXi build, Serial number of all hosts in vCenter.

 

Run below syntax on powercli to get the VMhost Name, Product, ESXi build, Serial number of all hosts in vCenter.



Get-Vmhost | Get-View | Sort-object Name |
select Name,
@{N='Product';E={$_.Config.Product.FullName}},
@{N='Build';E={$_.Config.Product.Build}},
@{Name="Serial Number"; Expression={($_.Hardware.SystemInfo.OtherIdentifyingInfo | where {$_.IdentifierType.Key -eq "ServiceTag"}).IdentifierValue}}




OR


Get-VMHost | Get-View | Select Name, @{l=”SerialNumber”; e={$_.Hardware.SystemInfo.OtherIdentifyingInfo.IdentifierValue.split(“,”)[0]}}

Sunday, November 22, 2020