Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/shmcli.cpython-310.pyc
o

i��d��@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�	PluginOptc@s>eZdZdZdZdZdZdZefZe	dddd	�gZ
d
d�ZdS)
�SHMcliashmcli pulls hardware information from PowerVault/Dell
    Storage JBOD's attached to server.
    It provides information of the adapters, emms, drives,
    enclosures, fans, power supplies and the sensory data of
    temp, voltage, and current sensors.
    zDell Server Hardware Manager�shmcli)�system�storage�hardwarezC/opt/dell/ServerHardwareManager/ServerHardwareManagerCLI/bin/shmcli�debugFzcapture support debug data)�default�desccs|j}gd�}|D]}|jd||fd|d�q	g}|�d�}|ddkrJ|d��D]}|��}t|�d	krI|d	��d
krI|�|��d�q,tt	|��}gd�}|j
d
|dd�}|ddkr�|d��d	d�D]Y}|���t�fdd�|D��rƈd}�d}	|D]}d||||	f}
|
�|d�}|j|
|d�q�|�
d�r�|jdd�}d|||	f}
|
�|d�}d|}|j|
||dd�qm|j
d|dd�}|ddk�r|d��D]+}|��}t|�dk�r|ddv�rd ||df}
|
�|d�}|j|
|d�q�dSdS)!N)z
list adapterszlist physical enclosureszlist failed drivesz%s %sz	shmcli_%s)�suggest_filenamez	lsscsi -g�statusr�output��DELL�)
z	list emmszlist drawerszlist emm slotszlist drive slotsz	list fanszlist temp sensorszlist voltage sensorszlist current sensorszlist power supplieszinfo enclosurez%s list enclosures�shmcli_list_enclosures���c3s�|]}|�vVqdS)N�)�.0�m��_liner�;/usr/lib/python3/dist-packages/sos/report/plugins/shmcli.py�	<genexpr>Ms�zSHMcli.setup.<locals>.<genexpr>���z%s %s -a=%s -enc=%srr
F)�makez%s getdebugcli -a=%s -enc=%sz -outputdir=%si,)r
�timeoutz%s list drives�shmcli_list_drives�)�WWNz---z%s info drive -d=%s)�
shmcli_bin�add_cmd_output�exec_cmd�
splitlines�split�len�upper�append�list�set�collect_cmd_output�any�replace�
get_option�get_cmd_output_path)�self�cmd�subcmds�subcmd�models�result�line�words�adapt_index�	enc_index�_cmd�_fname�logpath�_dcmd�_dname�_odirrrr�setup s|
�
�
�
�
����
���zSHMcli.setupN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profilesr"�filesr�option_listrArrrrrs�rN)�sos.report.pluginsrrrrrrrr�<module>s

Spamworldpro Mini