Your IP : 216.73.217.13


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

U

���b��@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s$eZdZdZdZdZdZdd�ZdS)�	IprConfigz8IBM Power RAID storage adapter configuration informationZ	iprconfig)Ziprutils)zppc64.*c
Cs�|�ddddddddd	d
g
�|�d�}|ddks8dSg}|d
r�t�d�}|d
��D]*}|�d�}|�|d�rZ|�|d�qZ|D].}|�d|�|�d|�|�d|�q�|�d�}|ddks�dS|d
s�dSd}|�|�}	|	ddks�dS|	d
�sdS|d
��D]h}d|k�rt�d|�}|d�d�\}
}|	d
��D],}||k�rP|�d�}|�d|d��qP�qdS)Nziprconfig -c show-configziprconfig -c show-alt-configziprconfig -c show-arraysziprconfig -c show-jbod-disksziprconfig -c show-ioasziprconfig -c show-hot-sparesziprconfig -c show-af-disksziprconfig -c show-all-af-disksziprconfig -c show-slotsziprconfig -c dumpZstatusr�outputZsg� ziprconfig -c show-details %sz!iprconfig -c show-battery-info %sziprconfig -c show-perf %sZ	Enclosurez\s+��/ziprconfig -c query-ses-mode %s)Zadd_cmd_outputZcollect_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�setups^�








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