3
ܓi @ s* d dl mZmZmZ G dd deeZdS ) )PluginIndependentPlugin PluginOptc @ sD e Zd ZdZdZdZdZeddd d
gZdZ dZ
d
d Zdd ZdS )DellRACz,Dell Remote Access Controller AdministrationZdellracsystemstoragehardwaresrvadmin-idracadm7debugFzcapture support assist data)defaultZdescz /opt/dell/srvadmin/bin/idracadm7Z idracadm7c C sJ x2dD ]*}| j | j d| | j d| d qW | jdrF| j d S )N getniccfg
getsysinfo _)suggest_filenamer
)r r
)add_cmd_outputracadmprefixZ
get_optiondo_debug)selfsubcmd r /usr/lib/python3.6/dellrac.pysetup s
z
DellRAC.setupc C s` y| j }W n tk
r, | j dd}Y nX 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_pathFileExistsErrorr r r )r Zlogpathr r r r r $ s zDellRAC.do_debugN)r r r )r )
__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