CN104754035A - Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip - Google Patents

Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip Download PDF

Info

Publication number
CN104754035A
CN104754035A CN201510099029.4A CN201510099029A CN104754035A CN 104754035 A CN104754035 A CN 104754035A CN 201510099029 A CN201510099029 A CN 201510099029A CN 104754035 A CN104754035 A CN 104754035A
Authority
CN
China
Prior art keywords
time
ntp
rtc chip
rmc
network
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
CN201510099029.4A
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.)
Inspur Group Co Ltd
Original Assignee
Inspur Group 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 Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201510099029.4A priority Critical patent/CN104754035A/en
Publication of CN104754035A publication Critical patent/CN104754035A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for guaranteeing management mainboard time by virtue of cooperation of an NTP and an RTC chip and relates to the computer management technology. The accuracy of the management mainboard time is guaranteed by use of NTP time and time in the RTC chip; under the circumstances of network connected and normal NTP server, the network time is synchronized from the NTP server, and if the synchronization is successful, an NTP service is invoked by use of a cron service period to synchronize the network time as the system time of a rack management controller (RMC) on the management mainboard; in addition, the time synchronized from the NTP server is written in the RTC chip; in case of a network fault or abnormal operation of the NTP server, the time is read from the RTC chip as the current system time. The method guarantees the correctness of the time of a log recorded by the RMC to the whole cabinet hardware equipment faults and maintenance operations, and therefore, the operation and maintenance operating personnel can effectively process the out-of-order hardware accurately without delay.

Description

A kind of NTP and RTC chip coordinates the method guaranteeing to manage the mainboard time
Technical field
The present invention relates to computer management technology, is exactly that a kind of NTP and RTC chip coordinates the method guaranteeing to manage the mainboard time specifically.
Background technology
Along with the development of computer technology, server centered monitoring management technology is applied more and more extensive in practice, realizes server node bulk supply, integral heat sink and integral monitoring management in whole machine cabinet.The equipment being responsible for monitoring management in whole machine cabinet hardware set is called RMC(Rack Management Controler), generally can use ARM controller and Embedded Linux System, be integrated on one piece of management mainboard, be responsible for the monitoring management of whole machine cabinet.RMC wherein important function be in real-time monitoring server node, node the health status of the hardware device such as plate, fan, power supply and the various events of generation (as the Action Events of attendant, as pluggable node, plug fan, turns off power supply, amendment node IP address etc.).Hardware device is once break down or operating personnel have done some operation, and RMC can carry out record by the mode of log daily record in real time, and uploads syslog server.The time of event and event generation is contained in log record, machine room operation management personnel judge rapidly the time of hardware device and the device damage damaged by the log daily record that RMC records, carry out necessary process in time, ensure the security of operation of whole machine cabinet and stablize.
If the time of RMC is incorrect, then the fault time in the log recorded and the time of origin of event also incorrect, operation maintenance personnel is difficult to exact time that accurate failure judgement occurs and carries out necessary process targetedly.Therefore, need a kind of reliable mechanism to ensure the correctness of RMC time, ensure that the fault log time is accurate, whole machine cabinet fault is processed timely and effectively.
Summary of the invention
The present invention is directed to the weak point that prior art exists, provide a kind of NTP and RTC chip and coordinate the method guaranteeing to manage the mainboard time.
A kind of NTP and RTC chip of the present invention coordinates the method guaranteeing to manage the mainboard time, the technical scheme solving the problems of the technologies described above employing is as follows: the method mainly utilizes the time in NTP time and RTC chip to guarantee to manage the correctness of mainboard time, at network-in-dialing and ntp server under normal circumstances, from the ntp server synchronizing network time, if synchronously success, the NTP Service synchronized network time is called by the cron seeervice cycle, as management mainboard on centralized monitor administrative unit RMC(Rack Management Controler) system time, and in the time write RTC chip of synchronously returning from ntp server, when network failure or ntp server irregular working, then from RTC chip, read the time as present system time, the method mainly comprises two parts: start and call NTP service, RMC reading time from RTC chip.
Preferably, start NTP service during the upper electric-opening of described startup and call NTP service and refer to: RMC simultaneously, synchronously network time is obtained from ntp server, after completing startup, amendment crontab script, use NTP service from the Network Synchronization time by cron service timing, if synchronously success, then call stime () and RMC system time will be set to lock in time.
Preferably, described RMC reading time from RTC chip refers to: the RTC chip of RMC outside is used for time storage and timing uses, and RMC can read its timing time by I2C interface from RTC chip.
A kind of NTP and RTC chip of the present invention coordinates guarantees that the beneficial effect that the method managing the mainboard time compared with prior art has is: the mechanism that the method is cooperatively interacted by NTP service and RTC chip, carry out the correctness of strict guarantee RMC system time, thus guarantee the correctness of RMC to the log time of whole machine cabinet hardware device fault and attended operation record, O&M operating personnel can effectively be processed faulty hardware timely and accurately.
Accompanying drawing explanation
Accompanying drawing 1 is that described NTP and RTC chip coordinates the flow chart guaranteeing the method managing the mainboard time.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the method guaranteeing to manage the mainboard time is coordinated to further describe to a kind of NTP and RTC chip of the present invention.
A kind of NTP and RTC chip of the present invention coordinates the method guaranteeing to manage the mainboard time, by using NTP (Network Time Protocol, NTP (Network Time Protocol)) serve and RTC (Real-Time Clock, real-time clock) chip coordinate ensure management the mainboard time correct, the time in NTP time and RTC chip is mainly utilized to guarantee to manage the correctness of mainboard time, at network-in-dialing and ntp server under normal circumstances, from the ntp server synchronizing network time, if synchronously success, the NTP Service synchronized network time is called by the cron seeervice cycle, as management mainboard on centralized monitor administrative unit RMC(Rack Management Controler) system time, and in the time write RTC chip of synchronously returning from ntp server, when network failure or ntp server irregular working, then from RTC chip, read the time as present system time.
Embodiment 1:
A kind of NTP and RTC chip described in the present embodiment coordinates the method guaranteeing to manage the mainboard time, need NTP to serve and RTC chip coordinates and ensures the correct of RMC system time, the method specifically comprises and starts and call that NTP serves, RMC reads time two parts from RTC chip.
This NTP and RTC chip coordinates in the method guaranteeing to manage the mainboard time, start NTP service during the upper electric-opening of described startup and call NTP service and refer to: RMC simultaneously, synchronously network time is obtained from ntp server, after completing startup, amendment crontab script, use NTP service from the Network Synchronization time by cron service timing, if synchronously success, then call stime () and RMC system time will be set to lock in time.
This NTP and RTC chip coordinates in the method guaranteeing to manage the mainboard time, and described RMC reading time from RTC chip refers to: the RTC chip of RMC outside is used for time storage and timing uses, and RMC can read its timing time by I2C interface from RTC chip.
NTP and RTC chip of the present invention coordinates the method guaranteeing to manage the mainboard time, the signal of its flow process is as shown in Figure 1: start NTP during the upper electric-opening of RMC simultaneously and serve, RMC monitors whole machine cabinet hardware state, use NTP service from the ntp server synchronizing network time by cron service, if synchronously success, then NTP is set to RMC system time lock in time, NTP is write RTC chip lock in time simultaneously; If synchronization failure, then RMC reads the present timing time from RTC chip, is set to RMC system time.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any claims according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (3)

1. a NTP and RTC chip coordinates the method guaranteeing to manage the mainboard time, it is characterized in that, the time in NTP time and RTC chip is utilized to guarantee to manage the correctness of mainboard time, at network-in-dialing and ntp server under normal circumstances, from the ntp server synchronizing network time, if synchronously success, the NTP Service synchronized network time is called by the cron seeervice cycle, as the system time of the centralized monitor administrative unit RMC on management mainboard, and in the time write RTC chip of synchronously returning from ntp server, when network failure or ntp server irregular working, then from RTC chip, read the time as present system time, the method mainly comprises two parts: start and call NTP service, RMC reading time from RTC chip.
2. a kind of NTP and RTC chip coordinates the method guaranteeing to manage the mainboard time according to claim 1, it is characterized in that, start NTP service during the upper electric-opening of described startup and call NTP service and refer to: RMC simultaneously, synchronously network time is obtained from ntp server, after completing startup, amendment crontab script, uses NTP service from the Network Synchronization time by cron service timing, if synchronously success, then call stime () and will be set to RMC system time lock in time.
3. a kind of NTP and RTC chip coordinates the method guaranteeing to manage the mainboard time according to claim 2, it is characterized in that, described RMC reading time from RTC chip refers to: the RTC chip of RMC outside is used for time storage and timing uses, and RMC can read its timing time by I2C interface from RTC chip.
CN201510099029.4A 2015-03-06 2015-03-06 Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip Pending CN104754035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510099029.4A CN104754035A (en) 2015-03-06 2015-03-06 Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510099029.4A CN104754035A (en) 2015-03-06 2015-03-06 Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip

Publications (1)

Publication Number Publication Date
CN104754035A true CN104754035A (en) 2015-07-01

Family

ID=53593123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510099029.4A Pending CN104754035A (en) 2015-03-06 2015-03-06 Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip

Country Status (1)

Country Link
CN (1) CN104754035A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119746A (en) * 2015-08-27 2015-12-02 浪潮电子信息产业股份有限公司 RMC-management-based method for intelligently monitoring configuration of SMART RACK whole cabinet server
CN106354119A (en) * 2016-08-26 2017-01-25 华自科技股份有限公司 Microcomputer relay protection device power cut length recording method, system and device
CN106951027A (en) * 2017-03-29 2017-07-14 郑州云海信息技术有限公司 A kind of system and method for the BMC time managements of blade server
CN107329519A (en) * 2017-06-30 2017-11-07 山东超越数控电子有限公司 A kind of server RTC clock synchronous method
CN107919934A (en) * 2017-11-20 2018-04-17 广州谨华电子科技有限公司 A kind of clock and clock correcting method
CN108234057A (en) * 2018-01-24 2018-06-29 郑州云海信息技术有限公司 Method for synchronizing time, device and the storage medium of server based on BMC
CN110471491A (en) * 2019-08-15 2019-11-19 山东超越数控电子股份有限公司 A kind of method of management system time synchronization in blade server
WO2020042660A1 (en) * 2018-08-27 2020-03-05 深圳Tcl数字技术有限公司 Time synchronization method, device, smart television and computer readable storage medium
CN113872718A (en) * 2021-09-26 2021-12-31 上海市共进通信技术有限公司 System, method, apparatus, processor and computer readable storage medium for implementing time synchronization function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123491A (en) * 2007-09-21 2008-02-13 中兴通讯股份有限公司 An implementation device and method for time synchronization of advanced telecom computer architecture
CN101364978A (en) * 2007-08-10 2009-02-11 鸿富锦精密工业(深圳)有限公司 Instant time clock precise verification system and method
CN103441861A (en) * 2013-07-16 2013-12-11 杭州华为数字技术有限公司 Method and device for generating data records

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364978A (en) * 2007-08-10 2009-02-11 鸿富锦精密工业(深圳)有限公司 Instant time clock precise verification system and method
CN101123491A (en) * 2007-09-21 2008-02-13 中兴通讯股份有限公司 An implementation device and method for time synchronization of advanced telecom computer architecture
CN103441861A (en) * 2013-07-16 2013-12-11 杭州华为数字技术有限公司 Method and device for generating data records

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119746A (en) * 2015-08-27 2015-12-02 浪潮电子信息产业股份有限公司 RMC-management-based method for intelligently monitoring configuration of SMART RACK whole cabinet server
CN106354119A (en) * 2016-08-26 2017-01-25 华自科技股份有限公司 Microcomputer relay protection device power cut length recording method, system and device
CN106951027A (en) * 2017-03-29 2017-07-14 郑州云海信息技术有限公司 A kind of system and method for the BMC time managements of blade server
CN107329519A (en) * 2017-06-30 2017-11-07 山东超越数控电子有限公司 A kind of server RTC clock synchronous method
CN107919934A (en) * 2017-11-20 2018-04-17 广州谨华电子科技有限公司 A kind of clock and clock correcting method
CN108234057A (en) * 2018-01-24 2018-06-29 郑州云海信息技术有限公司 Method for synchronizing time, device and the storage medium of server based on BMC
WO2020042660A1 (en) * 2018-08-27 2020-03-05 深圳Tcl数字技术有限公司 Time synchronization method, device, smart television and computer readable storage medium
CN110471491A (en) * 2019-08-15 2019-11-19 山东超越数控电子股份有限公司 A kind of method of management system time synchronization in blade server
CN113872718A (en) * 2021-09-26 2021-12-31 上海市共进通信技术有限公司 System, method, apparatus, processor and computer readable storage medium for implementing time synchronization function
CN113872718B (en) * 2021-09-26 2023-09-12 上海市共进通信技术有限公司 System, method, device, processor and medium for realizing time synchronization function

Similar Documents

Publication Publication Date Title
CN104754035A (en) Method for guaranteeing management mainboard time by virtue of cooperation of NTP and RTC chip
CN106817183B (en) PTP precision time protocol time service module and implementation method in a kind of electric power time service
CN107743054A (en) System during a kind of synchronous pair of multisensor
CN104991629B (en) Power-fail detecting system and its method
CN103425645A (en) Monitoring system and monitoring method for single point of failure of database cluster
CN104821870B (en) Clock synchronizing method based on main website intelligent grid supporting system technology
CN105677500A (en) Method for diagnosing fault of server in real time
CN110851320A (en) Server downtime supervision method, system, terminal and storage medium
EP2902940B1 (en) Storage system and method for processing data operation request
CN104461809A (en) Fault information management method and system
US10496128B2 (en) Method for obtaining timestamp and computer device using the same
CN105530220B (en) The interface method of two kinds of different agreement system communications is realized based on OPC
CN104796213A (en) Clock synchronizing control system and method of multi-redundancy controller
CN103887884B (en) The implementation method of substation's observing and controlling functional redundancy
CN105893745A (en) Method for acquiring information of monitor module during communication failure and device
CN104360918A (en) Self-diagnosis and self-recovery method of intelligent transformer substation system
CN104065935A (en) Automatic time synchronization system for transformer substation video monitoring mainframe and time synchronization method thereof
CN110471491A (en) A kind of method of management system time synchronization in blade server
CN113946448B (en) Time sequence management method and device for server cluster and electronic equipment
CN111752335B (en) Time synchronization method, system, terminal and storage medium based on hard disk multi-core CPU
CN107948018A (en) A kind of method and system that can detect mains failure and realize server soft-off
CN106647228B (en) Converter station master clock fault judgment system
CN108647124A (en) A kind of method and its device of storage skip signal
CN106897189A (en) A kind of daily record monitoring system based on data real time propelling movement
CN203984577U (en) Transformer substation video monitoring host computer automatically to time system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150701

RJ01 Rejection of invention patent application after publication