Skip to content

Commit 4140eb2

Browse files
authored
Merge pull request #2006 from hpe-dev-incubator/cms/blog/managing-ilo-sessions-with-redfish
Update Blog “managing-ilo-sessions-with-redfish” Updated with new Redocly doc pointers and minor modifications.
2 parents 75d2180 + 3264105 commit 4140eb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/blog/managing-ilo-sessions-with-redfish.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tags:
1212
- iLO5
1313
- iLOsessionmanagement
1414
---
15-
Updated: July 2021
15+
Updated: July 26, 2023
1616

1717
## Introduction
1818

@@ -34,7 +34,7 @@ Session management using the Redfish RESTful API is performed with the `/redfish
3434

3535
## OOB management with basic authentication
3636

37-
In the following screenshot we use the popular `curl` tool and its [Basic Authentication](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/?shell#basic-authentication) mechanism (`--user user:password`) to login and retrieve the active iLO session list. For clarity reasons, we use as well the `--silent` and `--insecure` options. However, they don't interact with our demonstration.
37+
In the following screenshot we use the popular `curl` tool and its [Basic Authentication](https://servermanagementportal.ext.hpe.com/docs/concepts/redfishauthentication/#basic-authentication) mechanism (`--user user:password`) to login and retrieve the active iLO session list. For clarity reasons, we use as well the `--silent` and `--insecure` options. However, they don't interact with our demonstration.
3838

3939
Each invocation of the script returns a list composed of a single but different iLO session. This is due to the Basic Authentication mechanism which deletes automatically the session after completion of the HTTP GET request.
4040

@@ -44,7 +44,7 @@ As a conclusion, the basic authentication mechanism, no matter the used tool, ha
4444

4545
## OOB management with OAuth 2.0 authentication
4646

47-
For more complex operations, a better way to connect to a Redfish server is to use the OAuth 2.0 mechanism to [create a session object](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/?shell#creating-and-using-sessions) in the Redfish session manager. A successful Redfish session creation is synonym of the creation of an iLO session. In return the Redfish server sends a unique session token and associated session location to the Redfish client. Subsequent HTTP operations will be authorized using the session token.
47+
For more complex operations, a better way to connect to a Redfish server is to use the OAuth 2.0 mechanism to [create a session object](https://servermanagementportal.ext.hpe.com/docs/concepts/redfishauthentication/#session-authentication) in the Redfish session manager. A successful Redfish session creation is synonym of the creation of an iLO session. In return the Redfish server sends a unique session token and associated session location to the Redfish client. Subsequent HTTP operations will be authorized using the session token.
4848

4949
The [HPE `ilorest` interface tool](http://www.hpe.com/info/resttool) uses this token session mechanism and stores the token somewhere in the file system of the Redfish client. The following script illustrates the different behavior in terms of session management between the OAuth 2.0 protocol and the Basic Authentication processes.
5050

@@ -62,9 +62,9 @@ In that case, the opened session will stay active in the iLO and in Redfish. Dur
6262

6363
In the following screenshot, we removed the `logout` command and launched the script twice. The second invocation shows two active sessions. A third invocation would have shown three active sessions...
6464

65-
![Two ilorest logins with no logout in between](https://redfish-lab.sourceforge.io/media/redfish-wiki/Managing-iLO-Sessions-With-Redfish/3-IlorestNoLogout.png)
65+
![Two iLOrest logins with no logout in between](https://redfish-lab.sourceforge.io/media/redfish-wiki/Managing-iLO-Sessions-With-Redfish/3-IlorestNoLogout.png)
6666

67-
At some point of time, if you call again and again such a badly written script, you will reach the iLO maximum number of sessions and get completely locked out until the iLO is physically reset or until sessions are removed when the [`UserExpires`](https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/?shell#oem-hpe-userexpires) time is reached.
67+
At some point of time, if you call again and again such a badly written script, you will reach the iLO maximum number of sessions and get completely locked out until the iLO is physically reset or until sessions are removed when the [`UserExpires`](https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/ilo6/ilo6_145/ilo6_other_resourcedefns145/#oemhpeuserexpires) time is reached.
6868

6969
## iLO session life cycle management with Redfish
7070

0 commit comments

Comments
 (0)