Microsoft Operations Manager |
The ObjectNameproperty gets the name of the performance object for which the performance data was collected. Examples of performance objects are processes, sections of shared memory, and physical devices.
[VBScript] PerfData.ObjectName
Read/Write
String
The ObjectNameproperty is read-only when used with performance data provided to the script by MOM. The property is read/write when used with new performance data created with the ScriptContext.CreatePerfDatamethod.
The following example shows how to access the name of the performance object of the data provided to the script by MOM.
[VBScript]
Function GetPerfCounterString(objPerfData)
Dim strComputerName, strObjectName, strCounterName,
strInstanceName
Dim strCounter
strComputerName = objPerfData.SourceComputer
strObjectName = objPerfData.ObjectName
strCounterName = objPerfData.CounterName
strInstanceName = objPerfData.InstanceName
strCounter = "\\" & strComputerName & "\" & _
strObjectName & "(" & strInstanceName
& ")\" _
& strCounterName
GetPerfCounterString = strCounter
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
PerfData Object, ScriptContext.CreatePerfData Method
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.