HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/hpssm.cpython-39.pyc
a

\��h�
�@s2ddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPlugin�	PluginOptc@s@eZdZdZdZdZdZdZedddd	�gZ	d
d�Z
dd
�ZdS)�HpssmaG
    This plugin will capture details for each controller from Smart Storage
    Array Administrator, an Array diagnostic report from Smart Storage
    Administrator Diagnostics Utility and, when the plugins debug option is
    enabled will gather the Active Health System log via the RESTful Interface
    Tool (iLOREST).
    zHP Smart Storage ManagementZhpssm)�systemZstorageZhardware)Zilorest�ssacliZssaducli�debugFzcapture debug data)�defaultZdesccs�d�dg}gd��|��fdd�|D��t�d���d}|�|�}g}|dd	krp�fd
d�|d��D�}�d�|���fd
d�|D��|��}|jd|�d�dd�|�d�r�|�|�dS)Nrzctrl all show status)zarray all show detailzld all showzld all show detailzpd all showzpd all show detailzshow detailcsg|]}��d|���qS�� �)�.0Zsubcmd)�cmdr�</usr/lib/python3.9/site-packages/sos/report/plugins/hpssm.py�
<listcomp>-�zHpssm.setup.<locals>.<listcomp>z#^HP[E] (.*) in Slot ([0123456789]+)z ctrl all show config detail�statusrcs$g|]}��|�}|r|�d��qS)�)�search�group)r
�line�m)�patternrrr5s��outputz ctrl slot=cs(g|] }�D]}��|�d|���qqSr
r)r
ZslotZslot_subcmd)�slot_subcmds�ssacli_ctrl_slot_cmdrrr:s�zssaducli -v -adu -f z/adu-log.zipzssaducli_-v_-adu.log)�suggest_filenamer)�add_cmd_output�re�compileZcollect_cmd_output�
splitlinesZget_cmd_output_pathZ
get_option�do_debug)�selfZsubcmdsZconfig_detail_cmdZ
config_detailZ
ctrl_slots�logpathr)rrrrr�setups8��



���
�
zHpssm.setupcCs|jd|��|dd�dS)z Collect debug logs z3ilorest serverlogs --selectlog=AHS --directorypath=zilorest.log)ZrunatrN)r)r"r#rrrr!Is�zHpssm.do_debugN)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesZpackagesrZoption_listr$r!rrrrr
s�*r)rZsos.report.pluginsrrrrrrrr�<module>	s