HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/iprconfig.cpython-38.pyc
U

i��dC�@s2ddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPlugin�SoSPredicatec@s$eZdZdZdZdZdZdd�ZdS)�	IprConfigz8IBM Power RAID storage adapter configuration informationZ	iprconfig)Ziprutils)zppc64.*c
Cs�|jdt|dgd�d�}|ddks(dS|�ddd	d
dddd
ddg
�g}|dr�t�d�}|d��D]*}|�d�}|�|d�rh|�|d�qh|D].}|�d|�|�d|�|�d|�q�|�d�}|ddks�dS|ds�dSd}|�|�}	|	ddk�sdS|	d�sdS|d��D]h}d|k�r(t�d|�}|d�d�\}
}|	d��D],}||k�r`|�d�}|�d|d��q`�q(dS)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 %sz!iprconfig -c show-battery-info %sziprconfig -c show-perf %sZ	Enclosurez\s+��/ziprconfig -c query-ses-mode %s)	Zcollect_cmd_outputrZadd_cmd_output�re�compile�
splitlines�split�search�append)
�selfZ	show_ioasZdevices�p�lineZtempZdeviceZshow_configZshow_alt_configZ	altconfigZpciZscsiZalt_line�r�>/usr/lib/python3/dist-packages/sos/report/plugins/iprconfig.py�setupsd��








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