
    -_g                     0    d dl mZmZmZ  G d dee      Zy)    )PluginIndependentPlugin	PluginOptc                   H    e Zd ZdZdZdZdZ eddd      gZd	Z	d
Z
d Zd Zy)DellRACz,Dell Remote Access Controller Administrationdellrac)systemstoragehardware)zsrvadmin-idracadm7debugFzcapture support assist data)defaultdescz /opt/dell/srvadmin/bin/idracadm7	idracadm7c                     dD ]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)$(KK=&!:   <	<
 ??7#MMO $    c                     	 | j                         }d}| j                  | j                   d| d|| j                   d|        y# t        $ r | j                  d      }Y Sw xY 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)makezsupportassist collect -fr   z support.zipr   )runatr   N)get_cmd_output_pathFileExistsErrorr   r   r   )r   logpathr   s      r   r   zDellRAC.do_debug$   s|    	;..0G ,{{m1VHL1t{{m1VH,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1H&H 	'5/LMK 0FFGr   r   N)sos.report.pluginsr   r   r   r   r.   r   r   <module>r0      s    D C%Gf' %Gr   