HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/iprconfig.cpython-36.opt-1.pyc
3

-�_g�@s2ddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPlugin�SoSPredicatec@s$eZdZdZdZdZd	Zdd�ZdS)
�	IprConfigz8IBM Power RAID storage adapter configuration informationZ	iprconfig�iprutils�ppc64.*c
Cs�|jdt|dgd�d�}|ddks(dS|jddd	d
dddd
ddg
�g}|dr�tjd�}x:|dj�D]*}|jd�}|j|d�rj|j|d�qjWx<|D]4}|jd|���|jd|���|jd|���q�W|jd�}|ddks�dS|d�s�dSd}|j|�}	|	ddk�s&|	d�r*dSx~|dj�D]n}d|k�r8tjd|�}|djd�\}
}x>|	dj�D].}||k�rr|jd�}|jd|d����qrW�q8WdS)Nziprconfig -c show-ioasZsg)Zkmods)ZpredZstatusrziprconfig -c show-configziprconfig -c show-alt-configziprconfig -c show-arraysziprconfig -c show-jbod-disksziprconfig -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 Z	Enclosurez\s+��/ziprconfig -c query-ses-mode )	Zcollect_cmd_outputrZadd_cmd_output�re�compile�
splitlines�split�search�append)
�selfZ	show_ioasZdevicesZdev�lineZtempZdeviceZshow_configZshow_alt_configZ	altconfig�_ZscsiZalt_line�r�/usr/lib/python3.6/iprconfig.py�setupsX








zIprConfig.setupN)r)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZpackagesZ
architecturesrrrrrrs
r)rZsos.report.pluginsrrrrrrrr�<module>s