ó 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...( R Rt 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__t plugin_nametprofilesR R RR(((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pyRs  N(t sos.pluginsRRt sos.utilitiesRt six.movesRR(((s7/usr/lib/python2.7/site-packages/sos/plugins/navicli.pyt s