Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

i��dB
�@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


Spamworldpro Mini