CN117130850A - Fault diagnosis method, device, equipment and storage medium - Google Patents
Fault diagnosis method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117130850A CN117130850A CN202310920190.8A CN202310920190A CN117130850A CN 117130850 A CN117130850 A CN 117130850A CN 202310920190 A CN202310920190 A CN 202310920190A CN 117130850 A CN117130850 A CN 117130850A
- Authority
- CN
- China
- Prior art keywords
- fault
- interface
- target
- diagnosis
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 178
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012360 testing method Methods 0.000 claims abstract description 130
- 238000012544 monitoring process Methods 0.000 claims abstract description 65
- 238000004458 analytical method Methods 0.000 claims abstract description 10
- 238000007639 printing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 5
- 230000004044 response Effects 0.000 claims description 5
- 238000012552 review Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 12
- 206010063385 Intellectualisation Diseases 0.000 abstract description 4
- 238000012827 research and development Methods 0.000 abstract description 4
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000008901 benefit Effects 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/321—Display for diagnostics, e.g. diagnostic result display, self-test user interface
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a fault diagnosis method, a device, equipment and a storage medium, wherein the method comprises the following steps: responding to an indication signal sent by the system fault monitored by the first interface, switching to the second interface, acquiring monitoring information of the first interface, analyzing the monitoring information, determining fault information, wherein the fault information comprises a target fault keyword and a target fault category, determining a fault corresponding diagnosis scheme in a preset fault database according to the target fault keyword and the target fault category of the fault information, and displaying the diagnosis scheme on the second interface. The invention realizes automatic analysis and determination of the faults tested by the system, gives out a solution proposal, finally displays the diagnosis proposal on the second interface for a developer to solve the test faults according to the diagnosis proposal, realizes the intellectualization of fault diagnosis, improves the efficiency of system fault diagnosis, greatly shortens the research and development test period of new products and further improves the development efficiency of the products.
Description
Technical Field
The present invention relates to the field of server technologies, and in particular, to a fault diagnosis method, device, apparatus, and storage medium.
Background
In the development process of server products, system tests are carried out on a CPU and the whole machine, the problems existing in the design are tested through comprehensive system tests, and the key of ensuring the design quality is that faults are found and solved. For any new product, a great number of problems are likely to be encountered in the system test, so that the products can be marketed as soon as possible, the competitiveness and benefit of the products are improved, and the problem of how to realize rapid fault positioning through the system test is urgent.
At present, various fault logs are required to be collected independently by a fault diagnosis scheme under the existing server architecture, the logs are checked row by row to determine where the problem is, and after the fault is located by the checked logs, a developer solves the fault according to personal experience.
Disclosure of Invention
In view of the above, the present invention aims to provide a fault diagnosis method, apparatus, device and storage medium, which solve the problem, realize efficient online fault diagnosis, and ensure stable operation of a server.
According to a first aspect of the present invention, there is provided a fault diagnosis method applied to a test terminal, where the test terminal is connected to a server to be tested, the test terminal includes a first interface and a second interface, and the first interface and the second interface are displayed in a switching manner, the method includes:
responding to an indication signal sent by the first interface when the first interface monitors the system fault, switching to the second interface, and acquiring monitoring information of the first interface;
analyzing the monitoring information to determine fault information, wherein the fault information comprises a target fault keyword and a target fault category;
and determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keywords and the target fault categories of the fault information, and displaying the diagnosis scheme on the second interface.
Optionally, the analyzing the monitoring information to determine fault information includes:
matching preset fault keywords in the monitoring information, and determining target fault keywords and positions of the target fault keywords in the monitoring information;
carrying out statement analysis on the row where the target fault keyword is located, and determining a target fault category;
And storing the target fault keywords and the target fault categories as fault information.
Optionally, the determining, according to the target fault keyword and the target fault category of the fault information, a fault corresponding diagnosis scheme in a preset fault database, and displaying the diagnosis scheme on the second interface includes:
matching the target fault keywords of the fault information in a preset fault database to obtain a matching result;
if the matching result is that the matching of the target fault keywords is successful, determining a plurality of fault categories matched with the target fault keywords;
the fault categories are prioritized according to the association degree with the target fault keywords, and at least one target fault category is determined; the target fault class is a fault class determined by the priority meeting a preset condition;
according to at least one target fault category, calling a diagnosis scheme corresponding to the target fault category in the preset fault database;
and displaying the diagnosis scheme on a fault diagnosis display page of the second interface.
Optionally, the test end is connected with the tested server and the intranet respectively, and the calling, according to at least one target fault category, a diagnosis scheme corresponding to the target fault category in the preset fault database includes:
If at least one target fault category is determined, invoking the preset fault database through the intranet;
and extracting a fault diagnosis scheme corresponding to the target fault category from the preset fault database.
Optionally, the displaying the diagnosis scheme after the fault diagnosis display page of the second interface further includes:
storing the corresponding relation between the target fault keywords and at least one target fault category with the priority meeting preset conditions into the preset fault database;
and storing a calling path of the diagnosis scheme, wherein the calling path is a connection path of the test end and the preset fault database, so that a developer can review the diagnosis scheme.
Optionally, before the first interface monitors the indication signal sent by the system fault and switches to the second interface, the method further includes:
receiving a system test state reported by the tested server under the condition that the tested server performs system test;
displaying the system test state on an information printing page of the first interface;
and if the information printing page has the fault alarm of the tested server, sending out a fault alarm indication through the first interface.
According to a second aspect of the present invention, there is provided a fault diagnosis apparatus applied to a test terminal, the test terminal being connected to a server under test, the test terminal including a first interface and a second interface, the first interface and the second interface being displayed by switching, the apparatus including:
the monitoring information acquisition module is used for responding to the indication signal sent by the system fault monitored by the first interface, switching to the second interface and acquiring the monitoring information of the first interface;
the fault information determining module is used for analyzing the monitoring information and determining fault information, wherein the fault information comprises a target fault keyword and a target fault category;
and the diagnosis scheme determining module is used for determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keyword and the target fault category of the fault information, and displaying the diagnosis scheme on the second interface.
According to a third aspect of the present invention, there is provided a fault diagnosis system, the system including a test end, a tested server and an intranet, the test end being connected to the tested server and the intranet, respectively, the test end including a first interface and a second interface, the first interface and the second interface being displayed in a switching manner;
The test terminal is used for responding to an indication signal sent by the system fault detected by the first interface, switching to the second interface, acquiring monitoring information of the first interface, analyzing the monitoring information, determining fault information, determining a fault corresponding diagnosis scheme in a preset fault database according to a target fault keyword and a target fault category of the fault information, and displaying the diagnosis scheme on the second interface;
the tested server is used for reporting a system test state to the first interface of the test end under the condition of performing system test;
the intranet is used for establishing connection between the preset fault database and the testing end and is used for calling a diagnosis scheme corresponding to the target fault category in the preset fault database through the intranet.
According to still another aspect of the present invention, there is also provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the fault diagnosis method as described above.
According to yet another aspect of the present invention, there is also provided a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the fault diagnosis method as described above.
According to the fault diagnosis method provided by the embodiment of the invention, the test end responds to the indication signal sent by the system fault monitored by the first interface, and is switched to the second interface, so that the monitoring information of the first interface is obtained, the monitoring information is analyzed and processed, the fault information is determined, the fault corresponding diagnosis scheme is determined in the preset fault database according to the target fault keyword and the target fault category of the fault information, and the diagnosis scheme is displayed on the second interface. The embodiment of the invention utilizes a plurality of display interfaces of the testing end to monitor the tested server in real time, switches to the second interface to perform fault diagnosis after the first interface monitors the indication signal sent by the system fault, accurately locks the fault keywords and fault categories of the system test fault by analyzing and processing the monitoring information, directly determines the effective diagnosis scheme corresponding to the fault in the preset fault database by using the fault keywords and the fault categories, can realize automatic storage and analysis of the fault tested by the tested server system and give out a solution proposal, finally displays the diagnosis scheme on the second interface for a developer to solve the test fault according to the diagnosis scheme, realizes the intellectualization of the fault diagnosis, effectively saves the manual searching log and the fault diagnosis time of the developer, improves the efficiency of the system fault diagnosis, greatly shortens the research and development test period of new products and further improves the development efficiency of the products.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is one of the flow charts of steps of a fault diagnosis method provided in an embodiment of the present invention;
FIG. 2 is a flow chart of step 102 of a fault diagnosis method of the embodiment of the present invention provided in FIG. 1;
FIG. 3 is a flow chart of step 103 of a fault diagnosis method of the embodiment of the present invention provided in FIG. 1;
FIG. 4 is a second flowchart illustrating a fault diagnosis method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a test end of a fault diagnosis method according to an embodiment of the present invention;
FIG. 6 is a second schematic diagram of a test end of a fault diagnosis method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a fault diagnosis apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a fault diagnosis system according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
On the existing server architecture, because of the components such as a plurality of CPUs and other chips, when the components are difficult to troubleshoot during operation, developers can perform system test in the development process of server products, timely find problems existing in product design to solve, and ensure the development quality of new products of the server, however, the existing fault diagnosis in the development stage mainly depends on the manual test log searching and diagnosis data searching of the developers or relies on own experience to perform fault diagnosis, so that a great deal of manpower and time are required to be consumed.
Referring to fig. 1, one of the step flowcharts of the fault diagnosis method provided by the embodiment of the present invention is shown, and the test end is applied to the fault diagnosis system shown in fig. 8, where the test end is connected to the tested server, and the test end includes a first interface and a second interface, and the first interface and the second interface are displayed in a switching manner, where the method may include:
step 101, switching to a second interface to acquire monitoring information of the first interface in response to an indication signal sent by the first interface monitoring system fault.
In the embodiment of the invention, in order to perform fault diagnosis of system test on a tested server, a test end and a construction of a test environment are added on the existing server architecture, the tested server is connected with the test end, the test end comprises a host and a display screen, the display screen is used for automatically storing test information and displaying fault diagnosis results, in order to facilitate the fault diagnosis of a developer, the test end comprises a first interface and a second interface, the first interface is used for displaying an information printing page, namely a display command and various printing information uploaded by the host of the tested server, the second interface is used for displaying the execution process of fault diagnosis and displaying a fault diagnosis scheme, and the first interface and the second interface are used for switching display.
Specifically, the initial interface of the test end may be a first interface, and in response to the first interface monitoring an indication signal sent by a system fault, the first interface is switched to a second interface to obtain monitoring information of the first interface, referring to fig. 5, which is one of schematic diagrams of the test end of the fault diagnosis method according to the embodiment of the present invention, the first interface displays a fault on an information print page when the system test fault is monitored, and uses a system indicator to perform fault alarm, and when the first interface monitors the system fault to send an indication signal, the test end automatically switches the second interface to start executing a step flow of fault diagnosis, and the second interface first obtains the monitoring information generated in the monitoring process of the first interface.
It should be noted that, the first interface and the second interface described in this embodiment are only used to distinguish the display functions of the test end, and there is no sequence between the two interfaces. In the present embodiment, only the first interface is a display information print page, and the second interface is an execution process for displaying the fault diagnosis, and the fault diagnosis scheme is shown for illustration.
And 102, analyzing the monitoring information to determine fault information, wherein the fault information comprises a target fault keyword and a target fault category.
In the embodiment of the invention, the second interface of the test terminal comprises a fault diagnosis display page, and after the second interface is switched to, the test terminal starts analyzing and processing the monitoring information, and the test terminal needs to perform fault identification, fault storage and fault automatic diagnosis on the monitoring information.
Specifically, the monitoring information is analyzed, the monitoring information generated in the system testing process is retrieved and extracted, sentences of fault keywords in the monitoring information are determined, fault categories are identified, the fault keywords and the fault categories are stored and are stored as fault information, fault identification and fault storage are completed, so that the faults can be diagnosed in a targeted mode, and the accuracy of fault diagnosis is improved.
It should be noted that, the fault information includes a target fault keyword and a target fault category, the target fault keyword is a fault keyword matched in the monitoring information, which indicates that a fault exists in the monitoring information, the target fault category is a fault category determined according to a statement where the fault keyword is located, and indicates that a fault category exists in the monitoring information, where, due to the number of fault categories being more, there may be a plurality of fault categories determined according to the fault keyword, further analysis and identification are needed, and the target fault category is determined, which is not described in detail herein.
And step 103, determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keywords and the target fault categories of the fault information, and displaying the diagnosis scheme on a second interface.
In the embodiment of the invention, after determining the fault information, the testing end determines a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keyword and the target fault category of the fault information, wherein the target fault keyword and the target fault category can lock specific information of the fault, so that the diagnosis scheme corresponding to the fault is called in the preset fault database.
It should be noted that, the preset fault database may be accessed through the link button of the second interface, the test end may establish connection with the internal preset fault database through the intranet, and directly access the preset fault database to search and extract the fault information. In the embodiment shown above, the preset fault database may also utilize newly-added fault data obtained in real time during online operation, and continuously update the diagnosis scheme through an automatic machine learning framework, so as to keep the diagnosis scheme with the optimal server fault diagnosis capability.
Specifically, when the testing end determines the diagnosis scheme corresponding to the fault according to the target fault keyword and the target fault category of the fault information, the diagnosis scheme is displayed on the second interface after the preset fault database is used for determining the fault, so that a developer can determine the fault directly according to the diagnosis scheme, and the fault server is maintained according to the solution mode given by the diagnosis scheme.
The embodiment of the invention utilizes a plurality of display interfaces of the testing end to monitor the tested server in real time, switches to the second interface to perform fault diagnosis after the first interface monitors the indication signal sent by the system fault, accurately locks the fault keywords and fault categories of the system test fault by analyzing and processing the monitoring information, directly determines the effective diagnosis scheme corresponding to the fault in the preset fault database by using the fault keywords and the fault categories, can realize automatic storage and analysis of the fault tested by the tested server system and give out a solution proposal, finally displays the diagnosis scheme on the second interface for a developer to solve the test fault according to the diagnosis scheme, realizes the intellectualization of the fault diagnosis, effectively saves the manual searching log and the fault diagnosis time of the developer, improves the efficiency of the system fault diagnosis, greatly shortens the research and development test period of new products and further improves the development efficiency of the products.
Further, referring to fig. 2, a flowchart illustrating step 102 of the fault diagnosis method provided in fig. 1, which is substantially the same as the fault diagnosis method provided in the first embodiment of the present invention, step 102 may include:
step 201, matching preset fault keywords in the monitoring information, and determining target fault keywords and positions of the target fault keywords in the monitoring information.
In the embodiment of the invention, the testing end matches the preset fault keywords in the monitoring information, so that the fault keywords and the positions of the fault keywords in the monitoring information are determined, and the fault information is conveniently locked.
For example, the monitoring information obtained from the information print page of the first interface is retrieved, and the target fault keyword and the position of the target fault keyword in the monitoring information are determined by searching for the preset fault keyword, such as error, fault, alert, for example, if the monitoring information matches "error", then the line sentence at the position of the line sentence is marked.
Step 202, analyzing the line statement of the target fault keyword to determine the target fault category.
In the embodiment of the invention, after determining the sentences of the line where the target fault keywords are located, semantic analysis is performed, specifically, the sentences of the line where the fault information is located are analyzed based on the corresponding relation between the fault keywords and the fault categories, the fault categories corresponding to the target fault keywords, such as PSU, temp and the like, are extracted, and the target fault categories are locked.
Step 203, storing the target fault keywords and the target fault category as fault information.
In the embodiment of the invention, the target fault keywords and the positions of the target fault keywords in the monitoring information are determined by matching the preset fault keywords in the monitoring information, the line sentences in which the target fault keywords are positioned are analyzed, the target fault categories are determined, and the target fault keywords and the target fault categories are stored as the fault information, so that the accurate identification and fault storage of faults are realized, the identification accuracy of the faults is improved, and the next fault diagnosis of the faults is facilitated.
Further, referring to fig. 3, a flowchart illustrating step 103 of the fault diagnosis method provided in fig. 1, which is substantially the same as the fault diagnosis method provided in the first embodiment of the present invention, step 103 may include:
step 301, matching the target fault keywords of the fault information in a preset fault database to obtain a matching result.
In the embodiment of the invention, after the testing end identifies the fault and stores the fault information, the target fault keywords of the fault information are matched in the preset fault database to obtain a matching result, wherein the preset fault database can comprise specifications of the CPU and the main chip, so that the target fault keywords are matched based on the specifications to obtain the matching result, and the current fault can be searched in the preset fault database, thereby facilitating further fault diagnosis.
Step 302, if the matching result is that the matching of the target fault keywords is successful, determining a plurality of fault categories of the matching of the target fault keywords.
It should be noted that, the target fault keyword can find a plurality of fault categories in the preset fault database, so that a plurality of fault categories corresponding to the target fault keyword are determined first, then the target fault category meeting the requirements is determined from the plurality of fault categories, the problem of traversing the diagnosis schemes of all fault categories and wasting processing time is avoided, and further the resource consumed by data processing is saved.
Step 303, prioritizing the plurality of fault categories according to the association degree with the target fault keyword, and determining at least one target fault category.
The target fault class is determined by the priority meeting the preset condition.
Specifically, a preset semantic association algorithm is adopted to calculate the association degrees of a plurality of fault categories and target fault keywords, and the specific algorithm for generating the association degrees is not limited in this embodiment, and may be any algorithm capable of obtaining the association degrees of the fault categories and the target fault keywords, which is not described herein.
It should be noted that, in order to ensure accuracy of fault diagnosis, avoid fault category judgment errors and delay fault diagnosis, the testing end ranks multiple fault categories according to the association degree with the target fault keywords, determines at least one target fault category, i.e. determines multiple target fault categories meeting the conditions, and improves fault tolerance of fault diagnosis.
Step 304, according to at least one of the target fault categories, calling a diagnosis scheme corresponding to the target fault category in a preset fault database.
And 305, displaying the diagnosis scheme on a fault diagnosis display page of the second interface.
Specifically, the test end is connected to the tested server and the intranet respectively, and step 304 calls a diagnosis scheme corresponding to the target fault category in a preset fault database according to at least one target fault category, including:
firstly, if at least one target fault category is determined, calling a preset fault database through an intranet;
and secondly, extracting a fault diagnosis scheme corresponding to the target fault category from a preset fault database.
Specifically, step 305 displays the diagnosis scheme after the fault diagnosis display page of the second interface, and further includes:
storing the corresponding relation between the target fault keywords and at least one target fault category with the priority meeting the preset condition into a preset fault database;
and storing a calling path of the diagnosis scheme, wherein the calling path is a connection path of the test end and a preset fault database, so that a developer can review the diagnosis scheme.
It should be noted that, referring to fig. 6, a second schematic diagram of a test end of a fault diagnosis method according to an embodiment of the present invention is shown, where the second interface includes a fault diagnosis display page, and the second interface further includes a "data storage" button, a "database" button, a "fault diagnosis" button, a "data storage" for storing a specification of a key chip of a server host, a specification of a CPU, a CPU PCIE related error reporting information comparison table, a CPU startup error comparison table, a high-speed link loss table, a sensor list, and other development design data, etc. The database button is used for establishing connection with a fault database in an intranet server through the intranet, and the fault diagnosis button is used for accessing the fault database after establishing connection so as to realize retrieval and extraction of information in the fault database.
According to the embodiment, the monitoring information is analyzed, so that the fault keywords and the fault categories of the system test faults are accurately locked, then the effective diagnosis schemes corresponding to the faults are directly determined in the preset fault database by the fault keywords and the fault categories, automatic storage, analysis and solution suggestions for the faults tested by the tested server system can be realized, finally, the diagnosis schemes are displayed on the second interface for a developer to solve the test faults according to the diagnosis schemes, the intelligent fault diagnosis is realized, the manual log searching and the fault diagnosis time of the developer are effectively saved, the system fault diagnosis efficiency is improved, the development and test period of new products is greatly shortened, and the development efficiency of the products is further improved.
A second embodiment of the present invention relates to a fault diagnosis method, which is substantially the same as the fault diagnosis method provided by the first embodiment of the present invention, with the difference that, referring to fig. 4, there is shown a second step flowchart of the fault diagnosis method provided by the embodiment of the present invention, the method includes:
and 104, receiving a system test state reported by the tested server under the condition that the tested server performs system test.
In the embodiment of the invention, under the condition that the tested server performs system test, the host computer at the test end can receive the system test state reported by the tested server, the server host computer is the tested server, the host computer at the test end is connected with the server host computer through a serial port and a network port, the other network card of the host computer at the test end is connected with an intranet, the display at the test end is used for displaying test information and analysis results, the serial port between the server host computer and the host computer at the test end is used for serial port communication, and the server host computer reports printing information.
And 105, displaying the system test state on the information printing page of the first interface.
And 106, if the information printing page has a tested server fault alarm, sending out a fault alarm indication through the first interface.
For example, when the system test is performed, the first interface monitors information of the information printing page in real time, and when the system test is normal, the system indicator lights are turned on to green; when a system test fault is detected, a system indicator lamp is lighted to be red, namely if the information printing page generates a tested server fault alarm, a fault alarm indication is sent out through a first interface, so that a developer can timely see that the system test has a fault, and fault diagnosis is carried out.
In the present embodiment, the specific execution positions of steps 104 to 106 are not limited, and in the present embodiment, steps 104 to 106 are executed as an example before step 101 for the sake of understanding.
Step 101, switching to a second interface to acquire monitoring information of the first interface in response to an indication signal sent by the first interface monitoring system fault.
And 102, analyzing the monitoring information to determine fault information, wherein the fault information comprises a target fault keyword and a target fault category.
And step 103, determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keywords and the target fault categories of the fault information, and displaying the diagnosis scheme on a second interface.
It should be noted that, the steps 101-103 are discussed with reference to the foregoing, and are not repeated herein.
Compared with the prior art, the embodiment of the invention receives the system test state reported by the tested server under the condition that the tested server performs the system test, displays the system test state on the information printing page of the first interface, and if the information printing page has the fault alarm of the tested server, sends out the fault alarm indication through the first interface, so that a developer can be informed of the occurrence of the test fault in time, the efficiency of diagnosing the system fault is improved, and the development efficiency of products is further improved.
Referring to fig. 7, a schematic structural diagram of a fault diagnosis device provided by an embodiment of the present invention is applied to a test end, where the test end is connected to a server to be tested, the test end includes a first interface and a second interface, and the first interface and the second interface are displayed in a switching manner, where the device may include:
the monitor information acquisition module 401 is configured to switch to the second interface in response to an indication signal sent by the first interface when the first interface monitors a system fault, and acquire monitor information of the first interface;
the fault information determining module 402 is configured to analyze the monitoring information, and determine fault information, where the fault information includes a target fault keyword and a target fault category;
and a diagnosis scheme determining module 403, configured to determine a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keyword and the target fault category of the fault information, and display the diagnosis scheme on the second interface.
Further, the determining fault information module 402 includes:
the first determining submodule is used for matching preset fault keywords in the monitoring information and determining target fault keywords and positions of the target fault keywords in the monitoring information;
The second determining submodule is used for analyzing the line statement where the target fault keyword is located and determining the target fault category;
and the first storage sub-module is used for storing the target fault keywords and the target fault categories as fault information.
Further, the determining diagnostic scheme module 403 includes:
the keyword matching submodule is used for matching the target fault keywords of the fault information in a preset fault database to obtain a matching result;
a third determining sub-module, configured to determine a plurality of fault categories matched with the target fault keyword if the matching result is that the target fault keyword is successfully matched;
a fourth determining sub-module, configured to prioritize the plurality of fault categories according to a degree of association with the target fault keyword, and determine at least one target fault category; the target fault class is a fault class determined by the priority meeting a preset condition;
the calling sub-module is used for calling a diagnosis scheme corresponding to the target fault category in the preset fault database according to at least one target fault category;
and the display sub-module is used for displaying the diagnosis scheme on a fault diagnosis display page of the second interface.
Further, the test end is connected with the tested server and the intranet respectively, and the calling submodule comprises:
the calling unit is used for calling the preset fault database through the intranet if at least one target fault category is determined;
and the extracting unit is used for extracting the fault diagnosis scheme corresponding to the target fault category from the preset fault database.
Further, the determining diagnosis scheme module 403 further includes:
the third storage sub-module is used for storing the corresponding relation between the target fault keywords and at least one target fault category with the priority meeting the preset condition to the preset fault database;
and the fourth storage sub-module is used for storing a calling path of the diagnosis scheme, wherein the calling path is a connection path of the test end and the preset fault database, so that a developer can review the diagnosis scheme.
Further, the device further comprises:
the information receiving module is used for receiving the system test state reported by the tested server under the condition that the tested server performs system test;
the display information module is used for displaying the system test state on an information printing page of the first interface;
And the fault alarm module is used for sending out fault alarm indication through the first interface if the information printing page has fault alarm of the tested server.
According to the fault diagnosis device provided by the embodiment of the invention, the test end responds to the indication signal sent by the system fault monitored by the first interface, and is switched to the second interface to acquire the monitoring information of the first interface, the monitoring information is analyzed and processed to determine the fault information, the fault corresponding diagnosis scheme is determined in the preset fault database according to the target fault keyword and the target fault category of the fault information, and the diagnosis scheme is displayed on the second interface. The embodiment of the invention utilizes a plurality of display interfaces of the testing end to monitor the tested server in real time, switches to the second interface to perform fault diagnosis after the first interface monitors the indication signal sent by the system fault, accurately locks the fault keywords and fault categories of the system test fault by analyzing and processing the monitoring information, directly determines the effective diagnosis scheme corresponding to the fault in the preset fault database by using the fault keywords and the fault categories, can realize automatic storage and analysis of the fault tested by the tested server system and give out a solution proposal, finally displays the diagnosis scheme on the second interface for a developer to solve the test fault according to the diagnosis scheme, realizes the intellectualization of the fault diagnosis, effectively saves the manual searching log and the fault diagnosis time of the developer, improves the efficiency of the system fault diagnosis, greatly shortens the research and development test period of new products and further improves the development efficiency of the products.
Referring to fig. 8, a schematic structural diagram of a fault diagnosis system provided by an embodiment of the present invention is shown, where the system may include a test end, a tested server and an intranet, where the test end is connected to the tested server and the intranet respectively, and the test end includes a first interface and a second interface, and the first interface and the second interface are displayed in a switching manner;
the test terminal is used for responding to an indication signal sent by the system fault detected by the first interface, switching to the second interface, acquiring monitoring information of the first interface, analyzing the monitoring information, determining fault information, determining a fault corresponding diagnosis scheme in a preset fault database according to a target fault keyword and a target fault category of the fault information, and displaying the diagnosis scheme on the second interface;
the tested server is used for reporting a system test state to the first interface of the test end under the condition of performing system test;
the intranet is used for establishing connection between the preset fault database and the testing end and is used for calling a diagnosis scheme corresponding to the target fault category in the preset fault database through the intranet.
The specific implementation method of the fault diagnosis system provided in this embodiment may be described in the fault diagnosis method provided in the foregoing embodiment, and will not be described herein again.
The embodiment of the invention also provides an electronic device, as shown in fig. 9, which comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete communication with each other through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to execute the program stored in the memory 503, and implement the following steps:
responding to an indication signal sent by the first interface when the first interface monitors the system fault, switching to the second interface, and acquiring monitoring information of the first interface;
analyzing the monitoring information to determine fault information, wherein the fault information comprises a target fault keyword and a target fault category;
and determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keywords and the target fault categories of the fault information, and displaying the diagnosis scheme on the second interface.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which instructions are stored, which when run on a computer, cause the computer to perform the fault diagnosis method according to any one of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (10)
1. The fault diagnosis method is characterized by being applied to a test end, wherein the test end is connected with a tested server, the test end comprises a first interface and a second interface, the first interface and the second interface are switched and displayed, and the method comprises the following steps:
responding to an indication signal sent by the first interface when the first interface monitors the system fault, switching to the second interface, and acquiring monitoring information of the first interface;
analyzing the monitoring information to determine fault information, wherein the fault information comprises a target fault keyword and a target fault category;
and determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keywords and the target fault categories of the fault information, and displaying the diagnosis scheme on the second interface.
2. The method of claim 1, wherein the analyzing the monitoring information to determine fault information includes:
Matching preset fault keywords in the monitoring information, and determining target fault keywords and positions of the target fault keywords in the monitoring information;
carrying out statement analysis on the row where the target fault keyword is located, and determining a target fault category;
and storing the target fault keywords and the target fault categories as fault information.
3. The method according to claim 1, wherein determining a fault corresponding diagnosis scheme in a preset fault database according to the target fault keyword and the target fault category of the fault information, and displaying the diagnosis scheme on the second interface includes:
matching the target fault keywords of the fault information in a preset fault database to obtain a matching result;
if the matching result is that the matching of the target fault keywords is successful, determining a plurality of fault categories matched with the target fault keywords;
the fault categories are prioritized according to the association degree with the target fault keywords, and at least one target fault category is determined; the target fault class is a fault class determined by the priority meeting a preset condition;
According to at least one target fault category, calling a diagnosis scheme corresponding to the target fault category in the preset fault database;
and displaying the diagnosis scheme on a fault diagnosis display page of the second interface.
4. The method according to claim 3, wherein the test end is connected to the tested server and the intranet, respectively, and the calling, in the preset fault database, a diagnosis scheme corresponding to the target fault category according to at least one target fault category includes:
if at least one target fault category is determined, invoking the preset fault database through the intranet;
and extracting a fault diagnosis scheme corresponding to the target fault category from the preset fault database.
5. The method of claim 3, wherein the presenting the diagnostic solution behind a fault diagnosis display page of the second interface further comprises:
storing the corresponding relation between the target fault keywords and at least one target fault category with the priority meeting preset conditions into the preset fault database;
and storing a calling path of the diagnosis scheme, wherein the calling path is a connection path of the test end and the preset fault database, so that a developer can review the diagnosis scheme.
6. The method of claim 1, wherein the switching to the second interface in response to the first interface monitoring the indication signal from the system failure further comprises:
receiving a system test state reported by the tested server under the condition that the tested server performs system test;
displaying the system test state on an information printing page of the first interface;
and if the information printing page has the fault alarm of the tested server, sending out a fault alarm indication through the first interface.
7. The utility model provides a fault diagnosis device which characterized in that is applied to the test end, the test end is connected with the server under test, the test end includes first interface and second interface, first interface with the display is switched to the second interface, the device includes:
the monitoring information acquisition module is used for responding to the indication signal sent by the system fault monitored by the first interface, switching to the second interface and acquiring the monitoring information of the first interface;
the fault information determining module is used for analyzing the monitoring information and determining fault information, wherein the fault information comprises a target fault keyword and a target fault category;
And the diagnosis scheme determining module is used for determining a diagnosis scheme corresponding to the fault in a preset fault database according to the target fault keyword and the target fault category of the fault information, and displaying the diagnosis scheme on the second interface.
8. The fault diagnosis system is characterized by comprising a test end, a tested server and an intranet, wherein the test end is respectively connected with the tested server and the intranet, the test end comprises a first interface and a second interface, and the first interface and the second interface are switched and displayed;
the test terminal is used for responding to an indication signal sent by the system fault detected by the first interface, switching to the second interface, acquiring monitoring information of the first interface, analyzing the monitoring information, determining fault information, determining a fault corresponding diagnosis scheme in a preset fault database according to a target fault keyword and a target fault category of the fault information, and displaying the diagnosis scheme on the second interface;
the tested server is used for reporting a system test state to the first interface of the test end under the condition of performing system test;
The intranet is used for establishing connection between the preset fault database and the testing end and is used for calling a diagnosis scheme corresponding to the target fault category in the preset fault database through the intranet.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the fault diagnosis method of any one of claims 1 to 6.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the fault diagnosis method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310920190.8A CN117130850A (en) | 2023-07-25 | 2023-07-25 | Fault diagnosis method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310920190.8A CN117130850A (en) | 2023-07-25 | 2023-07-25 | Fault diagnosis method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117130850A true CN117130850A (en) | 2023-11-28 |
Family
ID=88857389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310920190.8A Pending CN117130850A (en) | 2023-07-25 | 2023-07-25 | Fault diagnosis method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117130850A (en) |
-
2023
- 2023-07-25 CN CN202310920190.8A patent/CN117130850A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683562B (en) | Anomaly detection positioning method and device, computer equipment and storage medium | |
CN108563214B (en) | Vehicle diagnosis method, device and equipment | |
WO2017000424A1 (en) | Protocol detection method and apparatus | |
JPH09244917A (en) | Automatic analysis method for model base diagnostic system | |
US20240028491A1 (en) | Automobile Bus Fault Diagnosis Method, Apparatus and Computing Device | |
US11263072B2 (en) | Recovery of application from error | |
CN112100048B (en) | Self-adaptive inspection method and device for server | |
US20210173010A1 (en) | Diagnostic tool for traffic capture with known signature database | |
CN112269697B (en) | Equipment storage performance testing method, system and related device | |
CN109871368B (en) | Database detection method, database detection device, computer device and storage medium | |
CN114461534A (en) | Software performance testing method and system, electronic equipment and readable storage medium | |
CN108304276B (en) | Log processing method and device and electronic equipment | |
CN115878430A (en) | PCIE equipment fault monitoring method and device, communication equipment and storage medium | |
CN112231163A (en) | Multifunctional computer detection equipment and operation method thereof | |
CN112685312A (en) | Test case recommendation method and device for uncovered codes | |
CN111814557A (en) | Action flow detection method, device, equipment and storage medium | |
CN113392000A (en) | Test case execution result analysis method, device, equipment and storage medium | |
CN113238901B (en) | Multi-device automatic testing method and device, storage medium and computer device | |
CN117130850A (en) | Fault diagnosis method, device, equipment and storage medium | |
CN111008113B (en) | SAS-Expander test method and tool | |
CN110442370B (en) | Test case query method and device | |
CN113656321A (en) | Automated testing method, system, device and medium | |
CN118331843B (en) | Hierarchical data automatic test method, device, equipment and storage medium | |
CN112231218B (en) | Method, system, terminal and storage medium for automatically updating test diagnosis script | |
EP0032895A1 (en) | Testor for microprocessor-based systems |
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 |