File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/iprconfig.cpython-310.pyc
o
���b� � @ s. d dl Z d dlmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPluginc @ s$ e Zd ZdZdZdZdZdd� ZdS )� IprConfigz8IBM Power RAID storage adapter configuration information� iprconfig)�iprutils)zppc64.*c
C sl | � g d�� | �d�}|d dksd S g }|d r;t�d�}|d �� D ]}|�d�}|�|d �r:|�|d � q%|D ]}| � d| � | � d | � | � d
| � q=| �d�}|d dksbd S |d shd S d}| �|�} | d dkswd S | d s}d S |d �� D ]0}d
|v r�t�d|�}|d �d�\}
}| d �� D ]}||v r�|�d�}| � d|d � q�q�d S )N)
�iprconfig -c show-config�iprconfig -c show-alt-configziprconfig -c show-arraysziprconfig -c show-jbod-disks�iprconfig -c show-ioasziprconfig -c show-hot-sparesziprconfig -c show-af-disksziprconfig -c show-all-af-disksziprconfig -c show-slotsziprconfig -c dumpr �statusr �output�sg� ziprconfig -c show-details %sz!iprconfig -c show-battery-info %sziprconfig -c show-perf %sr r � Enclosurez\s+� �/ziprconfig -c query-ses-mode %s)�add_cmd_output�collect_cmd_output�re�compile�
splitlines�split�search�append)
�self� show_ioas�devices�p�line�temp�device�show_config�show_alt_config� altconfig�pci�scsi�alt_line� r&