Microsoft Operations Manager

GetCounterString Method

The GetCounterStringmethod gets the performance counter string for the specified MTA log type.

[VBScript]
MTALogAnalyzer.GetCounterString(ID Variant)

Parameters

ID

MTA log type numeric identifier. Valid values include the following:

Return Value

Variant

Examples

The following example shows how to get the performance counter string for SMTP Out Senders.

[VBScript] 
Const PI_MTA_SMTP_OUT_SENDER = 1001
Dim objMTALogAnalyzer, strCounterString

Set objMTALogAnalyzer = CreateObject("McExchg.MTALogAnalyzer")

strCounterString =
objMTALogAnalyzer.GetCounterString(PI_MTA_SMTP_OUT_SENDER)

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.