Changeset 149 for trunk/tool/renetcolRC.py
- Timestamp:
- 12/29/10 15:12:55 (12 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/tool/renetcolRC.py
r146 r149 53 53 myInputControlThread = None 54 54 printValue = [ 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... 56 56 1,0,0,0,0,0,0,1,1,0, # 57 57 0,0,0,0,0,0,0,0,0,0, # 58 58 0,0,0,0,0,0,1,1,0,0, # 59 59 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, # 61 61 1,1,1,1,1,1,1,1,1,1, # 62 62 0,0,0,0,0,0,0,0,0,0, # 80 to 89 … … 99 99 fieldsName = [ "","IN_BYT","IN_PKTS","","PROT","TOS","TCP_FL","S_PORT","IPv4@S","S_MASK", 100 100 "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", 102 102 "IPv6_D_MASK","","","","","","","","","", 103 103 "","","","","","","M_T_L_T","M_T_L_@","","", … … 494 494 old_record_file.close() 495 495 now2 = time.time() 496 reste = 3 60-(operator.mod(now2,360))497 myTimer = threading.Timer(3 60.0,timer_action)496 reste = 300-(operator.mod(now2,300)) 497 myTimer = threading.Timer(300.0,timer_action) 498 498 myTimer.start() 499 499 … … 507 507 print "STARTING RECORD ROTATION" 508 508 now2 = time.time() 509 reste = 3 60-(operator.mod(now2,360))510 myTimer = threading.Timer(3 60,timer_action)509 reste = 300-(operator.mod(now2,300)) 510 myTimer = threading.Timer(300,timer_action) 511 511 myTimer.start() 512 512 if widget.get_active() == 0: … … 529 529 530 530 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. " 541 534 print "----------------------------------------------------------------"