AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

���b��@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

Anon7 - 2022
AnonSec Team