File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/navicli.cpython-36.opt-1.pyc
3
-�_g� � @ s6 d dl mZmZmZ d dlmZ G dd� dee�ZdS )� )�Plugin�RedHatPlugin� PluginOpt)�
is_executablec @ sJ e Zd ZdZdZdZeddedd�gZd d
� Z dd� Z
d
d� Zdd� ZdS )�NaviclizEMC Navicli�navicli�storage�hardware�ipaddrs� z-space-delimited list of CLARiiON IP addresses)�defaultZval_typeZdescc C s t d�S )Nr )r )�self� r �/usr/lib/python3.6/navicli.py�
check_enabled s zNavicli.check_enabledc C s | j dddddg� 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_spec)r
r r r �get_navicli_config s zNavicli.get_navicli_configc C s� | 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
� dS )z^ EMC Navisphere Host Agent NAVICLI specific
information - CLARiiON - commands
znavicli -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_addressr r r �get_navicli_sp_info) s
zNavicli.get_navicli_sp_infoc C sL | j � x>t| jd�j� �D ](}| jd|� d��d dkr| j|� qW d S )Nr
znavicli -h z
getsptimeZstatusr )r �setZ
get_option�splitZexec_cmdr )r
Zaddrr r r �setup>