HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/iprconfig.cpython-39.opt-1.pyc
a

#2edC�@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|�gd��g}|dr�t�d�}|d��D]*}|�d	�}|�|d�rX|�|d�qX|D].}|�d
|�|�d|�|�d|�q�|�d
�}|ddks�dS|ds�dSd}|�|�}	|	ddks�dS|	d�s
dS|d��D]h}d|v�rt�d|�}|d�d�\}
}|	d��D],}||v�rN|�d	�}|�d|d��qN�qdS)N�iprconfig -c show-ioasZsg)Zkmods)Zpred�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 %sz!iprconfig -c show-battery-info %sziprconfig -c show-perf %srr	Z	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.9/site-packages/sos/report/plugins/iprconfig.py�setupsN�








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