File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/iprconfig.cpython-39.opt-1.pyc
a
#2edC � @ s2 d dl Z d dlmZmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPlugin�SoSPredicatec @ s$ e Zd ZdZdZdZdZdd� ZdS )� IprConfigz8IBM Power RAID storage adapter configuration informationZ iprconfig)Ziprutils)zppc64.*c
C s� | j dt| dgd�d�}|d dks(d S | �g d�� g }|d r�t�d�}|d �� D ]*}|�d �}|�|d �rX|�|d � qX|D ].}| �d
| � | �d| � | �d| � q�| � d
�}|d dks�d S |d s�d S d}| � |�} | d dks�d S | d �s
d S |d �� D ]h}d|v �rt�d|�}|d �d�\}
}| d �� D ],}||v �rN|�d �}| �d|d � �qN�qd S )N�iprconfig -c show-ioasZsg)Zkmods)Zpred�statusr )
�iprconfig -c show-config�iprconfig -c show-alt-configziprconfig -c show-arraysziprconfig -c show-jbod-disksr ziprconfig -c show-hot-sparesziprconfig -c show-af-disksziprconfig -c show-all-af-disksziprconfig -c show-slotsziprconfig -c dump�output� ziprconfig -c show-details %sz!iprconfig -c show-battery-info %sziprconfig -c show-perf %sr r Z Enclosurez\s+� �/ziprconfig -c query-ses-mode %s) Zcollect_cmd_outputr Zadd_cmd_output�re�compile�
splitlines�split�search�append)
�selfZ show_ioasZdevices�p�lineZtempZdeviceZshow_configZshow_alt_configZ altconfigZpciZscsiZalt_line� r �@/usr/lib/python3.9/site-packages/sos/report/plugins/iprconfig.py�setup sN �
�zIprConfig.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZpackagesZ
architecturesr r r r r r s
r )r Zsos.report.pluginsr r r r r r r r �<module> s