Current File : //lib/python2.7/site-packages/sos/plugins/navicli.pyo
�
u��ec@sSddlmZmZddlmZddlmZdeefd��YZdS(i����(tPlugintRedHatPlugin(t
is_executable(tinputtNaviclicBs>eZdZdZdZd�Zd�Zd�Zd�ZRS(	s EMC Navicli
    tnaviclitstoragethardwarecCs
td�S(NR(R(tself((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pyt
check_enabledscCs |jdddddg�dS(sH EMC Navisphere Host Agent NAVICLI specific information - files
        s/etc/Navisphere/agent.configs/etc/Navisphere/Navimon.cfgs/etc/Navisphere/Quietmode.cfgs/etc/Navisphere/messages/[a-z]*s/etc/Navisphere/log/[a-z]*N(t
add_copy_spec(R((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pytget_navicli_configscCsl|jd|d|d|d|d|d|d|d|d	|d
|d|d|d
|g
�dS(s^ EMC Navisphere Host Agent NAVICLI specific
        information - CLARiiON - commands
        snavicli -h %s getallsnavicli -h %s getsptime -spasnavicli -h %s getsptime -spbsnavicli -h %s getlogsnavicli -h %s getdisksnavicli -h %s getcachesnavicli -h %s getluns>navicli -h %s getlun -rg -type -default -owner -crus -capacitysnavicli -h %s lunmapinfosnavicli -h %s getcrussnavicli -h %s port -list -alls navicli -h %s storagegroup -listsnavicli -h %s spportspeed -getN(tadd_cmd_output(Rt
SP_address((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pytget_navicli_SP_info)scCs|j�g}d}x�|dkr�ytd�}Wntk
rIdSX|jd|f�drt|j|�q|dkr�d|GHn|dkrd}qqW|j�x3|D]+}|j|�dkr�|j|�q�q�Wx3|D]+}|dkr�d	|GH|j|�q�q�WdS(
Ntstay_ins+CLARiiON SP IP Address or [Enter] to exit: snavicli -h %s getsptimetstatusts@The IP address you entered, %s, is not to an active CLARiiON SP.tget_outis( Gathering NAVICLI information for %s...(	RRt	Exceptiontexec_cmdtappendtsorttcounttremoveR(RtCLARiiON_IP_address_listtCLARiiON_IP_looptansR
((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pytsetup>s0

	



(RR(	t__name__t
__module__t__doc__tplugin_nametprofilesR	RRR(((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pyRs			N(tsos.pluginsRRt
sos.utilitiesRt	six.movesRR(((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pyt<module>s