Intel AMT Features > Event Manager > Use Cases > Create an Event Filter
CollapseAll image

Create an Event Filter

The following step describes how to create an event filter.

1.  Create an instance of AMT_PETFilterSetting with the following mandatory properties:

Property

Value

ElementName

Enter any value (the value is overridden)

InstanceID

Enter any value (the value is overridden)

EnableFilter

Specifies whether to enable the filter. Valid values:

     True (1)

     False (0)

OEMFilter

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)

LogOnEvent

Specifies whether to log the events to the Event Log. Valid values:

     True (1)

     False (0)

DeviceAddress

The SMBus address of the physical sensor device that implements the logical sensor.

To select all addresses, enter 255.

EventSensorType

The value of the alert's Event Sensor Type field.

To select all sensor types, enter 255.

EventType

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.

EventOffset

The value of the alert's Event Offset field.

To select all values, enter 15.

EventSourceType

The value of the alert's Event Source Type field.

To select all values, enter 255.

EventSeverity

The value of the alert's Event Severity field.

To select all values, enter 0.

SensorNumber

The value of the alert's Sensor Number field.

To select all values, enter 255.

Entity

The value of the alert's Entity field.

To select all values, enter 0.

EntityInstance

The value of the alert's Entity Instance field.

To select all values, enter 0.

PolicyID

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.)

SendAlert

Specifies whether to send PETs for these events. Valid values:

     True (1)

     False (0)

 

 Note:

For details of the alert event fields values, see the following:

   AMT Generated Events

   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:

   Event Filters

   Event Types Summary

Copyright © 2006-2022, Intel Corporation. All rights reserved.