CN111104294A - Method and device for generating BMC log - Google Patents

Method and device for generating BMC log Download PDF

Info

Publication number
CN111104294A
CN111104294A CN201911022982.3A CN201911022982A CN111104294A CN 111104294 A CN111104294 A CN 111104294A CN 201911022982 A CN201911022982 A CN 201911022982A CN 111104294 A CN111104294 A CN 111104294A
Authority
CN
China
Prior art keywords
event
recorded
occurrence
time
information
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.)
Granted
Application number
CN201911022982.3A
Other languages
Chinese (zh)
Other versions
CN111104294B (en
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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911022982.3A priority Critical patent/CN111104294B/en
Publication of CN111104294A publication Critical patent/CN111104294A/en
Application granted granted Critical
Publication of CN111104294B publication Critical patent/CN111104294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method and a device for generating a BMC log, wherein the method comprises the following steps: starting a Monotonic timer and starting BMC system time initialization; responding to the occurrence of the event to be recorded, recording the information of the event to be recorded and an occurrence timestamp of a Monotonic timer when the event to be recorded occurs; responding to the completion of the initialization of the BMC system time, and calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time and the occurrence timestamp; and generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded. The method not only realizes the back-pushing of the actual occurrence time of the event, but also ensures the accuracy of the actual occurrence time which is calculated, thereby providing more correct log information for the BMC system and facilitating a system manager or system management software to judge the system condition.

Description

Method and device for generating BMC log
Technical Field
The invention relates to the technical field of servers. The invention further relates to a method and a device for generating the BMC log.
Background
Logging is a very important information material in BMC systems, such as SEL logs. It records the detailed information of the system event, including the event occurrence time, the information of the related sensors and the event trigger reason. However, the "event occurrence time" may not have the correct information for logging because the BMC system time has not been initialized.
When an ipmitool is used to query the SEL log, the returned SEL records may have information such as "1 | Pre-inittime-stamp | Voltage #0x6e | Lower Critical high | Asserted", and the event occurrence Time of the SEL records may only display "Pre-inittime-stamp" because the BMC system Time is not initialized.
The problem with Pre-Init Timestamp is often discussed, for which it may even be advisable in some systems to filter out the records of Pre-Init Timestamp-stamp. Such recommendations are not of importance on behalf of these records, but rather fear that these incomplete information could cause misjudgment by system administrators or programs.
Therefore, a solution to the above problems in the prior art needs to be provided, in which complete log information is generated, so as to improve the log system of the server.
Disclosure of Invention
In one aspect, the present invention provides a method for generating a BMC log based on the above object, wherein the method includes the following steps:
starting a Monotonic timer and starting BMC system time initialization;
responding to the occurrence of the event to be recorded, recording the information of the event to be recorded and the occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
responding to the completion of the initialization of the BMC system time, and calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time and the occurrence timestamp;
and generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded.
In an embodiment of the method for generating a BMC log according to the present invention, in response to an event to be recorded occurring, recording information of the event to be recorded and an occurrence timestamp of a monionic timer when the event to be recorded occurs further includes:
in response to the occurrence of the event to be recorded, checking the state of the BMC system time initialization;
responding to incomplete initialization of the BMC system time, and recording information of an event to be recorded and an occurrence timestamp of a Monotonic timer when the event to be recorded occurs;
and responding to the completion of the initialization of the BMC system time, and generating log information of the event to be recorded based on the system time when the event to be recorded occurs and the information of the event to be recorded.
In an embodiment of the method for generating a BMC log according to the present invention, in response to an event to be recorded occurring, recording information of the event to be recorded and an occurrence timestamp of a monionic timer when the event to be recorded occurs further includes:
and in response to the occurrence of the event to be recorded, storing the recorded occurrence time stamp and the information of the event to be recorded into a storage space in a predetermined format.
In an embodiment of the method for generating a BMC log according to the present invention, in response to the BMC system time initialization being completed, calculating an actual occurrence time of the event to be recorded based on the current system time, the current montonic timer time, and the occurrence timestamp further includes:
acquiring an occurrence time stamp from a storage space;
the actual time of occurrence is calculated by subtracting the time difference between the current Monotonic timer time and the time stamp of occurrence from the current system time.
According to an embodiment of the method for generating a BMC log of the present invention, generating log information of an event to be recorded based on an actual occurrence time and information of the event to be recorded further includes:
acquiring information of an event to be recorded from a storage space;
and storing the log information of the event to be recorded, which is generated based on the actual occurrence time and the information of the event to be recorded, into a log database.
In another aspect, the present invention further provides a device for generating a BMC log, where the device includes:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
starting a Monotonic timer and starting BMC system time initialization;
responding to the occurrence of the event to be recorded, recording the information of the event to be recorded and the occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
responding to the completion of the initialization of the BMC system time, and calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time and the occurrence timestamp;
and generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded.
In an embodiment of the apparatus for generating a BMC log according to the present invention, in response to an event to be recorded occurring, recording information of the event to be recorded and an occurrence timestamp of a monionic timer when the event to be recorded occurs further includes:
in response to the occurrence of the event to be recorded, checking the state of the BMC system time initialization;
responding to incomplete initialization of the BMC system time, and recording information of an event to be recorded and an occurrence timestamp of a Monotonic timer when the event to be recorded occurs;
and responding to the completion of the initialization of the BMC system time, and generating log information of the event to be recorded based on the system time when the event to be recorded occurs and the information of the event to be recorded.
In an embodiment of the apparatus for generating a BMC log according to the present invention, in response to an event to be recorded occurring, recording information of the event to be recorded and an occurrence timestamp of a monionic timer when the event to be recorded occurs further includes:
and in response to the occurrence of the event to be recorded, storing the recorded occurrence time stamp and the information of the event to be recorded into a storage space in a predetermined format.
In an embodiment of the apparatus for generating a BMC log according to the present invention, in response to the BMC system time initialization being completed, calculating an actual occurrence time of the event to be recorded based on the current system time, the current montonic timer time, and the occurrence timestamp further includes:
acquiring an occurrence time stamp from a storage space;
the actual time of occurrence is calculated by subtracting the time difference between the current Monotonic timer time and the time stamp of occurrence from the current system time.
According to an embodiment of the apparatus for generating a BMC log of the present invention, the generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded further includes:
acquiring information of an event to be recorded from a storage space;
and storing the log information of the event to be recorded, which is generated based on the actual occurrence time and the information of the event to be recorded, into a log database.
By adopting the technical scheme, the invention at least has the following beneficial effects: the method has the advantages that the time stamp of the event to be recorded is recorded by the Monotonic timer during the time initialization of the BMC system, the actual occurrence time of the event is pushed back by using the time of the Monotonic timer at the time, the recorded time stamp of the event to be recorded and the system time at the time after the time initialization of the BMC system is completed, and the time of the Monotonic timer is stably and continuously increased and cannot be changed due to the change of the system time, so that the actual occurrence time of the event is pushed back, the accuracy of the calculated actual occurrence time is ensured, more correct log information is provided for the BMC system, and a system manager or system management software can judge the system condition.
The present invention provides aspects of embodiments, which should not be used to limit the scope of the present invention. Other embodiments are contemplated in accordance with the techniques described herein, as will be apparent to one of ordinary skill in the art upon study of the following figures and detailed description, and are intended to be included within the scope of the present application.
Embodiments of the invention are explained and described in more detail below with reference to the drawings, but they should not be construed as limiting the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the description of the prior art and the embodiments will be briefly described below, parts in the drawings are not necessarily drawn to scale, and related elements may be omitted, or in some cases the scale may have been exaggerated in order to emphasize and clearly show the novel features described herein. In addition, the structural order may be arranged differently, as is known in the art.
Fig. 1 shows a schematic block diagram of an embodiment of a method of generating a BMC log according to the present invention.
Detailed Description
While the present invention may be embodied in various forms, there is shown in the drawings and will hereinafter be described some exemplary and non-limiting embodiments, with the understanding that the present disclosure is to be considered an exemplification of the invention and is not intended to limit the invention to the specific embodiments illustrated.
Fig. 1 shows a schematic block diagram of an embodiment of a method of generating a BMC log according to the present invention. In the embodiment shown in the figure, the method comprises at least the following steps:
s1: starting a Monotonic timer and starting BMC system time initialization;
s2: responding to the occurrence of the event to be recorded, recording the information of the event to be recorded and the occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
s3: responding to the completion of the initialization of the BMC system time, and calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time and the occurrence timestamp;
s4: and generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded.
In order to determine the actual occurrence time of the event, a time standard for reference needs to be provided for the BMC system, so the invention adopts a montonic timer. Therefore, step S1 starts the montonic timer before beginning BMC system time initialization, preferably before the BMC system starts logging. Thus, when the event to be recorded occurs, the step S2 records the information of the event to be recorded and the occurrence timestamp T of the montonic timer when the event to be recorded occursmono_record. Then waiting for the initialization of the BMC system time, starting a thread to check the BMC system time after the initialization of the BMC system time is completed, and step S3 is based on the current systemTime Tinited_currentCurrent Monotonic timer time Tmono_currentAnd the occurrence time stamp T recorded in step S2mono_recordCalculating the actual occurrence time T of the event to be recordedreal. The actual time of occurrence T of the event to be recorded is thus deduced back by means of a montonic timerreal. Finally, step S4 is based on the actual occurrence time T obtained in step S3realAnd generating complete log information of the event to be recorded by the information of the event to be recorded.
Further embodiments of the present invention will be described below, it being noted that the numbering of the steps mentioned therein is used only for the convenience of unambiguously indicating the step without any particular indication, and does not limit the order of the steps described.
In some embodiments of the method for generating a BMC log of the present invention, the step S2, in response to the event to be recorded occurring, the recording information of the event to be recorded and the occurrence timestamp of the montonic timer when the event to be recorded occurs further includes:
s21: in response to the occurrence of the event to be recorded, checking the state of the BMC system time initialization;
s22: responding to incomplete initialization of the BMC system time, and recording information of an event to be recorded and an occurrence timestamp of a Monotonic timer when the event to be recorded occurs;
s23: and responding to the completion of the initialization of the BMC system time, and generating log information of the event to be recorded based on the system time when the event to be recorded occurs and the information of the event to be recorded.
Since the method of the present invention is intended to improve the log before the BMC system time initialization is not completed, in the above embodiment, when the event to be recorded occurs, step S21 first checks the state of the BMC system time initialization. If the BMC system time initialization is not completed at this time, step S22 records the occurrence timestamp T of the Monotonic timer when the event to be recorded occursmono_record. If the initialization of the BMC system time is finished at the moment, only the generation process of the log needs to be normally carried out, namely, the system time T when the event to be recorded occurs is basedinited_currentAnd generating the log information of the event to be recorded by the information of the event to be recorded.
In several embodiments of the method for generating a BMC log of the present invention, the step S2, in response to the event to be recorded occurring, recording information of the event to be recorded and an occurrence timestamp of a montonic timer when the event to be recorded occurs, further includes: and in response to the occurrence of the event to be recorded, storing the recorded occurrence time stamp and the information of the event to be recorded into a storage space in a predetermined format. Regardless of whether the BMC system time is successfully set, the BMC must ensure that all log information can be read normally at any time without loss or confusion. Therefore, when an event to be recorded occurs, the occurrence time stamp T of the recording is first stampedmono_recordAnd storing the information of the events to be recorded into other storage spaces except the date-to-date database so as to ensure that the related information is not lost and can be called when needed. During storage, preferably, a field for storing the timestamp of the Monotonic timer is added in addition to the original event generation time field.
In one or more embodiments of the method for generating a BMC log of the present invention, the step S3, in response to the BMC system time initialization being completed, the calculating an actual occurrence time of the event to be recorded based on the current system time, the current montonic timer time, and the occurrence timestamp further includes:
s31: acquiring an occurrence time stamp from a storage space;
s32: the actual time of occurrence is calculated by subtracting the time difference between the current Monotonic timer time and the time stamp of occurrence from the current system time.
Due to the occurrence time stamp T of the Monotonic timer when the event to be recorded occursmono_recordHas been recorded in the storage space, so that the actual occurrence time T of the event to be recorded is estimated when step S3realFirst, step S31 acquires the occurrence time stamp from the storage space. Then step S32 is executed with the current system time Tinited_currentSubtract the current Monotonic timer time Tmono_currentAnd occurrence timestamp Tmono_recordCalculating the actual occurrence time Treal. Among them, preferred isGround, refer to the following formula
Treal=Tinited_current-Tdiff(Tmono_current,Tmono_record)
Or
Treal=Tinited_current-(Tmono_current-Tmono_record)
Calculating the actual occurrence time Treal
In still other embodiments of the method for generating a BMC log of the present invention, the step S4 of generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded further includes:
s41: acquiring information of an event to be recorded from a storage space;
s42: and storing the log information of the event to be recorded, which is generated based on the actual occurrence time and the information of the event to be recorded, into a log database.
Since the information of the event to be recorded has already been recorded in the storage space, when the complete log information is generated at step S4, first, step S41 acquires the information of the event to be recorded from the storage space. Step S42 is then based on the actual time of occurrence TrealAnd step S41, generating the log information of the event to be recorded according to the acquired information of the event to be recorded, and storing the log information into a log database to provide complete log information for the event record needing to be perfected.
In another aspect, the present invention further provides a device for generating a BMC log, where the device includes: at least one processor; and a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
s1: starting a Monotonic timer and starting BMC system time initialization;
s2: responding to the occurrence of the event to be recorded, recording the information of the event to be recorded and the occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
s3: responding to the completion of the initialization of the BMC system time, and calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time and the occurrence timestamp;
s4: and generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded.
In some embodiments of the apparatus for generating a BMC log of the present invention, the step S2, in response to the event to be recorded occurring, the recording information of the event to be recorded and the occurrence timestamp of the montonic timer when the event to be recorded occurs further includes:
s21: in response to the occurrence of the event to be recorded, checking the state of the BMC system time initialization;
s22: responding to incomplete initialization of the BMC system time, and recording information of an event to be recorded and an occurrence timestamp of a Monotonic timer when the event to be recorded occurs;
s23: and responding to the completion of the initialization of the BMC system time, and generating log information of the event to be recorded based on the system time when the event to be recorded occurs and the information of the event to be recorded.
In several embodiments of the apparatus for generating a BMC log of the present invention, the step S2, in response to the event to be recorded occurring, the recording information of the event to be recorded and the occurrence timestamp of the montonic timer when the event to be recorded occurs further includes: and in response to the occurrence of the event to be recorded, storing the recorded occurrence time stamp and the information of the event to be recorded into a storage space in a predetermined format.
In one or more embodiments of the apparatus for generating a BMC log of the present invention, the step S3, in response to the BMC system time initialization being completed, the calculating an actual occurrence time of the event to be recorded based on the current system time, the current montonic timer time, and the occurrence timestamp further includes:
s31: acquiring an occurrence time stamp from a storage space;
s32: the actual time of occurrence is calculated by subtracting the time difference between the current Monotonic timer time and the time stamp of occurrence from the current system time.
In still other embodiments of the apparatus for generating a BMC log according to the present invention, the step S4 of generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded further includes:
s41: acquiring information of an event to be recorded from a storage space;
s42: and storing the log information of the event to be recorded, which is generated based on the actual occurrence time and the information of the event to be recorded, into a log database.
The devices and apparatuses disclosed in the embodiments of the present invention may be various electronic terminal apparatuses, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal apparatus, such as a server, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of device and apparatus. The client disclosed in the embodiment of the present invention may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
The computer-readable storage media (e.g., memory) described herein may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
By adopting the technical scheme, the invention at least has the following beneficial effects: the method has the advantages that the time stamp of the event to be recorded is recorded by the Monotonic timer during the time initialization of the BMC system, the actual occurrence time of the event is pushed back by using the time of the Monotonic timer at the time, the recorded time stamp of the event to be recorded and the system time at the time after the time initialization of the BMC system is completed, and the time of the Monotonic timer is stably and continuously increased and cannot be changed due to the change of the system time, so that the actual occurrence time of the event is pushed back, the accuracy of the calculated actual occurrence time is ensured, more correct log information is provided for the BMC system, and a system manager or system management software can judge the system condition.
It is to be understood that the features listed above for the different embodiments may be combined with each other to form further embodiments within the scope of the invention, where technically feasible. Furthermore, the specific examples and embodiments described herein are non-limiting, and various modifications of the structure, steps and sequence set forth above may be made without departing from the scope of the invention.
In this application, the use of the conjunction of the contrary intention is intended to include the conjunction. The use of definite or indefinite articles is not intended to indicate cardinality. In particular, references to "the" object or "an" and "an" object are intended to mean one of many such objects possible. However, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated. Furthermore, the conjunction "or" may be used to convey simultaneous features, rather than mutually exclusive schemes. In other words, the conjunction "or" should be understood to include "and/or". The term "comprising" is inclusive and has the same scope as "comprising".
The above-described embodiments, particularly any "preferred" embodiments, are possible examples of implementations, and are presented merely for a clear understanding of the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing substantially from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure.

Claims (10)

1. A method of generating a BMC log, the method comprising the steps of:
starting a Monotonic timer and starting BMC system time initialization;
responding to the occurrence of an event to be recorded, recording the information of the event to be recorded and the occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
in response to the BMC system time initialization being completed, calculating an actual occurrence time of the event to be recorded based on a current system time, a current montonic timer time, and the occurrence timestamp;
and generating the log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded.
2. The method of claim 1, wherein the recording information of the event to be recorded and an occurrence timestamp of the Monotonic timer at the occurrence of the event to be recorded in response to the occurrence of the event to be recorded further comprises:
in response to the occurrence of an event to be recorded, checking the state of the BMC system time initialization;
responding to the fact that the BMC system time initialization is not completed, recording the information of the event to be recorded and an occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
and responding to the completion of the initialization of the BMC system time, and generating log information of the event to be recorded based on the system time when the event to be recorded occurs and the information of the event to be recorded.
3. The method of claim 1, wherein the recording information of the event to be recorded and an occurrence timestamp of the Monotonic timer at the occurrence of the event to be recorded in response to the occurrence of the event to be recorded further comprises:
and in response to the occurrence of the event to be recorded, storing the recorded occurrence time stamp and the information of the event to be recorded into a storage space in a preset format.
4. The method of claim 3, wherein the calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time, and the occurrence timestamp further comprises, in response to the BMC system time initialization being complete:
obtaining the occurrence time stamp from the storage space;
calculating the actual time of occurrence as the current system time minus the time difference between the current Monotonic timer time and the occurrence timestamp.
5. The method of claim 3, wherein the generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded further comprises:
acquiring the information of the event to be recorded from the storage space;
and storing the log information of the event to be recorded, which is generated based on the actual occurrence time and the information of the event to be recorded, into a log database.
6. An apparatus to generate a BMC log, the apparatus comprising:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
starting a Monotonic timer and starting BMC system time initialization;
responding to the occurrence of an event to be recorded, recording the information of the event to be recorded and the occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
in response to the BMC system time initialization being completed, calculating an actual occurrence time of the event to be recorded based on a current system time, a current montonic timer time, and the occurrence timestamp;
and generating the log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded.
7. The apparatus of claim 6, wherein the recording information of the event to be recorded and the occurrence timestamp of the Monotonic timer at the occurrence of the event to be recorded in response to the occurrence of the event to be recorded further comprises:
in response to the occurrence of an event to be recorded, checking the state of the BMC system time initialization;
responding to the fact that the BMC system time initialization is not completed, recording the information of the event to be recorded and an occurrence timestamp of the Monotonic timer when the event to be recorded occurs;
and responding to the completion of the initialization of the BMC system time, and generating log information of the event to be recorded based on the system time when the event to be recorded occurs and the information of the event to be recorded.
8. The apparatus of claim 6, wherein the recording information of the event to be recorded and the occurrence timestamp of the Monotonic timer at the occurrence of the event to be recorded in response to the occurrence of the event to be recorded further comprises:
and in response to the occurrence of the event to be recorded, storing the recorded occurrence time stamp and the information of the event to be recorded into a storage space in a preset format.
9. The apparatus of claim 8, wherein the calculating the actual occurrence time of the event to be recorded based on the current system time, the current Monotonic timer time, and the occurrence timestamp further comprises, in response to the BMC system time initialization being complete:
obtaining the occurrence time stamp from the storage space;
calculating the actual time of occurrence as the current system time minus the time difference between the current Monotonic timer time and the occurrence timestamp.
10. The apparatus of claim 8, wherein the generating log information of the event to be recorded based on the actual occurrence time and the information of the event to be recorded further comprises:
acquiring the information of the event to be recorded from the storage space;
and storing the log information of the event to be recorded, which is generated based on the actual occurrence time and the information of the event to be recorded, into a log database.
CN201911022982.3A 2019-10-25 2019-10-25 Method and device for generating BMC log Active CN111104294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911022982.3A CN111104294B (en) 2019-10-25 2019-10-25 Method and device for generating BMC log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911022982.3A CN111104294B (en) 2019-10-25 2019-10-25 Method and device for generating BMC log

Publications (2)

Publication Number Publication Date
CN111104294A true CN111104294A (en) 2020-05-05
CN111104294B CN111104294B (en) 2022-11-29

Family

ID=70420979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911022982.3A Active CN111104294B (en) 2019-10-25 2019-10-25 Method and device for generating BMC log

Country Status (1)

Country Link
CN (1) CN111104294B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176973A (en) * 2021-05-14 2021-07-27 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium
CN113190399A (en) * 2021-03-30 2021-07-30 深圳市广和通无线股份有限公司 Log storage method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153695A (en) * 2017-05-05 2017-09-12 恒生电子股份有限公司 Log recording method and device, electronic equipment, storage medium
CN109726130A (en) * 2019-01-02 2019-05-07 浪潮商用机器有限公司 Test macro, method, equipment and the storage medium of BMC event log strategy
CN110188013A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of log read-write capability test method, device and electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153695A (en) * 2017-05-05 2017-09-12 恒生电子股份有限公司 Log recording method and device, electronic equipment, storage medium
CN109726130A (en) * 2019-01-02 2019-05-07 浪潮商用机器有限公司 Test macro, method, equipment and the storage medium of BMC event log strategy
CN110188013A (en) * 2019-05-30 2019-08-30 苏州浪潮智能科技有限公司 A kind of log read-write capability test method, device and electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190399A (en) * 2021-03-30 2021-07-30 深圳市广和通无线股份有限公司 Log storage method and device, computer equipment and storage medium
CN113176973A (en) * 2021-05-14 2021-07-27 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium

Also Published As

Publication number Publication date
CN111104294B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN113840012B (en) Block chain-based screen recording evidence obtaining method and system and electronic equipment
CN110992992B (en) Hard disk test method, device and storage medium
CN107426265A (en) The synchronous method and apparatus of data consistency
CN110489421B (en) Data storage method, apparatus, computer readable storage medium and computer device
CN111104294B (en) Method and device for generating BMC log
CN108038039B (en) Method for recording log and micro-service system
CN114519156A (en) Webpage display method, operation event recording method and device
CN112631633B (en) Function module upgrading method and device based on double-core intelligent ammeter
CN106776795B (en) Data writing method and device based on Hbase database
CN110362547A (en) Coding, parsing, storage method and the device of journal file
CN113360322A (en) Method and equipment for recovering data based on backup system
US11930292B2 (en) Device state monitoring method and apparatus
CN107729541A (en) A kind of data processing method, device and computer-readable recording medium
US20130290617A1 (en) Method and system for controlling loss of reliability of non-volatile memory
CN110928945B (en) Data processing method and device for database and data processing system
CN109633331B (en) Data storage method and fault recording device
CN113176973B (en) PSU power supply black box log time stamp recording method, device, equipment and medium
CN108243029B (en) Method for restoring generation time of log, client and server
CN105245624A (en) Cloud storage file system
CN107844491B (en) Method and equipment for realizing strong consistency read operation in distributed system
CN115292314B (en) Sequence number generation method, device, computer equipment and storage medium
CN106375354B (en) Data processing method and device
CN117492935B (en) Mirror image data synchronization method, device, terminal and storage medium
CN110519087B (en) Watchdog timeout alarm method and device
CN112187815B (en) Method and system for acquiring unique identifier of electronic equipment

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
GR01 Patent grant
GR01 Patent grant