SCSIFWver - file /sys/class/scsi_host/host[0-9]*/fwrev

This parser parses the content from fwver file from individual SCSI hosts. This parser will return data in dictionary format.

Sample Content from /sys/class/scsi_host/host0/fwrev:

2.02X12 (U3H2.02X12), sli-3


>>> type(scsi_obj)
<class 'insights.parsers.scsi_fwver.SCSIFWver'>
{'host0': ['2.02X12 (U3H2.02X12)', 'sli-3']}
>>> scsi_obj.scsi_host
class insights.parsers.scsi_fwver.SCSIFWver(context)[source]

Bases: insights.core.LegacyItemAccess, insights.core.Parser

Parse /sys/class/scsi_host/host[0-9]*/fwrev file, return a dict contain fwver scsi host file info. “scsi_host” key is scsi host file parse from scsi host file name.


scsi_host (str): scsi host file name derived from file path.

property host_mode

It will return the scsi host modes when set else None.




This method must be implemented by classes based on this class.