Current File : //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/iprconfig.cpython-312.pyc
�

-�_g��8�ddlZddlmZmZmZGd�dee�Zy)�N)�Plugin�IndependentPlugin�SoSPredicatec�"�eZdZdZdZdZdZd�Zy)�	IprConfigz8IBM Power RAID storage adapter configuration information�	iprconfig)�iprutils)zppc64.*c�|�|jdt|dg����}|ddk(sy|jgd��g}|drgtjd�}|dj�D]<}|j
d	�}|j|d�s�)|j|d��>|D]>}|jd
|���|jd|���|jd|����@|jd
�}|ddk(sy|dsyd}|j|�}	|	ddk7s|	dsy|dj�D]y}d|vs�tjd|�}|dj
d�\}
}|	dj�D]/}||vs�|j
d	�}|jd|d����1�{y)N�iprconfig -c show-ioas�sg)�kmods)�pred�statusr)
�iprconfig -c show-config�iprconfig -c show-alt-configziprconfig -c show-arraysziprconfig -c show-jbod-disksrziprconfig -c show-hot-sparesziprconfig -c show-af-disksziprconfig -c show-all-af-disksziprconfig -c show-slotsziprconfig -c dump�output� ziprconfig -c show-details ziprconfig -c show-battery-info ziprconfig -c show-perf rr�	Enclosurez\s+��/ziprconfig -c query-ses-mode )	�collect_cmd_outputr�add_cmd_output�re�compile�
splitlines�split�search�append)
�self�	show_ioas�devices�dev�line�temp�device�show_config�show_alt_config�	altconfig�_�scsi�alt_lines
             �>/usr/lib/python3/dist-packages/sos/report/plugins/iprconfig.py�setupzIprConfig.setups
���+�+�(�!�$�t�f�5�,�
�	���"�a�'�����
�	����X���*�*�T�"�C�!�(�+�6�6�8�
,���z�z�#����:�:�d�1�g�&��N�N�4��7�+�	
,��	D�F����"<�V�H� E�F����"A�&�� J�K����"9�&�� B�C�	D��-�-�.H�I���8�$��)���8�$��9���+�+�O�<�	��h��1�$�Y�x�-@�� ��)�4�4�6�
	I�D��d�"��x�x���-���q�'�-�-��,���4� )�(� 3� >� >� @�I�H��x�'�'�~�~�c�2���+�+�->�>B�1�g�Y�-H�I�	I�
	I�N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�packages�
architecturesr-�r.r,rrs��K�J��K��H� �M�UIr.r)r�sos.report.pluginsrrrrr6r.r,�<module>r8s#��
�F�F�]I��)�]Ir.