CN108833047A - Method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment - Google Patents
Method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment Download PDFInfo
- Publication number
- CN108833047A CN108833047A CN201810918483.1A CN201810918483A CN108833047A CN 108833047 A CN108833047 A CN 108833047A CN 201810918483 A CN201810918483 A CN 201810918483A CN 108833047 A CN108833047 A CN 108833047A
- Authority
- CN
- China
- Prior art keywords
- time
- server
- ntp
- deviates
- deviate
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
This disclosure relates to a kind of method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment, belong to computer field, it can automatically ensure the system time synchronization of client-server, the response speed and processing speed and the degree of automation for increasing system time synchronization, reduce cost of labor.This method includes:First time between the automatic Network Time Protocol ntp server and upstream time server for obtaining deployment deviates;When first time deviation meets preset time and deviates rule, the time of the ntp server and the time of the upstream time server are synchronized automatically;The second time between the ntp server after the automatic NTP Client for obtaining deployment and time synchronization deviates;When second time deviation meets the preset time and deviates rule, the time of the ntp server after the time of the NTP Client and time synchronization is synchronized automatically.
Description
Technical field
This disclosure relates to computer field, and in particular, to a kind of method for synchronizing time, device, readable storage medium storing program for executing and
Electronic equipment.
Background technique
Currently, in enterprise customer's O&M, most of uniformities that can all pay close attention to the server system time, and system time
Uniformity is substantially through the realization of Network Time Protocol (Network Time Protocol, NTP) server.Due to being
The deviation of system time is all carrying out delicate variation daily, so being all at present by manually come periodic detection client service
The system time of device and the deviation situation between the ntp server time, then by manual correction, to guarantee that all clients take
The accuracy of the system time of business device.Since essentially all of link requires the whole concern of operation maintenance personnel and participates in, institute
To reduce the response speed and processing speed of system time synchronization, cost of labor is increased.
Summary of the invention
The disclosure inventors have found that automation operation and maintenance tools enable enterprise's operation maintenance personnel to multiple operating systems into
The unified management of row.If automation operation and maintenance tools can be applied by the time synchronization between ntp server and NTP Client
On, then will be very favorable.
Therefore, purpose of this disclosure is to provide a kind of method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment,
The system time synchronization that can automatically ensure client-server increases the response speed and processing of system time synchronization
Speed and the degree of automation, reduce cost of labor.
According to first embodiment of the present disclosure, a kind of method for synchronizing time is provided, this method includes:Automatic acquisition deployment
First time between Network Time Protocol ntp server and upstream time server deviates;Deviate in the first time full
When sufficient preset time deviates rule, the time of the ntp server and the time of the upstream time server are carried out automatically
It is synchronous;The second time between the ntp server after the automatic NTP Client for obtaining deployment and time synchronization deviates;?
It is automatically that the time of the NTP Client and time is same when the second time deviation meets the preset time deviation rule
The time of the ntp server after step synchronizes.
Optionally, between the Network Time Protocol ntp server and upstream time server of the automatic acquisition deployment
The NTP Client and the ntp server after time synchronization of the step of deviateing at the first time and the automatic acquisition deployment
Between the step of deviateing the second time realized by deviateing crawl order using task schedule frame allocating time.
Optionally, the task schedule frame is Quartz frame.
Optionally, this method further includes:Record deviates about the first time, second time deviates and held
The log of capable simultaneously operating;And/or deviate to operation maintenance personnel notice about first time deviation, second time,
The information of performed simultaneously operating.
Optionally, described to deviate to operation maintenance personnel notice about first time deviation, second time, is performed
Simultaneously operating information, including:It is notified to operation maintenance personnel about described the by way of social software and/or SMS
One time deviateed, second time deviates, the information of performed simultaneously operating.
According to second embodiment of the present disclosure, a kind of time synchronism apparatus is provided, which includes:Deviate at the first time and obtains
Modulus block, for obtaining the first time between the Network Time Protocol ntp server of deployment and upstream time server automatically
Deviate;First time synchronization module, for the first time deviate meet preset time and deviate rule when, automatically will be described
The time of ntp server and the time of the upstream time server synchronize;Second time, which deviateed, obtains module, for certainly
The second time between the ntp server after the dynamic NTP Client for obtaining deployment and time synchronization deviates;Second time is same
Walk module, for second time deviate meet the preset time and deviate rule when, automatically by the NTP Client
Time and the time of the ntp server after time synchronization synchronize.
Optionally, the first time deviation obtains module and second time deviates acquisition module and appointed by utilizing
Business Scheduling Framework allocating time deviates crawl order to realize what the first time deviation and second time deviateed respectively
It is automatic to obtain.
Optionally, the task schedule frame is Quartz frame.
Optionally, which further includes:Logging modle, for record about the first time deviate, it is described second when
Between deviate and performed simultaneously operating log;And/or notification module, for notifying to operation maintenance personnel about described first
Time deviates, second time deviates, the information of performed simultaneously operating.
Optionally, the notification module is also used to by way of social software and/or SMS logical to operation maintenance personnel
MS deviates in the first time, second time deviates, the information of performed simultaneously operating.
According to third embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with computer journey
Sequence, the step of realization when which is executed by processor according to first embodiment of the present disclosure the method.
According to fourth embodiment of the present disclosure, a kind of electronic equipment is provided, including:Memory is stored thereon with computer
Program;Processor, for executing the computer program in the memory, to realize according to first embodiment of the present disclosure institute
The step of stating method.
By using above-mentioned technical proposal, due to the time deviation between ntp server and upstream time server, NTP
Time between client and ntp server deviates all to be obtained automatically, between ntp server and upstream time server
Time synchronization between time synchronization, NTP Client and ntp server is also all realized automatically, so can be automatically
Ensure corporate client server system time synchronization, increase response speed and the processing speed of system time synchronization with
And the degree of automation, reduce cost of labor, it is ensured that the even running of the business on the server of enterprise customer and data
Reliability.Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is the schematic diagram of scene be applicable in accordance with an embodiment of the present disclosure.
Fig. 2 is according to a kind of flow chart of the method for synchronizing time of embodiment of the disclosure.
Fig. 3 is the flow chart according to the method for synchronizing time of the another embodiment of the disclosure.
Fig. 4 is according to a kind of schematic block diagram of the time synchronism apparatus of embodiment of the disclosure.
Fig. 5 is the schematic block diagram according to the time synchronism apparatus of the another embodiment of the disclosure.
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched
The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
Automation operation and maintenance tools are simply introduced first.Operation and maintenance tools are automated, are to enable enterprise's operation maintenance personnel
The tool that multiple operating systems are managed collectively.Such automation is exactly utilized according to each embodiment of the disclosure
Operation and maintenance tools are realized.Common automation operation and maintenance tools for example have SaltStack, ManageEngine, ansible etc.
Deng.
Next scene be applicable in accordance with an embodiment of the present disclosure is described.As shown in Figure 1, in the implementation according to the disclosure
In the scene that example is applicable in, there is a ntp server and multiple NTP Client, they actually belong to corporate client
Server, only the time autosynchronous one of server that needs to carry out of corporate client is deployed as ntp server, enterprise
Other the autosynchronous servers of time that need to carry out of industry client are deployed as NTP Client, so as to using ntp server/
The framework of NTP Client needs to carry out time autosynchronous server and upstream time server realize corporate client
Time automatic synchronization, to guarantee the accuracy of the system time for needing to carry out time autosynchronous server of corporate client.
Dotted line in Fig. 1 indicates, in ntp server/NTP Client framework, the time of NTP Client needs and ntp server
Time synchronize.
Next each embodiment according to the disclosure is described.
According to a kind of embodiment of the disclosure, a kind of method for synchronizing time is provided, as shown in Fig. 2, this method may include
Following steps S21 to S24.
In the step s 21, the first time between the automatic ntp server and upstream time server for obtaining deployment is inclined
From.
Wherein, which can be realized by deviateing crawl order using task schedule frame allocating time.Task tune
Spend frame can for such as Quartz frame, JCronTab, Timer, ScheduledExecutor, Myriad, Schedulix,
Any one in Mossrose etc..
According to the actual situation, deviate the time lead that can be the ntp server of deployment at the first time in upstream time clothes
The time of business device is also possible to the time delay of the ntp server of deployment in the time of upstream time server.
In step S22, when first time deviation meets preset time and deviates rule, the NTP is taken automatically
The time of business device and the time of the upstream time server synchronize.
Wherein, it may include for example, deviateing threshold at the first time if deviated more than at the first time that preset time, which deviates rule,
Value (such as T1 seconds) then automatically synchronizes the time of ntp server and the time of upstream time server.
In step S23, between the ntp server after the automatic NTP Client for obtaining deployment and time synchronization
Second time deviateed.
Wherein, which can be realized by deviateing crawl order using task schedule frame allocating time.Task tune
Spend frame can for such as Quartz frame, JCronTab, Timer, ScheduledExecutor, Myriad, Schedulix,
Any one in Mossrose etc..
According to the actual situation, the second time deviateed the time lead that can be the NTP Client of deployment after time synchronization
Ntp server time, be also possible to ntp server of the time delay after time synchronization of the NTP Client of deployment
Time.
It in step s 24, automatically will be described when second time deviation meets the preset time and deviates rule
The time of NTP Client and the time of the ntp server after time synchronization synchronize.
Wherein, preset time deviate rule can also include for example, if the second time deviate more than the second time deviation
Threshold value (such as T2 seconds) then automatically synchronizes the time of the ntp server after the time of NTP Client and time synchronization.Separately
Outside, in the disclosure, the second time deviation threshold value can be equal to by deviateing threshold value at the first time, can also be inclined not equal to the second time
From threshold value.
By using above-mentioned technical proposal, due to the time deviation between ntp server and upstream time server, NTP
Time between client and ntp server deviates all to be obtained automatically, between ntp server and upstream time server
Time synchronization between time synchronization, NTP Client and ntp server is also all realized automatically, so can be automatically
Ensure corporate client server system time synchronization, increase response speed and the processing speed of system time synchronization with
And the degree of automation, reduce cost of labor, it is ensured that the even running of the business on the server of enterprise customer and data
Reliability.
Below in conjunction with scene shown in FIG. 1, by using SaltStack automation operation and maintenance tools for, come describe according to this
The process of the method for synchronizing time of open embodiment.
Firstly, needing to carry out to install on the computer except time autosynchronous server in corporate client
SaltStack server end needs to carry out to install SaltStack on time autosynchronous Servers-all in corporate client
Client.Using SaltStack server end by be mounted with SaltStack client, need to carry out the time it is autosynchronous
Wherein server disposition in Servers-all is ntp server, by be mounted with SaltStack client, need into
Other server dispositions in row time autosynchronous Servers-all are NTP Client.
Then, the time of ntp server and NTP Client is initialized.Namely SaltStack server end can be to
SaltStack client sending time on ntp server deviates crawl order, then the SaltStack visitor on ntp server
Family end can deviate crawl order based on the time to grab the deviation of the time between ntp server and upstream time server and will grab
The time got, which deviates, returns to SaltStack server end, and SaltStack server end is by the time received deviation and in advance
It is matched if the time deviates rule, if it is determined that the time between ntp server and upstream time server, which deviates, to be met in advance
If the time deviates rule, then the time of ntp server and the time of upstream time server are synchronized.Completing NTP
After the time synchronization of server, SaltStack server end can SaltStack client on NTP Client when sending
Between deviate crawl order, then SaltStack client on NTP Client, which can deviate crawl based on the time and order, grab
Time between NTP Client and ntp server, which deviates and deviates the time grabbed, returns to SaltStack server
End.Due to there is multiple NTP Client, so the SaltStack client on this multiple NTP Client returns to SaltStack
Time of server end deviates can be in the form of queue by SaltStack server-side processes, in processing mode and ntp server
SaltStack client to return to the processing mode that time of SaltStack server end deviates similar, it is no longer superfluous herein
It states.
After the time to ntp server and NTP Client initializes, SaltStack server end can be regular
(such as daily) deviates crawl order to ntp server and each NTP Client sending time, so as to grab ntp server and
The time of each NTP Client deviates situation, right if the time grabbed deviates situation and meets preset time deviation rule
Corresponding ntp server or NTP Client carry out time synchronization.However, preferably the time for first grabbing ntp server is inclined
From situation and carry out time synchronization, complete again later each NTP Client time deviate situation crawl with it is synchronous, to ensure
The accuracy of time synchronization.
Fig. 3 shows the flow chart of the method for synchronizing time according to the another embodiment of the disclosure.As shown in figure 3, this method
It further include step S25 and S26 on the basis of Fig. 2.
In step s 25, record deviates about the first time, second time deviates and performed synchronization
The log of operation.That is, will record the log of operation of the step S21 into S24, in order to operation maintenance personnel access.
In step S26, deviate to operation maintenance personnel notice about the first time, second time deviates, is held
The information of capable simultaneously operating.That is, the information of the operation about step S21 into S24 can be notified to operation maintenance personnel, in order to
Operation maintenance personnel takes the time synchronous information in real time.In addition, in this step, social software (such as wechat, QQ can be passed through
Deng) and/or the mode of SMS deviates to operation maintenance personnel notice about the first time, second time deviates, institute
The information of the simultaneously operating of execution.
In addition, it is necessary to explanation, in the disclosure, step S25, S26 can select an execution, can successively execute or
It is performed simultaneously.
Fig. 4 is shown according to a kind of schematic block diagram of the time synchronism apparatus of embodiment of the disclosure, as shown in figure 4, the dress
Setting 400 may include:
Deviate at the first time and obtain module 41, for obtaining Network Time Protocol ntp server and the upstream of deployment automatically
First time between time server deviates;
First time synchronization module 42, for the first time deviate meet preset time deviate rule when, automatically
The time of the ntp server and the time of the upstream time server are synchronized;
Second time deviate obtain module 43, for obtain automatically deployment NTP Client and time synchronization after described in
The second time between ntp server deviates;
Second time synchronization module 44, for second time deviate meet the preset time and deviate rule when,
Automatically the time of the ntp server after the time of the NTP Client and time synchronization is synchronized.
By using above-mentioned technical proposal, due to the time deviation between ntp server and upstream time server, NTP
Time between client and ntp server deviates all to be obtained automatically, between ntp server and upstream time server
Time synchronization between time synchronization, NTP Client and ntp server is also all realized automatically, so can be automatically
Ensure corporate client server system time synchronization, increase response speed and the processing speed of system time synchronization with
And the degree of automation, reduce cost of labor, it is ensured that the even running of the business on the server of enterprise customer and data
Reliability.
In a kind of possible embodiment, the first time, which deviates, obtains module 41 and second time deviation
Module 43 is obtained by deviateing crawl order using task schedule frame allocating time to realize that the first time deviates respectively
The automatic acquisition deviateed with second time.Preferably, the task schedule frame is Quartz frame.
Fig. 5 shows the schematic block diagram of the time synchronism apparatus according to the another embodiment of the disclosure, as shown in figure 5, the dress
Setting 400 can also include:
Logging modle 45 deviates for record about the first time, second time deviates and performed
The log of simultaneously operating;And/or
Notification module 46, for deviateing to operation maintenance personnel notice about the first time, second time deviates, institute
The information of the simultaneously operating of execution.
In a kind of possible embodiment, the notification module 46 is also used to through social software and/or SMS
Mode to operation maintenance personnel notifies to deviate about the first time, second time deviates, performed simultaneously operating
Information.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is the block diagram of a kind of electronic equipment 700 shown according to an exemplary embodiment.As shown in fig. 6, the electronics is set
Standby 700 may include:Processor 701, memory 702.The electronic equipment 700 can also include multimedia component 703, input/
Export one or more of (I/O) interface 704 and communication component 705.
Wherein, processor 701 is used to control the integrated operation of the electronic equipment 700, to complete above-mentioned time synchronization side
All or part of the steps in method.Memory 702 is for storing various types of data to support the behaviour in the electronic equipment 700
To make, these data for example may include the instruction of any application or method for operating on the electronic equipment 700, with
And the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory 702
It can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static random-access is deposited
Reservoir (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory
(Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable
Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory
(Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as
ROM), magnetic memory, flash memory, disk or CD.Multimedia component 703 may include screen and audio component.Wherein
Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include
One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage
Device 702 is sent by communication component 705.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O
Interface 704 provides interface between processor 701 and other interface modules, other above-mentioned interface modules can be keyboard, mouse,
Button etc..These buttons can be virtual push button or entity button.Communication component 705 is for the electronic equipment 700 and other
Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field
Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication
Component 705 may include:Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 700 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing above-mentioned method for synchronizing time.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of above-mentioned method for synchronizing time is realized when program instruction is executed by processor.For example, the computer readable storage medium
It can be the above-mentioned memory 702 including program instruction, above procedure instruction can be executed by the processor 701 of electronic equipment 700
To complete above-mentioned method for synchronizing time.
Fig. 7 is the block diagram of a kind of electronic equipment 1900 shown according to an exemplary embodiment.For example, electronic equipment 1900
It may be provided as a server.Referring to Fig. 7, electronic equipment 1900 includes processor 1922, and quantity can be one or more
A and memory 1932, for storing the computer program that can be executed by processor 1922.The meter stored in memory 1932
Calculation machine program may include it is one or more each correspond to one group of instruction module.In addition, processor 1922 can
To be configured as executing the computer program, to execute above-mentioned method for synchronizing time.
In addition, electronic equipment 1900 can also include power supply module 1926 and communication component 1950, the power supply module 1926
It can be configured as the power management for executing electronic equipment 1900, which can be configured as realization electronic equipment
1900 communication, for example, wired or wireless communication.In addition, the electronic equipment 1900 can also include that input/output (I/O) connects
Mouth 1958.Electronic equipment 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows
ServerTM, Mac OS XTM, UnixTM, LinuxTM etc..
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of above-mentioned method for synchronizing time is realized when program instruction is executed by processor.For example, the computer readable storage medium
It can be the above-mentioned memory 1932 including program instruction, above procedure instruction can be held by the processor 1922 of electronic equipment 1900
Row is to complete above-mentioned method for synchronizing time.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the disclosure to it is various can
No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought equally should be considered as disclosure disclosure of that.
Claims (10)
1. a kind of method for synchronizing time, which is characterized in that this method includes:
First time between the automatic Network Time Protocol ntp server and upstream time server for obtaining deployment deviates;
The first time deviate meet preset time deviate rule when, automatically by the time of the ntp server with it is described
The time of upstream time server synchronizes;
The second time between the ntp server after the automatic NTP Client for obtaining deployment and time synchronization deviates;
Second time deviate meet the preset time and deviate rule when, automatically by the time of the NTP Client with
The time of the ntp server after time synchronization synchronizes.
2. the method according to claim 1, wherein the Network Time Protocol NTP clothes of the automatic acquisition deployment
The NTP Client of the step of first time being engaged between device and upstream time server deviates and the automatic acquisition deployment with
The step of the second time between the ntp server after time synchronization deviates is by utilizing task schedule frame allocating time
Deviate crawl order to realize.
3. according to the method described in claim 2, it is characterized in that, the task schedule frame is Quartz frame.
4. according to claim 1 to method described in any claim in 3, which is characterized in that this method further includes:
Record the log about first time deviation, second time deviation and performed simultaneously operating;And/or
Deviate to operation maintenance personnel notice about the first time, second time deviates, the letter of performed simultaneously operating
Breath.
5. according to the method described in claim 4, it is characterized in that, described inclined about the first time to operation maintenance personnel notice
Deviate from, second time, the information of performed simultaneously operating, including:
Notify to deviate about the first time to operation maintenance personnel by way of social software and/or SMS, described the
The information of the deviation of two times, performed simultaneously operating.
6. a kind of time synchronism apparatus, which is characterized in that the device includes:
Deviate at the first time and obtain module, the Network Time Protocol ntp server and upstream time for obtaining deployment automatically take
First time between business device deviates;
First time synchronization module, for the first time deviate meet preset time and deviate rule when, automatically will be described
The time of ntp server and the time of the upstream time server synchronize;
Second time deviate obtain module, for obtain automatically deployment NTP Client and time synchronization after the NTP service
The second time between device deviates;
Second time synchronization module, for automatically will when second time deviation meets the preset time and deviates rule
The time of the NTP Client and the time of the ntp server after time synchronization synchronize.
7. device according to claim 6, which is characterized in that the device further includes:
Logging modle, for recording about first time deviation, second time deviation and performed synchronous behaviour
The log of work;And/or
Notification module, for deviateing to operation maintenance personnel notice about the first time, second time deviates, performed
The information of simultaneously operating.
8. device according to claim 7, which is characterized in that the notification module be also used to through social software and/or
The mode of SMS is to operation maintenance personnel notifies to deviate about the first time, second time deviates, performed same
Walk the information of operation.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of claim 1-5 the method is realized when row.
10. a kind of electronic equipment, which is characterized in that including:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-5
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810918483.1A CN108833047A (en) | 2018-08-13 | 2018-08-13 | Method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810918483.1A CN108833047A (en) | 2018-08-13 | 2018-08-13 | Method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108833047A true CN108833047A (en) | 2018-11-16 |
Family
ID=64152099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810918483.1A Pending CN108833047A (en) | 2018-08-13 | 2018-08-13 | Method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108833047A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110119335A (en) * | 2019-03-27 | 2019-08-13 | 平安科技(深圳)有限公司 | Server NTP process monitoring method, electronic device and storage medium |
CN110166562A (en) * | 2019-05-24 | 2019-08-23 | 东软集团股份有限公司 | Data synchronous method, apparatus, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102684808A (en) * | 2012-06-06 | 2012-09-19 | 哈尔滨工业大学 | Self-adaptive clock synchronous system |
CN104202204A (en) * | 2014-09-26 | 2014-12-10 | 浙江中控技术股份有限公司 | Clock synchronous control method, device and system based on SNTP |
CN106788836A (en) * | 2016-04-06 | 2017-05-31 | 新华三技术有限公司 | The synchronous method and device of a kind of system time |
-
2018
- 2018-08-13 CN CN201810918483.1A patent/CN108833047A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102684808A (en) * | 2012-06-06 | 2012-09-19 | 哈尔滨工业大学 | Self-adaptive clock synchronous system |
CN104202204A (en) * | 2014-09-26 | 2014-12-10 | 浙江中控技术股份有限公司 | Clock synchronous control method, device and system based on SNTP |
CN106788836A (en) * | 2016-04-06 | 2017-05-31 | 新华三技术有限公司 | The synchronous method and device of a kind of system time |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110119335A (en) * | 2019-03-27 | 2019-08-13 | 平安科技(深圳)有限公司 | Server NTP process monitoring method, electronic device and storage medium |
CN110166562A (en) * | 2019-05-24 | 2019-08-23 | 东软集团股份有限公司 | Data synchronous method, apparatus, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10739814B2 (en) | Time-synchronizing a group of nodes | |
US10972579B2 (en) | Adaptive scheduling for edge devices and networks | |
US9491106B2 (en) | Non-intrusive method for synchronizing master and slave clocks of a packet-switched network, and associated synchronization devices | |
CN105468500B (en) | timed task monitoring method and device | |
CN105684382A (en) | Packet control method, switch and controller | |
CN105208060B (en) | Synchronizing traffic data method, apparatus and system | |
US10592827B2 (en) | Throttling solutions into a legacy inventory system during a service disruption | |
US10313277B2 (en) | Time shifted communications in networked messaging systems | |
CN104052589A (en) | Fault Tolerant Clock Network | |
CN108833047A (en) | Method for synchronizing time, device, readable storage medium storing program for executing and electronic equipment | |
Puttnies et al. | Estimators for time synchronization—survey, analysis, and outlook | |
CN110062029A (en) | Change data synchronous method, apparatus, computer equipment and computer storage medium | |
CN113626002A (en) | Service execution method and device | |
CN106899655A (en) | The state of file transmission is tracked using the feedback file corresponding to file transmission events | |
US10334539B2 (en) | Metered interface | |
CN113346974B (en) | Method, apparatus, communication system and storage medium for clock synchronization | |
US20110302129A1 (en) | System and method for temporal correlation of observables | |
Kurtz et al. | Software-defined networking driven time-sensitive networking for mixed-criticality control applications | |
CN110225077A (en) | Synchronous method, device, computer equipment and the computer storage medium of change supply data | |
US11240060B1 (en) | Apparatus, system, and method for providing simultaneous delivery of output communications | |
CN104993920B (en) | A kind of lock in time method and SNTP clients based on SNTP | |
US20180167341A1 (en) | Automated out-of-office functionality | |
US20240048466A1 (en) | Packet Capture Device, Time Stamp Amendment Method, Packet Capture Method and Packet Capture Program | |
CN107995022A (en) | Session synchronization method and device, storage medium, electronic equipment | |
CN115173985A (en) | Clock conversion method, device and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181116 |