CN115225193B - BMC time synchronization method, system, device and readable storage medium - Google Patents

BMC time synchronization method, system, device and readable storage medium Download PDF

Info

Publication number
CN115225193B
CN115225193B CN202210893226.3A CN202210893226A CN115225193B CN 115225193 B CN115225193 B CN 115225193B CN 202210893226 A CN202210893226 A CN 202210893226A CN 115225193 B CN115225193 B CN 115225193B
Authority
CN
China
Prior art keywords
bmc
time
time synchronization
local
request
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.)
Active
Application number
CN202210893226.3A
Other languages
Chinese (zh)
Other versions
CN115225193A (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 CN202210893226.3A priority Critical patent/CN115225193B/en
Publication of CN115225193A publication Critical patent/CN115225193A/en
Application granted granted Critical
Publication of CN115225193B publication Critical patent/CN115225193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a BMC time synchronization method, a system, a device and a readable storage medium, wherein the method comprises the following steps: adding a time synchronization command in the local BMC, and defining a data format of a time request and a reply thereof; when the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically transmits a time request to a plurality of BMCs; the BMC receiving the time request sends reply data to the local BMC after passing the request verification; after receiving the reply, the local BMC performs time synchronization verification, and after the verification passes, the corresponding BMC is used as a time synchronization candidate BMC; according to each communication duration, the optimal BMC is screened out from all time synchronization candidate BMCs; the time of the optimal BMC is set as the time of the native BMC. The invention can effectively reduce the cost of BMC time synchronization and improve the accuracy of BMC time.

Description

BMC time synchronization method, system, device and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, and a readable storage medium for BMC time synchronization.
Background
BMC (Baseboard Management Controller) is a small operating system independent of the server system, which is used for facilitating remote management, monitoring, deployment, restarting and other operations of the server. The BMC is powered on, and then starts to operate, is not influenced by the startup and shutdown of the server, and is independent of the service system. BMC time plays an important role in server monitoring, logging, etc., but BMC has no separate battery and requires synchronization of time from other components.
In the prior art, when the BMC starts, it is required to synchronize a time from the ME (management engine interface ). When the NTP server is started, the time is acquired by the NTP server for synchronization; if the time cannot be obtained from the NTP server, the BIOS sends the time to the BMC once when the system is started. Therefore, when the BMC time synchronization is performed by adopting the prior art, if the situation that NTP time cannot be acquired occurs, the time synchronization can be performed only when the system is started, and the time accuracy of the BMC cannot be ensured.
Disclosure of Invention
In view of the above problems, the present invention aims to provide a method, a system, a device and a readable storage medium for BMC time synchronization, which can effectively reduce the cost of BMC time synchronization and improve the accuracy of BMC time.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme: a BMC time synchronization method, comprising:
adding a time synchronization command in the local BMC, and defining a data format of a time request and a reply thereof;
When the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically transmits a time request to a plurality of BMCs;
the BMC receiving the time request sends reply data to the local BMC after passing the request verification;
After receiving the reply, the local BMC performs time synchronization verification, and after the verification passes, the corresponding BMC is used as a time synchronization candidate BMC;
According to each communication duration, the optimal BMC is screened out from all time synchronization candidate BMCs;
the time of the optimal BMC is set as the time of the native BMC.
Further, the time synchronization command adopts an IPMI command, the time request data comprises a request check code, and the request check code adopts a preset encryption character string for time request check;
The reply data includes:
the local NTP state, the NTP server address, the time stamp and the time synchronization check code; when the value of the local NTP state is 1, the representative can acquire time from the NTP server, and the time synchronization check code adopts a preset encryption character string for time synchronization check.
Further, the local BMC periodically sends a time request to a plurality of BMCs, including:
the local BMC periodically sends an IPMI time request Time Sync Request to the M BMC of the same network segment; where M > =2.
Further, the BMC receiving the time request sends reply data to the local BMC after passing the request verification, and the method comprises the following steps:
If the BMC receiving the IPMI time request can identify the request check code, the BMC sends an IPMI reply with the local NTP state, the NTP server address, the timestamp and the N-bit time synchronization check code.
Further, after receiving the reply, the local BMC performs time synchronization verification, and after the verification passes, the corresponding BMC is used as a time synchronization candidate BMC, which comprises the following steps:
after receiving the IPMI reply, the local BMC checks the time synchronization check code, and if the check is passed, the BMC is used as a time synchronization candidate BMC.
Further, the selecting the best BMC from all time synchronization candidate BMCs according to each communication duration includes:
And determining the communication duration of each time synchronization candidate BMC, and screening the time synchronization candidate BMC with the shortest communication duration and the local NTP state value of 1 from the time synchronization candidate BMCs, and taking the time synchronization candidate BMC as the optimal BMC.
Further, the setting the time of the optimal BMC as the time of the native BMC includes:
The time stamp of the optimal BMC is set as the time of the local BMC, and the NTP server address of the local BMC is set as the NTP server address of the optimal BMC.
Correspondingly, the invention also discloses a BMC time synchronization system, which comprises:
The setting module is used for adding a time synchronization command in the local BMC and defining a data format of a time request and a reply thereof;
The request module is used for periodically sending time requests to the plurality of BMCs when the local BMC cannot acquire the NTP time through the NTP server;
the reply module is used for sending reply data to the local BMC after the BMC which receives the time request passes the request verification;
the verification module is used for carrying out time synchronization verification after the local BMC receives the reply, and taking the corresponding BMC as a time synchronization candidate BMC after the verification is passed;
the screening module is used for screening the optimal BMC from all time synchronization candidate BMCs according to each communication duration;
and the synchronization module is used for setting the time of the optimal BMC as the time of the local BMC.
Further, the request module is specifically configured to: when the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically sends an IPMI time request Time Sync Request to the M BMCs of the same network segment; where M > =2.
Further, the reply module is specifically configured to: if the BMC receiving the IPMI time request can identify the request check code, the BMC sends an IPMI reply with the local NTP state, the NTP server address, the timestamp and the N-bit time synchronization check code.
Further, the verification module is specifically configured to: after receiving the IPMI reply, the local BMC checks the time synchronization check code, and if the check is passed, the BMC is used as a time synchronization candidate BMC.
Further, the screening module is specifically configured to: and determining the communication duration of each time synchronization candidate BMC, and screening the time synchronization candidate BMC with the shortest communication duration and the local NTP state value of 1 from the time synchronization candidate BMCs, and taking the time synchronization candidate BMC as the optimal BMC.
Further, the synchronization module is specifically configured to: the time stamp of the optimal BMC is set as the time of the local BMC, and the NTP server address of the optimal BMC is set as the NTP server address of the local BMC.
Correspondingly, the invention discloses a BMC time synchronization device, which comprises:
The memory is used for storing the BMC time synchronization program;
the processor is configured to implement the steps of the BMC time synchronization method according to any one of the above when executing the BMC time synchronization program.
Correspondingly, the invention discloses a readable storage medium, wherein a BMC time synchronization program is stored on the readable storage medium, and the BMC time synchronization program realizes the steps of the BMC time synchronization method according to any one of the above when being executed by a processor.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a BMC time synchronization method, a system, a device and a readable storage medium, which can automatically acquire the time of other BMCs through an IPMI command when an NTP server fails, ensure the time accuracy by utilizing a local NTP state value and the safety of data by utilizing a check code, effectively reduce the cost of BMC time synchronization and ensure the accuracy of BMC time synchronization.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of an embodiment of the present invention.
Fig. 2 is a system configuration diagram of an embodiment of the present invention.
In the figure, 1 is a setting module; 2 is a request module; 3 is a reply module; 4 is a verification module; 5 is a screening module; and 6 is a synchronization module.
Detailed Description
The core of the invention is to provide a BMC time synchronization method, in the prior art, when the BMC is started, the time is needed to be synchronized once from the ME. When the NTP server is started, the time is acquired by the NTP server for synchronization; if the time cannot be obtained from the NTP server, the BIOS sends the time to the BMC once when the system is started. Therefore, when the BMC time synchronization is performed by adopting the prior art, if the situation that NTP time cannot be acquired occurs, the time synchronization can be performed only when the system is started, and the time accuracy of the BMC cannot be ensured.
In the BMC time synchronization method provided by the invention, firstly, when the NTP server cannot acquire time, the BMC periodically sends an IPMI time request to a plurality of BMCs in the same network segment, determines an optimal BMC according to the shortest reply time length and the NTP state, and sets a time stamp in the optimal BMC reply and an NTP server address as the time of the original BMC and the NTP server address. Therefore, the invention can effectively reduce the cost of BMC time synchronization and improve the accuracy of BMC time.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiment one:
as shown in fig. 1, the embodiment provides a BMC time synchronization method, which includes the following steps:
S1: and adding a time synchronization command in the local BMC, and defining the data format of the time request and the reply.
Specifically, the time synchronization command adopts an IPMI command. The time request data includes a request check code employing a preset encryption string for time request check. The reply data includes: the local NTP state, the NTP server address, the time stamp and the time synchronization check code; when the value of the local NTP state is 1, the representative can acquire time from the NTP server, and the time synchronization check code adopts a preset encryption character string for time synchronization check.
By way of example, the BMC time request and time synchronization data type is as follows:
typedef struct Time Sync Request
{
uint8 RequestCode [16]; request check code
}Time_Sync_Request;
typedef struct Time Sync Respond
{
Uint8 NtpStatus; status of// ntp: 1: time can be obtained from NTP
Uint8 NTPSERVER; v/when NtpStatus =1, NTP SERVER address; otherwise is empty
Uint8 TIMESYNCSTAMP [24]; time stamp
Uint8 TimeSyncCode [16]; time synchronization check code
}Time_Sync_Request;
S2: when the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically sends a time request to a plurality of BMCs.
Specifically, when the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically sends an IPMI time request Time Sync Request to the M BMCs of the same network segment; where M > =2.
S3: and the BMC receiving the time request sends reply data to the local BMC after passing the request verification.
Specifically, if the BMC receiving the IPMI time request can identify the request check code, the BMC sends an IPMI reply with the local NTP state, the NTP server address, the timestamp and the N-bit time synchronization check code.
S4: and after the local BMC receives the reply, performing time synchronization verification, and taking the corresponding BMC as a time synchronization candidate BMC after the verification is passed.
The step utilizes the time synchronization check code of the reply data to realize synchronization check, namely, after the local BMC receives the IPMI reply, the time synchronization check code is checked, and if the check is passed, the BMC is used as a time synchronization candidate BMC.
S5: and screening the optimal BMC from all the time synchronization candidate BMCs according to each communication duration.
First, a communication duration of each time synchronization candidate BMC is determined. And then, selecting the time synchronization candidate BMC with the shortest communication duration and the local NTP state value of 1 from the time synchronization candidate BMC, and taking the time synchronization candidate BMC as the optimal BMC.
S6: the time of the optimal BMC is set as the time of the native BMC.
Specifically, the timestamp of the optimal BMC is set as the time of the local BMC, and the NTP server address of the local BMC is set as the NTP server address of the optimal BMC.
The embodiment provides a BMC time synchronization method, which can automatically acquire the time of other BMCs through an IPMI command when an NTP server fails, ensure the time accuracy by utilizing a local NTP state value and the safety of data by utilizing a check code, effectively reduce the cost of BMC time synchronization and ensure the accuracy of BMC time synchronization.
Embodiment two:
based on the first embodiment, as shown in fig. 2, the invention also discloses a BMC time synchronization system, which includes: the system comprises a setting module 1, a requesting module 2, a replying module 3, a verifying module 4, a screening module 5 and a synchronizing module 6.
The setting module 1 is configured to add a time synchronization command in the local BMC, and define a data format of a time request and a reply thereof.
The request module 2 is configured to send a time request to the multiple BMCs periodically when the local BMC cannot acquire the NTP time through the NTP server. The request module 2 is specifically configured to: when the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically sends an IPMI time request Time Sync Request to the M BMCs of the same network segment; where M > =2.
And the reply module 3 is used for sending reply data to the local BMC after the BMC receiving the time request passes the request verification. The reply module 3 is specifically configured to: if the BMC receiving the IPMI time request can identify the request check code, the BMC sends an IPMI reply with the local NTP state, the NTP server address, the timestamp and the N-bit time synchronization check code.
And the verification module 4 is used for carrying out time synchronization verification after the local BMC receives the reply, and taking the corresponding BMC as a time synchronization candidate BMC after the verification is passed. The verification module 4 is specifically configured to: after receiving the IPMI reply, the local BMC checks the time synchronization check code, and if the check is passed, the BMC is used as a time synchronization candidate BMC.
And the screening module 5 is used for screening the optimal BMC from all the time synchronization candidate BMCs according to each communication duration. The screening module 5 is specifically configured to: and determining the communication duration of each time synchronization candidate BMC, and screening the time synchronization candidate BMC with the shortest communication duration and the local NTP state value of 1 from the time synchronization candidate BMCs, and taking the time synchronization candidate BMC as the optimal BMC.
And the synchronization module 6 is configured to set the time of the optimal BMC as the time of the native BMC. The synchronization module 6 is specifically configured to: the time stamp of the optimal BMC is set as the time of the local BMC, and the NTP server address of the optimal BMC is set as the NTP server address of the local BMC.
The embodiment provides a BMC time synchronization system, which can automatically acquire the time of other BMCs through an IPMI command when an NTP server fails, ensure the time accuracy by utilizing a local NTP state value and the safety of data by utilizing a check code, effectively reduce the cost of BMC time synchronization and ensure the accuracy of BMC time synchronization.
Embodiment III:
The embodiment discloses a BMC time synchronization device, which comprises a processor and a memory; the processor executes the BMC time synchronization program stored in the memory to realize the following steps:
1. And adding a time synchronization command in the local BMC, and defining the data format of the time request and the reply.
2. When the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically sends a time request to a plurality of BMCs.
3. And the BMC receiving the time request sends reply data to the local BMC after passing the request verification.
4. And after the local BMC receives the reply, performing time synchronization verification, and taking the corresponding BMC as a time synchronization candidate BMC after the verification is passed.
5. And screening the optimal BMC from all the time synchronization candidate BMCs according to each communication duration.
6. The time of the optimal BMC is set as the time of the native BMC.
Further, the BMC time synchronization device in this embodiment may further include:
The input interface is used for acquiring the externally imported BMC time synchronization program, storing the acquired BMC time synchronization program into the memory, and acquiring various instructions and parameters transmitted by the external terminal equipment and transmitting the various instructions and parameters into the processor so that the processor can develop corresponding processing by utilizing the various instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the BMC time synchronization device and the external server so that the BMC time synchronization device can mount the image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user by knocking the key cap in real time.
And the display is used for running the related information of the short-circuit positioning process of the power supply line of the server to display in real time.
A mouse may be used to assist a user in inputting data and to simplify user operations.
The embodiment provides a BMC time synchronization device, which realizes that when the NTP server of the BMC fails, the time of other BMCs is automatically acquired, the correct time and the NTP server address are screened out from the time, and the correct time and the NTP server address are set as the local time and the NTP server address, so that the time accuracy of the BMC is ensured to the greatest extent. .
Embodiment four:
The present embodiment also discloses a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a BMC time synchronization program, and the BMC time synchronization program when executed by the processor realizes the following steps:
1. And adding a time synchronization command in the local BMC, and defining the data format of the time request and the reply.
2. When the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically sends a time request to a plurality of BMCs.
3. And the BMC receiving the time request sends reply data to the local BMC after passing the request verification.
4. And after the local BMC receives the reply, performing time synchronization verification, and taking the corresponding BMC as a time synchronization candidate BMC after the verification is passed.
5. And screening the optimal BMC from all the time synchronization candidate BMCs according to each communication duration.
6. The time of the optimal BMC is set as the time of the native BMC.
The embodiment provides a readable storage medium, which realizes that when the NTP server of the BMC fails, the time of other BMCs is automatically acquired, the correct time and the NTP server address are screened out from the time, and the correct time and the NTP server address are set as the local time and the NTP server address, so that the time accuracy of the BMC is ensured to the greatest extent.
In summary, the invention realizes that when the NTP server fails, the BMC periodically sends the IPMI time request to the M BMCs of the same network segment, determines the optimal BMC according to the shortest reply time length and the NTP state, and sets the time stamp in the reply and the NTP server address as the time of the original BMC and the NTP server address, thereby completing the time synchronization of the BMC and effectively ensuring the accuracy of the time synchronization of the BMC.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated in one functional module, or each processing unit may exist physically, or two or more processing units may be integrated in one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The BMC time synchronization method, system, device and readable storage medium provided by the invention are described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (9)

1. A BMC time synchronization method, comprising:
adding a time synchronization command in the local BMC, and defining a data format of a time request and a reply thereof;
When the local BMC cannot acquire the NTP time through the NTP server, the local BMC periodically transmits a time request to a plurality of BMCs;
the BMC receiving the time request sends reply data to the local BMC after passing the request verification;
After receiving the reply, the local BMC performs time synchronization verification, and after the verification passes, the corresponding BMC is used as a time synchronization candidate BMC;
According to each communication duration, the optimal BMC is screened out from all time synchronization candidate BMCs; the method specifically comprises the following steps: determining the communication duration of each time synchronization candidate BMC, and screening the time synchronization candidate BMC with the shortest communication duration and the local NTP state value of 1 from the time synchronization candidate BMC, wherein the time synchronization candidate BMC is used as the optimal BMC;
the time of the optimal BMC is set as the time of the native BMC.
2. The BMC time synchronization method according to claim 1, wherein the time synchronization command adopts an IPMI command, the time request data includes a request check code, and the request check code adopts a preset encryption string for time request check;
The reply data includes:
the local NTP state, the NTP server address, the time stamp and the time synchronization check code; when the value of the local NTP state is 1, the representative can acquire time from the NTP server, and the time synchronization check code adopts a preset encryption character string for time synchronization check.
3. The BMC time synchronization method according to claim 2, wherein the local BMC periodically transmits a time request to a plurality of BMCs, comprising:
the local BMC periodically sends an IPMI time request Time Sync Request to the M BMC of the same network segment; where M > =2.
4. The BMC time synchronization method according to claim 3, wherein the BMC receiving the time request transmits reply data to the local BMC after passing the request check, comprising:
If the BMC receiving the IPMI time request can identify the request check code, the BMC sends an IPMI reply with the local NTP state, the NTP server address, the timestamp and the N-bit time synchronization check code.
5. The BMC time synchronization method according to claim 4, wherein after receiving the reply, the local BMC performs a time synchronization check, and after the check passes, uses the corresponding BMC as a time synchronization candidate BMC, including:
after receiving the IPMI reply, the local BMC checks the time synchronization check code, and if the check is passed, the BMC is used as a time synchronization candidate BMC.
6. The BMC time synchronization method according to claim 5, wherein the setting the time of the optimal BMC to the time of the native BMC comprises:
The time stamp of the optimal BMC is set as the time of the local BMC, and the NTP server address of the optimal BMC is set as the NTP server address of the local BMC.
7. A BMC time synchronization system, comprising:
The setting module is used for adding a time synchronization command in the local BMC and defining a data format of a time request and a reply thereof;
The request module is used for periodically sending time requests to the plurality of BMCs when the local BMC cannot acquire the NTP time through the NTP server;
The reply module is used for sending reply data to the local BMC after the BMC which receives the time request passes the request verification; the verification module is used for carrying out time synchronization verification after the local BMC receives the reply, and taking the corresponding BMC as a time synchronization candidate BMC after the verification is passed;
The screening module is used for screening the optimal BMC from all time synchronization candidate BMCs according to each communication duration; and the synchronization module is used for setting the time of the optimal BMC as the time of the local BMC.
8. A BMC time synchronization apparatus, comprising:
The memory is used for storing the BMC time synchronization program;
A processor, configured to implement the steps of the BMC time synchronization method according to any of claims 1 to 6 when executing the BMC time synchronization program.
9. A readable storage medium, characterized by: the readable storage medium stores a BMC time synchronization program, which when executed by a processor, implements the steps of the BMC time synchronization method according to any of claims 1 to 6.
CN202210893226.3A 2022-07-27 2022-07-27 BMC time synchronization method, system, device and readable storage medium Active CN115225193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210893226.3A CN115225193B (en) 2022-07-27 2022-07-27 BMC time synchronization method, system, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210893226.3A CN115225193B (en) 2022-07-27 2022-07-27 BMC time synchronization method, system, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN115225193A CN115225193A (en) 2022-10-21
CN115225193B true CN115225193B (en) 2024-05-10

Family

ID=83612910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210893226.3A Active CN115225193B (en) 2022-07-27 2022-07-27 BMC time synchronization method, system, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115225193B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234057A (en) * 2018-01-24 2018-06-29 郑州云海信息技术有限公司 Method for synchronizing time, device and the storage medium of server based on BMC
CN110336636A (en) * 2019-07-26 2019-10-15 新华三技术有限公司成都分公司 Method for synchronizing time, device and baseboard management controller
CN111211853A (en) * 2019-12-20 2020-05-29 苏州浪潮智能科技有限公司 BMC time synchronization checking method and equipment
CN114779882A (en) * 2022-04-20 2022-07-22 苏州浪潮智能科技有限公司 BMC time synchronization method and device, BMC and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032978A (en) * 2018-05-31 2018-12-18 郑州云海信息技术有限公司 A kind of document transmission method based on BMC, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234057A (en) * 2018-01-24 2018-06-29 郑州云海信息技术有限公司 Method for synchronizing time, device and the storage medium of server based on BMC
CN110336636A (en) * 2019-07-26 2019-10-15 新华三技术有限公司成都分公司 Method for synchronizing time, device and baseboard management controller
CN111211853A (en) * 2019-12-20 2020-05-29 苏州浪潮智能科技有限公司 BMC time synchronization checking method and equipment
CN114779882A (en) * 2022-04-20 2022-07-22 苏州浪潮智能科技有限公司 BMC time synchronization method and device, BMC and storage medium

Also Published As

Publication number Publication date
CN115225193A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN112367246B (en) Message pushing method and device, electronic equipment and storage medium
CN110427785B (en) Equipment fingerprint acquisition method and device, storage medium and electronic device
CN104246767A (en) Telemetry system for a cloud synchronization system
CN110784495B (en) Block chain-based discovery and configuration information management method for big data cluster system
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN112118239B (en) Block chain consensus method and device, electronic equipment and storage medium
CN112970020A (en) Monitoring device components using distributed ledger
CN112905536B (en) Data verification synchronization method and device based on block chain
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN112131002B (en) Data management method and device
CN105072608B (en) A kind of method and device of administrative authentication token
CN103905441A (en) Data acquisition method and device
CN110334147A (en) A kind of method of data synchronization and device
CN109462661B (en) Data synchronization method and device, computer equipment and storage medium
CN115225193B (en) BMC time synchronization method, system, device and readable storage medium
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN110585724B (en) Method and device for updating form data in game client
CN116610336A (en) Firmware upgrading method, system, device and readable storage medium
CN114513792B (en) Remote network control method and device based on eSIM card
CN110930253A (en) Intelligent contract internal main key generation method and device, computer equipment and storage medium
CN113238778B (en) Method, system, equipment and medium for upgrading BIOS firmware
CN114584326A (en) Block chain data processing method and device, electronic equipment and storage medium
CN116737764A (en) Method and device for data synchronization, electronic equipment and storage medium
CN105763944B (en) Module television and screen terminal upgrading method thereof
CN112910595A (en) Real-time communication method and device

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