- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Servers - General
- >
- Creating a Script for iLO
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
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
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
тАО10-03-2023 04:44 PM - last edited on тАО10-04-2023 09:09 PM by support_s
тАО10-03-2023 04:44 PM - last edited on тАО10-04-2023 09:09 PM by support_s
Creating a Script for iLO
Hi Folks,
I come with a few questions. Our client is looking to test all of the HPE Hardware based alarms for our Rack mounted server with the iLO 5 software installed. They basically want to see if the alarms all successfully are sent to our upstream trap collector.
I know there is a "test alert" button but it sends a single fake trap and not sufficient.
So first... is it even possible to write and XML file to be parsed through with all of the Hardware alarms in the XML?
I see no commands to even create a file from the iLO command line? Is there a specific command for this? (IForgive me I come from the linux bash world)
I guess my question is, is this even fesiable...and if so..where would I even start? I have the ILO Scriptiong and Command line guide, but it shows what XML scripts shoudl look like and how to format them...but not how to create or run them...unless I'm missing something..?
- Tags:
- Prolaint server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2023 05:45 PM
тАО10-03-2023 05:45 PM
Query: Creating a Script for iLO
System recommended content:
1. HPE iLO 5 2.97 User Guide | iLO scripting and command line
2. HPE iLO 5 2.97 User Guide | iLO Service Port
Please click on "Thumbs Up/Kudo" icon to give a "Kudo".
Thank you for being a HPE valuable community member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2023 04:38 AM
тАО10-04-2023 04:38 AM
Re: Creating a Script for iLO
Hello,
You may review the following and see if they are of help:
- Scripting Tools for Windows PowerShell User Guide - iLO Cmdlets
- HPE Lights-Out XML Scripting Sample for Windows
- HPE Lights-Out XML PERL Scripting Sample for Linux
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.
[All opinions expressed here 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
тАО10-04-2023 09:29 AM
тАО10-04-2023 09:29 AM
Re: Creating a Script for iLO
Hello,
I am not aware of a way to "test" out SNMP traps for the various alarm states from the iLO. Obviously, one way to test them would be to induce the failure type, but that would not be desireable.
The XML scripts are run by using hpqlocfg (HP Lights Out config utility - remote access) or hponcfg (HP Online config utility - local access. There are sample scripts for almost every function available from the HPE site. For instance, the following is the PERL scripting sample:
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_2b741a93446e4a75890384eba8&swEnvOid=2000222
In reality, the preferred option for scripting with iLO 5, and later, would be with redfish. This would be using curl or postman. Also, many functions are available in the iLO restful tool. This allows you to run it remotely (or locally) against an iLO using redfish.
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_337fa8fda18042b3b5e8520378
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
тАО10-12-2023 11:57 PM
тАО10-12-2023 11:57 PM
Re: Creating a Script for iLO
Hello @Nokia_Solutions,
Let us know if you were able to resolve the issue.
If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.
Thanks,
Sunitha G
I'm an HPE employee.
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]
