�
i��d& � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�IndependentPluginc �* � e Zd ZdZdZdZdZdZdZd� Z y) �Nvmea Collects 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)�storage)znvme-cli)r � nvme_corec �| � | j d� | j ddg� g d�}| j |dd�� y )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.*)�devices� whitelist)�
add_copy_spec�add_cmd_output�add_device_cmd)�self�cmdss �9/usr/lib/python3/dist-packages/sos/report/plugins/nvme.py�setupz
Nvme.setup sG � ����=�)������
� �
��
���D�'�X��F� N)
�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packages�kernel_modsr � r r r r s( � �� +�J��K��H��H�'�K�Gr r N)�sos.report.pluginsr r r r r r �<module>r! s �� 9�#G�6�$� #Gr |