HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/lustre.cpython-39.pyc
a

\��hr�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�LustrezLustre filesystem�lustre)Zstorage�networkZcluster)rz
lustre-clientcCs&|jdd�|���d|��dd�dS)zZUse lctl get_param to collect a selection of parameters into a
            file.

        zlctl get_param � zparams-F)Zsuggest_filename�stderrN)�add_cmd_output�join)�self�nameZ
param_list�r
�=/usr/lib/python3.9/site-packages/sos/report/plugins/lustre.py�
get_paramss�zLustre.get_paramscs�|�gd��|�d�d}d��fdd�|��D�}|�d|�|�dgd	��|�d
dg�|�dgd
��|�dgd��|�ddg�|�dddg�|�d�|�ddg�|�d�r�|�d�|�ddg�|�ddg�dS)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.*csg|]}t��|�s|�qSr
)�re�match)�.0�item�Zexcluder
r�
<listcomp>+s�z Lustre.setup.<locals>.<listcomp>�allZbasic)�versionZhealth_check�debugzlfs dfz	lfs df -iZ
osc_client)zosc.*.max_dirty_mbzosc.*.max_pages_per_rpczosc.*.checksumszosc.*.max_rpcs_in_flightZosd)z9osd-*.*.{blocksize,brw_stats,enable_projid_xattr,extent*}z8osd-*.*.{fallocate_*,full_scrub_*,files*,kbytes*,mntdev}z7osd-*.*.{nonrotational,oi_scrub,pdo,stats,read*,write*}Zquotaz)osd-*.*.quota_slave.{info,limit_*,acct_*}Zmgszmgs.MGS.ir_timeoutzmgs.MGS.live.*z*/mb_groupsz/sys/fs/ldiskfsz/proc/fs/ldiskfsZall_logsz/tmp/lustre-log.*z	job-statsz
*.*.job_statsZpeers)r	Zexec_cmd�
splitlinesrZadd_forbidden_pathZ
add_copy_specZ
get_option)rr�paramsr
rr�setups4	��
�

zLustre.setupN)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrr
r
r
rr
s	r)rZsos.report.pluginsrrrr
r
r
r�<module>	s