Microsoft Operations Manager |
The Initializemethod sets the Microsoft Exchange server name where MTA logs will be analyzed and locates the MTA logs.
[VBScript]
MTALogAnalyzer.Initialize(ExchangeServer Variant, [LogDir Variant])
Variant
If the logs cannot be located, this method returns False.
The following example shows how to set the MTALogAnalyzerobject to the EXCHSERVER1 Exchange server.
[VBScript]
Dim objMTALogAnalyzer, blnOK
Set objMTALogAnalyzer = CreateObject("McExchg.MTALogAnalyzer")
blnOK = objMTALogAnalyzer.Initialize("EXCHSERVER1")
If Not(blnOK) Then
strError = objMTALogAnalyzer.GetError()
End If
Set objMTALogAnalyzer = Nothing
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.