o
    ide                     @   s&   d dl mZmZ G dd deeZdS )    )PluginRedHatPluginc                   @   s,   e Zd ZdZdZdZdZdd Zdd Zd	S )
LustrezLustre filesystemlustre)storagenetworkcluster)r   zlustre-clientc                 C   s"   | j dd| d| dd dS )zZUse lctl get_param to collect a selection of parameters into a
            file.

        zlctl get_param %s z	params-%sF)suggest_filenamestderrN)add_cmd_outputjoin)selfname
param_list r   ;/usr/lib/python3/dist-packages/sos/report/plugins/lustre.py
get_params   s   
zLustre.get_paramsc                 C   s   |  g d | dg d | dg d | dddg | d	d
g | dddg | ddg | ddg | ddg |  ddg | dg d | ddg | ddg | dddg | dd g | d!d"g | d# | d$d%g | d&r| d' d S d S )(N)zlctl debug_kernelzlctl device_listzlctl list_nidszlctl route_listzlnetctl net show -vbasic)versionhealth_checkdebugtimeoutlnet)peersroutesroutersniszldlm-lruzldlm.namespaces.*.lru_max_agezldlm.namespaces.*.lru_sizezldlm-statesz	*.*.statejobid
jobid_name	jobid_varz	job-statsz*.*.job_statsserver_uuidsz*.*.*server_uuidmgc_irstatezmgc.*.ir_statez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.*exportsz*.*.exports.*.*mntdevzosd*.*.mntdevz*/mb_groupsz/sys/fs/ldiskfsz/proc/fs/ldiskfsall_logsz/tmp/lustre-log.*)r   r   add_forbidden_pathadd_copy_spec
get_option)r   r   r   r   setup   sB   

zLustre.setupN)	__name__
__module____qualname__
short_descplugin_nameprofilespackagesr   r-   r   r   r   r   r      s    	r   N)sos.report.pluginsr   r   r   r   r   r   r   <module>   s   