U
    -_g4                     @   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}dddddddd	d
ddg}|   }| dr4dnd}|D ],}| j| d| | d| | |d q<d}| j| d| d| d| | |d d S )Nz/opt/MegaRAID/storcli/storcli64z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
storcli64_)Zsuggest_filenameZrunatz/call show eventsz file=/dev/stdout)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   s6    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   