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
Copy file name to clipboardExpand all lines: content/blog/master-the-redfish-server-states-to-improve-your-monitoring-and-manageme.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,23 +16,29 @@ tags:
16
16
- ProLiant
17
17
- Synergy
18
18
---
19
+
#### Updated July 25, 2023
20
+
19
21
## Introduction
20
22
21
23
Server management and monitoring often require the knowledge of the state of the managed servers (On, Off....). The [Redfish®](https://www.dmtf.org/standards/redfish) standard defines the [`PowerState`](https://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_5_0.json) property with 0 (`Off`) and 1 (`On`) as possible values. However, when the system is in the `On` state, we'd like to know in which sub-state the server is: Pre-OS Tasks (POST), UEFI, OS...
22
24
23
-
This blog presents the [`PostState`](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#oem-hpe-poststate) property available in an `Oem.Hpe` Redfish sub-tree of HPE servers (Gen9and Gen10) and providing a fine grained server state.
25
+
This blog presents the [`PostState`](https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/ilo6/ilo6_145/ilo6_computersystem_resourcedefns145/#oemhpepoststate) property available in an `Oem.Hpe` Redfish sub-tree of HPE servers (Gen9, Gen10 and Gen11) and providing a fine grained server state.
24
26
25
27
## HPE PostState
26
28
27
-
As mentioned in the [iLO 4](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo4/#poststate) and [iLO 5](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#oem-hpe-poststate) API Reference documents, the `PostState` property can have the following values: `Null`, `Unknown`, `Reset`, `PowerOff`, `InPost`, `InPostDiscoveryComplete` and `FinishedPost`. Since the first four values have a straight forward meaning, we will only focus on the other ones.
29
+
As mentioned in the [HPE iLO 4](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo4/#poststate) API Reference documents, the `PostState` property can have the following values: `Null`, `Unknown`, `Reset`, `PowerOff`, `InPost`, `InPostDiscoveryComplete` and `FinishedPost`.
30
+
31
+
[Following HPE iLO generations ](https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/ilo6/ilo6_145/ilo6_computersystem_resourcedefns145/#oemhpepoststate) have one more value: `InPostDiscoveryStart`.
32
+
33
+
Since the first four values have a straight forward meaning, we will only focus on the other ones.
28
34
29
35
The `InPost` value means that the server is still performing the Pre-OS Tasks (tests and hardware discovery). With a graphical console opened, when a server is in this state you can see a green progress bar:
30
36
31
37

32
38
33
39

34
40
35
-
`InPostDiscoveryComplete` follows the `InPost` state in the boot process of a server. For the purpose of this blog, we assume that it corresponds to the state in which UEFI is loaded and running:
41
+
`InPostDiscoveryStart` follows the `InPost` state and then, `InPostDiscoveryComplete`. For the purpose of this blog, we assume that it corresponds to the state in which UEFI is loaded and running:
@@ -58,15 +64,15 @@ Hence, as a best practice, it is wise to pool the managed nodes and check for po
58
64
59
65
## How do I retrieve the Server State
60
66
61
-
The easiest way to obtain the `PostState` of a server is to issue the `serverstate` macro command of the [ilorest](http://hpe.com/info/resttool) utility. `ilorest` automatically detects the generation of the server (Gen9, Gen10...) and fetches the `PostState` value from the right Redfish path.
67
+
The easiest way to obtain the `PostState` of a server is to issue the `serverstate` macro command of the [iLOrest](http://hpe.com/info/resttool) utility. ILOrest automatically detects the generation of the server (Gen9, Gen10...) and fetches the `PostState` value from the right Redfish path.
62
68
63
-
The [Open Source](https://github.com/HewlettPackard/python-redfish-utility) version of `ilorest` contains the source of this [`ServerState` macro command](https://github.com/HewlettPackard/python-redfish-utility/blob/master/src/extensions/iLO%20COMMANDS/ServerStateCommand.py) in python. Feel free to consult it.
69
+
The [Open Source](https://github.com/HewlettPackard/python-redfish-utility) version of iLOrest contains the source of this [`ServerState` macro command](https://github.com/HewlettPackard/python-redfish-utility/blob/master/src/extensions/iLO_COMMANDS/ServerStateCommand.py) in python. Feel free to consult it.
64
70
65
71

66
72
67
-
If you decide to create your own application you will have to adapt your code to the potential Redfish [data model changes](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#ilo-5-data-model-changes) between the different generations of servers or iLOs.
73
+
If you decide to create your own Redfish client, you will have to adapt your code to the potential Redfish [data model changes](https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/ilo5/ilo5_adaptation/#ilo-5-data-model-changes) between the different generations of servers or iLOs.
68
74
69
-
As a concrete example, in an HPE rack mount server the `PostState` property has moved from `/redfish/v1/Systems/1/oem/hp` in Gen9 models to `/redfish/v1/Systems/1/oem/hpe` in Gen10s.
75
+
As a concrete example, in an HPE rack mount server the `PostState` property has moved from `/redfish/v1/Systems/1/oem/hp` in Gen9 models to `/redfish/v1/Systems/1/oem/hpe` in Gen10s and Gen11s.
70
76
71
77
## The HPE Agentless Management Service is your friend
0 commit comments