관리-도구
편집 파일: dellrac.cpython-39.pyc
a -�_g� � @ s* d dl mZmZmZ G dd� dee�ZdS )� )�Plugin�IndependentPlugin� PluginOptc @ sD e Zd ZdZdZdZdZedddd�gZd Z d Z dd� Zd d� ZdS )�DellRACz,Dell Remote Access Controller AdministrationZdellrac)�systemZstorageZhardware)zsrvadmin-idracadm7�debugFzcapture support assist data)�defaultZdescz /opt/dell/srvadmin/bin/idracadm7Z idracadm7c C sF dD ]*}| j | j� d|� �| j� d|� �d� q| �d�rB| �� d S )N)Z getniccfgZ getsysinfo� �_)�suggest_filenamer )�add_cmd_output�racadm�prefixZ get_option�do_debug)�self�subcmd� r �>/usr/lib/python3.9/site-packages/sos/report/plugins/dellrac.py�setup s � z DellRAC.setupc C s^ z| � � }W n ty* | j dd�}Y n0 d}| j| j� d|� d�|| j� d|� �d� dS ) 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)Zmakezsupportassist collect -fr z support.zipr )Zrunatr N)Zget_cmd_output_path�FileExistsErrorr r r )r Zlogpathr r r r r $ s �zDellRAC.do_debugN) �__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesZpackagesr Zoption_listr r r r r r r r r s � r N)Zsos.report.pluginsr r r r r r r r �<module> s