Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a couple of HP servers with iLO interfaces. do you have any idea of how can i get status data of the server via an XML or something like that ?

update: i want to be able to get the server temperature via a script running on a linux machine in order to monitor our windows HP iLO servcers.

share|improve this question
add comment

4 Answers

up vote 3 down vote accepted

You asked a similar question last month, and I provided instructions on where to go on HP's Web site to get the tools you needed. Here are exact links:

  • You can get CPQLOCFG.EXE (as suggested by sleske) here.
  • You can get HPLOCFG.EXE (a similar tool) here.
  • You can get sample XML files and the Perl locfg.pl utility here.

I suggest also looking over the documentation on HP's Web site (at the link provided by sleske) as there is a wealth of information available.

share|improve this answer
add comment

Your question is rather vague. What status data do you want? Please provide some examples.

That said, iLO offers scripting interfaces (via HP's tool CPQLOCFG.EXE, or via Perl). See the HP documentation on iLO for details.

share|improve this answer
    
what do i need CPQLOCFG.EXE for ? can't i just fire a perl script from a linux machine ? –  s.mihai Jul 30 '09 at 18:25
    
where on earth can i find CPQLOCFG.EXE ? :-w –  s.mihai Jul 30 '09 at 19:16
    
CPQLOCFG.EXE is HP's tool for managing iLO. It's available from HP, just googl it. As far as I understand, you do not really need it, you can also access the same functionality (and more) from perl, actually from any language, as the iLO is managed by sending XML files via HTTPS. –  sleske Jul 31 '09 at 1:26
add comment

Again, see your earlier question, and my recent answer to it.

I wonder if you could merge this question into your previous one...

share|improve this answer
add comment

I know this is old, bur someone addressed your question as if you were trying this from a windows box. In Linux , (NOT WINDOWS...everyone) you can do this without an EXE tool. You need to use Net::ILO perl module. This will enable you to write a script that logs in to your ILO servers and interact with them.

  1. download from http://search.cpan.org/~nlewis/Net-ILO-0.54/ (http://search.cpan.org/CPAN/authors/id/N/NL/NLEWIS/Net-ILO-0.54.tar.gz)
  2. after downloading : a) tar -zxvf Net-ILO-0.54.tar.gz b) cd Net-ILO c) perl Makefile.pl d) make install 3) after compiled and installed, write a little perl script: (here is one that just prints out the temps:
    WWWWW

vim myscript.pl:

#!/usr/bin/perl
# FILE:     /home/myuser/myscript.pl
# CREATED:  07:22:37 07/11/2011
# MODIFIED: 07:46:30 07/11/2011
use Net::ILO

my $ilo = Net::ILO->new(
#address of your system
    address     => '192.168.2.111',
    username    => 'Administrator',
    password    => 'yourpassword',
);

my $temperatures = $ilo->temperatures;

foreach my $sensor (@$temperatures) {

    print "    Name: ", $sensor->{name},     "\n";
    print "Location: ", $sensor->{location}, "\n";
    print "   Value: ", $sensor->{value},    "\n";
    print "    Unit: ", $sensor->{unit},     "\n";
    print " Caution: ", $sensor->{caution},  "\n";
    print "Critical: ", $sensor->{critical}, "\n";
    print "  Status: ", $sensor->{status},   "\n\n";

}
#---------end script

4) run the script - perl myscript.pl

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.