HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/seagate_ses.cpython-39.pyc
a

\��hg�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdZdZdd�Z	d	S)
�
SeagateSESaThe seagate_ses plugin collect information about all
    connected seagate storage shelves.
    It captures Controller status information, ID, controllers' VPD
    information, Environmental zone, Drive, PHY details, Cooling Module
    and PSU information.
    zSeagate SES statusZseagate_sesiX)�systemZstorageZhardware)Zfwdownloader_megaraidcs�|�d�}g�|ddkr0|d�d�dd���fdd�tt���D�}d	�gd
�}|D]8�|���fdd�|D��|���fdd�|D��qZdS)
Nzfwdownloader -ses�statusr�outputz
SES Device�csg|]}d�|vr|�qS)zVendor ID: SEAGATE�)�.0�i)�op_lstr	�B/usr/lib/python3.9/site-packages/sos/report/plugins/seagate_ses.py�
<listcomp>"s�z$SeagateSES.setup.<locals>.<listcomp>zgetstatus -d)Zddump_canmgrZddump_cblmgrZddump_drvmgrZ
dumpdrivesZddump_phycountersZddump_pwrmgrZ
ddump_envctrlZenvctrl_fanZenvctrl_zoneZfwstatusZ
getboardidZgetvpdZ
report_faultsZverZlogdumpZphydumpzses_reportpage 2cs g|]}��d��d|���qS)� z -CLI r	�r
Zsubcmd��cmd�devidr	r
r=scs g|]}��d��d|���qS)rz -cli r	rrr	r
rAs)Zcollect_cmd_output�split�range�lenZadd_cmd_output)�self�resZdevicesZsubcmdsr	)rrrr
�setups 


���zSeagateSES.setupN)
�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZplugin_timeoutZprofilesZpackagesrr	r	r	r
rsrN)Zsos.report.pluginsrrrr	r	r	r
�<module>	s