Your IP : 216.73.216.172


Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/lustre.cpython-38.pyc

U

-�_g�
�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�LustrezLustre filesystem�lustre)ZstorageZnetworkZcluster)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/dist-packages/sos/report/plugins/lustre.py�
get_paramss�zLustre.get_paramscs�|�dddddg�|�d�d}d��fd	d
�|��D�}|�d|�|�dd
ddg�|�ddg�|�dddddg�|�ddg�|�ddg�|�dddg�|�d�|�dd g�|�d!�r�|�d"�|�d#d$g�|�d%d%g�dS)&Nzlctl 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_clientzosc.*.max_dirty_mbzosc.*.max_pages_per_rpczosc.*.checksumszosc.*.max_rpcs_in_flightZosdz3osd-*.*.{mntdev,files*,kbytes*,blocksize,brw_stats}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)rZexec_cmd�
splitlinesrZadd_forbidden_pathZ
add_copy_specZ
get_option)r
rZparamsrrr
�setupsP�	����
�

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