U
    -_gA                     @   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 )PercCLIz$PowerEdge RAID Controller managementperccli)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r,dnd}|  }|D ],}| j| d| | d| | |d q<d}| j| d| d| d| | |d d S )Nz/opt/MegaRAID/perccli/perccli64z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
perccli64_)Zsuggest_filenameZrunatz/call show eventsz file=/dev/stdout)Z
get_optionZget_cmd_output_pathZadd_cmd_output)selfcmdZsubcmdsr   ZlogpathZsubcmd r   </usr/lib/python3/dist-packages/sos/report/plugins/perccli.pysetup   s6    zPercCLI.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   