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 ] |
---|
3 ~ �g � @ s2 d dl Z d dlmZmZmZ G dd� dee�ZdS )� N)�Plugin�IndependentPlugin�SoSPredicatec @ s$ e Zd ZdZdZdZd Zdd� ZdS ) � IprConfigz8IBM Power RAID storage adapter configuration informationZ iprconfig�iprutils�ppc64.*c C s� | j dt| dgd�d�}|d dks(d S | jddd d dddd ddg � g }|d r�tjd�}x:|d j� D ]*}|jd�}|j|d �rj|j|d � qjW x<|D ]4}| jd|� �� | jd|� �� | jd|� �� q�W | j d�}|d dks�d S |d � s�d S d}| j |�} | d dk�s&| d �r*d S x~|d j� D ]n}d|k�r8tjd|�}|d jd�\} }x>| d j� D ].}||k�rr|jd�}| jd|d � �� �qrW �q8W d S )Nziprconfig -c show-ioasZsg)Zkmods)ZpredZstatusr ziprconfig -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_outputr Zadd_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�setup sX zIprConfig.setupN)r )r )�__name__� __module__�__qualname__Z short_descZplugin_nameZpackagesZ architecturesr r r r r r s r )r Zsos.report.pluginsr r r r r r r r �<module> s