(this was already reported privately to c_shanklin, posting here for others' benefit)
For some reason the serial #'s are not being populated below.
PS > Get-VMHost | Get-VMHostStorage | select -ExpandProperty ScsiLun | select Vendor, Model, SerialNumber Vendor Model SerialNumber ------ ----- ------------ OPNFILER VIRTUAL-DISK unavailable FUJITSU MAP3735NP unavailable FUJITSU MAP3735NP unavailable SEAGATE ST336607LW unavailable OPNFILER VIRTUAL-DISK unavailable SEAGATE ST336607LW unavailable
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
I'm not sure this is a VITK bug.
In the ScsiLun object the serialNumber property also returns "unavailable" for my iSCSI LUNs.
In the SDK reference it says "The serial number of the SCSI device. For a device that is SCSI-3 compliant, this property is derived from page 80h of the Vital Product Data (VPD), as defined by the SCSI-3 Primary Commands (SPC-3) spec. Not all SCSI-3 compliant devices provide this information. For devices that are not SCSI-3 compliant, this property is not defined."
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'm not sure this is a VITK bug.
In the ScsiLun object the serialNumber property also returns "unavailable" for my iSCSI LUNs.
In the SDK reference it says "The serial number of the SCSI device. For a device that is SCSI-3 compliant, this property is derived from page 80h of the Vital Product Data (VPD), as defined by the SCSI-3 Primary Commands (SPC-3) spec. Not all SCSI-3 compliant devices provide this information. For devices that are not SCSI-3 compliant, this property is not defined."
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That makes a lot of sense. I would ask VMware to consider having the VITK return $null instead of "undefined", as that is consistent with other powershell conventions. But otherwise, now that I know what to expect I can safely document it thusly in my book.
I would appreciate if anybody has some fancy SCSI-3 drives try this out and paste the output.
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Just checked my very fancy IBM Bladecenter--still says unavailable.
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Hello,
I have the smae beahivor.
Esxi 5.5 fc lun ( netapp,infinidat,xiv)
Best regards,
Yoni Shperling