a >h@s*ddlmZmZmZGdddeeZdS))PluginIndependentPlugin PluginOptc@sDeZdZdZdZdZdZeddddgZd Z d Z d d Z d dZ dS)DellRACz,Dell Remote Access Controller AdministrationZdellrac)systemZstorageZhardware)zsrvadmin-idracadm7debugFzcapture support assist data)defaultZdescz /opt/dell/srvadmin/bin/idracadm7Z idracadm7cCsFdD]*}|j|jd||jd|dq|drB|dS)N)Z getniccfgZ getsysinfo _)suggest_filenamer)add_cmd_outputracadmprefixZ get_optiondo_debug)selfsubcmdr>/usr/lib/python3.9/site-packages/sos/report/plugins/dellrac.pysetups z DellRAC.setupcCs^z |}Wnty*|jdd}Yn0d}|j|jd|d||jd|ddS) 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)rZlogpathrrrrr$s  zDellRAC.do_debugN) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesZpackagesrZ option_listr rrrrrrrr s  rN)Zsos.report.pluginsrrrrrrrr s