
    ~ g
                     8    S SK r S SKJrJrJr   " S S\\5      rg)    N)PluginIndependentPlugin	PluginOptc                   F    \ rS rSrSrSrSrSrSr\	" SSS	S
9/r
S rS rSrg)Hpssm   a/  
This plugin will capture details for each controller from Smart Storage
Array Administrator, an Array diagnostic report from Smart Storage
Administrator Diagnostics Utility and, when the plugins debug option is
enabled will gather the Active Health System log via the RESTful Interface
Tool (iLOREST).
zHP Smart Storage Managementhpssm)systemstoragehardware)ilorestssaclissaduclidebugFzcapture debug data)defaultdescc                    SnS/n/ SQnU R                  U Vs/ s H	  oA SU 3PM     sn5        [        R                  " S5      nUS-   nU R                  U5      n/ nUS   S:X  aM  US	   R	                  5        V	V
s/ s H-  n	UR                  U	5      o(       d  M  U
R                  S
5      PM/     nn	n
US-   nU R                  U VVs/ s H  nU  H  nU U SU 3PM     M     snn5        U R                  5       nU R                  SU S3SS9  U R                  S5      (       a  U R                  U5        g g s  snf s  sn
n	f s  snnf )Nr   zctrl all show status)zarray all show detailzld all showzld all show detailzpd all showzpd all show detailzshow detail z#^HP[E] (.*) in Slot ([0123456789]+)z ctrl all show config detailstatusr   output   z ctrl slot=zssaducli -v -adu -f z/adu-log.zipzssaducli_-v_-adu.log)suggest_filenamer   )
add_cmd_outputrecompilecollect_cmd_output
splitlinessearchgroupget_cmd_output_path
get_optiondo_debug)selfcmdsubcmdsslot_subcmdssubcmdpatternconfig_detail_cmdconfig_detail
ctrl_slotslinemssacli_ctrl_slot_cmdslotslot_subcmdlogpaths                  :/usr/lib/python3/dist-packages/sos/report/plugins/hpssm.pysetupHpssm.setup   s   "

 	-45W6uAfXW5	
 **BC"@@//0AB
"a'&3H&=&H&H&J@&Jd$+NN4$8aQ %!''!*&J  @  #]2#.# , %%dV1[M: , ;#.	
 **,"7)<83 	 	

 ??7##MM'" $3 6@
.s   D;=E E 	E
c                 ,    U R                  SU 3USS9  g)zCollect debug logs z3ilorest serverlogs --selectlog=AHS --directorypath=zilorest.log)runatr   N)r   )r#   r1   s     r2   r"   Hpssm.do_debugI   s$    A'KM 	 	
     N)__name__
__module____qualname____firstlineno____doc__
short_descplugin_nameprofilespackagesr   option_listr3   r"   __static_attributes__r9   r8   r2   r   r      s>     /JK1H1H 	'5/CDK(#T
r8   r   )r   sos.report.pluginsr   r   r   r   r9   r8   r2   <module>rF      s!    
 C CA
F% A
r8   