Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/seagate_ses.cpython-36.pyc

3

�fw�@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 2csg|]}d��|f�qS)z
%s %d -CLI %sr)r�subcmd)�cmd�devidrrr>scsg|]}d��|f�qS)z
%s %d -cli %sr)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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists