o
    *bP                     @   s*   d dl mZmZmZ G dd deeZdS )    )PluginIndependentPlugin	PluginOptc                   @   s4   e Zd ZdZdZdZdZeddddgZd	d
 Z	dS )StorCLIzLSI MegaRAID devicesstorcli)systemZstorageZhardware)r   jsonFzcollect data in JSON format)defaultZdescc                 C   s|   d}g d}|   }| drdnd}|D ]}| jd|||f d||f |d qd	}| jd
|||f d||f |d d S )Nz/opt/MegaRAID/storcli/storcli64)zshow ctrlcountz/call show AliLogz/call show allz/call show termlogz/call/bbu show allz/call/cv show allz/call/dall showz/call/eall show allz/call/eall/sall show allz/call/sall show allz/call/vall show allr   z J z%s %s%szstorcli64_%s%s)Zsuggest_filenameZrunatz/call show eventsz%s %s file=/dev/stdout%s)Zget_cmd_output_pathZ
get_optionZadd_cmd_output)selfcmdZsubcmdsZlogpathr   Zsubcmd r   </usr/lib/python3/dist-packages/sos/report/plugins/storcli.pysetup   s    


zStorCLI.setupN)
__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesr   Zoption_listr   r   r   r   r   r      s    r   N)Zsos.report.pluginsr   r   r   r   r   r   r   r   <module>   s   