Sindbad~EG File Manager
3
�f� � @ 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
| 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_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>