File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/arcconf.cpython-36.pyc
3
-�_g� � @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPluginc @ 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 information�arcconfc C s� | j d�}|d dkr�xn|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�
splitlines�re�match�group�splitZadd_cmd_output�AttributeError)�selfZlistarcconf�liner
Z
controller_id� r �/usr/lib/python3.6/arcconf.py�setup 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 �<module>
s