NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/scsi.cpython-36.pyc
3

~�g�	�@s2ddlmZddlmZmZGdd�dee�ZdS)�)�glob)�Plugin�IndependentPluginc@s$eZdZdZdZdZd	Zdd�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.
    zSCSI devicesZscsi�storage�hardwarec
Cs�|jdddddddg�dg}|jd	�}|d
dkrvx@|dj�D]0}|j�d
|krB|j�d%}|jd|���qBW|jdddd�|jdddddddddg	�td�}|jd|d�|jddd d!gd"d#gd$�dS)&Nz
/proc/scsiz/etc/stinit.defz
/sys/bus/scsiz/sys/class/scsi_hostz/sys/class/scsi_diskz/sys/class/scsi_devicez/sys/class/scsi_genericZenclosuz	lsscsi -gZstatusr�output�zsg_ses -p2 -b1 z	lsscsi -iZlsscsi)Zsuggest_filenameZtagsz	sg_map -xZlspathz
lsmap -allZlsnportsz	lsscsi -Hz	lsscsi -dz	lsscsi -sz	lsscsi -Lz
lsscsi -iwz/sys/class/scsi_host/*zudevadm info -a %(dev)s)�deviceszsg_persist --in -k -d %(dev)szsg_persist --in -r -d %(dev)szsg_persist --in -s -d %(dev)szsg_inq %(dev)s�blockzsd.*)r
Z	whitelist���)Z
add_copy_specZcollect_cmd_output�
splitlines�splitZadd_cmd_outputrZadd_device_cmd)�selfZ
scsi_types�result�lineZdevsgZ
scsi_hosts�r�/usr/lib/python3.6/scsi.py�setupsF
z
Scsi.setupN)rr)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesrrrrrr
s
rN)rZsos.report.pluginsrrrrrrr�<module>	s

NineSec Team - 2022