3
ܓi @ s. d dl Z d dlmZmZ G dd deeZdS ) N)PluginIndependentPluginc @ s$ e Zd ZdZdZdZdZdd ZdS )ArcConfz
The ArcConf plugin is meant for sas adapters, and will collect logs and
information for each RAID adapter discovered on the system.
z+arcconf Integrated RAID adapter informationarcconfc C s | j d}|d dkrxn|d j D ]^}yBtjd|jd}|j d }|rh| jd| d| d g W q$ tk
r w$Y q$X q$W d S )
Nzarcconf listZstatusr outputz^[\s]*Controller (\d)+ zarcconf getconfig zarcconf GETLOGS z UART)Zcollect_cmd_output
splitlinesrematchgroupsplitZadd_cmd_outputAttributeError)selfZlistarcconfliner
Z
controller_id r /usr/lib/python3.6/arcconf.pysetup s
z
ArcConf.setupN)r )__name__
__module____qualname____doc__Z
short_descZplugin_nameZcommandsr r r r r r s
r )r Zsos.report.pluginsr r r r r r r