HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/nvme.cpython-39.pyc
a

^��c&�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdZdZdd�Z	d	S)
�NvmeaCollects nvme device configuration information for each nvme device that
    is installed on the system.

    Basic information is collected via the `smartctl` utility, however detailed
    information will be collected via the `nvme` CLI if the `nvme-cli` package
    is installed.
    zNVMe device information�nvme)Zstorage)znvme-cli)rZ	nvme_corecCs4|�d�|�ddg�gd�}|j|ddd�dS)Nz/etc/nvme/*z	nvme listznvme list-subsys)
zsmartctl --all %(dev)szsmartctl --all %(dev)s -jznvme list-ns %(dev)sznvme fw-log %(dev)sznvme list-ctrl %(dev)sznvme id-ctrl -H %(dev)sznvme id-ns -H %(dev)sznvme smart-log %(dev)sznvme error-log %(dev)sznvme show-regs %(dev)s�blockznvme.*)ZdevicesZ	whitelist)Z
add_copy_specZadd_cmd_outputZadd_device_cmd)�selfZcmds�r�;/usr/lib/python3.9/site-packages/sos/report/plugins/nvme.py�setups
�z
Nvme.setupN)
�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesZpackagesZkernel_modsr
rrrr	rsrN)Zsos.report.pluginsrrrrrrr	�<module>	s