White Papers

14 No Restrictions | Filter Dialects |
3 Filtering on Subscriptions
The Subscribe message allows a client to express interest in receiving events. Filters are used to identify the
event or events a client wants to receive. The Subscription can be generic on a class of events or be specific to
particular property in the class.
3.1 Subscription Management
WS-Man specification defines a subscription-driven methodology for CIM indications. For any necessary event
in iDRAC, the console can subscribe to an event class and redirect the generated events to an event sink address
provided in the subscription request. For any subscription request, a similar SOAP request packet is returned.
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing"
xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
<s:Header>
<wsa:Action
s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</w
sa:Action>
<wsa:To s:mustUnderstand="true"> Service Transport Address </wsa:To>
<wsman:ResourceURI s:mustUnderstand="true"> Resource URI </wsman:ResourceURI>
<wsa:MessageID s:mustUnderstand="true">urn:uuid:4a8eeae1-b32c-11e3-b73a-
2cd05a84c9be</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address/>
</wsa:ReplyTo>
<wsman:SelectorSet>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Selector>
</wsman:SelectorSet>
</s:Header>
<s:Body>
<wse:Subscribe>
<wse:Delivery
Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
<wse:NotifyTo>
<wsa:Address> eventsink url </wsa:Address>
</wse:NotifyTo>
<wsman:Heartbeats> heart beat </wsman:Heartbeats>
</wse:Delivery>
<wsman:Filter Dialect="http://schemas.microsoft.com/wbem/wsman/1/WQL">SELECT
* FROM DCIM_LifecycleJobAlertIndication</wsman:Filter>
</wse:Subscribe>
</s:Body>
</s:Envelope>