o
G%@i @ s2 d dl m Z d dlmZmZ G dd deeZdS ) )glob)PluginIndependentPluginc @ s$ e Zd ZdZdZdZdZdd ZdS )Scsia
Collects various information about the SCSI devices install on the host
system.
This plugin will capture a large amount of data from the /sys filesystem,
as well as several different invocations of the `lsscsi` command.
Additionally, several `sg_persist` commands will be collected for each
SCSI device identified by sos. Note that in most cases these commands are
provided by the `sg3_utils` package which may not be present by default.
zSCSI devicesscsi)storagehardwarec C s | g d dg}| d}|d dkr4|d D ]}| d |v r3| d }| d | q| jd
ddd | g d
td}| jd|d | jg dddgd d S )N)z
/proc/scsiz/etc/stinit.defz
/sys/bus/scsiz/sys/class/scsi_hostz/sys/class/scsi_diskz/sys/class/scsi_devicez/sys/class/scsi_genericenclosuz lsscsi -gstatusr output zsg_ses -p2 -b1 z lsscsi -ilsscsi)suggest_filenametags)
z sg_map -xlspathz
lsmap -alllsnportsz lsscsi -Hz lsscsi -dz lsscsi -sz lsscsi -Lz
lsscsi -iwz lsscsi -tz/sys/class/scsi_host/*zudevadm info -a %(dev)s)devices)zsg_persist --in -k -d %(dev)szsg_persist --in -r -d %(dev)szsg_persist --in -s -d %(dev)szsg_inq %(dev)sblockzsd.*)r whitelist)
add_copy_speccollect_cmd_output
splitlinessplitadd_cmd_outputr add_device_cmd)self
scsi_typesresultlinedevsg
scsi_hosts r" 9/usr/lib/python3/dist-packages/sos/report/plugins/scsi.pysetup s$
z
Scsi.setupN)__name__
__module____qualname____doc__
short_descplugin_nameprofilesr$ r" r" r" r# r
s r N)r sos.report.pluginsr r r r" r" r" r#