403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/sos/report/plugins/__pycache__/scsi.cpython-312.pyc
�

G%@i�	��8�ddlmZddlmZmZGd�dee�Zy)�)�glob)�Plugin�IndependentPluginc�"�eZdZdZdZdZdZd�Zy)�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 devices�scsi)�storage�hardwarec���|jgd��dg}|jd�}|ddk(rU|dj�D]?}|j�d|vs�|j�d}|j	d	|����A|j	d
dd��|j	gd
��td�}|j
d|��|j
gd�ddg��y)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����zsg_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	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)s�blockzsd.*)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�setupz
Scsi.setups�����
�	� �[�
��(�(��5���(��q� ��x�(�3�3�5�
C���:�:�<��?�j�0� �J�J�L��,�E��'�'�/�%��(A�B�
C�
	
���K�(�!)�	�	+�	
���
�	��2�3�
����5�z��J����
�
�v�h�	�	0�N)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profilesr&�r'r%rr
s��
� �J��K�&�H�+0r'rN)r�sos.report.pluginsrrrr/r'r%�<module>r1s���8�=0�6�$�=0r'

Youez - 2016 - github.com/yon3zu
LinuXploit