Thanks again for the reply!
 I understand from ipmiif.h and ipmi.pdf that the 4th argument of ipmi_open_domain-  "setup_con" is the callback, which is called whenever there is a change in status of connection(conn lost etc). The err parameter states about the error causing it. Now on printing this I see that it is printing some weird number as error : 16777411.
 Also I use password while using ipmitool, so I think we need to use it here too.  The parameter i use is as below:

 ./ipmisample lan <host> 623 md5 admin '' <passwd>
(I also tried ipmi_parse_arg2 function but no improvement)
I'm having trouble setting up connection. It would be of great help if you can advice me on how to fix this.

Thank you,
Arun


On 7/1/06, Corey Minyard <[EMAIL PROTECTED]> wrote:
I've never really done much testing with that program, but it doesn't
seem to produce any output if the parameters are wrong (the other end
refuses the connection).  Maybe you need to pass in '' as the password,
too, since you didn't supply one for ipmitool?

IPMI.pdf may be a little dated, but I don't think it is too bad.
There's no other newer documentation besides what is in the ipmiif.h
include file.

-Corey

Arun Babu wrote:
>  Thank you for your reply and suggestion.
>  I am not seeing any output from the sample programs yet.
>  I find that OpenIPMI suits my need of designing a health monitoring
> system
>  using sensors as indicators. Is the IPMI.pdf document in sourceforge
> site the latest one? because there are some discrepancies between the
> signature of functions in it and that present in sample programs. Do
> we have any other documentation?
>
> Thank you,
> Arun
>
> On 6/30/06, *Corey Minyard* <[EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]>>
> wrote:
>
>     Well, the sample code is really not meant to be run, it's an
>     example of
>     how to use the library.  But you should see some output.  It should
>     print out something like:
>
>         [EMAIL PROTECTED]:~/sf/OpenIPMI/OpenIPMI$ sample/ipmisample lan
>         t-chesnee-1 623 md5 admin "" ""
>         INFO: 0 ipmi_lan.c(connection_up): Connection 0 to the BMC is up
>         INFO: 0 ipmi_lan.c(connection_up): Connection to the BMC restored
>
>     when it starts up.  Then it will proceed to dump information on
>     pretty
>     much everything, like:
>
>         Entity added: 7.1
>         Entity added: 12.3
>         Sensor added: 12.3.Identify Button0
>         Entity added: 12.2
>         Sensor added: 12.2.Diagnostic Btn0
>         .
>         .
>         .
>
>     If you are just wanting to periodically fetch a sensor, ipmitool is a
>     pretty good way to do it.  The OpenIPMI library is meant more for
>     large-scale monitoring of IPMI systems; for a program that comes up,
>     gathers all the data, and monitors things.  (Note that you can
>     also use
>     perl with OpenIPMI, and in the 2.0 library python, if that's
>     easier for
>     you.)
>
>     If you just want a visual display of all the sensors and the state of
>     the system, the openipmigui is a pretty nice tool, but you have to
>     get
>     the 2.0 version of the library.
>
>     -Corey
>
>     Arun Babu wrote:
>     > Hi
>     >  I have trouble running the sample*.c codes provided with the
>     OpenIPMI
>     > api.
>     >
>     >  I have been using ipmitool for a while and our system is setup to
>     > work for it.
>     >  If I give the command:
>     >    ipmitool -I lan -H <host> -U '' sensor
>     >  I am getting the sensor details as output.
>     >
>     > But when I run the sample programs in OpenIPMI with
>     > ./ipmisample lan <host> 623 md5 admin '' <passwd>
>     > I do not get any output. (I am using the latest OpenIPMI on
>     FedoraCore5 )
>     >
>     > My aim is to simply read some details like temperature, fanspeed
>     from
>     > SDR..
>     > It would be of great help if you can give me suggestions on what I
>     > might be missing...
>     >
>     > Thank you,
>     > Arun
>     >
>     >
>     ------------------------------------------------------------------------
>
>     >
>     > Using Tomcat but need to do more? Need to support web services,
>     security?
>     > Get stuff done quickly with pre-integrated technology to make
>     your job easier
>     > Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache Geronimo
>     >
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Openipmi-developer mailing list
>     > [email protected]
>     <mailto:[email protected] >
>     > https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>     >
>
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to