Ë
    i©¹dË
  ã                   ó8   — d dl mZmZmZ d dlZ G d„ dee«      Zy)é    )ÚPluginÚIndependentPluginÚ	PluginOptNc                   óD   — e Zd ZdZdZdZdZdZ eddd¬	«      gZ	d
„ Z
d„ Zy)ÚHpssmaG  
    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                 ól  — d}dg}g d¢}| j                  |D �cg c]	  }|›d|›�‘Œ c}«       t        j                  d«      }|dz   }| j                  |«      }g }|d   dk(  rD|d	   j	                  «       D �	�
cg c]&  }	|j                  |	«      }
|
r|
j                  d
«      ‘Œ( }}	}
|dz   }| j                  |D ��cg c]  }|D ]  }|›|›d|›�‘Œ Œ c}}«       | j                  «       }| j                  d|z  d¬«       | j                  d«      r| j                  |«       y y c c}w c c}
}	w c c}}w )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.*Smart Array (.*) in Slot ([0123456789])z ctrl all show config detailÚstatusr   Úoutputé   z ctrl slot=z"ssaducli -v -adu -f %s/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ÚsetupzHpssm.setup   su  € Øˆà"ð
ˆò
ˆð 	×ÑØ3:Ö;¨š™VÒ$Ò;ô	
ô —*‘*ÐKÓLˆØÐ"@Ñ@ÐØ×/Ñ/Ð0AÓBˆØˆ
Ø˜Ñ" aÒ'à&3°HÑ&=×&HÑ&HÓ&J÷@Ø"Ø$+§N¡N°4Ó$8˜a¹Qð Ÿ'™' !�*ð @ˆJñ @ð  # ]Ñ2ÐØ×Ñð $÷.ð
 Ø ,ò.ð ñ %ÚÙòð .ð ó .ô	
ð ×*Ñ*Ó,ˆà×ÑØ0°7Ñ:Ø3ð 	ô 	
ð
 �?‰?˜7Ô#Ø�M‰M˜'Õ"ð $ùò; <ùó@ùó
.s   ™D%Á9+D*Â<D0
c                 ó2   — | j                  d|z  |d¬«       y )Nz5ilorest serverlogs --selectlog=AHS --directorypath=%szilorest.log)Úrunatr   )r   )r"   r0   s     r1   r!   zHpssm.do_debugM   s"   € Ø×ÑØCÀgÑMØ¨Mð 	õ 	
ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
short_descÚplugin_nameÚprofilesÚpackagesr   Úoption_listr2   r!   © r5   r1   r   r      s>   „ ñð /€Jà€KØ1€HØ1€Hñ 	�' 5Ð/CÔDð€Kò,#ó\
r5   r   )Úsos.report.pluginsr   r   r   r   r   r?   r5   r1   ú<module>rA      s"   ð÷ DÑ CÛ 	ôD
ˆFÐ%õ D
r5   