BMC can’t get watchdog status by command “mc watchdog get” when system power is off
Wayne Tung/WYHQ/Wiwynn
Wayne_Tung at wiwynn.com
Tue Nov 5 12:39:38 AEDT 2019
Hi,
We met an error that BMC can’t get watchdog status by command “mc watchdog get” when system power is off.
Cause:
"ipmitool mc watchdog get" gets dbus properties in path: /xyz/openbmc_project/watchdog/host0 interface: xyz.openbmc_project.State.Watchdog and this dbus object is registered by phosphor-watchdog.service.
Because phosphor-watchdog.service will not be started before system power-on and will be stopped after system power-off, therefore "ipmitool mc watchdog get" command gets nothing when system power is off.
Follow the standard, BMC should still report watchdog status even if system power is off.
So we modified phosphor-watchdog’s bb file and service file to
1. Start phosphor-watchdog after multi-user.target during BMC boot period
2. Do not stop phosphor-watchdog when system power off.
3. Always restart phosphor-watchdog.service.
Test Result:
wayne at TGA:~$ ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus chassis power status
Chassis Power is off
wayne at TGA:~$ ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc watchdog get
Watchdog Timer Use: BIOS FRB2 (0x81)
Watchdog Timer Is: Stopped
Watchdog Timer Actions: No action (0x00)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 0 sec
Present Countdown: 0 sec
wayne at TGA:~$ ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus chassis power on
Chassis Power Control: Up/On
wayne at TGA:~$ ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc watchdog get
Watchdog Timer Use: BIOS FRB2 (0xc1)
Watchdog Timer Is: Started/Running
Watchdog Timer Actions: Hard Reset (0x01)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 600 sec
Present Countdown: 597 sec
wayne at TGA:~$ ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc watchdog get
Watchdog Timer Use: BIOS FRB2 (0xc1)
Watchdog Timer Is: Started/Running
Watchdog Timer Actions: Hard Reset (0x01)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 600 sec
Present Countdown: 582 sec
wayne at TGA:~$ ipmitool -H 10.248.42.74 -U root -P 0penBmc -I lanplus bmc watchdog get
Watchdog Timer Use: BIOS FRB2 (0x81)
Watchdog Timer Is: Stopped
Watchdog Timer Actions: No action (0x00)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 0 sec
Present Countdown: 0 sec
Thanks
---------------------------------------------------------------------------------------------------------------------------------------------------------------
This email contains confidential or legally privileged information and is for the sole use of its intended recipient.
Any unauthorized review, use, copying or distribution of this email or the content of this email is strictly prohibited.
If you are not the intended recipient, you may reply to the sender and should delete this e-mail immediately.
---------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191105/9721a880/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-ipmitool-mc-watchdog-get.patch
Type: application/octet-stream
Size: 4967 bytes
Desc: 0001-Fix-ipmitool-mc-watchdog-get.patch
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191105/9721a880/attachment-0001.obj>
More information about the openbmc
mailing list