HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/seagate_ses.cpython-36.pyc
3

-�_gg�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s,eZdZdZdZdZdZdZd
Zd	d
�Z	dS)�
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�system�storage�hardware�fwdownloader_megaraidcs�|jd�}g�|ddkr0|djd�dd���fdd�tt���D�}d	�d
ddd
dddddddddddddg}x@|D]8�|j��fdd�|D��|j��fdd�|D��qzWdS)Nzfwdownloader -sesZstatusr�outputz
SES Device�csg|]}d�|kr|�qS)zVendor ID: SEAGATE�)�.0�i)�op_lstr�!/usr/lib/python3.6/seagate_ses.py�
<listcomp>#sz$SeagateSES.setup.<locals>.<listcomp>zgetstatus -dZ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�subcmd)�cmd�devidrrr>scs g|]}��d��d|���qS)rz -cli r)rr)rrrrrBs)Zcollect_cmd_output�split�range�lenZadd_cmd_output)�self�resZdevicesZsubcmdsr)rrrr�setups8

zSeagateSES.setupN)rrr)r)
�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZplugin_timeoutZprofilesZpackagesrrrrrrsrN)Zsos.report.pluginsrrrrrrr�<module>	s