On Fri, May 29, 2015 at 12:40 PM, Corey Minyard <[email protected]> wrote:

> On 05/29/2015 02:03 PM, Noel Burton-Krahn wrote:
>
> >
> > Any idea why the watchdog timer sensor wouldn't be defined by default?
>
> Yeah, the code defines no sensors at all, you have to add them.  There's
> nothing in the spec (nor in the docs for OpenIPMI) that says the
> watchdog sensor must be LUN 0 sensor 0, but that's the way it's coded at
> the moment.  The code has to be able to find the watchdog sensor
> somehow.  That should probably be fixed, it should either add it
> automatically or something.
>
>
>
How would I add a watchdog sensor manually at LUN 0 Sensor 0?  I looked at
ipmisim.emu but couldn't figure out the syntax to get a watchdog timer in
the right place.  Here's my current version:

mc_setbmc 0x20
mc_add 0x20 0 no-device-sdrs 0x23 9 8 0x9f 0x1291 0xf02 persist_sdr
sel_enable 0x20 1000 0x0a

# Add a temperature sensor and its SDR.  Note that sensor 0 is already
# taken as the watchdog sensor.
sensor_add 0x20 0 1 0x01 0x01
sensor_set_value 0x20 0 1 0x60 0
sensor_set_threshold 0x20 0 1 settable 111000 0xa0 0x90 0x70 00 00 00
sensor_set_event_support 0x20 0 1 enable scanning per-state \
000111111000000 000111111000000 \
000111111000000 000111111000000

# Turn on the BMC
mc_enable 0x20


Can I do something like this?

sensor_add 0x20 0 0 0x00 0x00

but what's the sensor_set_event_support?


Cheers,
--
Noel
------------------------------------------------------------------------------
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to