3
ܓiD @ s* d dl mZmZmZ G dd deeZdS ) )PluginIndependentPlugin PluginOptc @ s4 e Zd ZdZdZd
ZdZedddd gZd
d Z dS )PercCLI2z&PowerEdge RAID Controller 2 managementperccli2systemstoragehardwarejsonFzcollect data in JSON format)defaultZdescc C s d}dddddddd d
ddg}| j d
r,dnd}| j }x4|D ],}| j| d| | d| | |d q>W d}| j| d| d| d| | |d d S )Nz/opt/MegaRAID/perccli2/perccli2zshow 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 perccli2_)Zsuggest_filenameZrunatz/call show eventsz file=/dev/stdout)Z
get_optionZget_cmd_output_pathZadd_cmd_output)selfcmdZsubcmdsr
ZlogpathZsubcmd r /usr/lib/python3.6/perccli2.pysetup s0
zPercCLI2.setupN)r r r )r )
__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesr Zoption_listr r r r r r s r N)Zsos.report.pluginsr r r r r r r r