![]() |
The following step describes how to create an event filter.
1. Create an instance of AMT_PETFilterSetting with the following mandatory properties:
Property | Value |
Enter any value (the value is overridden) | |
Enter any value (the value is overridden) | |
Specifies whether to enable the filter. Valid values: • True (1) • False (0) | |
Specifies whether this filter is an OEM pre-configured filter. (The filter entry has been configured by the system integrator and cannot be altered by software, updated, enabled, disabled, or removed) Valid values: • True (1) • False (0) | |
Specifies whether to log the events to the Event Log. Valid values: • True (1) • False (0) | |
The SMBus address of the physical sensor device that implements the logical sensor. To select all addresses, enter 255. | |
The value of the alert's Event Sensor Type field. To select all sensor types, enter 255. | |
Enter the value from the event definition (see Event Types Summary) or from the table of events (see the Event Type column in the WSEventAndPetTableReplacement.xls file). For example, to select OEM Discrete events, enter 113. | |
The value of the alert's Event Offset field. To select all values, enter 15. | |
The value of the alert's Event Source Type field. To select all values, enter 255. | |
The value of the alert's Event Severity field. To select all values, enter 0. | |
The value of the alert's Sensor Number field. To select all values, enter 255. | |
The value of the alert's Entity field. To select all values, enter 0. | |
The value of the alert's Entity Instance field. To select all values, enter 0. | |
The ID number of the event filter. To send events caught by this filter to a subscriber, enter this number in the PolicyID property of the AMT_SNMPEventSubscriber representing the subscriber. (See Create an Event Filter Subscriber.) | |
Specifies whether to send PETs for these events. Valid values: • True (1) • False (0) |
|
For details of the alert event fields values, see the following: • The Alert Standard Format (ASF) Specification DSP0136 |
Click here for a snippet demonstrating this step
You can execute this snippet by inserting it into the execution template found here.
$petFilterSettingInstance =$wsmanConnectionObject.NewInstance("AMT_PETFilterSetting")
$petFilterSettingInstance.SetProperty("ElementName","N/A")
$petFilterSettingInstance.SetProperty("InstanceID","N/A")
$petFilterSettingInstance.SetProperty("EnableFilter","true")
$petFilterSettingInstance.SetProperty("OEMFilter","false")
$petFilterSettingInstance.SetProperty("LogOnEvent","true")
$petFilterSettingInstance.SetProperty("DeviceAddress","255")
$petFilterSettingInstance.SetProperty("EventSensorType","255")
$petFilterSettingInstance.SetProperty("EventType","113")
$petFilterSettingInstance.SetProperty("EventOffset","15")
$petFilterSettingInstance.SetProperty("EventSourceType","255")
$petFilterSettingInstance.SetProperty("EventSeverity","0")
$petFilterSettingInstance.SetProperty("SensorNumber","255")
$petFilterSettingInstance.SetProperty("Entity","0")
$petFilterSettingInstance.SetProperty("EntityInstance","0")
$petFilterSettingInstance.SetProperty("PolicyID","40")
$petFilterSettingInstance.SetProperty("SendAlert","true")
$petFilterSettingRef =$petFilterSettingInstance.Create()
Instance Diagram
Not applicable
Classes Used in This Flow
SDK Sample
If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.
See Also: |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |