NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/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

NineSec Team - 2022