CN115134267A - Server time synchronization method, device, computer equipment and medium - Google Patents

Server time synchronization method, device, computer equipment and medium Download PDF

Info

Publication number
CN115134267A
CN115134267A CN202210888946.0A CN202210888946A CN115134267A CN 115134267 A CN115134267 A CN 115134267A CN 202210888946 A CN202210888946 A CN 202210888946A CN 115134267 A CN115134267 A CN 115134267A
Authority
CN
China
Prior art keywords
time
server
tester
webgis
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210888946.0A
Other languages
Chinese (zh)
Other versions
CN115134267B (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 CN202210888946.0A priority Critical patent/CN115134267B/en
Publication of CN115134267A publication Critical patent/CN115134267A/en
Application granted granted Critical
Publication of CN115134267B publication Critical patent/CN115134267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a server time synchronization method, a server time synchronization device, computer equipment and a server time synchronization medium based on a WebGIS visual monitoring data interface, and belongs to the technical field of computers. The server time synchronization method comprises the steps of carrying out server IP management of a controller and a tester in a WebGIS system and determining the IP of a server to be tested; collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time; and calibrating the time of the control machine, and calibrating the system time of the server of the tester and the hardware time of the tester by taking the time of the control machine as a reference. The server time synchronization method can utilize a WebGIS technology to synchronize the time of a controller, the hardware of a tester and the system, so that the problem of inaccurate positioning of the log problem caused by time difference in the test process is solved.

Description

Server time synchronization method, device, computer equipment and medium
Technical Field
The invention relates to the technical field of computers, in particular to a server time synchronization method and device based on a WebGIS visual monitoring data interface, computer equipment and a medium.
Background
The problem that the system time and the hardware time are not consistent often occurs in the server, which brings more influence to analysis of the server test logs, and when a control machine is used for testing, the problem of time synchronization between the control machine and a testing machine also influences analysis of the test logs, so that how to effectively monitor the server time and perform server time synchronization becomes a problem which is very common and urgently needed to be solved when the server is tested.
The problem that the system time of a server is inconsistent with the hardware time in the test process and the condition that the time of a control machine is inconsistent with that of a test machine often occur in the test process, and the most common solution is to perform manual time calibration when inconsistency is found.
The method is time-consuming and labor-consuming, and is difficult to ensure that the system time and the hardware time of the server are deviated in the test execution process, and the time deviation between a control machine and a test machine due to the frequency of a self oscillator and other problems often causes inaccurate problem positioning and brings more troubles in log analysis.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a server time synchronization method based on a WebGIS visual monitoring data interface. The server time synchronization method can utilize a WebGIS technology to synchronize the time of a controller, the hardware of a tester and the system, so that the problem of inaccurate positioning of the log problem caused by time difference in the test process is solved.
Based on the above purpose, an aspect of the embodiments of the present invention provides a server time synchronization method based on a WebGIS visual monitoring data interface. The server time synchronization method comprises the steps of carrying out server IP management on a controller and a tester in a WebGIS system and determining the IP of a server to be tested; collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time; and calibrating the time of the control machine, and calibrating the system time of the test machine server and the hardware time of the test machine by taking the time of the control machine as a reference.
In some embodiments, the server time synchronization method based on the WebGIS visual monitoring data interface further includes graphically displaying the collected tester server system time, tester hardware time, and controller server time on a visual interface through the WebGIS system.
In some embodiments, the server time synchronization method based on the WebGIS visual monitoring data interface further includes inputting a server IP of a test machine to be tested into the WebGIS system, clearing logs of the test machine by a control machine, synchronizing the test machine system and the standard time service center time, confirming an error between the test machine system time and the standard time service center time after the test is finished, and collecting the logs if the time error is within a required range.
In some embodiments, performing server IP management of the controlling machine and the tester at the WebGIS system and determining the server IP to be tested comprises: and setting server IPs in the WebGIS system, wherein the server IPs comprise the server IPs of the controller and the server IPs of all the testing machines, and determining the server IPs for testing according to the testing requirements.
In some embodiments, the collecting, in real time, tester server system time, tester hardware time, and controller server time corresponding to the server IP to be tested includes: and respectively testing the time of the controller server, the system time of each tester server to be tested and the hardware time of the tester in real time according to the determined IP of the server to be tested.
In some embodiments, calibrating the time of the controller, and calibrating the tester server system time and the tester hardware time based on the time of the controller comprises: comparing the time of the control machine with the time of a standard time service center so as to calibrate the time of the control machine; calibrating the system time sum of the test machine servers of all the test machines to be tested by taking the time of the calibrated control machine as a reference; and calibrating the hardware time of the testing machine corresponding to the system time of the testing machine server after calibration.
In some embodiments, calibrating the time of the control machine, and calibrating the tester server system time and the tester hardware time based on the time of the control machine further comprises: when the control machine adopts an automatic synchronization mode, the time interval of automatic synchronization is set firstly, and then the control machine carries out time synchronization according to the set time interval.
On the other hand, the embodiment of the invention also provides a server time synchronization device based on the WebGIS visual monitoring data interface. The server time synchronization device based on the WebGIS visual monitoring data interface comprises a server IP management unit, a server time data acquisition unit and a server time calibration unit. And the server IP management unit is configured for performing server IP management of the controller and the tester in the WebGIS and determining the IP of the server to be tested. And the server time data acquisition unit is configured for acquiring the test machine server system time, the test machine hardware time and the control machine server time corresponding to the IP of the server to be tested in real time, and carrying out visual interface display on the acquired test machine server system time, test machine hardware time and control machine server time in a graphic mode through a WebGIS system. And the server time calibration unit is configured to calibrate the time of the controller, and calibrate the system time of the server of the testing machine and the hardware time of the testing machine by taking the time of the controller as a reference.
In some embodiments, the server IP management unit is configured to set server IPs in the WebGIS system, where the server IPs include the server IPs of the controller and the server IPs of all testers, and determine the test server IPs according to the test requirements.
In some embodiments, the server time data acquisition unit is configured to separately and real-time test the controller server time, the system time of each tester server to be tested, and the tester hardware time at the server side according to the determined IP of the tester to be tested.
In some embodiments, the server time calibration unit is configured to set an interval of the automatic synchronization when the controller uses the automatic synchronization mode, and then the controller performs the time synchronization according to the set interval.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing steps of the method comprising: server IP management of a controller and a tester is carried out in a WebGIS system, and a server IP to be tested is determined; collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time; and calibrating the time of the control machine, and calibrating the system time of the test machine server and the hardware time of the test machine by taking the time of the control machine as a reference.
In some embodiments, a server time synchronization method based on a WebGIS visual monitoring data interface includes performing server IP management of a controller and a tester in a WebGIS system and determining a server IP to be tested; collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time; and calibrating the time of the control machine, and calibrating the system time of the test machine server and the hardware time of the test machine by taking the time of the control machine as a reference.
In some embodiments, the server time synchronization method based on the WebGIS visual monitoring data interface further includes graphically displaying the collected tester server system time, tester hardware time, and controller server time on a visual interface through the WebGIS system.
In some embodiments, the server time synchronization method based on the WebGIS visual monitoring data interface further comprises the steps of inputting a server IP of a test machine to be tested into the WebGIS system, clearing logs of the test machine by a control machine, synchronizing the time of the test machine system and the time of a standard time service center, confirming an error between the time of the test machine system and the time of the standard time service center after the test is finished, and collecting the logs if the time error is within a required range.
In some embodiments, performing server IP management of the controlling machine and the tester at the WebGIS system and determining the server IP to be tested comprises: and setting server IPs in the WebGIS system, wherein the server IPs comprise the server IPs of the controller and the server IPs of all the testing machines, and determining the server IPs for testing according to the testing requirements.
In some embodiments, the collecting, in real time, tester server system time, tester hardware time, and controller server time corresponding to the server IP to be tested includes: and respectively testing the time of the controller server, the system time of each tester server to be tested and the hardware time of the tester in real time according to the determined IP of the server to be tested.
In some embodiments, calibrating the time of the control machine, and calibrating the tester server system time and the tester hardware time based on the time of the control machine comprises: comparing the time of the control machine with the time of a standard time service center so as to calibrate the time of the control machine; calibrating the system time sum of the test machine servers of all the test machines to be tested by taking the time of the calibrated control machine as a reference; and calibrating the hardware time of the testing machine corresponding to the system time of the testing machine server after calibration.
In another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has at least the following beneficial technical effects:
the server time synchronization method based on the WebGIS visual monitoring data interface displays the time of the control machine, the system time of the testing machine and the hardware time of the testing machine in real time by using the WebGIS technology, performs automatic synchronization, can keep the consistency of log time in the testing process, is convenient for timely positioning when a problem occurs in the test, can also perform clock test, and is convenient for a test engineer to test and manage the time problem of the server.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a server time synchronization method based on a WebGIS visual monitoring data interface according to the present invention;
FIG. 2 is a schematic diagram of an embodiment of a server time synchronization apparatus based on a WebGIS visual monitoring data interface according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
Based on the above purpose, a first aspect of the embodiments of the present invention provides an embodiment of a server time synchronization method based on a WebGIS visual monitoring data interface. Fig. 1 is a schematic diagram illustrating an embodiment of a server time synchronization method based on a WebGIS visual monitoring data interface according to the present invention. As shown in fig. 1, the server time synchronization method based on the WebGIS visual monitoring data interface according to the embodiment of the present invention includes the following steps:
001. server IP management of a controller and a tester is carried out in a WebGIS system, and a server IP to be tested is determined;
002. collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time;
003. and calibrating the time of the control machine, and calibrating the system time of the test machine server and the hardware time of the test machine by taking the time of the control machine as a reference.
In this embodiment, the data collection and calibration work is performed at the server side. And displaying the collected data at the web end, and managing the IP of the server.
In some embodiments of the present invention, the method for synchronizing server time based on WebGIS visual monitoring data interface further comprises: and carrying out visual interface display on the acquired system time of the tester server, the acquired hardware time of the tester and the acquired control machine server time through a WebGIS system in a graphic mode.
In the embodiment, server time display is performed on a WebGIS technology visual monitoring data interface, based on the WebGIS technology, the Webchart control is applied, the collected server time can be output as a graphic result, a tester can conveniently observe and monitor the server time, and the time synchronization mode can be controlled. The method comprises automatic synchronization and manual synchronization, the position of each server can be seen on a server display interface, and when a mouse is moved to the position, information such as the name, IP (Internet protocol), time and the like of the corresponding server can be displayed.
Preferably, the Baidu map API may be loaded by the official address domain name http:// API. map. basic. com/API.
The specific instructions are as follows:
< script src ═ http:// api. map. baidu.com/apikey ═ key > & v ═ version > & services ═ type ═ text/javascript ">", and
wherein the key parameter represents a key; the v parameter represents the API version number; the services parameter indicates whether to continue loading services.
Setting a synchronization mode, if the synchronization mode is automatic synchronization, setting an automatic synchronization time interval, and controlling the opportunity to carry out time synchronization according to the set time; if the synchronization is manual, the time calibration module is executed only when the control machine clicks.
In some embodiments of the present invention, the method for synchronizing server time based on WebGIS visual monitoring data interface further comprises: and inputting a server IP of a tester to be tested in the WebGIS system, clearing logs of the tester by a control machine, synchronizing the tester system and the standard time service center time, confirming the error between the tester system time and the standard time service center time after the test is finished, and collecting the logs if the time error is within a required range.
In this embodiment, a server clock test is performed on a WebGIS visual monitoring data interface. Inputting an IP to be tested by a clock, and clearing a log of the tester by a control machine, wherein the specific instruction is as follows:
ssh-keygen-t rsa
ssh-copy-id-i-/. ssh/id _ rsa.pub < control machine ip >
ssh root @ < tester ip >
ipmitool sel clear
>/var/log/messages
>/var/log/dmesg
>/var/log/mcelog
dmesg-C
And synchronizing the system and the standard time service center time, wherein the specific instruction is as follows:
ntpdate time.nist.gov
after waiting for 3 days (72 hours), executing the ntpdate clock server again, confirming the error between the system time and the clock server time, prompting that the time difference between the system time and the clock server time exists during synchronization, comparing whether the time difference is within a required range or not, wherein the error is not more than 5.2 seconds (1.73s/24hr), and collecting logs, wherein the specific instructions are as follows:
ntpdate time.nist.gov|tee-a/root/clock_test_log/ntp.log
ipmitool sel elist>/root/clock_test_log/sel.log
cat/var/log/messages>/root/clock_test_log/messages
cat/var/log/dmesg>/root/clock_test_log/dmesg
cat/var/log/mcelog>/root/clock_test_log/mcelog
in some embodiments of the present invention, performing server IP management of the controller and tester at the WebGIS system and determining the server IP to be tested comprises: and setting a server IP in the WebGIS system, wherein the server IP comprises the server IP of the controller and the server IPs of all the testing machines, and determining the server IP to be tested according to the testing requirements.
In this embodiment, the WebGIS visual monitoring data interface has a server IP management function. The function can be used for setting the name of the server, conveniently distinguishing the control machine from the testing machine, adding or deleting the IP of the server, and conveniently managing the time synchronization of different machines by testing personnel.
In some embodiments of the present invention, the collecting, in real time, tester server system time, tester hardware time, and controller server time corresponding to a server IP to be tested includes: and respectively testing the time of the controller server, the system time of each tester server to be tested and the hardware time of the tester in real time according to the determined IP of the server to be tested.
In this embodiment, at the server side, after determining the server IPs of the controllers and testers to be tested, the tester server system time and tester hardware time of the server IPs of all testers are collected in real time, and at the same time, the controller server time of the controller is collected in real time. All collected data are output to the WebGIS system to be displayed in a graphic mode in a WebGIS visual monitoring data interface, and visual observation is facilitated.
In some embodiments of the present invention, calibrating the time of the controller, and calibrating the tester server system time and the tester hardware time based on the time of the controller comprises: comparing the time of the controller with the time of a standard time service center to calibrate the time of the controller; calibrating the system time sum of the test machine servers of all the test machines to be tested by taking the time of the calibrated control machine as a reference; and calibrating the hardware time of the corresponding tester by taking the calibrated system time of the tester server as a reference.
In this embodiment, at the server side, the time of the controller server is first calibrated by using the standard time service center time, and after the calibration is completed, the time of the controller server is taken as the time calibration standard. And calibrating the system time of the test machine server of all the test machines, and then calibrating the hardware time of the test machines on the basis of the system time of the test machine server. After the calibration is finished, after a period of time, for example, 72 hours, the time of the controller server may be calibrated or may not be calibrated, as long as it is ensured that the system time of the tester server and the hardware time of the tester are consistent with the time of the controller server.
In some embodiments of the present invention, calibrating the time of the control machine, and calibrating the tester server system time and the tester hardware time based on the time of the control machine further includes: when the control machine adopts an automatic synchronization mode, the time interval of automatic synchronization is set firstly, and then the control machine carries out time synchronization according to the set time interval.
In this embodiment, the time calibration of the testing machine by the control machine may be automatic or manual. If automatic, a preset time interval is required, such as 30 seconds, 5 minutes, one hour, etc. It may also be manual, where it is necessary to use a graphical display, where the adjustment is made when the error exceeds a certain range, for example, the error exceeds 2 seconds, 3 seconds, 5 seconds, etc.
The server time synchronization method based on the WebGIS visual monitoring data interface displays the time of the control machine, the system time of the testing machine and the hardware time of the testing machine in real time by using the WebGIS technology, performs automatic synchronization, can keep the consistency of log time in the testing process, is convenient for timely positioning when a problem occurs in the test, can also perform clock test, and is convenient for a test engineer to test and manage the time problem of the server.
Based on the above purpose, a second aspect of the embodiments of the present invention provides a server time synchronization device based on a WebGIS visual monitoring data interface. Fig. 2 is a schematic diagram illustrating an embodiment of a server time synchronization device based on a WebGIS visual monitoring data interface provided by the present invention. As shown in fig. 2, the server time synchronization apparatus based on the WebGIS visual monitoring data interface according to the embodiment of the present invention includes: the server IP management unit 011 is configured for performing server IP management of a controller and a tester in the WebGIS and determining the IP of the server to be tested; a server time data collecting unit 012 configured to collect test machine server system time, test machine hardware time and control machine server time corresponding to the server IP to be tested in real time, and perform visual interface display on the collected test machine server system time, test machine hardware time and control machine server time through a WebGIS system in a graphical manner; and a server time calibration unit 013 configured to calibrate the time of the controller, and calibrate the server system time of the tester and the hardware time of the tester with the time of the controller as a reference.
In some embodiments of the present invention, the server IP management unit 011 is further configured to set server IPs in the WebGIS system, the server IPs including the server IPs of the controlling machine and the server IPs of all the testing machines, and determine the test server IPs according to the test requirements.
In some embodiments of the present invention, the server time data collection unit 012 is further configured to separately and real-time test the controller server time, the system time of each tester server to be tested and the tester hardware time at the server side according to the determined servers to be tested IP.
In some embodiments of the present invention, the server time calibration unit 013 is further configured to set an interval of the auto-synchronization when the controller uses the auto-synchronization mode, and then the controller performs the time synchronization according to the set interval.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, the computer apparatus of the embodiment of the present invention includes the following means: at least one processor 021; and a memory 022, the memory 022 storing computer instructions 023 executable on the processor, the instructions when executed by the processor implementing steps of the method comprising: server IP management of a controller and a tester is carried out in a WebGIS system, and a server IP to be tested is determined; collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time; and calibrating the time of the control machine, and calibrating the system time of the server of the tester and the hardware time of the tester by taking the time of the control machine as a reference.
The invention also provides a computer readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium 031 stores a computer program 032 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for centralized server testing can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), or a Random Access Memory (RAM). The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (D0L), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, D0L, or wireless technologies such as infrared, radio, and microwave are all included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A server time synchronization method based on a WebGIS visual monitoring data interface is characterized by comprising the following steps:
server IP management of a control machine and a test machine is carried out in a WebGIS system, and the IP of a server to be tested is determined;
collecting test machine server system time, test machine hardware time and control machine server time corresponding to the IP of the server to be tested in real time; and
and calibrating the time of the control machine, and calibrating the system time of the server of the tester and the hardware time of the tester by taking the time of the control machine as a reference.
2. The method for synchronizing server time based on the WebGIS visual monitoring data interface according to claim 1, further comprising:
and carrying out visual interface display on the acquired system time of the tester server, the acquired hardware time of the tester and the acquired control machine server time through a WebGIS system in a graphic mode.
3. The method for synchronizing server time based on the WebGIS visual monitoring data interface according to claim 1, further comprising:
and inputting a server IP of a tester to be tested into the WebGIS system, clearing logs of the tester by a control machine, synchronizing the tester system and the standard time service center time, confirming the error between the tester system time and the standard time service center time after the test is finished, and collecting the logs if the time error is within a required range.
4. The method for synchronizing server time based on the WebGIS visual monitoring data interface of claim 1, wherein the step of performing server IP management of a controller and a tester in the WebGIS system and determining the server IP to be tested comprises: and setting server IPs in the WebGIS system, wherein the server IPs comprise the server IPs of the controller and the server IPs of all the testing machines, and determining the server IPs for testing according to the testing requirements.
5. The method for synchronizing server time based on the WebGIS visual monitoring data interface of claim 1, wherein the step of collecting tester server system time, tester hardware time and controller server time corresponding to the server IP to be tested in real time comprises:
and respectively testing the time of the controller server, the system time of each tester server to be tested and the hardware time of the tester in real time according to the determined IP of the server to be tested.
6. The method for synchronizing server time based on the WebGIS visual monitoring data interface of claim 1, wherein calibrating the time of the controller, and calibrating the tester server system time and the tester hardware time based on the time of the controller comprises:
comparing the time of the controller with the time of a standard time service center to calibrate the time of the controller;
calibrating the system time sum of the test machine servers of all the test machines to be tested by taking the time of the calibrated control machine as a reference; and
and calibrating the hardware time of the corresponding test machine by taking the calibrated test machine server system time as a reference.
7. The method of claim 6, wherein calibrating the controller time, and calibrating the tester server system time and the tester hardware time based on the controller time further comprises: when the control machine adopts an automatic synchronization mode, the time interval of automatic synchronization is set firstly, and then the control machine carries out time synchronization according to the set time interval.
8. A server time synchronizer based on WebGIS visual monitoring data interface is characterized by comprising:
the server IP management unit is configured for performing server IP management of a controller and a tester in the WebGIS and determining the IP of the server to be tested;
the server time data acquisition unit is configured for acquiring the test machine server system time, the test machine hardware time and the control machine server time corresponding to the IP of the server to be tested in real time, and carrying out visual interface display on the acquired test machine server system time, test machine hardware time and control machine server time in a graphic mode through a WebGIS system; and
and the server time calibration unit is configured to calibrate the time of the controller, and calibrate the system time of the server of the testing machine and the hardware time of the testing machine by taking the time of the controller as a reference.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202210888946.0A 2022-07-27 2022-07-27 Server time synchronization method, device, computer equipment and medium Active CN115134267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210888946.0A CN115134267B (en) 2022-07-27 2022-07-27 Server time synchronization method, device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210888946.0A CN115134267B (en) 2022-07-27 2022-07-27 Server time synchronization method, device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN115134267A true CN115134267A (en) 2022-09-30
CN115134267B CN115134267B (en) 2023-07-18

Family

ID=83385164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210888946.0A Active CN115134267B (en) 2022-07-27 2022-07-27 Server time synchronization method, device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN115134267B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005250613A (en) * 2004-03-02 2005-09-15 Sony Corp Reproduction time management system, reproduction time management method, reproduction device, reproduction method and recording medium
CN111884747A (en) * 2020-07-21 2020-11-03 腾讯科技(深圳)有限公司 Management method and system of network time protocol server
CN113179145A (en) * 2021-04-26 2021-07-27 中国工商银行股份有限公司 Time synchronization method, device and system
CN114113977A (en) * 2021-11-11 2022-03-01 广州朗国电子科技股份有限公司 RTC circuit automatic detection method and system of circuit board

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005250613A (en) * 2004-03-02 2005-09-15 Sony Corp Reproduction time management system, reproduction time management method, reproduction device, reproduction method and recording medium
CN111884747A (en) * 2020-07-21 2020-11-03 腾讯科技(深圳)有限公司 Management method and system of network time protocol server
CN113179145A (en) * 2021-04-26 2021-07-27 中国工商银行股份有限公司 Time synchronization method, device and system
CN114113977A (en) * 2021-11-11 2022-03-01 广州朗国电子科技股份有限公司 RTC circuit automatic detection method and system of circuit board

Also Published As

Publication number Publication date
CN115134267B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US20180167297A1 (en) Method and apparatus for testing and displaying test results
CN109218048A (en) To the performance test methods and device of an industrial system being deployed on cloud
CN116757367B (en) Three-dimensional visual power grid operation data analysis system
US20140136139A1 (en) Optical fiber analysis device, system, and method
CN110263980A (en) Produce method for early warning and device
CN113765733A (en) Bus network testing method and device
CN114281877A (en) Data management system and method
CN109634867B (en) Software testing method and device based on data simulation system and storage medium
JP2017182414A (en) Failure prediction device, failure prediction method, and failure prediction program
CN115134267B (en) Server time synchronization method, device, computer equipment and medium
JP5377183B2 (en) Test system and test method for plant instrumentation
CN115598445B (en) Electrical fault detection method and device based on hardware-in-loop
US20230128825A1 (en) Systems and methods for retaining equipment information in a blockchain
US20130124670A1 (en) Systems and methods for recording data associated with the operation of foundation fieldbus devices
CN113849328B (en) Management method and device of disaster recovery system
CN110737879A (en) Website copyright time management method and device, storage medium and equipment
CN112132544B (en) Inspection method and device of business system
CN111311187B (en) Project progress monitoring method, system and storage medium based on Revit
CN114138579A (en) Prometous-based GPU (graphics processing Unit) interactive test method, device, equipment and readable medium
CN113986758A (en) Regression testing method and device, electronic equipment and computer readable medium
CN109933798B (en) Audit log analysis method and audit log analysis device
KR101544652B1 (en) Management of network configuration in telecommunications networks
CN113360359A (en) Index abnormal data tracing method, device, equipment and storage medium
CN106327154B (en) Informatization method and system for checking dietary fiber
CN108510155A (en) Information management system and temporal information bearing calibration

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