;ò
FîAc           @   s„   d  k  Td  k Td  k Td k Z e e e d „ Z d „  Z d „  Z	 e
 d j o1 d Z d Z d Z d Z e	 e e e e ƒ Z n d S(	   (   s   *Nc         C   sœ   d  k  } t d |  ƒ t i ƒ  } y | i |  | | ƒ } d } Wn d } t
 } n Xt d t | ƒ d t t i ƒ  | ƒ d d t ƒ| | f Sd  S(   Ns   Connecting PacketLogig-server @i    i   s   ConnectError=s    and it took s    sec.s   host(   s   packetlogics   debugMsgs   addresss   times   timers   PLDBs   users   passwords   plds   errors   Nones   strs	   debugHost(   s   addresss   users   passwords   errors   timers   packetlogics   pld(    (    s   C:\Python\PL\PL2_statistics.pys   PL2_PLDB_connect	   s    	

6c         C   st   d  k  } t d | d | d t | ƒ ƒ y |  i | | | ƒ } d } Wn t d ƒ d } g  } n X| Sd  S(   Ns1   Fetching data (Stat_node_list) from PacketLogic: s    - s    netObject=i    sQ   ******************* Error reading PacketLogic Stat_node_list ********************i   (
   s   times   debugMsgs   stat_start_times   stat_end_times   strs	   netObjects   plds   Stat_node_lists   nodes   error(   s   plds   stat_start_times   stat_end_times	   netObjects   nodes   errors   time(    (    s   C:\Python\PL\PL2_statistics.pys   PL2_Stat_node_list   s    	$


c   	      C   s  t  d |  ƒ t ƒ  \ } } | o g  Sn | i ƒ  } t  d t | ƒ ƒ t  d | d | d t |  ƒ d t | ƒ ƒ | d j o t  d ƒ g  Sn t i ƒ  } y | i | | |  | ƒ } Wn g  } n Xt  d	 t t i ƒ  | ƒ d
 d t ƒ| Sd  S(   Ns   netObject =s   Status pld.begin_stat = s2   Fetching data (graph_list_time) from PacketLogic: s    - s    netObject =s    measurepoints=i    s9   *************** Error: measurepoints=0 ******************s   Reading data from PL2 took s    sec.s   host(   s   debugMsgs	   netObjects   PL2_PLDB_connects   plds   errors
   begin_stats   z1s   strs   stat_start_times   stat_end_times   measurepointss   times   timers   Stat_graph_lists
   graph_lists	   debugHost(	   s	   netObjects   stat_start_times   stat_end_times   measurepointss   timers   plds   errors   z1s
   graph_list(    (    s   C:\Python\PL\PL2_statistics.pys   PL2_hostStatistics-   s"    2

(s   __main__s   /NetObjects/ZZ/81.8.172.133s
   2004-06-26i   (   s   PL_debugs   PL1_inis   PL2_inis   times   PL2_address1s   PL2_users   PL2_passwords   PL2_PLDB_connects   PL2_Stat_node_lists   PL2_hostStatisticss   __name__s	   netObjects   stat_start_times   stat_end_times   measurepointss
   graph_list(	   s   stat_end_times   PL2_Stat_node_lists   PL2_PLDB_connects   measurepointss	   netObjects   times   PL2_hostStatisticss   stat_start_times
   graph_list(    (    s   C:\Python\PL\PL2_statistics.pys   ?   s   			 