Skip to content

Commit 3ed66a9

Browse files
authored
Merge pull request #2004 from hpe-dev-incubator/cms/blog/master-the-redfish-server-states-to-improve-your-monitoring-and-manageme
Update Blog “master-the-redfish-server-states-to-improve-your-monitoring-and-manageme” Updated with new Redocly doc pointers.
2 parents 0d3116e + 83634f6 commit 3ed66a9

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

content/blog/master-the-redfish-server-states-to-improve-your-monitoring-and-manageme.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,29 @@ tags:
1616
- ProLiant
1717
- Synergy
1818
---
19+
#### Updated July 25, 2023
20+
1921
## Introduction
2022

2123
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...
2224

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 (Gen9 and 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.
2426

2527
## HPE PostState
2628

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

2935
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:
3036

3137
![InPost state 1](https://redfish-lab.sourceforge.io/media/redfish-wiki/Master-the-Redfish-Server-States/1-InPost.png)
3238

3339
![InPost state 2](https://redfish-lab.sourceforge.io/media/redfish-wiki/Master-the-Redfish-Server-States/2-InPost.png)
3440

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:
3642

3743
![InPostDiscoveryComplete / UEFI](https://redfish-lab.sourceforge.io/media/redfish-wiki/Master-the-Redfish-Server-States/3-InPostDiscoveryComplete.png)
3844

@@ -58,15 +64,15 @@ Hence, as a best practice, it is wise to pool the managed nodes and check for po
5864

5965
## How do I retrieve the Server State
6066

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

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

6571
![Retrieve `PostState` with `ilorest`](https://redfish-lab.sourceforge.io/media/redfish-wiki/Master-the-Redfish-Server-States/5-RetrieveServerStateWithIlorest.png)
6672

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

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

7177
## The HPE Agentless Management Service is your friend
7278

0 commit comments

Comments
 (0)