SourceComputer Property (Performance Data)

Provides access to the name of the computer from which the performance data was collected.

Syntax

ScriptContext.PerfData.SourceComputer
ScriptContext.CreatePerfData.SourceComputer

Access

Read Only When used with an performance data provided to the script by the Microsoft Operations Manager 2000 product.
Read/Write When used with new performance data created with the ScriptContext.CreatePerfData Method.

Return Type

String.

Example

To create new performance data and set the SourceComputer property, enter:


Dim MYperfdata
Dim MYevent
set MYperfdata = ScriptContext.CreatePerfData
set MYevent = ScriptContext.Event
set MYperfdata.SourceComputer = MYevent.SourceComputer

This example sets the SourceComputer property based on the event that caused the Microsoft Operations Manager 2000 product to invoke the script. The SourceComputer property is set to the name of the computer that generated the event.