
    ~ g	                     8    S SK J r   S SKJrJr   " S S\\5      rg)    )glob)PluginIndependentPluginc                   *    \ rS rSrSrSrSrSrS rSr	g)	Scsi   a  
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.
zSCSI devicesscsi)storagehardwarec                    U R                  / SQ5        S/nU R                  S5      nUS   S:X  aZ  US   R                  5        HC  nUR                  5       S   U;   d  M  UR                  5       S   nU R	                  S	U 35        ME     U R	                  S
SSS9  U R	                  / SQ5        [        S5      nU R                  SUS9  U R                  / SQSS/S9  g )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_genericenclosuz	lsscsi -gstatusr   output   zsg_ses -p2 -b1 z	lsscsi -ilsscsi)suggest_filenametags)	z	sg_map -xlspathz
lsmap -alllsnportsz	lsscsi -Hz	lsscsi -dz	lsscsi -sz	lsscsi -Lz
lsscsi -iwz/sys/class/scsi_host/*zudevadm info -a %(dev)s)devices)zsg_persist --in -k -d %(dev)szsg_persist --in -r -d %(dev)szsg_persist --in -s -d %(dev)szsg_inq %(dev)sblockzsd.*)r   	whitelist)add_copy_speccollect_cmd_output
splitlinessplitadd_cmd_outputr   add_device_cmd)self
scsi_typesresultlinedevsg
scsi_hostss         9/usr/lib/python3/dist-packages/sos/report/plugins/scsi.pysetup
Scsi.setup   s     
 	  [
((5(q x(335::<?j0 JJL,E''/%(AB 6
 	K(!) 	 	+ 	 

 
	 23
5zJ 

 vh 	 	0     N)
__name__
__module____qualname____firstlineno____doc__
short_descplugin_nameprofilesr'   __static_attributes__r*   r)   r&   r   r      s    
  JK&H*0r)   r   N)r   sos.report.pluginsr   r   r   r*   r)   r&   <module>r5      s     8<06$ <0r)   