NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/smclient.cpython-36.pyc
3

~�g��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�	PluginOptc@s@eZdZdZdZdZdZdZedd	d
d�gZ	dd
�Z
dd�ZdS)�SMclizSANtricity storage deviceZsmclienti��system�storage�hardware�SMclient�debugFzcapture support debug data)�defaultZdesccs�dddg}g}|jd�}|ddkrTx.|dj�D]}d|kr2|j|j�d�q2Wx$|D]�|j�fd	d
�|D��qZW|jd�r�|j|�dS)Nzshow storagearray;zshow storagearray connections;zshow storagearray healthstatus;zSMcli -d -SZstatusr�outputZ	localhostcsg|]}d��d|�d��qS)zSMcli localhost -n z -c '�'�)�.0�subcmd)�ssnamer�/usr/lib/python3.6/smclient.py�
<listcomp>,szSMcli.setup.<locals>.<listcomp>r
)Zcollect_cmd_output�
splitlines�append�split�add_cmd_outputZ
get_option�do_debug)�selfZsubcmds�ssnames�result�liner)rr�setups



zSMcli.setupc
CsN|jdd�}d}d}x4|D],}|j|�d|�d|�d|�d�|d	d
�qWdS)z Collect debug logs F)ZmakezSMcli localhost -nz#save storageArray supportData file=� z -c 'z	"support-z";'i�)ZrunatZtimeoutN)Zget_cmd_output_pathr)rrZlogpath�cmdrrrrrr3s
zSMcli.do_debugN)rrr)r	)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZplugin_timeoutZprofilesZpackagesrZoption_listrrrrrrrsrN)Zsos.report.pluginsrrrrrrrr�<module>	s

NineSec Team - 2022