Servers - General
1820643 Members
1966 Online
109626 Solutions
New Discussion юеВ

Creating a Script for iLO

 
Nokia_Solutions
Occasional Visitor

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

4 REPLIES 4
support_s
System Recommended

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.


Accept or Kudo

TVVJ
HPE Pro

Re: Creating a Script for iLO

Hello,

You may review the following and see if they are of help:

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]
Accept or Kudo
thutchings
HPE Pro

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]
Accept or Kudo
Sunitha_Mod
Moderator

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