Apparatus and method for recording reboot reason of equipment
AssigneeHangzhou H3C Technologies Co., Ltd.
InventorsXiaoyong Deng, Yutian Wang
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention provide an apparatus and a method for recording a reboot reason of equipment. Besides a first watchdog provided for triggering a global reset of the equipment, the apparatus provided by the present invention further includes a second watchdog. The second watchdog is used to trigger a logic chip to record a value representing the reboot reason of power-down in a storage array after the equipment is powered on. Thus, reboot reason of the equipment could recorded as power-down reboot.
Claims19
An apparatus comprising:
- a CPU, a first watchdog, a second watchdog, a logic chip, and a storage array to record a value representing a reboot reason for an equipment;
- wherein the first watchdog is to output a first reset signal to the logic chip in response to the equipment being powered on;
- wherein the second watchdog is to output a second reset signal to the logic chip in response to the equipment being powered on;
- in response to receiving the first reset signal, the logic chip is to generate and output a CPU reset signal to the CPU, and
- in response to receiving the second reset signal, the logic chip is to replace a default value of the reboot reason recorded in the storage array to a power-down value representing power-down of the equipment.
A method for recording a reboot reason of equipment, comprising:
- receiving a first reset signal outputted by a first watchdog after the equipment is powered on;
- receiving a second reset signal outputted by a second watchdog after the equipment is powered on;
- generating and outputting a CPU reset signal to a CPU in response to receiving the first reset signal;
- and
- in response to receiving the second reset signal, replacing a default value of a reboot reason value recorded in a storage array to a value representing a power-down reboot of the equipment.
A non-transitory computer-readable storage medium, comprising machine-readable instructions that, when executed by a computer, cause the computer to:
- receive a first reset signal outputted by a first watchdog after an equipment is powered on;
- receive a second reset signal outputted by a second watchdog after the equipment is powered on;
- generate and output a CPU reset signal to a CPU in response to receipt of the first reset signal;
- and
- in response to receipt of the second reset signal, replace a default value of a reboot reason value recorded in a storage array to a value representing a power-down reboot of the equipment.
Dependencies are inferred from the claim text.