Hello,
Sorry if I'm on wrong list but I haven't seen a user mailing list(?) I'm
currently trying to use the IPMI watchdog through the /dev/watchdog
device. It works fine, but I must be able to configure/change the
pre-timeout value from one time to another.
I insert the module as follow:
modprobe ipmi_watchdog timeout=60 pretimeout=20 \
preaction=pre_int \
preop=preop_give_data start_now=0
To change the timeout I use (and it works):
rc = ioctl(watchdog, WDIOC_SETTIMEOUT, &timeout);
if (rc != 0) {
perror("ioctl(WDIOC_SETTIMEOUT)");
} else {
printf("The new timeout is %d seconds\n", timeout);
}
To change the pre-timeout I tried (and it fails):
if (pre_timeout != 0) {
rc = ioctl(watchdog, WDIOC_SETPRETIMEOUT, &pre_timeout);
if (rc != 0) {
perror("ioctl(WDIOC_SETPRETIMEOUT)");
} else {
printf("The pre-timeout is %d seconds\n", pre_timeout);
}
}
Is there a way to change the pre-timeout value? BTW, is there a way to
change the timeout action (reset, etc.)?
Thanks,
--
BenoƮt Guillon [EMAIL PROTECTED]
TCT/3S tel. : 33 (0)4 98 16 33 90
THALES COMPUTERS
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer