
    -_g	                     <    d dl mZmZmZ d dlmZ  G d dee      Zy)    )PluginRedHatPlugin	PluginOptis_executablec                   J    e Zd ZdZdZdZ edded      gZd Z	d	 Z
d
 Zd Zy)NaviclizEMC Naviclinavicli)storagehardwareipaddrs z-space-delimited list of CLARiiON IP addresses)defaultval_typedescc                     t        d      S )Nr
   r   selfs    </usr/lib/python3/dist-packages/sos/report/plugins/navicli.pycheck_enabledzNavicli.check_enabled   s    Y''    c                 *    | j                  g d       y)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)add_copy_specr   s    r   get_navicli_configzNavicli.get_navicli_config   s     	 
 	r   c                     | j                  d| dd| dd| dd| dd| dd| dd| dd| d	d| d
d| dd| dd| dd| dg       y)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)add_cmd_output)r   
sp_addresss     r   get_navicli_sp_infozNavicli.get_navicli_sp_info)   s     	*W-*_5*_5*W-*X.*Y/*W-* & *[1*X.*%56*%89*%67
 	r   c                     | j                          t        | j                  d      j                               D ]/  }| j	                  d| d      d   dk(  s| j                  |       1 y )Nr   r   z
 getsptimestatusr   )r   set
get_optionsplitexec_cmdr   )r   addrs     r   setupzNavicli.setup>   sa    !	288:; 	/D}}{4&
;<XF!K((.	/r   N)__name__
__module____qualname__
short_descplugin_nameprofilesr   stroption_listr   r   r   r'    r   r   r	   r	      s>    JK&H)R#F	HK
(	*/r   r	   N)sos.report.pluginsr   r   r   sos.utilitiesr   r	   r0   r   r   <module>r3      s    ? > '2/fl 2/r   