Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/iprconfig.cpython-36.opt-1.pyc

3

�f$�@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�qjWx6|D].}|jd|�|jd|�|jd|�q�W|jd�}|ddks�dS|ds�dSd}|j|�}	|	ddk�s|	d�r"dSx||dj�D]l}d|k�r0tjd|�}|djd�\}
}x<|	dj�D],}||k�rj|jd�}|jd|d��qjW�q0WdS)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_ioasZdevicesZdev�lineZtempZdeviceZshow_configZshow_alt_configZ	altconfig�_ZscsiZalt_line�r�/usr/lib/python3.6/iprconfig.py�setupsZ







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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists