Current File : //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/dellrac.cpython-312.pyc |
�
-�_g� � �0 � d dl mZmZmZ G d� dee� Zy)� )�Plugin�IndependentPlugin� PluginOptc �H � e Zd ZdZdZdZdZ eddd�� gZd Z d
Z
d� Zd� Zy
)�DellRACz,Dell Remote Access Controller Administration�dellrac)�system�storage�hardware)zsrvadmin-idracadm7�debugFzcapture support assist data)�default�descz /opt/dell/srvadmin/bin/idracadm7� idracadm7c � � dD ]3 }| j | j � d|� �| j � d|� ��� �5 | j d� r| j � y y )N)� getniccfg�
getsysinfo� �_)�suggest_filenamer )�add_cmd_output�racadm�prefix�
get_option�do_debug)�self�subcmds �</usr/lib/python3/dist-packages/sos/report/plugins/dellrac.py�setupz
DellRAC.setup sd � �1� <�F�����;�;�-�q���)�$(�K�K�=��&��!:�
�
<� <�
�?�?�7�#��M�M�O� $� c �� � | j � }d}| j | j � d|� d�|| j � d|� ��� y# t $ r | j d�� }Y �Sw xY w) z�
Ensure the sos_commands/dellrac directory does exist in either case
as we will need to run the command at that dir, and also ensure
logpath is properly populated in either case as well.
F)�makezsupportassist collect -fr z support.zipr )�runatr N)�get_cmd_output_path�FileExistsErrorr r r )r �logpathr s r r zDellRAC.do_debug$ s| � � ;��.�.�0�G� ,������{�{�m�1�V�H�L�1��t�{�{�m�1�V�H�,E� � G�� � ;��.�.�E�.�:�G� ;�s �A �A&�%A&N)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesr �option_listr r r r � r r r r sC � �?�J��K�1�H�&�H� �'�5�/L�M��K� 0�F�
�F��
Gr r N)�sos.report.pluginsr r r r r. r r �<module>r0 s �� D� C�%G�f�'� %Gr