Provides access to the name of the domain to which the computer providing the performance data belongs.
ScriptContext.PerfData.SourceDomain ScriptContext.CreatePerfData.SourceDomain
Read Only | When used with performance data provided to the script by the Microsoft Operations Manager 2000 (MOM) product. |
Read/Write | When used with new performance data created with the ScriptContext.CreatePerfData Method. |
String.
To create new performance data and set the SourceDomain property, enter:
Dim MYperfdata Dim MYevent set MYperfdata = ScriptContext.CreatePerfData set MYevent = ScriptContext.Event set MYperfdata.SourceDomain = MYevent.SourceDomain
This example sets the SourceDomain property based on the event that caused the MOM product to invoke the script. The SourceDomain property is set to the name of the computer that generated the event.