Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/dellrac.cpython-36.pyc

3

�f��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�	PluginOptc@sDeZdZdZdZdZdZeddd	d
�gZdZ	dZ
d
d�Zdd�ZdS)�DellRACz,Dell Remote Access Controller AdministrationZdellrac�system�storage�hardware�srvadmin-idracadm7�debugFzcapture support assist data)�defaultZdescz /opt/dell/srvadmin/bin/idracadm7Z	idracadm7cCsFx.dD]&}|jd|j|fd|j|fd�qW|jd�rB|j�dS)N�	getniccfg�
getsysinfoz%s %sz%s_%s)�suggest_filenamer
)rr
)�add_cmd_output�racadm�prefixZ
get_option�do_debug)�self�subcmd�r�/usr/lib/python3.6/dellrac.py�setups

z
DellRAC.setupcCsZy|j�}Wn tk
r,|jdd�}YnXd}|jd|j|f|d|j|fd�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 -fz%s %s support.zipz%s_%s)ZrunatrN)Zget_cmd_output_path�FileExistsErrorrrr)rZlogpathrrrrr$szDellRAC.do_debugN)rrr)r	)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrZoption_listrrrrrrrrrs	rN)Zsos.report.pluginsrrrrrrrr�<module>	s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists