NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

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

~�g�@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�qjWx<|D]4}|jd|���|jd|���|jd|���q�W|jd�}|ddks�dS|d�s�dSd}|j|�}	|	ddk�s&|	d�r*dSx~|dj�D]n}d|k�r8tjd|�}|djd�\}
}x>|	dj�D].}||k�rr|jd�}|jd|d����qrW�q8WdS)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.6/iprconfig.py�setupsX








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

NineSec Team - 2022