Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/seagate_ses.cpython-38.pyc

U

���b�@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_megaraidc
s�|�d�}g�|ddkr0|d�d�dd���fdd�tt���D�}d	�d
ddd
dddddddddg
}|D]8�|���fdd�|D��|���fdd�|D��qpdS)Nzfwdownloader -sesZstatusr�outputz
SES Device�csg|]}d�|kr|�qS)zVendor ID: SEAGATE�)�.0�i)�op_lstr�@/usr/lib/python3/dist-packages/sos/report/plugins/seagate_ses.py�
<listcomp>"s�z$SeagateSES.setup.<locals>.<listcomp>zgetstatus -dZddump_canmgrZddump_cblmgrZddump_drvmgrZddump_phycountersZddump_pwrmgrZ
ddump_envctrlZenvctrl_fanZenvctrl_zoneZfwstatusZ
getboardidZgetvpdZ
report_faultsZvercsg|]}d��|f�qS)z
%s %d -CLI %sr�r	Zsubcmd��cmd�devidrrr
9scsg|]}d��|f�qS)z
%s %d -cli %srrrrrr
=s)Zcollect_cmd_output�split�range�lenZadd_cmd_output)�self�resZdevicesZsubcmdsr)rrrr�setups:


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