Changeset 149 for trunk

Show
Ignore:
Timestamp:
12/29/10 15:12:55 (12 years ago)
Author:
andreu
Message:

Correction of timer 360 -> 300 and new message at startup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tool/renetcolRC.py

    r146 r149  
    5353myInputControlThread = None 
    5454printValue =      [ 0,1,1,0,1,0,0,1,1,0, # 0 to 9 
    55                     0,1,1,0,0,0,0,0,0,0, # 10... 
     55                    0,1,1,0,0,0,1,1,0,0, # 10... 
    5656                    1,0,0,0,0,0,0,1,1,0, # 
    5757                    0,0,0,0,0,0,0,0,0,0, # 
    5858                    0,0,0,0,0,0,1,1,0,0, # 
    5959                    0,0,0,0,0,0,0,0,0,0, # 
    60                     0,0,0,0,0,0,0,0,0,0, # 
     60                    0,0,0,0,0,0,0,0,0,1, # 
    6161                    1,1,1,1,1,1,1,1,1,1, # 
    6262                    0,0,0,0,0,0,0,0,0,0,  # 80 to 89 
     
    9999fieldsName =  [ "","IN_BYT","IN_PKTS","","PROT","TOS","TCP_FL","S_PORT","IPv4@S","S_MASK", 
    100100                "InSNMP","D_PORT","IPv4@D","D_MASK","OutSNMP","NextHop","S_AS","D_AS","","", 
    101                 "","Time","","","","","","IPv6@S","IPv6@D","IPv6_S_MASK", 
     101                "TTL","TTL","","","","","","IPv6@S","IPv6@D","IPv6_S_MASK", 
    102102                "IPv6_D_MASK","","","","","","","","","", 
    103103                "","","","","","","M_T_L_T","M_T_L_@","","", 
     
    494494    old_record_file.close() 
    495495    now2 = time.time() 
    496     reste = 360-(operator.mod(now2,360)) 
    497     myTimer = threading.Timer(360.0,timer_action) 
     496    reste = 300-(operator.mod(now2,300)) 
     497    myTimer = threading.Timer(300.0,timer_action) 
    498498    myTimer.start() 
    499499 
     
    507507            print "STARTING RECORD ROTATION" 
    508508            now2 = time.time() 
    509             reste = 360-(operator.mod(now2,360)) 
    510             myTimer = threading.Timer(360,timer_action) 
     509            reste = 300-(operator.mod(now2,300)) 
     510            myTimer = threading.Timer(300,timer_action) 
    511511            myTimer.start() 
    512512        if widget.get_active() == 0: 
     
    529529         
    530530    print "---------------------------------------------------------------" 
    531     print "In this version, you can only apply rules on the collector based on the following fields:" 
    532     print "IN_BYTES: 1," 
    533     print "L4_PROT: 4," 
    534     print "L4_SRC_PORT: 7," 
    535     print "IPV4_SRC_ADDR: 8," 
    536     print "INPUT_SNMP: 10," 
    537     print "L4_DST_PORT: 11," 
    538     print "BPG_IPV6_NEXT_HOP: 63," 
    539     print "IP_PROTOCOL_VERSION: 60, please note that the IPv4 templates don't have this field" 
    540     print "ROUTER_SRC_ADDR: 0, !!! it's not a real number for a field, but it's a great function" 
     531    print " renetcolRC is part of renetcol " 
     532    print " this module is a remote client which can recieved flow \ " 
     533    print " information from renetcol. " 
    541534    print "----------------------------------------------------------------"