CN117707314A - Power supply abnormal time recording method and device - Google Patents

Power supply abnormal time recording method and device Download PDF

Info

Publication number
CN117707314A
CN117707314A CN202311435610.XA CN202311435610A CN117707314A CN 117707314 A CN117707314 A CN 117707314A CN 202311435610 A CN202311435610 A CN 202311435610A CN 117707314 A CN117707314 A CN 117707314A
Authority
CN
China
Prior art keywords
power supply
time
register
supply unit
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311435610.XA
Other languages
Chinese (zh)
Inventor
信仕尧
韩利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311435610.XA priority Critical patent/CN117707314A/en
Publication of CN117707314A publication Critical patent/CN117707314A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)
  • Power Sources (AREA)

Abstract

The application provides a power supply abnormal time recording method and a device, and relates to the technical field of computers, wherein the power supply abnormal time recording method is applied to a service system and comprises the following steps: in the case of power supply unit insertion, writing, by a baseboard management controller, a system time into a register in the power supply unit, the register for a sustained update time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit. The method and the device can ensure the accuracy and the continuity of the system time, ensure that the time in the register is consistent with the actual time of the service system, and simultaneously provide reliable time reference for subsequent operation and fault investigation.

Description

Power supply abnormal time recording method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for recording abnormal time of a power supply.
Background
An AC power (Alternating Current, AC) adapter used in a service system such as a server currently has a log recording function (also referred to as a black box log) inside the adapter, and the log recorded inside the power unit records the detailed state when some critical errors or faults occur in the power supply.
However, in the current detailed state, no time consistent with the service system is recorded, for example, only the fault phenomenon is recorded, but the fault occurrence time is not recorded, or the recorded time is that the internal time of the power supply is not consistent with the system time. This creates a blind spot: after the black box log is collected, only the power supply unit is known to report the problem, but the problem is particularly the problem at what time point, and the problem cannot be corresponded according to the information existing in the one-key log of the baseboard management controller (Baseboard Management Controller, BMC), so that the analysis and the processing of the related problems are not facilitated. Therefore, an effective solution is needed to solve the above-mentioned problems.
Disclosure of Invention
The purpose of the application is to provide a power supply abnormal time recording method and device, which are used for solving the technical problem that the calculated time and the system time in a black box log are not uniform.
The application provides a power supply abnormal time recording method, which is applied to a service system and comprises the following steps:
in the case of power supply unit insertion, writing, by a baseboard management controller, a system time into a register in the power supply unit, the register for a sustained update time;
extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time;
and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
According to the power supply abnormal time recording method provided by the application, the writing of the system time into the register in the power supply unit comprises the following steps:
in the system starting process, communicating with a register in the power supply unit through the baseboard management controller, and writing the current system time into the register; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; the specified system time is written to the register by the baseboard management controller.
According to the power supply abnormal time recording method provided by the application, the method further comprises the following steps:
and if the writing time interval of the system time reaches a preset writing period, writing the current system time into the register through the baseboard management controller.
According to the power supply abnormal time recording method provided by the application, the method further comprises the following steps:
recording the first power supply abnormal time;
responding to a first power supply log checking instruction, and acquiring first abnormal state information corresponding to the first power supply abnormal time from the power supply log according to the recorded first power supply abnormal time;
generating a first power supply abnormality log according to the first power supply abnormality time and the first abnormality state information;
and displaying the first power supply abnormality log through a display unit.
According to the power supply abnormal time recording method provided by the application, the default time is stored in the register;
the writing of the system time into the register in the power supply unit by the baseboard management controller includes:
and writing the system time into a register in the power supply unit through the baseboard management controller, and covering the default time.
According to the power supply abnormal time recording method provided by the application, the default time is before the production time of the power supply unit;
the method further comprises the steps of:
extracting a second power supply abnormal time from the register under the condition that the system time is not written into the register and the power supply unit is detected to be abnormal, wherein the second power supply abnormal time is the default time updated currently;
recording the second power supply abnormal time, and storing the second power supply abnormal time and the second abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in an associated mode;
responding to a second power supply log checking instruction, acquiring second abnormal state information corresponding to the second power supply abnormal time from the power supply log according to the recorded second power supply abnormal time, and acquiring the insertion time of the power supply unit;
determining a time difference value between the second power supply abnormal time and the default time, and adding the time difference value and the insertion time to obtain an abnormal system time corresponding to the second power supply abnormal time;
generating a second power supply abnormality log according to the abnormal system time and the second abnormal state information;
And displaying the second power supply abnormality log through a display unit.
The application also provides a power supply abnormal time recording method, which is applied to the baseboard management controller and comprises the following steps:
and under the condition that the power supply unit is inserted, writing the system time into a register in the power supply unit, wherein the register is used for continuously updating the time, so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, and the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored into a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time.
According to the power supply abnormal time recording method provided by the application, the writing of the system time into the register in the power supply unit comprises the following steps:
writing the current system time into a register in the power supply unit in the system starting process; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; writing the specified system time into the register.
According to the power supply abnormal time recording method provided by the application, the method further comprises the following steps:
If the writing time interval reaches the preset writing period, the current system time is written into the register.
The application also provides a power supply abnormal time recording method, which is applied to a power supply unit and comprises the following steps:
receiving a system time written by a baseboard management controller through a register in the power supply unit under the condition that the power supply unit is inserted, wherein the register is used for continuously updating the time;
extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time;
and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
According to the power supply abnormal time recording method provided by the application, the method further comprises the following steps:
receiving a power supply extraction configuration instruction, wherein the configuration instruction carries power supply extraction configuration parameters;
and configuring the register according to the power supply unplugging configuration parameters so that the register recovers a default time when the power supply unit is unplugged, wherein the default time is before the production time of the power supply unit.
According to the power supply abnormal time recording method provided by the application, the method further comprises the following steps:
receiving a system power-down configuration instruction, wherein the system power-down configuration instruction carries system power-down configuration parameters;
and configuring the register according to the system power-down configuration parameters so as to enable the register to continuously update time under the condition that the service system is powered off or restarted.
The application also provides a power supply abnormal time recording device, which is applied to a service system and comprises:
a first writing module configured to write, with a power supply unit inserted, a system time to a register in the power supply unit, the register for a duration update time, through a baseboard management controller;
a first extraction module configured to extract a first power supply abnormality time from the register, the first power supply abnormality time being a currently updated system time, in the event of an abnormality of the power supply unit;
the first storing module is configured to store the first power supply abnormal time and the first abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in a correlated mode.
The application also provides a power supply abnormal time recording device, which is applied to a baseboard management controller and comprises:
The second writing module is configured to write the system time into a register in the power supply unit under the condition that the power supply unit is inserted, wherein the register is used for continuously updating the time so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time.
The application also provides a power supply abnormal time recording device, which is applied to a power supply unit and comprises:
a first receiving module configured to receive a system time written by a baseboard management controller through a register in the power supply unit, the register being used for continuously updating the time, in a case where the power supply unit is plugged in;
a second extraction module configured to extract a first power supply abnormality time from the register, the first power supply abnormality time being a currently updated system time, in the event of an abnormality of the power supply unit;
and the second storing module is configured to store the first power supply abnormal time and the first abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in a correlated manner.
The application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the power supply abnormal time recording method according to any one of the above when executing the program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a power supply abnormality time recording method as described in any one of the above.
According to the power supply abnormal time recording method and device, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault detection. The system time and the time synchronization mechanism inside the power supply unit are introduced, so that the specific time of the power supply fault can be directly known through the power supply log when the power supply has a problem, and the problem analysis and the positioning are convenient.
Drawings
In order to more clearly illustrate the technical solutions of the present application or the prior art, the following description will briefly introduce the drawings used in the embodiments or the description of the prior art, and it is obvious that, in the following description, the drawings are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a power supply abnormality time recording method provided in the present application;
FIG. 2 is a second flowchart of a power abnormality time recording method provided in the present application;
FIG. 3 is a schematic diagram of a process flow of a baseboard management controller provided by the present application;
FIG. 4 is a third flow chart of the power abnormality time recording method provided in the present application;
FIG. 5 is a schematic flow chart of the power supply unit insertion provided in the present application;
fig. 6 is a schematic diagram of a flow of power unit extraction provided in the present application;
FIG. 7 is a schematic diagram of a power abnormality time recording apparatus according to the present disclosure;
FIG. 8 is a second schematic diagram of a power abnormality time recording apparatus according to the present disclosure;
FIG. 9 is a third schematic diagram of the power abnormality time recording apparatus according to the present disclosure;
Fig. 10 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms "first," "second," and the like in the description of the present application, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. In addition, "and/or" in the specification means at least one of the connected objects, and the character "/", generally means a relationship in which the associated objects are one kind of "or".
The source abnormality time recording method and device provided by the embodiment of the application are described in detail below by means of specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 1, a method for recording source abnormal time according to an embodiment of the present application may include the following steps 101, 102 and 103:
step 101: in case of a power supply unit insertion, the system time is written by the baseboard management controller into a register in the power supply unit, which register is used for the duration of the update time.
Specifically, the service system refers to a system for providing business services, and may be a server. The power supply unit refers to a device that supplies power to the service system, such as an AC power adapter, a power supply unit (Power Supply Unit, PSU), or the like. The system time may be a time provided by the service system, may be a user-specified time, and may include at least one of year, month, day, time, minute, and second.
In practical applications, a readable and writable register may be provided in the power supply unit for storing and updating the system time. The register is a common hardware design, and in this application, the register may be a register that is clocked at a fixed frequency, where the fixed frequency is once every second, and the stored time is automatically updated according to the frequency, where the time may be the stored system time, or may be a default time of the register.
The register may be, for example, a Clock Register (RTC) or a register that is simpler than the RTC design, such as a Time storage register. The purpose of the registers is to save and update system time and time information.
When the power supply unit is connected to the service system, that is, when the power supply is plugged into the service system, the BMC in the service system may write the system time information into the register. And the register continuously updates the written system time, namely every 1 second, the system time is increased by 1 second.
Step 102: and under the condition that the power supply unit is abnormal, extracting a first power supply abnormal time from the register, wherein the first power supply abnormal time is the current updated system time.
Specifically, the anomaly may be a fault, or other abnormal phenomena such as voltage drop, power failure, etc. The power supply abnormal time refers to the system time when the power supply fails, i.e., the system time updated currently.
In practical application, when the power supply fails, the service system or the power supply unit in the service system will acquire the current time value when the failure occurs, that is, acquire the first power supply abnormal time from the register.
Step 103: and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
Specifically, the abnormal state information refers to information such as a detailed state or a phenomenon in which the power supply fails. The power log refers to a log recorded inside the power unit, i.e., a black box log.
In practical application, when the power supply fails, the service system or the power supply unit in the service system can store the first power supply abnormal time and the first abnormal state information in the black box log in an associated manner, namely, the power supply log corresponding to the power supply unit. Therefore, the black box log can be consulted in the fault checking process, and the time information when the fault occurs is analyzed, so that an effective clue is provided for the tracing of the problems.
According to the power supply abnormal time recording method, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault detection.
In one or more alternative embodiments of the present application, the writing of the system time into the register in the power supply unit may be implemented as follows:
in the system starting process, communicating with a register in the power supply unit through the baseboard management controller, and writing the current system time into the register; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; the specified system time is written to the register by the baseboard management controller.
In practical applications, when the BMC communicates with a register in the power supply unit and writes the same, the BMC may write the system time or system time information into the register. Such operations typically occur during system start-up or when an administrator needs to manually adjust and/or synchronize system time.
For example, during system start-up, the BMC may write the current BMC time (i.e., system time) into a register, where the system time is provided by the service system.
For example, the administrator may generate, through a code or an operation, a time adjustment instruction, where the time adjustment instruction carries a specified system time, and the system time at this time may be any time specified by the user, or may be a time displayed by the service system. Further, the service system receives the time adjustment instruction, and writes the system time carried in the time adjustment instruction into a register through the BMC, so as to realize manual adjustment or synchronization of the system time.
Therefore, the writing of the system time is performed in the system starting process, the time in the register can be updated rapidly and accurately, the abnormal power supply time consistent with the service system is obtained under the condition that the power supply unit is abnormal, and the accuracy and the reliability of time information are ensured. By writing the appointed system time into the register, the time management of the register by a user can be ensured, and the register is more humanized.
It should be noted that, in order to ensure security, a tamper-proof technique may be used to set the register, for example, to consider how to protect the value in the time storage register from unauthorized access or tampering, so as to ensure security and reliability of the time information.
Illustratively, the personnel modifying the time in the register may be authorized to verify: for authorized personnel, allowing them to adjust the time in the register; for unauthorized persons, the time in the adjustment register is denied. The time written into the register can also be subjected to format verification, and the format can be a time format, such as year, month and day, and any other format: if the time to be written passes the format verification, the register stores the time and continuously updates the time; if the time to be written does not pass the format verification, the register does not accept the time.
In one or more alternative embodiments of the present application, the method further comprises:
and if the writing time interval of the system time reaches a preset writing period, writing the current system time into the register through the baseboard management controller.
In practical applications, when the power supply unit is connected to or disconnected from a machine (service system), the BMC will periodically write the current BMC time (i.e. system time) into the register, for example, once every 5 minutes (write cycle). In this way, the time in the register can be ensured to be synchronous with the actual system time, so as to avoid the occurrence of inaccurate time.
In one or more alternative embodiments of the present application, the method further comprises:
recording the first power supply abnormal time;
responding to a first power supply log checking instruction, and acquiring first abnormal state information corresponding to the first power supply abnormal time from the power supply log according to the recorded first power supply abnormal time;
generating a first power supply abnormality log according to the first power supply abnormality time and the first abnormality state information;
and displaying the first power supply abnormality log through a display unit.
Specifically, the power log viewing instruction refers to an instruction triggered or generated by a user viewing the power log.
In practical application, when the power supply unit fails, the service system also records the time value in the register, i.e. the first power supply abnormal time. In this way, when the fault is detected, the time (first power abnormal time) recorded by the service system can be used for consulting the black box log (power log) to obtain the corresponding abnormal state information (first abnormal state information), and the time information (first power abnormal time) and the state information (first abnormal state information) when the fault occurs are analyzed to provide an effective clue for the tracing of the problem.
The first abnormal state information corresponding to the first power supply abnormal time is obtained from the black box log according to the first abnormal state information, the first power supply abnormal time and the first abnormal state information are spliced or combined to form a first power supply abnormal log, and the first power supply abnormal log is displayed through a display unit; the first power supply abnormality time and the first abnormality state information may also be displayed by the display unit.
In addition, the first power supply abnormal time and the first abnormal state information can be spliced or combined to form a first power supply abnormal log and stored in the black box log, then the first power supply abnormal log corresponding to the first power supply abnormal time is obtained from the black box log in response to a first power supply log checking instruction, and the first power supply abnormal log is displayed through the display unit.
In one or more alternative embodiments of the present application, the register has a default time stored therein;
the system time is written into the register in the power supply unit by the baseboard management controller, and the specific implementation process can be as follows:
and writing the system time into a register in the power supply unit through the baseboard management controller, and covering the default time.
Specifically, the default time refers to the initial time.
In practice, the initial time (default time) of the register in the power supply unit is set to a fixed date or time, such as 1 month, 1 day, 12 hours, 0 minutes, 0 seconds, for example. Because the power supply unit cannot acquire accurate time information immediately, default time is set, and the power supply unit can be ensured to have a reasonable time when the service system is started initially.
In one or more alternative embodiments of the present application, the default time is prior to a production time of the power supply unit;
the method further comprises the steps of:
extracting a second power supply abnormal time from the register under the condition that the system time is not written into the register and the power supply unit is detected to be abnormal, wherein the second power supply abnormal time is the default time updated currently;
Recording the second power supply abnormal time, and storing the second power supply abnormal time and the second abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in an associated mode;
responding to a second power supply log checking instruction, acquiring second abnormal state information corresponding to the second power supply abnormal time from the power supply log according to the recorded second power supply abnormal time, and acquiring the insertion time of the power supply unit;
determining a time difference value between the second power supply abnormal time and the default time, and adding the time difference value and the insertion time to obtain an abnormal system time corresponding to the second power supply abnormal time;
generating a second power supply abnormality log according to the abnormal system time and the second abnormal state information;
and displaying the second power supply abnormality log through a display unit.
Specifically, the default time may be before the time when the power supply unit is first used, or a time distant from the current time. Preferably, the default time is before the production time of the power supply unit. Therefore, the default time in the register can be greatly different from the system time, and the default time can be used for identifying whether the system time is written into the register or not, so that the accuracy of the acquisition time when the power supply unit is abnormal is ensured.
The abnormal system time refers to a system time when an abnormality occurs in the power supply unit.
In practical applications, registers are continuously updated at a default time during a period between the time when the power supply unit is plugged into the service system and the time when the system time is written into the registers in the power supply unit. If an abnormality occurs in the power supply unit at a stage when the system time is not written into the register, a second power supply abnormality time, which is a default time updated at present, may be extracted from the register.
Further, the service system records the second power supply abnormal time, and associates the second power supply abnormal time with the second abnormal state information of the power supply unit and stores the second abnormal state information into a power supply log corresponding to the power supply unit.
And when the user checks, namely, in response to a second power supply log checking instruction, acquiring second abnormal state information corresponding to the second power supply abnormal time from the power supply log according to the second power supply abnormal time recorded by the service system. When the power supply is plugged into the service system, the service system records the plug-in time of the power supply unit, at this time, the time difference between the abnormal time of the second power supply and the default time can be calculated, then the time difference is added with the plug-in time to obtain the abnormal system time corresponding to the abnormal time of the second power supply, and further a second power supply abnormal log is generated according to the abnormal system time and the second abnormal state information, and the second power supply abnormal log is displayed through the display unit; or the abnormal system time and the second abnormal state information are displayed directly through the display unit.
Therefore, the accuracy of the acquired time information can be ensured, and the accuracy of power failure analysis can be improved.
In one or more alternative embodiments of the present application, the default time is prior to a production time of the power supply unit; the method further comprises the steps of: extracting a second power supply abnormal time from the register and acquiring the insertion time of the power supply unit under the condition that the system time is not written into the register and the abnormality of the power supply unit is detected, wherein the second power supply abnormal time is the default time updated currently; determining a time difference value between the second power supply abnormal time and the default time, and adding the time difference value and the insertion time to obtain an abnormal system time corresponding to the second power supply abnormal time; recording the abnormal system time, and associating the second power supply abnormal time with the second abnormal state information of the power supply unit and storing the second abnormal state information into a power supply log corresponding to the power supply unit; responding to a second power supply log checking instruction, and acquiring second abnormal state information corresponding to the abnormal system time from the power supply log according to the recorded abnormal system time; and displaying the abnormal system time and the second abnormal state information through a display unit, or generating a second power supply abnormal log according to the abnormal system time and the second abnormal state information, and displaying the second power supply abnormal log through the display unit.
In one or more alternative embodiments of the present application, the method further comprises:
and configuring the unplugging setting of the register so that the register restores the default time when the power supply unit is unplugged.
In practical applications, in the case where the power supply unit is unplugged from one service system and plugged into another service system, in order to avoid that the register still retains the time information of the previous service system, it is necessary to restore the register to the default time when the power supply unit is unplugged. Therefore, the service system can configure the pull-out setting of the register, so that the register can automatically restore the default value, namely the default time when the power supply unit is pulled out. It is very necessary and important to restore the default time of the register when the power supply unit is unplugged, and the accuracy and reliability of the time information can be ensured.
In one or more alternative embodiments of the present application, the method further comprises:
and configuring the power-down configuration of the register so that the register is continuously updated for a time when the service system is powered down.
In practice, by storing the system time in a readable and writable register, the register can maintain time continuity after the system is powered down or restarted (powered down). Therefore, the service system can configure the power-down configuration of the register, so that the register can be continuously updated after the service system is powered down.
The registers may provide other functions in addition to storing system time, such as an alarm clock function, a timer function, etc. This makes its registers an important component, playing a critical role in the service system. By the operation of the BMC, the accurate system time can be written into the register, so that the accurate time can be kept continuously after the service system is powered off or restarted.
By introducing a mechanism for synchronizing BMC time and internal time of a power supply unit, when a problem occurs in the power supply unit, the specific time of the power supply fault can be known directly through a black box log of the power supply, and analysis and positioning of the problem are greatly facilitated.
Because the time information within the power supply is relatively independent in conventional power supply designs, it is difficult to synchronize with other system components. After the mechanism of synchronizing the BMC time and the internal time of the power supply unit is introduced, the time information of the power supply unit can be ensured to be consistent with the time of the whole service system.
When the power supply unit fails, the power supply unit stores the specific time when the failure occurs in the power log, and this time information is obtained by synchronizing with the BMC time. Thus, the point in time at which the fault occurred can be accurately known, which is critical to the analysis and localization of the problem.
By means of the time information in the power log, it is possible to compare and correlate with other system events. For example, the logs of other components may be reviewed to understand their status before and after the fault occurs, thereby facilitating determination of the cause and possible scope of impact of the fault. This precise time alignment helps to speed up the diagnosis of problems and reduce the complexity of troubleshooting.
The mechanism of synchronizing BMC time and power supply internal time is introduced, so that the efficiency of fault analysis and positioning is improved, and important guarantee is provided for the reliability and stability of the whole service system. By ensuring the consistency of time, the occurrence process of the problems can be traced more accurately, and measures can be taken in time to reduce the influence of faults on the system.
Therefore, a mechanism of synchronizing BMC time and internal time of a power supply unit is introduced, and the system has important significance for power failure detection, provides reliable time reference for problem analysis and positioning, and improves reliability and maintainability of the whole system.
In addition, for the power supply abnormal time recording method provided by the application, the following configuration or expansion can be performed:
(1) The power management technology comprises the following steps: more advanced power management techniques are used to improve reliability and efficiency and to ensure that system time can be properly managed during power plug.
(2) Time synchronization protocol: and a stronger time synchronization protocol is used, so that the time in the register and the actual system time are always kept synchronous, and the situation of inaccurate time is reduced.
(3) Black box log analysis tool: the tool and algorithm are used for analyzing the time information in the black box log and providing effective fault checking clues.
(4) Fault prediction and prevention: using the time in the register and the time information in the black box log, it is analyzed how to predict and prevent power failures before they occur.
(5) Data recovery and synchronization techniques: by utilizing research data recovery and synchronization technology, the default time of the register is quickly recovered when the power supply is pulled out, and data synchronization is performed when the power supply unit is re-accessed, so that the accuracy and the continuity of time information are ensured.
(6) Security and tamper-resistant techniques: by utilizing security and tamper-proof technology, the time in the register is protected from unauthorized access or tampering so as to ensure the security and credibility of the time information.
(7) Automated time alignment tool: the time in the register is calibrated regularly by using a time calibration tool and kept consistent with the actual system time, so that the requirement of manual operation is reduced.
(8) Timestamp technique: and the time stamp technology is utilized to improve the accurate recording and tracing capability of the accident occurrence time.
Fig. 2 is a second flowchart of the power abnormality time recording method provided in the present application, referring to fig. 2, the power abnormality time recording method is applied to a baseboard management controller, and includes steps 201 to 202, wherein:
step 201: starting.
Step 202: and under the condition that the power supply unit is inserted, writing the system time into a register in the power supply unit, wherein the register is used for continuously updating the time, so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, and the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored into a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time.
In practical applications, a readable and writable register may be provided in the power supply unit for storing and updating the system time. When the power supply unit is connected to the service system, that is, when the power supply is plugged into the service system, the BMC configured in the service system may write the system time information into the register. And the register continuously updates the written system time.
When the power supply fails, the service system or a power supply unit in the service system acquires the current time value when the failure occurs, namely, acquires the first power supply abnormal time from the register, and stores the first power supply abnormal time and the first abnormal state information in a black box log in an associated mode, namely, the power supply log corresponding to the power supply unit. Therefore, the black box log can be consulted in the fault checking process, and the time information when the fault occurs is analyzed, so that an effective clue is provided for the tracing of the problems.
According to the power supply abnormal time recording method, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault detection.
In one or more alternative embodiments of the present application, the writing the system time to a register in the power supply unit includes:
writing the current system time into a register in the power supply unit in the system starting process; or,
Receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; writing the specified system time into the register.
In practical applications, when the BMC communicates with a register in the power supply unit and writes the same, the BMC may write the system time or system time information into the register. Such operations typically occur during system start-up or when an administrator needs to manually adjust and/or synchronize system time.
For example, during system startup, the BMC may write the current system time into a register, where the system time is provided by the service system.
For example, the administrator may generate, through a code or an operation, a time adjustment instruction, where the time adjustment instruction carries a specified system time, and the system time at this time may be any time specified by the user, or may be a time displayed by the service system. Further, the BMC receives the time adjustment instruction, and writes the system time carried in the time adjustment instruction into a register to realize manual adjustment or synchronization of the system time.
Therefore, the writing of the system time is performed in the system starting process, the time in the register can be updated rapidly and accurately, the abnormal power supply time consistent with the service system is obtained under the condition that the power supply unit is abnormal, and the accuracy and the reliability of time information are ensured. By writing the appointed system time into the register, the time management of the register by a user can be ensured, and the register is more humanized.
In one or more alternative embodiments of the present application, the method further comprises:
if the writing time interval reaches the preset writing period, the current system time is written into the register.
In practical applications, when the power supply unit is connected to or disconnected from a machine (service system), the BMC will periodically write the current BMC time (i.e. the system time) into the register. In this way, the time in the register can be ensured to be synchronous with the actual system time, so as to avoid the occurrence of inaccurate time.
See the process flow diagram of the baseboard management controller shown in fig. 3: after the power supply unit is plugged in, the BMC writes the current system time to a register in the power supply unit. And judging whether the writing time interval reaches the writing period, if so, returning to the step of executing the BMC to write the current system time into a register in the power supply unit, and if not, waiting for the writing time interval to reach the writing period.
Fig. 4 is a third flowchart of the power supply abnormality time recording method provided in the present application, referring to fig. 4, where the power supply abnormality time recording method is applied to a baseboard management controller, and includes steps 401 to 403, where:
Step 401: in the case of the power supply unit being plugged in, the system time written by the baseboard management controller is received through a register in the power supply unit, the register being used for continuously updating the time.
In practical applications, a readable and writable register may be provided in the power supply unit for storing and updating the system time. When the power supply unit is connected to the service system, that is, when the power supply is plugged into the service system, the BMC in the service system may write the system time information into the register. Correspondingly, the register receives the system time written by the baseboard management controller and continuously updates the written system time.
Step 402: and under the condition that the power supply unit is abnormal, extracting a first power supply abnormal time from the register, wherein the first power supply abnormal time is the current updated system time.
In practical application, when the power supply fails, the power supply unit will acquire the current time value when the failure occurs, that is, acquire the first power supply abnormal time from the register.
Step 403: and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
In practical application, when the power supply fails, the power supply unit can store the first power supply abnormal time and the first abnormal state information in the black box log in an associated manner, namely, the power supply log corresponding to the power supply unit. Therefore, the black box log can be consulted in the fault checking process, and the time information when the fault occurs is analyzed, so that an effective clue is provided for the tracing of the problems.
Referring to fig. 5, a schematic flow chart of power supply unit insertion provided in the present application is shown: after the power supply unit is plugged in, if the BMC writes the system time into the register, the register is saved and continuously updated. Then judging whether the power supply unit is abnormal, if so, extracting first power supply abnormal time, and storing the first power supply abnormal time and the first abnormal state information in a power supply log in a correlation manner; if not, returning to execute the step of storing and continuously updating the register if the BMC writes the system time into the register.
According to the power supply abnormal time recording method, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault detection.
In one or more alternative embodiments of the present application, the method further comprises:
receiving a power supply extraction configuration instruction, wherein the configuration instruction carries power supply extraction configuration parameters;
and configuring the register according to the power supply unplugging configuration parameters so that the register recovers a default time when the power supply unit is unplugged, wherein the default time is before the production time of the power supply unit.
In practical applications, in the case that the power supply unit is unplugged from one service system and plugged into another service system, in order to avoid that the register still retains the time information of the previous service system, referring to fig. 6, a schematic flow diagram of unplugging the power supply unit provided in the present application is shown, and it is necessary to restore the register to a default time when the power supply unit is unplugged (unplugged). Therefore, by configuring the pull-out setting of the register, the register can automatically restore the default value, i.e., the default time, when the power supply unit is pulled out. The power supply unit may be configured to be pulled out during production, may be configured to be pulled out after production and before use, or may be configured to be pulled out during use.
Specifically, the power supply unit may receive a unplug configuration instruction carrying a power unplug configuration parameter, wherein the power unplug configuration parameter refers to a parameter that causes the register to resume a default time when the power supply unit is unplug. Further, the power supply unit configures the register based on the power supply unplug configuration parameter such that the register resumes a default time when the power supply unit is unplugged.
In one or more alternative embodiments of the present application, the method further comprises:
receiving a system power-down configuration instruction, wherein the system power-down configuration instruction carries system power-down configuration parameters;
and configuring the register according to the system power-down configuration parameters so as to enable the register to continuously update time under the condition that the service system is powered off or restarted.
In practice, by storing the system time in a readable and writable register, the register can maintain time continuity after the system is powered down or restarted (powered down). Therefore, the power-down configuration of the register can be configured so that the register can last for an update time after the service system is powered down. The system power-down configuration can be performed during the production of the power supply unit, can be performed after the production of the power supply unit and before the use of the power supply unit, and can be performed during the use of the power supply unit.
Specifically, the power supply unit may receive a system power-down configuration instruction carrying a system power-down configuration parameter, where the system power-down configuration parameter is a parameter that enables the register to continue updating the time after powering down the service system. Further, the power supply unit configures the register based on the system power-down configuration parameters, so that the register continues to update the time parameters after the service system is powered down.
The power supply abnormality time recording apparatus provided in the present application will be described below, and the power supply abnormality time recording apparatus described below and the power supply abnormality time recording method described above may be referred to correspondingly to each other.
Fig. 7 is a schematic structural diagram of a power supply abnormality time recording apparatus provided in the present application, and as shown in fig. 7, the power supply abnormality time recording apparatus is applied to a service system, and includes:
a first writing module 701 configured to write, in case of a power supply unit being plugged in, a system time to a register in the power supply unit for a duration of update time by a baseboard management controller;
a first extraction module 702 configured to extract, in the event of an abnormality of the power supply unit, a first power supply abnormality time from the register, the first power supply abnormality time being a currently updated system time;
A first logging module 703, configured to correlate the first power supply abnormal time and the first abnormal state information of the power supply unit to a power supply log corresponding to the power supply unit.
According to the power supply abnormal time recording device, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault investigation.
In one or more optional embodiments of the present application, the first writing module 701 is further configured to:
in the system starting process, communicating with a register in the power supply unit through the baseboard management controller, and writing the current system time into the register; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; the specified system time is written to the register by the baseboard management controller.
In one or more optional embodiments of the present application, the power supply abnormality time recording device further includes:
and the third writing module is configured to write the current system time into the register through the baseboard management controller if the writing time interval of the system time reaches a preset writing period.
In one or more optional embodiments of the present application, the power supply abnormality time recording device further includes a first query module configured to:
recording the first power supply abnormal time;
responding to a first power supply log checking instruction, and acquiring first abnormal state information corresponding to the first power supply abnormal time from the power supply log according to the recorded first power supply abnormal time;
generating a first power supply abnormality log according to the first power supply abnormality time and the first abnormality state information;
and displaying the first power supply abnormality log through a display unit.
In one or more alternative embodiments of the present application, the register has a default time stored therein;
the first writing module 701 is further configured to:
and writing the system time into a register in the power supply unit through the baseboard management controller, and covering the default time.
In one or more alternative embodiments of the present application, the default time is prior to a production time of the power supply unit;
the power supply abnormality time recording apparatus further includes a second query module configured to:
extracting a second power supply abnormal time from the register under the condition that the system time is not written into the register and the power supply unit is detected to be abnormal, wherein the second power supply abnormal time is the default time updated currently;
recording the second power supply abnormal time, and storing the second power supply abnormal time and the second abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in an associated mode;
responding to a second power supply log checking instruction, acquiring second abnormal state information corresponding to the second power supply abnormal time from the power supply log according to the recorded second power supply abnormal time, and acquiring the insertion time of the power supply unit;
determining a time difference value between the second power supply abnormal time and the default time, and adding the time difference value and the insertion time to obtain an abnormal system time corresponding to the second power supply abnormal time;
Generating a second power supply abnormality log according to the abnormal system time and the second abnormal state information;
and displaying the second power supply abnormality log through a display unit.
Fig. 8 is a schematic structural diagram of a power supply abnormality time recording device provided in the present application, and as shown in fig. 8, the power supply abnormality time recording device is applied to a baseboard management controller, and includes:
the second writing module 801 is configured to write, when a power supply unit is plugged in, a system time into a register in the power supply unit, where the register is used to continuously update a time, so that when the power supply unit is abnormal, the power supply unit extracts a power supply abnormal time from the register, and the power supply abnormal time and abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit, where the power supply abnormal time is the currently updated system time.
According to the power supply abnormal time recording device, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault investigation.
In one or more optional embodiments of the present application, the second writing module 801 is further configured to:
writing the current system time into a register in the power supply unit in the system starting process; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; writing the specified system time into the register.
In one or more alternative embodiments of the present application, the power supply abnormality time recording device further includes:
and the fourth writing module is configured to write the current system time into the register if the writing time interval reaches a preset writing period.
Fig. 9 is a schematic structural diagram of a power supply abnormality time recording device provided in the present application, and as shown in fig. 9, the power supply abnormality time recording device is applied to a power supply unit, and includes:
a first receiving module 901 configured to receive, in a case where the power supply unit is plugged in, a system time written by a baseboard management controller through a register in the power supply unit, the register being used for continuously updating the time;
a second extracting module 902 configured to extract, in the event of an abnormality in the power supply unit, a first power supply abnormality time from the register, the first power supply abnormality time being a currently updated system time;
The second logging module 903 is configured to correlate the first power supply abnormal time and the first abnormal state information of the power supply unit to a power supply log corresponding to the power supply unit.
According to the power supply abnormal time recording device, the system time is written into the register in the power supply unit, the first power supply abnormal time is recorded when the power supply is abnormal, the first power supply abnormal time and the first abnormal state information are stored in the power supply log in an associated mode, accuracy and continuity of the system time can be guaranteed, the fact that the time in the register is consistent with the actual time of the service system is guaranteed, and meanwhile reliable time references are provided for subsequent operation and fault investigation.
In one or more optional embodiments of the present application, the power supply abnormality time recording device further includes a first configuration module configured to:
receiving a power supply extraction configuration instruction, wherein the configuration instruction carries power supply extraction configuration parameters;
and configuring the register according to the power supply unplugging configuration parameters so that the register recovers a default time when the power supply unit is unplugged, wherein the default time is before the production time of the power supply unit.
In one or more optional embodiments of the present application, the power supply abnormality time recording device further includes a second configuration module configured to:
receiving a system power-down configuration instruction, wherein the system power-down configuration instruction carries system power-down configuration parameters;
and configuring the register according to the system power-down configuration parameters so as to enable the register to continuously update time under the condition that the service system is powered off or restarted.
Fig. 10 illustrates a physical structure diagram of an electronic device, as shown in fig. 10, which may include: a processor 1010, a communication interface (Communications Interface) 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. Processor 1010 may invoke logic instructions in memory 1030 to perform a power supply exception time recording method comprising: in the case of power supply unit insertion, writing, by a baseboard management controller, a system time into a register in the power supply unit, the register for a sustained update time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit;
Or under the condition that a power supply unit is inserted, writing the system time into a register in the power supply unit, wherein the register is used for continuously updating the time, so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, and the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored into a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time;
or, in the case of the power supply unit being plugged in, receiving, by a register in the power supply unit, a system time written by a baseboard management controller, the register being used for continuously updating the time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
Further, the logic instructions in the memory 1030 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a computer readable storage medium, where the computer program, when executed by a processor, can perform a method for recording abnormal power supply time provided by the above methods, where the method includes: in the case of power supply unit insertion, writing, by a baseboard management controller, a system time into a register in the power supply unit, the register for a sustained update time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit;
or under the condition that a power supply unit is inserted, writing the system time into a register in the power supply unit, wherein the register is used for continuously updating the time, so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, and the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored into a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time;
Or, in the case of the power supply unit being plugged in, receiving, by a register in the power supply unit, a system time written by a baseboard management controller, the register being used for continuously updating the time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
In still another aspect, the present application further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the power abnormality time recording method provided by the above methods, the method comprising: in the case of power supply unit insertion, writing, by a baseboard management controller, a system time into a register in the power supply unit, the register for a sustained update time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit;
Or under the condition that a power supply unit is inserted, writing the system time into a register in the power supply unit, wherein the register is used for continuously updating the time, so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, and the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored into a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time;
or, in the case of the power supply unit being plugged in, receiving, by a register in the power supply unit, a system time written by a baseboard management controller, the register being used for continuously updating the time; extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time; and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (17)

1. A power supply abnormality time recording method, characterized by being applied to a service system, comprising:
in the case of power supply unit insertion, writing, by a baseboard management controller, a system time into a register in the power supply unit, the register for a sustained update time;
extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time;
and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
2. The power supply abnormality time recording method according to claim 1, characterized in that said writing of system time to a register in said power supply unit includes:
in the system starting process, communicating with a register in the power supply unit through the baseboard management controller, and writing the current system time into the register; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; the specified system time is written to the register by the baseboard management controller.
3. The power supply abnormality time recording method according to claim 1, characterized in that the method further comprises:
and if the writing time interval of the system time reaches a preset writing period, writing the current system time into the register through the baseboard management controller.
4. The power supply abnormality time recording method according to claim 1, characterized in that the method further comprises:
recording the first power supply abnormal time;
responding to a first power supply log checking instruction, and acquiring first abnormal state information corresponding to the first power supply abnormal time from the power supply log according to the recorded first power supply abnormal time;
generating a first power supply abnormality log according to the first power supply abnormality time and the first abnormality state information;
and displaying the first power supply abnormality log through a display unit.
5. The power supply abnormality time recording method according to claim 1, wherein a default time is stored in the register;
the writing of the system time into the register in the power supply unit by the baseboard management controller includes:
and writing the system time into a register in the power supply unit through the baseboard management controller, and covering the default time.
6. The power supply abnormality time recording method according to claim 5, wherein the default time is before a production time of the power supply unit;
the method further comprises the steps of:
extracting a second power supply abnormal time from the register under the condition that the system time is not written into the register and the power supply unit is detected to be abnormal, wherein the second power supply abnormal time is the default time updated currently;
recording the second power supply abnormal time, and storing the second power supply abnormal time and the second abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in an associated mode;
responding to a second power supply log checking instruction, acquiring second abnormal state information corresponding to the second power supply abnormal time from the power supply log according to the recorded second power supply abnormal time, and acquiring the insertion time of the power supply unit;
determining a time difference value between the second power supply abnormal time and the default time, and adding the time difference value and the insertion time to obtain an abnormal system time corresponding to the second power supply abnormal time;
generating a second power supply abnormality log according to the abnormal system time and the second abnormal state information;
And displaying the second power supply abnormality log through a display unit.
7. A power supply abnormality time recording method, which is applied to a baseboard management controller, comprising:
and under the condition that the power supply unit is inserted, writing the system time into a register in the power supply unit, wherein the register is used for continuously updating the time, so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, and the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored into a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time.
8. The power supply abnormality time recording method according to claim 7, characterized in that said writing of system time to a register in said power supply unit includes:
writing the current system time into a register in the power supply unit in the system starting process; or,
receiving a time adjustment instruction, wherein the time adjustment instruction carries appointed system time; writing the specified system time into the register.
9. The power supply abnormality time recording method according to claim 7, characterized in that the method further comprises:
If the writing time interval reaches the preset writing period, the current system time is written into the register.
10. A power supply abnormality time recording method, characterized by being applied to a power supply unit, comprising:
receiving a system time written by a baseboard management controller through a register in the power supply unit under the condition that the power supply unit is inserted, wherein the register is used for continuously updating the time;
extracting a first power supply abnormal time from the register under the condition that the power supply unit is abnormal, wherein the first power supply abnormal time is the current updated system time;
and the first power supply abnormal time and the first abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit.
11. The power supply abnormality time recording method according to claim 10, characterized in that the method further comprises:
receiving a power supply extraction configuration instruction, wherein the configuration instruction carries power supply extraction configuration parameters;
and configuring the register according to the power supply unplugging configuration parameters so that the register recovers a default time when the power supply unit is unplugged, wherein the default time is before the production time of the power supply unit.
12. The power supply abnormality time recording method according to claim 10, characterized in that the method further comprises:
receiving a system power-down configuration instruction, wherein the system power-down configuration instruction carries system power-down configuration parameters;
and configuring the register according to the system power-down configuration parameters so as to enable the register to continuously update time under the condition that the service system is powered off or restarted.
13. A power supply abnormality time recording apparatus, characterized by being applied to a service system, comprising:
a first writing module configured to write, with a power supply unit inserted, a system time to a register in the power supply unit, the register for a duration update time, through a baseboard management controller;
a first extraction module configured to extract a first power supply abnormality time from the register, the first power supply abnormality time being a currently updated system time, in the event of an abnormality of the power supply unit;
the first storing module is configured to store the first power supply abnormal time and the first abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in a correlated mode.
14. A power supply abnormality time recording apparatus, which is applied to a substrate management controller, comprising:
The second writing module is configured to write the system time into a register in the power supply unit under the condition that the power supply unit is inserted, wherein the register is used for continuously updating the time so that the power supply unit extracts the power supply abnormal time from the register under the condition that the power supply unit is abnormal, the power supply abnormal time and the abnormal state information of the power supply unit are associated and stored in a power supply log corresponding to the power supply unit, and the power supply abnormal time is the current updated system time.
15. A power supply abnormality time recording apparatus, characterized by being applied to a power supply unit, comprising:
a first receiving module configured to receive a system time written by a baseboard management controller through a register in the power supply unit, the register being used for continuously updating the time, in a case where the power supply unit is plugged in;
a second extraction module configured to extract a first power supply abnormality time from the register, the first power supply abnormality time being a currently updated system time, in the event of an abnormality of the power supply unit;
and the second storing module is configured to store the first power supply abnormal time and the first abnormal state information of the power supply unit in a power supply log corresponding to the power supply unit in a correlated manner.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the power supply abnormality time recording method according to any one of claims 1 to 6, or implements the power supply abnormality time recording method according to any one of claims 7 to 9, or implements the power supply abnormality time recording method according to any one of claims 10 to 12 when executing the program.
17. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the power supply abnormality time recording method according to any one of claims 1 to 6, or implements the power supply abnormality time recording method according to any one of claims 7 to 9, or implements the power supply abnormality time recording method according to any one of claims 10 to 12.
CN202311435610.XA 2023-10-31 2023-10-31 Power supply abnormal time recording method and device Pending CN117707314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311435610.XA CN117707314A (en) 2023-10-31 2023-10-31 Power supply abnormal time recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311435610.XA CN117707314A (en) 2023-10-31 2023-10-31 Power supply abnormal time recording method and device

Publications (1)

Publication Number Publication Date
CN117707314A true CN117707314A (en) 2024-03-15

Family

ID=90148746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311435610.XA Pending CN117707314A (en) 2023-10-31 2023-10-31 Power supply abnormal time recording method and device

Country Status (1)

Country Link
CN (1) CN117707314A (en)

Similar Documents

Publication Publication Date Title
CN102436376B (en) For the pattern checking that Distributed Application confirms
US7757124B1 (en) Method and system for automatic correlation of asynchronous errors and stimuli
CN116107819A (en) Server start-up fault detection system, method, device and medium
US8554727B2 (en) Method and system of tiered quiescing
CN103106128A (en) Cold startup switch machine test method and cold starting switch machine test system
CN111767173A (en) Network equipment data processing method and device, computer equipment and storage medium
CN114116280A (en) Interactive BMC self-recovery method, system, terminal and storage medium
CN112947678A (en) SoC dual-core system clock synchronization method and device
CN111181775B (en) Integrated operation and maintenance management alarm method based on automatic host asset discovery
CN115629968A (en) Test data recording method and device
CN111130951A (en) Equipment state detection method, device and storage medium
CN111858448B (en) Method and device for deadlock and recovery of I2C
CN107066361A (en) The method and apparatus that a kind of utilization BMC disables corrupted internal memory
CN117707314A (en) Power supply abnormal time recording method and device
CN109710453A (en) A kind of continuous data store method
CN102520880B (en) System raid management module design method
CN109104314B (en) Method and device for modifying log configuration file
CN110908947A (en) Hot plug method and device for frame type equipment line card, main control board and frame type equipment
CN115794486A (en) Robot information acquisition method, system, device and readable medium
US11782800B2 (en) Methods to automatically correct and improve system recovery and replication processes
CN108762967A (en) Software watchdog implementation method for monitoring Web service in linux system
CN113377156A (en) RTC (real time clock) accuracy verification method and device
CN113946448A (en) Time sequence management method and device of server cluster and electronic equipment
CN111240990A (en) ISMCLI command line testing method, system, terminal and storage medium
CN104794022B (en) Based on believable backup method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination