- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- Retrieve information about "Operating System" via ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 01:03 AM - last edited on 08-01-2023 08:56 PM by support_s
08-01-2023 01:03 AM - last edited on 08-01-2023 08:56 PM by support_s
Hi all,
how can I retrieve the information about "Operating System" via iLO PowerShell cmdlets at iLO4 and iLO5?
Inormation > Overview > Server > Operating System
Solved! Go to Solution.
- Tags:
- Prolaint server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 04:07 AM
08-01-2023 04:07 AM
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Hello,
This type of information about the OS and other various SW related items, is retrieved by the iLO using the Agentless Management Service (AMS). You can get this for RHEL here:
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_dc65ecbdcd2343858629d86281
Most supported operating systems have an option to use this.
Regards
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 04:41 AM - last edited on 08-01-2023 08:54 PM by Sunitha_Mod
08-01-2023 04:41 AM - last edited on 08-01-2023 08:54 PM by Sunitha_Mod
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Hi,
thanks for you answer.
AMS is already isnstalled.
This is the reason why the "operating system" is known by iLO
My question was:
How can I retrieve the information about "Operating System" via iLO PowerShell cmdlets at iLO4 and iLO5?
What iLO PowerShell cmdlet do I have to use to get this "Operating System" information, mentioned in the screenshot above.
Something like:
Get-HPEiLO Overview Information.....???!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 06:32 AM - last edited on 08-23-2023 06:50 AM by Parvez_Admin
08-02-2023 06:32 AM - last edited on 08-23-2023 06:50 AM by Parvez_Admin
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Hello,
Sorry, I thought you provided the screenshot as an example of what you are looking for.
I tested this out and found that the command "Get-HPEiLOServerInfo -Connection $conn -OutputType RawResponse -Verbose" does provide the OS information:
"HostOS": {
"OsName": "VMware ESXi",
#1 SMP Release build-16324942 Jun 2 2020 10:08:07 x86_64 x86_64 x86_64 ESXi"
There is quite a bit of information provided with the above command, so I suspect it will likely require a Select-String command in order to parse the data.
Regards
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 07:08 AM
08-02-2023 07:08 AM
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Hi thutchings.
Thanks!
At least that looks a bit better now. (A huge amount of information.......)
Will try to use Select-String. Never worked with it.
Hopefully this works.
Do you have another suggestion / cmdlet beside this "Select-String" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 08:53 AM - last edited on 08-23-2023 06:51 AM by Parvez_Admin
08-02-2023 08:53 AM - last edited on 08-23-2023 06:51 AM by Parvez_Admin
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Hi @thutchings
Even I tried the same command but I did not get the desired output. Is there something I am missing ? Is it because of the ILO user previlages ? Host OS details are missing in the output.
FanInfo : {HPE.iLO.Response.Redfish.Fan, HPE.iLO.Response.Redfish.Fan, HPE.iLO.Response.Redfish.Fan, HPE.iLO.Response.Redfish.Fan...}
FirmwareInfo : {HPE.iLO.Response.Redfish.FirmwareInformation, HPE.iLO.Response.Redfish.FirmwareInformation, HPE.iLO.Response.Redfish.FirmwareInformation,
HPE.iLO.Response.Redfish.FirmwareInformation...}
TemperatureInfo : {HPE.iLO.Response.Redfish.Temperature, HPE.iLO.Response.Redfish.Temperature, HPE.iLO.Response.Redfish.Temperature,
HPE.iLO.Response.Redfish.Temperature...}
MemoryInfo : HPE.iLO.Response.Redfish.MemoryInfoDetail
NICInfo : HPE.iLO.Response.Redfish.NICInfoDetail
PowerSupplyInfo : HPE.iLO.Response.Redfish.PowerSupply
ProcessorInfo : {HPE.iLO.Response.Redfish.Processor, HPE.iLO.Response.Redfish.Processor}
HealthSummaryInfo : HPE.iLO.Response.Redfish.HealthSummaryInfo
ServerName : localhost.localdomain
HostOS :
IP :
Hostname :
Status : OK
StatusInfo :
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 12:54 PM
08-02-2023 12:54 PM
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Hello,
If you do not add "-OutputType RawResponse", then you will likely see what you noticed in the output. I would add that and check what result you have.
Regarding the use of Select-String...I do not have much experience with using this either, but this should give you something similar to what grep does in Linux. There are different variables that can be used with this that should make it easier to parse the information from the Get-HPEiLOServerInfo command.
Regards
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 02:24 AM
08-03-2023 02:24 AM
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
Thank you. I got the desired output.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 07:24 AM - last edited on 08-03-2023 10:41 PM by Sunitha_Mod
08-03-2023 07:24 AM - last edited on 08-03-2023 10:41 PM by Sunitha_Mod
Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2023 10:41 PM
08-06-2023 10:41 PM
Solution@Flankengott
Hi, You can use the below set of commands to retrieve just the OS from ILO cmdlets.
$conn = Connect-HPEiLO -Address <ILO IP> -Username <ILO Username> -Password <ILO Password> -DisableCertificateAuthentication
$response = $(Get-HPEiLOServerInfo -Connection $conn -OutputType RawResponse).ToString()
$pattern = [Regex]::new('(?<="HostOS":)(.*)(?=,"IntelligentProvisioningAlwaysOn)')
$HostOs = [regex]::Match($response,$pattern).Groups[1].Value | ConvertFrom-Json
$HostOs
I tried this. got the below output.
OsName OsSysDescription OsType OsVersion
------ ---------------- ------ ---------
Red Hat Enterprise Linux Linux localhost.localdomain 4.18.0-372.9.1.el8.x86_64 #1 SMP Fri Apr 15 22:12:19 EDT 2022 x86_64 40 8.6
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]