Microsoft Operations Manager

Initialize Method

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])

Parameters

ExchangeServer
Name of Exchange server where MTA logs will be analyzed.
LogDir
Specifies the complete path to the MTA log files. This parameter is optional.

Return Value

Variant

Remarks

If the logs cannot be located, this method returns False.

Examples

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

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

MTALogAnalyzer Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.