3 ܓi@s2ddlZddlmZmZmZGdddeeZdS)N)PluginIndependentPlugin SoSPredicatec@s$eZdZdZdZdZd ZddZdS) IprConfigz8IBM Power RAID storage adapter configuration informationZ iprconfigiprutilsppc64.*c Cs|jdt|dgdd}|ddks(dS|jddd d dd d d ddg g}|drtjd}x:|djD]*}|jd}|j|drj|j|dqjWx<|D]4}|jd||jd||jd|qW|jd}|ddksdS|dsdSd}|j|} | ddks&| d r*dSx~|djD]n}d|kr8tjd|}|djd\} } x>| djD].} | | krr| jd}|jd|dqrWq8WdS)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 dumpoutput 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_outputrecompile splitlinessplitsearchappend) selfZ show_ioasZdevicesZdevlineZtempZdeviceZ show_configZshow_alt_configZ altconfig_ZscsiZalt_liner/usr/lib/python3.6/iprconfig.pysetupsX            zIprConfig.setupN)r)r)__name__ __module__ __qualname__Z short_descZ plugin_nameZpackagesZ architecturesrrrrrrs r)r Zsos.report.pluginsrrrrrrrr s