o
    *b                     @   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)ZstorageZnetworkZ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)Zsuggest_filenamestderrN)add_cmd_outputjoin)selfnameZ
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g | dd	d
g |  ddg | ddg | ddg | drG| d d S d S )N)zlctl debug_kernelzlctl device_listzlctl list_nidszlctl route_listzlnetctl net show -vZbasic)versionZhealth_checkdebugZlnet)ZpeersZroutesZroutersZniszldlm-statesz	*.*.stateZjobidZ
jobid_nameZ	jobid_varzlfs dfz	lfs df -iZosdz3osd-*.*.{mntdev,files*,kbytes*,blocksize,brw_stats}Zquotaz)osd-*.*.quota_slave.{info,limit_*,acct_*}Zall_logsz/tmp/lustre-log.*)r   r   Z
get_optionZadd_copy_spec)r
   r   r   r   setup   s   
zLustre.setupN)	__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesr   r   r   r   r   r   r      s    	r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>   s   