Server Management - Remote Server Management
1753328 Members
5004 Online
108792 Solutions
New Discussion юеВ

Get and Set UID Led State

 
SOLVED
Go to solution
Nicolas VEYSSIERE
New Member

Get and Set UID Led State

Hello,

I would like to know how can I retreive the state of the UID Led, and how can I change it.

I think I have to use an iLO API.


Is it possible ?

--
Regards.
6 REPLIES 6
Oscar A. Perez
Honored Contributor

Re: Get and Set UID Led State

Download the iLO samples scripts. There are a couple you can use.

Get_UID_Status.xml










UID_Control.xml













__________________________________________________
If you feel this was helpful please click the KUDOS! thumb below!
Nicolas VEYSSIERE
New Member

Re: Get and Set UID Led State

Ok, great, that seems to be what I was searching, but how can I execute those scripts ?

I am using an Redhat Entreprise Linux OS, on a DL 360 G6 server.

Thanks for all.
Oscar A. Perez
Honored Contributor
Solution

Re: Get and Set UID Led State

Download the samples script for Linux

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?swItem=MTX-9ded60bd746942e18651211f51

They include a perl script called locfp.pl

The locfg.pl script connects to the iLO management processor using a Secure Sockets Layer (SSL) connection.


perl locfg.pl -s {servername|ipaddress}[:port] [-l logfilename] -f input_filename [-u username -p password] [-ilo2|-ilo3]

Where:


-s servername is the DNS name of target server.

-s ipaddress is the IP Address of the target server. If a port is not specified, the port will default to :443. DO NOT USE this switch if launching from System Insight Manager.

-l logfilename is the name of the file to log all output to. A default file with the server name/ipaddress is created if this option is not specified. DO NOT USE this switch if launching from System Insight Manager.

-f input_filename is the filename containing the RIB Commands

-u username is the iLO user account name

-p password Command line user name and password override those which are in the script file.
Note: Use -u and -p with caution as command line options are visible on Linux.

-ilo2|-ilo3
Specifies the type of device on the server. Communications with Integrated
Lights-Out 3 (-ilo3) is different from other devices (-ilo2).
Note: locfg.pl detects the device automatically if this option is not present.



__________________________________________________
If you feel this was helpful please click the KUDOS! thumb below!
David Claypool
Honored Contributor

Re: Get and Set UID Led State

Since you're running Linux you have additional options as well.

At the host prompt, if you have the hp-health package installed, you have the 'hpuid' utility available:

hpuid -?

...for options.

For iLO, you can connect using SSH and type in

[VERB] /system1/led1

...where [VERB] is show, start or stop.

You can also do it remotely via SSH, so to check status:

ssh -l Administrator [iLO_IP_OR_DNS] "show /system1/led1"
Nicolas VEYSSIERE
New Member

Re: Get and Set UID Led State

Great !

Thank you both.
Nicolas VEYSSIERE
New Member

Re: Get and Set UID Led State

I am using 'hpuid' tool