관리-도구
편집 파일: arcconf.cpython-39.opt-1.pyc
a -�_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�arcconf)r c C s� | � d�}|d dkr�|d �� D ]^}zBt�d|��d�}|�� d }|rf| �d|� �d|� d �g� W q" ty~ Y q"Y q"0 q"d S ) Nzarcconf list�statusr �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.9/site-packages/sos/report/plugins/arcconf.py�setup s � z ArcConf.setupN)�__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