
    ~ g
                     4    S SK r S SKJrJr   " S S\\5      rg)    N)PluginRedHatPluginc                   0    \ rS rSrSrSrSrSrS rS r	Sr
g	)
Lustre   zLustre filesystemlustre)storagenetworkcluster)r   zlustre-clientc                 P    U R                  SSR                  U5       3SU 3SS9  g)zFUse lctl get_param to collect a selection of parameters into a
file.

zlctl get_param  zparams-F)suggest_filenamestderrN)add_cmd_outputjoin)selfname
param_lists      ;/usr/lib/python3/dist-packages/sos/report/plugins/lustre.py
get_paramsLustre.get_params   s7    
 	ochhz.B-CD/6tf-=#( 	 	*    c                    U R                  / SQ5        U R                  S5      S   nSnUR                  5        Vs/ s H"  n[        R                  " X#5      (       a  M   UPM$     nnU R                  SU5        U R                  S/ SQ5        U R                  SS	/5        U R                  S
/ SQ5        U R                  SS/5        U R                  SS/5        U R                  SSS/5        U R                  S5        U R                  SS/5        U R                  S5      (       a8  U R                  S5        U R                  SS/5        U R                  SS/5        g g s  snf )N)zlctl debug_kernelzlctl device_listzlctl list_nidszlctl route_listzlnetctl net show -v 4zlctl list_param -R *outputzn.*@.*|.*dump_page_cache|peers|.*quota.*|osd-.*|.*osc.*|mgs.*|.*mgc_irstate|ldlm.*state|.*job_stats|.*exports.*allbasic)versionhealth_checkdebugzlfs dfz	lfs df -i
osc_client)zosc.*.max_dirty_mbzosc.*.max_pages_per_rpczosc.*.checksumszosc.*.max_rpcs_in_flightosdz3osd-*.*.{mntdev,files*,kbytes*,blocksize,brw_stats}quotaz)osd-*.*.quota_slave.{info,limit_*,acct_*}mgszmgs.MGS.ir_timeoutzmgs.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)r   r   excludeitemparamss        r   setupLustre.setup   sj    
 	 56x@M#)#4#4#6 2#64'0 #6 2v&0	
 	
 	 	 '
 	 	BC	
 	"M!NO 46FGH 	.
 	 ??:&&23OOK/):;OOGgY/ 'K2s   E!E! N)__name__
__module____qualname____firstlineno__
short_descplugin_nameprofilespackagesr   r0   __static_attributes__r2   r   r   r   r      s     $JK2H,H*50r   r   )r(   sos.report.pluginsr   r   r   r2   r   r   <module>r=      s    
 3F0V\ F0r   