Server Management - Remote Server Management
1832550 Members
5965 Online
110043 Solutions
New Discussion

Help using ilorest to get system health summary

 
cjs1976
Occasional Contributor

Help using ilorest to get system health summary

Hi team, I was using the HPEiLOCmdlets for a long time. I only need the Get-HPEiLOHealthSummary to grab the general overview of the system. Looked like when you logged in to the webinterface of an iLO, only a quick overview. Lately there are a lot of issues between the HPEiLOCmdlets and the actual iLO versions, so I thought to check ilorest. I am able to get some Informations (under Windows and Linux), but it is much more complex than the PowerShell Cmdlet. Can anyone give me some hints or an example how I can grab the same informations like I did with the Get-HPEiLOHealthSummary? Thanks, Christian.

5 REPLIES 5
Harshitha_K
HPE Pro

Re: Help using ilorest to get system health summary

Hi @cjs1976 ,

Try doing this steps :

Prerequisites
  • The RESTful Interface Tool is installed.

  • Configure iLO Settings privilege

Procedure
  1. Start the RESTful Interface Tool.
  2. Enter ilorest.
  3. Log in to an iLO system:
    iLOrest > login iLO host name or IP address -u iLO user name -p iLO password
  4. Download the Active Health System log for the server you logged into in step 3.
    • To download the log for the last seven days, enter a command similar to the following:

      iLOrest > serverlogs --selectlog=AHS --directorypath=directory path 
    • To download the log for a specified time period, enter a command similar to the following:

      iLOrest > serverlogs --selectlog=AHS --directorypath=directory path 
      --customiseAHS="from=YYYY-MM-DD&&to=YYYY-MM-DD"
    • To download the entire Active Health System log, enter a command similar to the following:

      iLOrest > serverlogs --selectlog=AHS --downloadallahs --directorypath=directory path

    The log is downloaded with the following file name: HPE_server serial number_YYYYMMDD.ahs

    For more information on AHS logs, You can refer this document

    For more information on iLOREST, You can refer this iLOREST

     Thank you!

    I work with HPE but opinions expressed here are mine.



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]
Accept or Kudo
cjs1976
Occasional Contributor

Re: Help using ilorest to get system health summary

Hi Harshitha_K,

thank you for this solution, but I am searching more in the direction automatic script for our monitoring. The idea is to run a script regulary which checks the iLO health status and in a case of a problem it should create an error. I am pretty sure that I can do this over ilorest, is just that I don't know where to look for the simple health status.

Thanks,
Christian.

Vinky_99
Esteemed Contributor

Re: Help using ilorest to get system health summary

@cjs1976 

To get a system health summary using ilorest, you can follow these steps:

1. Install ilorest: You can download and install the ilorest tool from the HPE website.
2. Connect to the iLO: Once you have ilorest installed, you can connect to your iLO using the following command: ilorest login <iLO_IP> -u <username> -p <password>
Replace <iLO_IP>, <username>, and <password> with the appropriate values for your iLO.
3. Get the system health summary: Once you are logged in, you can use the following command to get the system health summary: ilorest systemhealthsummary
This command will provide you with an overview of the system health, including the current power state, temperature, fan speed, and more.
4. Logout: Once you have finished using ilorest, you can logout using the following command:ilorest logout
This will disconnect from the iLO.


That's it! You should now have a system health summary using ilorest. Note that ilorest provides a lot more functionality than the HPEiLOCmdlets, so it may take some time to learn all of the commands and options available. However, ilorest is a powerful tool for managing HPE servers, and it is worth investing some time in learning how to use it effectively.

These are my opinions so use it at your own risk.
cjs1976
Occasional Contributor

Re: Help using ilorest to get system health summary

@Vinky_99

Thank you! This works very well with iLO5 but noct with iLO4. Do you also have a trick for iLO4?

Thanks,
Christian.

Vinky_99
Esteemed Contributor

Re: Help using ilorest to get system health summary

@cjs1976 

ilorest is primarily designed for iLO5 and may not have full compatibility with iLO4. However, for iLO4, you can use the HPEiLOCmdlets to get the system health summary. Here's an example of how you can do that:

1. Install the HPEiLOCmdlets: You can install the HPEiLOCmdlets by following the instructions provided by HPE. Make sure you have the latest version installed.

2. Import the HPEiLOCmdlets module: Open PowerShell and import the HPEiLOCmdlets module using the following command: Import-Module HPEiLOCmdlets

3. Connect to the iLO: Once you have the module imported, you can connect to your iLO using the following command: Connect-HPEiLO -IP <iLO_IP> -Username <username> -Password <password>
Replace <iLO_IP>, <username>, and <password> with the appropriate values for your iLO.

4. Get the system health summary: To get the system health summary, you can use the Get-HPEiLOHealthSummary cmdlet:   Get-HPEiLOHealthSummary
This command will provide you with an overview of the system health, including the power state, temperature, fans, power supplies, and more.

5. Disconnect from the iLO: Once you have finished using the HPEiLOCmdlets, you can disconnect from the iLO using the following command: Disconnect-HPEiLO


This will close the connection to the iLO.

 

Make sure my friend HPEiLOCmdlets may have different requirements and compatibility with different versions of iLO. Make sure you have the latest version of the cmdlets and refer to the HPE documentation for any specific requirements or limitations for iLO4.

If you're encountering issues with the HPEiLOCmdlets and iLO4 compatibility, I recommend reaching out to HPE support for further assistance.

These are my opinions so use it at your own risk.