HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/hpssm.cpython-36.pyc
3

3��d�
�@s2ddlmZmZmZddlZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�	PluginOptNc@s@eZdZdZdZdZdZdZed
ddd
�gZ	dd�Z
dd�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�system�storage�hardware�ilorest�ssacli�ssaducli�debugFzcapture debug data)�defaultZdesccs�d�dg}ddddddg�|j�fd	d
�|D��tjd���d}|j|�}g}|d
dkrx�fdd
�|dj�D�}�d�|j��fdd
�|D��|j�}|jd|dd�|jd�r�|j|�dS)Nr
zctrl all show statuszarray all show detailzld all showzld all show detailzpd all showzpd all show detailzshow detailcsg|]}d�|f�qS)z%s %s�)�.0Zsubcmd)�cmdr�/usr/lib/python3.6/hpssm.py�
<listcomp>-szHpssm.setup.<locals>.<listcomp>z,^HP.*Smart Array (.*) in Slot ([0123456789])z ctrl all show config detailZstatusrcs,g|]$}�j|�gD]}|r|jd��qqS)�)�search�group)r�line�m)�patternrrr5s�outputz ctrl slot=cs$g|]}�D]}d�||f�qqS)z%s%s %sr)rZslotZslot_subcmd)�slot_subcmds�ssacli_ctrl_slot_cmdrrr:sz"ssaducli -v -adu -f %s/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�setups6




zHpssm.setupcCs|jd||dd�dS)Nz5ilorest serverlogs --selectlog=AHS --directorypath=%szilorest.log)Zrunatr)r)r"r#rrrr!MszHpssm.do_debugN)rrr)r	r
r)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesZpackagesrZoption_listr$r!rrrrr
s.r)Zsos.report.pluginsrrrrrrrrr�<module>	s