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

-�_g�
��4�ddlZddlmZmZGd�dee�Zy)�N)�Plugin�RedHatPluginc�(�eZdZdZdZdZdZd�Zd�Zy)�LustrezLustre filesystem�lustre)�storage�network�cluster)rz
lustre-clientc�V�|jddj|���d|��d��y)zZUse lctl get_param to collect a selection of parameters into a
            file.

        zlctl get_param � zparams-F)�suggest_filename�stderrN)�add_cmd_output�join)�self�name�
param_lists   �;/usr/lib/python3/dist-packages/sos/report/plugins/lustre.py�
get_paramszLustre.get_paramss7��
	
���o�c�h�h�z�.B�-C�D�/6�t�f�-=�#(�	�	*�c��|jgd��|jd�d}d}|j�D�cgc]}tj||�s|��}}|jd|�|jdgd��|jdd	g�|jd
gd��|jdd
g�|jddg�|jdddg�|j
d�|jddg�|jd�r8|jd�|jddg�|jddg�yycc}w)N)zlctl debug_kernelzlctl device_listzlctl list_nidszlctl route_listzlnetctl net show -v 4zlctl list_param -R *�outputzn.*@.*|.*dump_page_cache|peers|.*quota.*|osd-.*|.*osc.*|mgs.*|.*mgc_irstate|ldlm.*state|.*job_stats|.*exports.*�all�basic)�version�health_check�debugzlfs dfz	lfs df -i�
osc_client)zosc.*.max_dirty_mbzosc.*.max_pages_per_rpczosc.*.checksumszosc.*.max_rpcs_in_flight�osdz3osd-*.*.{mntdev,files*,kbytes*,blocksize,brw_stats}�quotaz)osd-*.*.quota_slave.{info,limit_*,acct_*}�mgszmgs.MGS.ir_timeoutzmgs.MGS.live.*z*/mb_groupsz/sys/fs/ldiskfsz/proc/fs/ldiskfs�all_logsz/tmp/lustre-log.*z	job-statsz
*.*.job_stats�peers)	r�exec_cmd�
splitlines�re�matchr�add_forbidden_path�
add_copy_spec�
get_option)rr�exclude�item�paramss     r�setupzLustre.setupsh�����
�	����5�6�x�@��M��#)�#4�#4�#6�2�4����'�4�0��2��2�����v�&�����0�	
�	
�����
�	�	
����'
�	�	
����
B�C�	
�	
����"M�!N�O����� 4�6F�G�H�	
���
�.������
�	��?�?�:�&����2�3��O�O�K�/�):�;��O�O�G�g�Y�/�'��K2s�EN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesrr.�rrrr
s ��$�J��K�2�H�,�H�*�50rr)r&�sos.report.pluginsrrrr6rr�<module>r8s��
�3�F0�V�\�F0r