a >h @s6ddlmZmZmZddlmZGdddeeZdS))Plugin RedHatPlugin PluginOpt is_executablec@sJeZdZdZdZdZeddeddgZdd Z d d Z d d Z ddZ dS)Navicliz EMC Naviclinavicli)ZstorageZhardwareipaddrsz-space-delimited list of CLARiiON IP addresses)defaultZval_typeZdesccCstdS)Nrrselfr>/usr/lib/python3.9/site-packages/sos/report/plugins/navicli.py check_enabledszNavicli.check_enabledcCs|gddS)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 rrrget_navicli_configszNavicli.get_navicli_configcCs|d|dd|dd|dd|dd|dd|dd|dd|d d|d d|d d|d d|d d|dg dS)z^ EMC Navisphere Host Agent NAVICLI specific information - CLARiiON - commands navicli -h z getallz getsptime -spaz getsptime -spbz getlogz getdiskz getcachez getlunz1 getlun -rg -type -default -owner -crus -capacityz lunmapinfoz getcrusz port -list -allz storagegroup -listz spportspeed -getN)Zadd_cmd_output)r Z sp_addressrrrget_navicli_sp_info)s             zNavicli.get_navicli_sp_infocCsH|t|dD](}|d|dddkr||qdS)Nr rz getsptimestatusr)rsetZ get_optionsplitZexec_cmdr)r addrrrrsetup>sz Navicli.setupN) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesrstrZ option_listrrrrrrrrrs rN)Zsos.report.pluginsrrrZ sos.utilitiesrrrrrr s