|Microsoft Operations Manager|
The EventNumberproperty gets the Windows NT and Windows 2000 event ID of the event.
The EventNumberproperty is read-only when used with an event provided to the script by MOM. The property is read/write when used with a new event created with the ScriptContext.CreateEventmethod.
The following example shows how to create a new event and set the EventNumberproperty to 1349.
[VBScript] Const EVENT_TYPE_SUCCESS = 0 Const EVENT_TYPE_ERROR = 1 Const EVENT_TYPE_WARNING = 2 Const EVENT_TYPE_INFORMATION = 4 Const EVENT_TYPE_AUDITSUCCESS = 8 Const EVENT_TYPE_AUDITFAILURE = 16 Function MakeEvent() Dim objEvent Set objEvent = ScriptContext.CreateEvent() objEvent.EventSource = "TestScript" objEvent.EventNumber = 1349 objEvent.EventType = EVENT_TYPE_WARNING objEvent.LoggingDomain = "DOMAIN1" objEvent.SourceDomain = "DOMAIN1" Set MakeEvent = objEvent End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to firstname.lastname@example.org.