You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article describes the Redfish Event Subscription service implemented in HPE iLO 5 with a firmware version of 1.40 or later. The implementation of this service in iLO 4 may differ slightly.
17
21
18
-
The Event Receiver program presented in this blog is an alternative to the DMTF [Redfish-Event-Listener tool](https://github.com/DMTF/Redfish-Event-Listener).
22
+
The Event Receiver program presented in this blog is an alternative to the DMTF <ahref="https://github.com/DMTF/Redfish-Event-Listener"target="_blank">Redfish-Event-Listener tool</a>.
19
23
20
24
## Traps versus event subscriptions
21
25
22
26
The Simple Network Management Protocol (SNMP) uses a "trap" mechanism to report asynchronous events generated by managed nodes toward pre-configured management consoles. All events are sent on the network and then processed by the management consoles. This approach may saturate the network and/or the management console in case of a storm of unsolicited events.
23
27
24
28
Another approach consists in filtering the events at the source, so only selected events are sent on the network toward specified event receivers (i.e. management consoles). Practically, the event receivers send a subscription request to the managed nodes containing the types of event that they are prepared to receive and process.
25
29
26
-
The Web-Based Enterprise Management (WBEM) standard uses this subscription paradigm, as well as the [DMTF Redfish standard](https://www.dmtf.org/standards/redfish). Both of them define management web services but Redfish is much simpler for a common human being to understand, prototype and implement.
30
+
The Web-Based Enterprise Management (WBEM) standard uses this subscription paradigm, as well as the <ahref="https://www.dmtf.org/standards/redfish"target="_blank">DMTF Redfish standard</a>. Both of them define management web services but Redfish is much simpler for a common human being to understand, prototype and implement.
@@ -35,7 +39,6 @@ The following example is based on a simple PHP event receiver program installed
35
39
36
40
Start to configure the Web Server and let it know the location of the `EventReceiver.php` program; the code below added in the Apache configuration file (`httpd.conf`) tells Apache to redirect requests to directory `/opt/hpe/RedFishEventService`. You may want to better secure this configuration entry to suite your security policy.
37
41
38
-
39
42
```xml
40
43
Alias /RedfishEvents** "/opt/hpe/RedfishEventService"
41
44
<Directory"/opt/hpe/RedfishEventService">
@@ -53,7 +56,6 @@ In the `/opt/hpe/RedFishEventService` directory of the Web Server, create the `E
53
56
54
57
Read the comments enclosed in `/*..*/` or following `//` to get a detailed explanation:
55
58
56
-
57
59
```php
58
60
<?php
59
61
// Version 0.9999
@@ -104,11 +106,10 @@ Once the event receiver program is in place and Apache restarted, it waits for s
104
106
105
107
The exhaustive list of possible events to subscribe to is present at: `https://<ilo-IP>/redfish/v1/EventService/`
106
108
107
-
For testing and prototyping, the subscription can be done manually using the **[POSTMAN](https://www.getpostman.com/)** API development platform , PowerShell, or curl. In a production environment, I would recommend to use `ilorest`(former `hprest`) the [iLO RESTful Interface Tool](http://hpe.com/resttool/) or an application using the [best practices to crawl and parse remote managed nodes schemas](/blog/getting-started-with-ilo-restful-api-redfish-api-conformance).
109
+
For testing and prototyping, the subscription can be done manually using the **[POSTMAN](https://www.getpostman.com/)** API development platform , PowerShell, or curl. In a production environment, I would recommend to use <ahref="https://github.com/HewlettPackard/python-redfish-utility/releases/latest"target="_blank">iLOrest</a> (former `hprest`) the HPE iLO RESTful Interface Tool or an application using the <ahref="https://developer.hpe.com/blog/getting-started-with-ilo-restful-api-redfish-api-conformance/"target="_blank">best practices to crawl and parse remote managed nodes schemas</a>.
108
110
109
111
Before posting the following payload toward your managed node at `https://<IP>/redfish/v1/EventService/EventSubscriptions/` you must edit and replace the `Destination` attribute with the `<IP>` address of the event receiver and its location. Optionally you can add or remove EventTypes:
@@ -141,15 +142,14 @@ Moreover, the status message mentions as well in its `Location` header the locat
141
142
142
143
To avoid un-wanted network traffic or overloaded Redfish engine, HPE implemented an `Oem.Hpe` section containing attributes regulating subscriptions. In case a managed node continuously fails to post events at its destination, the subscription is deleted automatically after a certain amount of time (`DeliveryRetryAttempts * DeliveryRetryIntervalSeconds` seconds). Otherwise, a subscription has a infinite life time until it is deleted using a HTTPs `DELETE` request to it `Location` URI.
SNMP is still the preferred management protocol and may stay as such for a long time. However, modern alternatives like this Redfish Event Subscription exist for compute nodes and the upcoming [Swordfish](http://www.snia.org/forums/smi/swordfish). Swordfish is the extension of Redfish for storage devices from the [SNIA](http://www.snia.org/) proposing as well this Event Service in its Specification version 1.0.
203
+
SNMP is still the preferred management protocol and may stay as such for a long time. However, modern alternatives like this Redfish Event Subscription exist for compute nodes and the upcoming [Swordfish](http://www.snia.org/forums/smi/swordfish). Swordfish is the extension of Redfish for storage devices from the <ahref="http://www.snia.org/"target="_blank">SNIA</a> proposing as well this Event Service in its Specification version 1.0.
205
204
205
+
Don't forget to check out some of my other <ahref="https://developer.hpe.com/search/?term=donze"target="_blank">blog posts</a> on the HPE Developer portal to learn more about Redfish tips and tricks.
0 commit comments