관리-도구
편집 파일: fibrechannel.cpython-39.opt-1.pyc
a ����-�_g����������������������@���s*���d�dl�mZmZmZ�G�dd��dee�ZdS�)�����)�Plugin�RedHatPlugin� PluginOptc�������������������@���s<���e�Zd�ZdZdZdZdZedddd�gZd d gZ dd��Z d S�)�Fibrechannelz+Collect information on fibrechannel devicesZfibrechannel)ZhardwareZstorage�system)z/sys/class/fc_hostz/sys/class/fc_remote_ports�debugTzcollect debugging logs)�defaultZdescz/sys/kernel/debug/qla2*/z/sys/kernel/debug/fnic/c�����������������C���s����|�j�ddd��|��d�r$|��|�j��|��ddg��|��d�}|d�dkr�|d ����D�]:}d |v�rT|���d�}|��d|���d |���d|���g��qTd�S�)Nzudevadm info -a %(dev)sZfibre)Zdevicesr���zhbacmd listhbaszhbacmd ServerAttributes�statusr����outputzPort WWN����zhbacmd HbaAttributes zhbacmd PortAttributes zhbacmd GetXcvrData )Zadd_device_cmdZ get_optionZ add_copy_spec�debug_pathsZadd_cmd_outputZcollect_cmd_output� splitlines�split)�selfZlisthbas�line�dev��r����C/usr/lib/python3.9/site-packages/sos/report/plugins/fibrechannel.py�setup���s"���� � �zFibrechannel.setupN)�__name__� __module__�__qualname__Z short_descZplugin_nameZprofiles�filesr���Zoption_listr���r���r���r���r���r���r������s�����r���N)Zsos.report.pluginsr���r���r���r���r���r���r���r����<module>���s���