On 05/29/2015 06:52 PM, Noel Burton-Krahn wrote: > > > On Fri, May 29, 2015 at 12:40 PM, Corey Minyard <[email protected] > <mailto:[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 >
Yes, that should work. > but what's the sensor_set_event_support? > That sets what events the sensor will support and generate. Note that the ipmi_sim_cmd.5 file is a man page and it defines what all these commands do. You can use nroff -man ipmi_sim_cmd.5 | less -r to view it. That is, unfortunately, a fairly complicated command, but IPMI events/sensors are fairly complicated. -corey > > Cheers, > -- > Noel > > > > ------------------------------------------------------------------------------ _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
