freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freeipmi-devel] ipmipower returns wrong exit status


From: Al Chu
Subject: Re: [Freeipmi-devel] ipmipower returns wrong exit status
Date: Sun, 29 Jul 2012 07:41:00 -0700

Hi Corey,

On Sat, 2012-07-28 at 17:52 -0700, Corey Osman wrote:
> Its crucial that the return status actually return the correct
> results.  ipmipower should return 1
> version = ipmipower - 1.1.6

I noticed this issue a few months back and fixed it in the main branch,
but elected not to backport the fixes to the 1.1.X branch.  Is this
something that you consider a reasonable importance to backport?  Or can
you wait for the newer release (hopefully 1-2 month range).

> Also, why does the ipmipower command allow me to use identify-on,
> identify-off, identify-status from the command line. These options are
> supported under the interactive command console, why are they missing
> from the command line?

They were only added to the interactive mode to aid with tools (most
notably powerman) that interact solely with the ipmipower interactive
mode.  Similar options exist in ipmi-chassis.

If it's easier for scripting, I could add command line options for those
in ipmipower, are they something that would be really useful for you?

Al



> 
> Incorrect result
> ----------------------
>  ipmipower --username=admin --hostname=192.168.1.22
> --password=password --on
> 192.168.1.22: authentication type unavailable for attempted privilege
> level
> address@hidden lib]# echo $?
> 0
> 
> 
> 
> 
> vs
> correct result
> ------------------
> bmc-info --username=admin --hostname=192.168.1.22 --password=creative 
> bmc-info: authentication type unavailable for attempted privilege
> level
> address@hidden lib]# echo $?
> 1
> 
> 
> 
> 
> Also, why does the ipmipower command allow me to use identify-on,
> identify-off, identify-status from the command line. These options are
> supported under the interactive command console, why are they missing
> from the command line?
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks,
> 
> 
> Corey Osman
> address@hidden
> 
> 
> Green IT and Data Center Automation Specialist
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
-- 
Albert Chu
address@hidden
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory




reply via email to

[Prev in Thread] Current Thread [Next in Thread]