🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 16:26:15 | PHP 8.2.32
📂
/ (Root)
/
usr
/
lib
/
python3.6
/
site-packages
/
sos
/
report
/
plugins
/
__pycache__
📍 /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__
🔄 Refresh
✏️
Editing: scsi.cpython-36.pyc
Read Only
3 ܓ�i� � @ s2 d dl m Z d dlmZmZ G dd� dee�ZdS )� )�glob)�Plugin�IndependentPluginc @ s$ e Zd ZdZdZdZd 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. zSCSI devicesZscsi�storage�hardwarec C s� | j dddddddg� dg}| jd �}|d dkrvx@|d j� D ]0}|j� d |krB|j� d& }| jd|� �� qBW | jdddd� | jddddddddddg � td�}| jd|d� | jdd d!d"gd#d$gd%� d S )'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 lsscsi -tz/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_outputr Zadd_device_cmd)�selfZ scsi_types�result�lineZdevsgZ scsi_hosts� r �/usr/lib/python3.6/scsi.py�setup sH z Scsi.setupN)r r )�__name__� __module__�__qualname__�__doc__Z short_descZplugin_nameZprofilesr r r r r r s r N)r Zsos.report.pluginsr r r r r r r �<module> s
💾 Save Changes
❌ Cancel