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� PluginOptc @ s@ e Zd ZdZdZdZdZdZed ddd �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)�defaultZdescc s� d� dg}ddddddg�| j � fd d �|D �� tjd��� d }| j|�}g }|d dkrx�fdd �|d j� D �}� d �| j ��fdd �|D �� | j� }| j d|� d�dd� | jd�r�| j|� d S )Nr zctrl all show statuszarray all show detailzld all showzld all show detailzpd all showzpd all show detailzshow detailc s g | ]}� � d |� ��qS )� � )�.0Zsubcmd)�cmdr �/usr/lib/python3.6/hpssm.py� <listcomp>- s zHpssm.setup.<locals>.<listcomp>z#^HP[E] (.*) in Slot ([0123456789]+)z ctrl all show config detailZstatusr c s, g | ]$}� j |�gD ]}|r|jd ��qqS )� )�search�group)r �line�m)�patternr r r 5 s �outputz ctrl slot=c s( g | ] }� D ]}�� |� d |� ��qqS )r r )r ZslotZslot_subcmd)�slot_subcmds�ssacli_ctrl_slot_cmdr r r : 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 )r r r r r �setup s6 zHpssm.setupc C s | j d|� �|dd� dS )z Collect debug logs z3ilorest serverlogs --selectlog=AHS --directorypath=zilorest.log)Zrunatr N)r )r# r$ r r r r"