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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openipmi-developer mailing list
> [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