Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/fibrechannel.cpython-36.pyc

3

�f�@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�xD|d	j�D]4}d
|krV|j�d}|jd|d
|d|g�qVWdS)Nzudevadm info -a %(dev)sZfibre)Zdevicesrzhbacmd listhbaszhbacmd ServerAttributesZstatusr�outputzPort WWN�zhbacmd HbaAttributes %szhbacmd PortAttributes %szhbacmd GetXcvrData %s)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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists