<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff><SPAN class=515494808-09112008>Hi
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN
class=515494808-09112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN class=515494808-09112008>I need to
create log files (data) mining tool.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN class=515494808-09112008>Are there any
Python classes/modules/functions that are usually used in these cases, apart
from "playing" with regular expressions ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN
class=515494808-09112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN class=515494808-09112008>The logs
comprise of lines like so:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><FONT face="Courier New" size=1>Jul 31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x8:fcs:FcsGetVpdListCompletion[669] FCS Get VPD List: lport
3, rport 10c00, LunIdx 1 Unknown Cmpl [ 0 0 88 ]<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x8:fcs:FcsGetVpdListCompletion[672] Data:
88888888 88888888 88888888 88888888 88888888 88888888 88888888 88888888<BR>Jul
31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x8:fcs:FcsGetVpdListCompletion[669] FCS Get VPD List: lport
1, rport 10400, LunIdx 1 Unknown Cmpl [ 0 0 88 ]<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x8:fcs:FcsGetVpdListCompletion[672] Data:
88888888 88888888 88888888 88888888 88888888 88888888 88888888 88888888<BR>Jul
31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507] Client:
fps event: RportStChg lport: 1 rport: 45a5abc8<BR>Jul 31
09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507] Client: fcpi
event: RportStChg lport: 1 rport: 45a5abc8<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507]
Client: css event: RportStChg lport: 1 rport:
45a5abc8<BR>Jul 31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507] Client: fcpt
event: RportStChg lport: 1 rport: 45a5abc8<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x8:fcs:FcsGetVpdListCompletion[669] FCS Get
VPD List: lport 1, rport 10d00, LunIdx 1 Unknown Cmpl [ 0 0 88
]<BR>Jul 31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x8:fcs:FcsGetVpdListCompletion[672] Data: 88888888 88888888
88888888 88888888 88888888 88888888 88888888 88888888<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507]
Client: fps event: RportStChg lport: 1 rport:
45a5a488<BR>Jul 31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507] Client: fcpi
event: RportStChg lport: 1 rport: 45a5a488<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507]
Client: css event: RportStChg lport: 1 rport:
45a5a488<BR>Jul 31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x10:fcs:FcsCallDiscoveryClientCallback[507] Client: fcpt
event: RportStChg lport: 1 rport: 45a5a488<BR>Jul 31 09:53:13
iSW-00-091 kernel: T3=0x3a52b1e:3:0x10:fcs:dscvr_dpc[471] Call Client [fps ]:
event RportStChg, rport: 22001111550002bf<BR>Jul 31 09:53:13 iSW-00-091
kernel: T3=0x3a52b1e:3:0x10:fcs:dscvr_dpc[471] Call Client [fcpi]: event
RportStChg, rport: 22001111550002bf<BR>Jul 31 09:53:13 iSW-00-091 kernel:
T3=0x3a52b1e:3:0x0:fcpi:fcpi_handle_rport_event[1074] HBT:1/0/2. lport:01/010900
rpevt:RportStChg rport:22001111550002bf/010400 type:7 lucnt:1</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV><SPAN class=515494808-09112008><FONT face=Arial color=#0000ff>And I need to
be able to zero in on lines like:</FONT></SPAN></DIV>
<DIV><SPAN class=515494808-09112008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=515494808-09112008><FONT face="Courier New" size=1>Jul 31
09:56:13 ssp8400 kernel: Dump for [IB_FCP SEST]
xxx=0x1592<BR></FONT></SPAN></DIV>
<DIV><SPAN class=515494808-09112008><FONT face=Arial color=#0000ff>And then go
forward/backwards in the log and get data related to the error
message.</FONT></SPAN></DIV>
<DIV><SPAN class=515494808-09112008><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=515494808-09112008><FONT face=Arial
color=#0000ff>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=515494808-09112008><FONT face=Arial
color=#0000ff>Ron.</FONT></SPAN></DIV></BODY></HTML>