Reads and summarizes the MTA log for a specified date.
obj.ProcessLogDate(Date String) where obj is an McExchg.MTALogAnalyzer object.
Date
|
Specifies date of MTA log to process, in format YYYYMMDD. |
Boolean.
To get the MTA log top 100 SMTP Out Sender log
summary results for 12/31/1999 from the EXCHSERVER1
Exchange server using the George
mailbox, enter:
Const PI_MTA_SMTP_OUT_SENDER = 1001 Set obj = CreateObject("McExchg.MTALogAnalyzer") If obj.LogonToMAPI("EXCHSERVER1", "George") Then If obj.ProcessLogDate("19991231") Then If obj.LogSummary(PI_MTA_SMTP_OUT_SENDER, varData, lngRowCount, 100) Then For lngIndex = 0 to lngRowCount - 1 strObject = varData(0, lngIndex) lngMsgCount = varData(1, lngIndex) lngMB = varData(2, lngIndex) ' Do something with summary information Next Else strError = obj.GetError() End If Else strError = obj.GetError() End If Else strError = obj.GetError() End If
This example show how to retrieve MTA log summary information for a specific date from an Exchange server.