HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/python3.9/site-packages/sos/report/plugins/__pycache__/navicli.cpython-39.pyc
a

^��c�	�@s6ddlmZmZmZddlmZGdd�dee�ZdS)�)�Plugin�RedHatPlugin�	PluginOpt��
is_executablec@sJeZdZdZdZdZeddedd�gZdd	�Z	d
d�Z
dd
�Zdd�ZdS)�NaviclizEMC Navicli�navicli)ZstorageZhardware�ipaddrs�z-space-delimited list of CLARiiON IP addresses)�defaultZval_typeZdesccCstd�S)Nrr��self�r�>/usr/lib/python3.9/site-packages/sos/report/plugins/navicli.py�
check_enabledszNavicli.check_enabledcCs|�gd��dS)zH EMC Navisphere Host Agent NAVICLI specific information - files
        )z/etc/Navisphere/agent.configz/etc/Navisphere/Navimon.cfgz/etc/Navisphere/Quietmode.cfgz/etc/Navisphere/messages/[a-z]*z/etc/Navisphere/log/[a-z]*N)Z
add_copy_specrrrr�get_navicli_configszNavicli.get_navicli_configcCs\|�d|d|d|d|d|d|d|d|d	|d
|d|d|d
|g
�dS)z^ EMC Navisphere Host Agent NAVICLI specific
        information - CLARiiON - commands
        znavicli -h %s getallznavicli -h %s getsptime -spaznavicli -h %s getsptime -spbznavicli -h %s getlogznavicli -h %s getdiskznavicli -h %s getcacheznavicli -h %s getlunz>navicli -h %s getlun -rg -type -default -owner -crus -capacityznavicli -h %s lunmapinfoznavicli -h %s getcrusznavicli -h %s port -list -allz navicli -h %s storagegroup -listznavicli -h %s spportspeed -getN)Zadd_cmd_output)r
Z
SP_addressrrr�get_navicli_SP_info)s"��zNavicli.get_navicli_SP_infocCsD|��t|�d����D]$}|�d|�ddkr|�|�qdS)Nr	znavicli -h %s getsptime�statusr)r�setZ
get_option�splitZexec_cmdr)r
Ziprrr�setup>sz
Navicli.setupN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr�strZoption_listrrrrrrrrrs��rN)Zsos.report.pluginsrrrZ
sos.utilitiesrrrrrr�<module>s