Your IP : 216.73.216.172


Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/iprconfig.cpython-38.pyc

U

-�_g�@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]4}|�d|���|�d|���|�d|���q�|�d�}|ddks�dS|ds�dSd}|�|�}	|	ddk�s|	d�sdS|d��D]j}d|k�r*t�d|�}|d�d�\}
}|	d��D].}||k�rb|�d�}|�d|d����qb�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 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/dist-packages/sos/report/plugins/iprconfig.py�setups\��







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