So are there different timers? When I change the timeout action with redfishtool
's PATCH
, it doesn't seem to affect whatever ipmitool
is looking at. ipmitool
still reports "No action".
$ redfishtool -v -r <ip> -u <user> -p <password> raw PATCH -d '{"HostWatchdogTimer": {
"FunctionEnabled": true,
"Status": {
"State": "Enabled"
},
"TimeoutAction": "ResetSystem"
}}' /redfish/v1/Systems/System.Embedded.1
... # printed the whole Systems patch
$ ipmitool mc watchdog get
Watchdog Timer Use: SMS/OS (0xc4)
Watchdog Timer Is: Started/Running
Watchdog Timer Actions: No action (0x00)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 480 sec
Present Countdown: 473 sec
$ redfishtool -v -r <ip> -u <user> -p <password> raw GET /redfish/v1/Systems/System.Embedded.1 | grep Watchdog -A 6
"HostWatchdogTimer": {
"FunctionEnabled": true,
"Status": {
"State": "Enabled"
},
"TimeoutAction": "ResetSystem"
},
And then I tried changing the Timeout Action with ipmiutil
, but neither ipmitool
nor redfishtool
seem to be affected.
$ ipmiutil wdt -a 3
ipmiutil wdt ver 3.12
-- BMC version 2.81, IPMI version 2.0
wdt data: c4 00 00 00 c0 12 81 12
Watchdog timer is started for use with SMS/OS. DontLog
pretimeout is 0 seconds, pre-action is None
timeout is 480 seconds, counter is 473 seconds
action is No action
Setting watchdog timer to 120 seconds ...
wdt data: 44 03 00 00 b0 04 b0 04
Watchdog timer is started for use with SMS/OS. Logging
pretimeout is 0 seconds, pre-action is None
timeout is 120 seconds, counter is 120 seconds
action is Power cycle
ipmiutil wdt, completed successfully
$ ipmitool mc watchdog get
Watchdog Timer Use: SMS/OS (0xc4)
Watchdog Timer Is: Started/Running
Watchdog Timer Actions: No action (0x00)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 480 sec
Present Countdown: 475 sec
How do I get ipmiutil
to show its perceived watchdog status? I tried calling it with no arguments, but that just seems to change things back to a default setting.
I was thinking, maybe I can use ioctl
, and redfishtool
will recognize the changes, but according to this page, there's no way to change the Timeout Action from there. Am I missing something?