HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/fibrechannel.cpython-36.pyc
3

-�_g�@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�	PluginOptc@s<eZdZdZdZdZdZedd	d
d�gZdd
gZ	dd�Z
dS)�Fibrechannelz+Collect information on fibrechannel devicesZfibrechannel�hardware�storage�system�/sys/class/fc_host�/sys/class/fc_remote_ports�debugTzcollect debugging logs)�defaultZdescz/sys/kernel/debug/qla2*/z/sys/kernel/debug/fnic/cCs�|jddd�|jd�r$|j|j�|jddg�|jd�}|ddkr�xJ|d	j�D]:}d
|krV|j�d}|jd|��d
|��d|��g�qVWdS)Nzudevadm info -a %(dev)sZfibre)Zdevicesrzhbacmd listhbaszhbacmd ServerAttributesZstatusr�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�lineZdev�r�"/usr/lib/python3.6/fibrechannel.py�setups

zFibrechannel.setupN)rrr)r	r
)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�filesrZoption_listrrrrrrrsrN)Zsos.report.pluginsrrrrrrrr�<module>s