Core dump file automatic analysis method and device, equipment and medium
By building one-click logging tools and health status monitoring processes on the server management side, automatically monitoring and collecting core dump files, and using preset diagnostic analysis tools for automated analysis, the traditional analysis process is solved, and the problem of time-consuming and error-prone is achieved. Efficient and accurate mispositioning and maintenance.
Patent Information
- Application Number
- CN202410866612.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2024-11-05
AI Technical Summary
The traditional core dump file analysis process requires the participation of senior engineers. Manual analysis is time-consuming and error-prone, making it difficult to meet the maintenance needs of complex systems.
Build a one-click log tool and health status monitoring process on the server management side, automatically monitor and collect core dump files, send one-click logs to the firmware development side for fault simulation deployment and diagnostic analysis, and use preset diagnostic analysis tools to automate errors analyze.
This greatly shortens the error positioning time, improves the accuracy and simplicity of analysis, and reduces the workload and maintenance costs of manual analysis.
Smart Images

Figure CN118897771A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer system diagnosis, and in particular to a core dump file automatic analysis method, device, equipment and medium. Background Art
[0002] Open BMC (Open Source Baseboard Management Controller) is an open source project that aims to provide board-level management solutions for hardware systems. As the complexity of data center and server hardware systems increases, diagnosing and debugging system errors becomes increasingly important. A core dump file is a memory snapshot saved after a system crash, containing detailed error site information. The traditional core dump analysis process usually requires the participation of experienced engineers. The manual analysis process is not only prone to operational errors, but also consumes a lot of manpower and time. With the expansion of data center scale and the complexity of hardware systems, this traditional method can no longer meet the maintenance needs of modern data centers.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a core dump file automatic analysis method, device, equipment and medium, which can realize automatic diagnosis and analysis of core dump files and reduce the workload of manual analysis. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for automatically analyzing a core dump file, which is applied to a server management side, and includes:
[0006] Construct a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored;
[0007] The core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, so as to collect the core dump file through the one-key log tool, and obtain a corresponding one-key log based on the core dump file;
[0008] The one-key log is sent to the firmware development side so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0009] Optionally, before building the one-key log tool and the health status monitoring process, the process further includes:
[0010] Obtaining a configuration file corresponding to the preset management control platform;
[0011] The configuration file is modified using a preset management tool to define the core dump file as a target naming format and specify a target storage location of the core dump file; wherein the target naming format includes a process name corresponding to when the core dump file is generated, and version information of a preset management control platform corresponding to when the core dump file is generated;
[0012] Correspondingly, the core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, including:
[0013] The target storage location is monitored by using the health status monitoring process, and when it is detected that the target storage location generates the core dump file, a one-key log collection operation is triggered according to the alarm information;
[0014] Accordingly, the one-key log is sent to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file, including:
[0015] The one-key log is sent to the firmware development side so that the firmware development side parses the one-key log to obtain the target naming format of the core dump file, determines the process name and the version information according to the target naming format, queries a preset database according to the version information to perform corresponding fault simulation deployment, and calls a preset diagnostic analysis tool to perform fault analysis and location according to the process name to obtain error information corresponding to the core dump file.
[0016] Optionally, the monitoring of the core dump file by using the health status monitoring process, and when the core dump file is monitored, triggering a one-key log collection operation according to the alarm information, includes:
[0017] The core dump file is monitored by the health status monitoring process. When the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information through the web page interface of the baseboard manager or the interface based on the data management center protocol.
[0018] Optionally, sending the one-key log to a firmware development side so that the firmware development side performs corresponding fault simulation deployment based on a preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file, including:
[0019] Determine a version management system interface pre-provided by the firmware development side;
[0020] The one-key log is sent to the firmware development side so that the firmware development side imports the one-key log through the version management system interface, and performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0021] Optionally, sending the one-key log to a firmware development side so that the firmware development side performs corresponding fault simulation deployment based on a preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file, including:
[0022] Sending the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and positioning according to the diagnostic library input target instructions or directly display the error point code to obtain error information corresponding to the core dump file;
[0023] The diagnostic library is a diagnostic library that is pre-built based on a plurality of error information collected by the firmware development side and based on the error information.
[0024] In a second aspect, the present application discloses a method for automatically analyzing a core dump file, which is applied to a firmware development side, and includes:
[0025] Obtaining a one-key log sent by the server management side; the one-key log is a log obtained by collecting a core dump file through the server management side using a one-key log tool constructed after a one-key log collection operation is triggered according to the alarm information, and based on the core dump file; wherein the core dump file is monitored by a health status monitoring process constructed by the server management side, and when the core dump file is monitored, the alarm information is generated;
[0026] According to the one-key log, corresponding fault simulation deployment is performed based on a preset database, and a preset diagnostic analysis tool is called to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0027] Optionally, before obtaining the one-key log sent by the server management side, the method further includes:
[0028] Enable the debugging function and generate corresponding debugging version installation packages with debugging symbols when compiling and releasing different versions of the management control platform;
[0029] Obtain the firmware version, release version installation package, cross-compilation information, and the debug version installation package generated during the compilation process;
[0030] Corresponding correspondence information is generated using the firmware version, the release version installation package, the cross-compilation information, and the debug version installation package, and the correspondence information is written into the preset database.
[0031] In a third aspect, the present application discloses a core dump file automatic analysis device, which is applied to a server management side, and includes:
[0032] The tool and process construction module is used to construct a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored;
[0033] A first one-key log acquisition module, configured to monitor the core dump file using the health status monitoring process, and when the core dump file is monitored, trigger a one-key log collection operation according to the alarm information, so as to collect the core dump file through the one-key log tool, and obtain a corresponding one-key log based on the core dump file;
[0034] The first error analysis and positioning module is used to send the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the one-key log and a preset database, and calls a preset diagnostic analysis tool to perform fault analysis and positioning to obtain error information corresponding to the core dump file.
[0035] In a fourth aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the automatic analysis method of core dump files as described above.
[0036] In a fifth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the automatic core dump file analysis method as described above.
[0037] The present application provides a method for automatically analyzing core dump files, which is applied to a server management side, and includes: constructing a one-key log tool and a health status monitoring process; the one-key log tool is used to collect core dump files generated by a preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored; the core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, so that the core dump file is collected by the one-key log tool, and a corresponding one-key log is obtained based on the core dump file; the one-key log is sent to a firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on a preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0038] The beneficial technical effect of the present application is: by building a one-click log tool and a health status monitoring process on the server management side, the core dump files are monitored and collected, and the corresponding one-click log is obtained based on the core dump files. The management, alarm and one-click log collection of core dump files within the preset management control platform are realized. After sending the one-click log to the firmware development side, the firmware can simulate the deployment of an environment consistent with the fault site according to the one-click log, and at the same time call the preset diagnostic analysis tool to perform automatic error analysis output on the core dump file. In this way, a convenient process from generation to collection and analysis of a complete core dump file is realized, which greatly shortens the error location time; secondly, the analysis is more accurate and simple, and in the past, only particularly experienced developers were required to perform analysis and location. This solution will reduce the difficulty of analysis operations. It can be seen that the implementation of the present invention not only improves the efficiency and accuracy of system error analysis, but also significantly reduces the workload of manual error analysis and reduces the maintenance cost of complex systems.
[0039] In addition, the present application provides a core dump file automatic analysis device, equipment and storage medium, which correspond to the above-mentioned core dump file automatic analysis method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A flow chart of a core dump file automatic analysis method disclosed in this application;
[0042] Figure 2 A flowchart of a specific core dump file automatic analysis method disclosed in this application;
[0043] Figure 3 A flow chart of a core dump file automatic analysis method disclosed in this application;
[0044] Figure 4 A firmware development side flow chart disclosed in this application;
[0045] Figure 5 A flow chart of a server management side disclosed in this application;
[0046] Figure 6 This is a schematic diagram of the structure of a core dump file automatic analysis device disclosed in the present application;
[0047] Figure 7 This is a schematic diagram of the structure of a core dump file automatic analysis device disclosed in the present application;
[0048] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] Currently, the core dump analysis process involves multiple complex steps, including but not limited to: extracting core dump files, obtaining relevant debugging symbols, configuring and running debugging tools, and finally analyzing diagnostic results. These steps usually require the participation of experienced engineers. Manual analysis of core dump files is usually time-consuming and error-prone, especially when faced with large amounts of data and complex systems. This method is extremely inefficient. In addition, the manual analysis process is also prone to operational errors, resulting in inaccurate diagnostic results.
[0051] To this end, the present application provides a core dump file automatic analysis solution, which can automatically analyze core dump files efficiently and accurately to improve the efficiency of system maintenance and troubleshooting.
[0052] The embodiment of the present invention discloses a method for automatically analyzing a core dump file. Figure 1 As shown, applied to the server management side, the method includes:
[0053] Step S11: construct a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored.
[0054] In the embodiment of the present application, a function of automatically diagnosing and analyzing core dump files based on a preset management control platform is provided. The specific implementation includes two application scenarios, namely, the firmware development side and the server management side. In this embodiment, the server management side is described.
[0055] First, on the server management side, the preset management control platform provides a one-click log function and a health status monitoring module. For the one-click log function, a one-click log tool is built to collect core dump files generated during the operation of the preset management control platform; for the health status monitoring module, a health status monitoring process is built, which can monitor and manage the health status of individuals in real time through various technical means, so as to timely discover and deal with health problems. One of the functions of this process is to monitor whether a core dump file is currently generated, and generate an alarm when there is a new core dump file.
[0056] As a specific implementation, the preset management control platform may be Open BMC. A person skilled in the art may understand that the preset management control platform is Open BMC for illustration only and does not limit the type of the preset management control platform. Other similar Linux distributions built with the help of YOCTO (Yocto Project, an open source collaborative project) may also use the method provided by the present invention. The following embodiments are all described by taking the preset management control platform as Open BMC as an example, which will not be described in detail later.
[0057] Step S12: Use the health status monitoring process to monitor the core dump file. When the core dump file is monitored, trigger a one-key log collection operation according to the alarm information, so as to collect the core dump file through the one-key log tool and obtain a corresponding one-key log based on the core dump file.
[0058] Based on the above steps, it can be seen that since the Open BMC provides a health status monitoring process during operation, the core dump file is monitored using the health status monitoring process. When a core dump file is detected, a corresponding alarm message is generated. At this time, a one-click log collection operation is triggered according to the alarm message.
[0059] In the embodiment of the present application, the one-click log collection operation provides remote management capabilities and local operation capabilities. With respect to the remote management capability, the remote management terminal can receive alarm information, allowing the administrator to remotely trigger the extraction of the core dump file through the network after receiving the alarm information prompting the generation of the core dump file, without the need to physically access the server. With respect to the local operation capability, the generated alarm information can be received through the local management tool, and then the one-click log collection operation can be triggered.
[0060] It should be noted that for the two implementation methods of triggering the one-key log collection operation, the alarm information can be received through the BMC web (webpage interface) or Redfish (data management center protocol) interface. Specifically, the core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, the one-key log collection operation is triggered according to the alarm information through the baseboard manager's webpage interface or the interface based on the data management center protocol.
[0061] Step S13: Send the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0062] In an embodiment of the present application, through the server management side, the administrator can send the corresponding one-key log to the firmware developer. Through the firmware development side, the firmware developer can automatically simulate the deployment of an environment consistent with the fault site based on the one-key log collected during the fault, and call the preset diagnostic analysis tool to automatically analyze and diagnose the core dump file in the one-key log, perform fault analysis and location, and generate error information corresponding to the core dump file. In addition, a fault analysis report and modification suggestions can be generated for the error information, and a terminal is provided for the developer to further verify the location. And the solution obtained based on the error information can be recorded in the preset database and archived under the corresponding version.
[0063] It should be pointed out that when a fault occurs on site, after the firmware development side obtains the corresponding one-key log file, the firmware development side provides a corresponding version management system interface, which can directly import the one-key log file through the interface. Specifically, determine the version management system interface pre-provided by the firmware development side; send the one-key log to the firmware development side so that the firmware development side can import the one-key log through the version management system interface, and perform corresponding fault simulation deployment based on the preset database according to the one-key log, and call the preset diagnostic analysis tool to perform fault analysis and location to obtain the error information corresponding to the core dump file.
[0064] In addition, for the preset diagnostic analysis tool, a diagnostic library of various error information is preset therein. In a specific implementation, according to the diagnostic library, the target instruction is input into gdb-multiarch to perform fault analysis and location, and the cause is output; if the location cannot be located, the error point code is directly displayed. Among them, gdb-multiarch is a variant of the GNU debugger (GDB), which supports debugging on multiple architectures, allowing users to debug programs on the target system, and the architecture of the target system may be different from the architecture of the host system running GDB.
[0065] Specifically, the one-key log is sent to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and positioning according to the target instruction input according to the diagnostic library or directly display the error point code to obtain the error information corresponding to the core dump file; wherein the diagnostic library is a diagnostic library that collects multiple error information through the firmware development side and is pre-built according to the error information.
[0066] It is worth noting that the preset diagnostic analysis tool in the embodiment of the present application can also be connected to the AI (Artificial Intelligence) interface to more conveniently locate the location of the problem code and provide modification solutions in real time.
[0067] The present application provides a method for automatically analyzing core dump files, which is applied to a server management side, and includes: constructing a one-key log tool and a health status monitoring process; the one-key log tool is used to collect core dump files generated by a preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored; the core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, so that the core dump file is collected by the one-key log tool, and a corresponding one-key log is obtained based on the core dump file; the one-key log is sent to a firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on a preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0068] The beneficial technical effect of the present application is: by building a one-click log tool and a health status monitoring process on the server management side, the core dump files are monitored and collected, and the corresponding one-click log is obtained based on the core dump files. The management, alarm and one-click log collection of core dump files within the preset management control platform are realized. After sending the one-click log to the firmware development side, the firmware can simulate the deployment of an environment consistent with the fault site according to the one-click log, and at the same time call the preset diagnostic analysis tool to perform automatic error analysis output on the core dump file. In this way, a convenient process from generation to collection and analysis of a complete core dump file is realized, which greatly shortens the error location time; secondly, the analysis is more accurate and simple, and in the past, only particularly experienced developers were required to perform analysis and location. This solution will reduce the difficulty of analysis operations. It can be seen that the implementation of the present invention not only improves the efficiency and accuracy of system error analysis, but also significantly reduces the workload of manual error analysis and reduces the maintenance cost of complex systems.
[0069] The present application embodiment discloses a specific method for automatically analyzing a core dump file. Figure 2 As shown, the method includes:
[0070] Step S21: obtaining a configuration file corresponding to the preset management control platform; modifying the configuration file using a preset management tool to define the core dump file as a target naming format and specifying a target storage location for the core dump file.
[0071] In the embodiment of the present application, Open BMC manages core dump files with the help of systemd management tool. First, obtain the configuration file of Open BMC, define the naming format of core dump files as the target naming format by modifying the configuration file, and specify the storage location of core dump files, and determine the target storage location, such as / var / lib / coredump.
[0072] The target naming format includes the process name corresponding to the generation of the core dump file and the version information of the preset management control platform corresponding to the generation of the core dump file. Exemplarily, the target naming format is core.process name.other additional information. The process name is the process name that generates the core dump file, and the name will be used as the basis for subsequent searches for software packages. Other additional information can be the detailed version information of Open BMC, which includes the version number and generation date.
[0073] Step S22: Construct a one-click log tool and a health status monitoring process, and use the health status monitoring process to monitor the target storage location. When it is monitored that the core dump file is generated at the target storage location, trigger a one-click log collection operation according to the alarm information, so as to collect the core dump file through the one-click log tool, and obtain a corresponding one-click log based on the core dump file.
[0074] On the server management side, Open BMC provides a health status monitoring module and a one-click log function. Based on the health status monitoring module, the target storage location specified in step S21 is monitored using the constructed health status monitoring process, and an alarm is generated when there is a new core dump file in the target storage location. It can be understood that based on the one-click log function, the one-click log tool constructed can not only collect the core dump files generated during the operation of Open BMC, but also collect the detailed version information of Open BMC according to the target naming format of the core dump file, and the version information can include the version number and the generation date.
[0075] Step S23: Send the one-key log to the firmware development side so that the firmware development side parses the one-key log to obtain the target naming format of the core dump file, determines the process name and the version information according to the target naming format, queries the preset database according to the version information to perform corresponding fault simulation deployment, and calls the preset diagnostic analysis tool to perform fault analysis and positioning according to the process name to obtain error information corresponding to the core dump file.
[0076] In an embodiment of the present application, a one-click log is sent to the firmware development side. After the firmware developer receives the one-click log file of the server management side where the core dump file occurs through the firmware development side, the one-click log is imported into the version management system. It should be pointed out that the version management system is a system that realizes automatic management version generation, archiving, and integrated one-click log file automatic diagnosis and analysis functions on the firmware development side. When a release version encounters a core dump file or other fault during testing or at a customer site, a gdb environment consistent with the fault site can be automatically deployed from a preset database based on the one-click log collected at the time of the fault.
[0077] It should be pointed out that on the firmware development side, the corresponding version information and core dump file name can be automatically extracted from the one-key log, and then the corresponding archive record can be queried from the database, and the corresponding installation package can be installed and deployed to generate the corresponding gdb environment. The following is the corresponding instruction implementation:
[0078] export LD_LIBRARY_PATH=~ / sysroots-components / x86_64 / libsolv-native / usr / lib:~ / sysroots-components / x86_64 / libarchive-native / usr / lib
[0079] ~sysroots-components / x86_64 / opkg-native / usr / bin / opkg -V0 -f ~ / obmc-phosphor-image / 1.0-r0 / opkg.conf -o ~ / mydebug install phosphor-ipmi-hostphosphor-ipmi-host-dbg;
[0080] Furthermore, the gdb-multiarch tool is automatically called to analyze the problem. The corresponding instructions are as follows:
[0081] gdb-multiarch-q-iex'set solib-absolute-prefix~ / mydebug'-iex'add-auto-load-safe-path~ / mydebug'-iex'set directories~ / mydebug'~ / mydebug / usr / bin / ipmidcore.ipmid.0.9ab1e453c26e40d6af9d0e0982d09cbe.686.1716830639000000.
[0082] It should be pointed out that the preset diagnostic analysis tool can deploy the corresponding gdb directory (generate a debugging directory with a symbol table and debugging code) according to the process name and version information in the parsed one-click log, analyze the core dump files in turn, output the stack and other information when the core dump files occur, automatically analyze the cause of the problem with the help of the diagnostic library disclosed in the aforementioned embodiment, and provide a terminal for developers to operate and verify.
[0083] The beneficial technical effect of the present application is: by building a one-click log tool and a health status monitoring process on the server management side, the core dump files are monitored and collected, and the corresponding one-click log is obtained based on the core dump files. The management, alarm and one-click log collection of core dump files within the preset management control platform are realized. After sending the one-click log to the firmware development side, the firmware can simulate the deployment of an environment consistent with the fault site according to the one-click log, and at the same time call the preset diagnostic analysis tool to perform automatic error analysis output on the core dump file. In this way, a convenient process from generation to collection and analysis of a complete core dump file is realized, which greatly shortens the error location time; secondly, the analysis is more accurate and simple, and in the past, only particularly experienced developers were required to perform analysis and location. This solution will reduce the difficulty of analysis operations. It can be seen that the implementation of the present invention not only improves the efficiency and accuracy of system error analysis, but also significantly reduces the workload of manual error analysis and reduces the maintenance cost of complex systems.
[0084] The embodiment of the present invention discloses a method for automatically analyzing a core dump file. Figure 3 As shown, applied to the firmware development side, the method includes:
[0085] Step S31: Obtain a one-key log sent by the server management side; the one-key log is a log obtained by collecting core dump files through the server management side using a constructed one-key log tool after a one-key log collection operation is triggered according to alarm information, and based on the core dump files.
[0086] The core dump file is monitored by a health status monitoring process constructed by the server management side, and when the core dump file is monitored, the alarm information is generated.
[0087] Step S32: According to the one-key log, corresponding fault simulation deployment is performed based on a preset database, and a preset diagnostic analysis tool is called to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0088] In the embodiment of the present application, it is applied to the firmware development side. A version management system is set on the firmware development side to integrate the core dump file automatic analysis function, and the version management system is responsible for the entire version management process.
[0089] First, obtain the conf configuration file corresponding to Open BMC, modify the configuration file, turn on the debug function, and generate the corresponding dbg version (debug version) ipk (an installation package format) with debugging symbols when compiling the release version. After the compilation is completed, the version management system archives the compiled firmware version, release ipk (release version installation package), debug ipk (debug version installation package) and corresponding cross-compilation information. The cross-compilation information is the cross-compilation information of the relevant data on the firmware development side and the server management side. Finally, use the above data to generate the version number, generation date, corresponding directories and other corresponding relationship information and write them into the preset database.
[0090] Specifically, the debugging function is enabled, and a corresponding debugging version installation package with debugging symbols is generated when compiling and releasing different versions of the management control platform; the firmware version, the release version installation package, the cross-compilation information and the debugging version installation package generated during the compilation process are obtained; the firmware version, the release version installation package, the cross-compilation information and the debugging version installation package are used to generate corresponding correspondence information, and the correspondence information is written into the preset database.
[0091] In this way, when a fault occurs on site and the corresponding one-key log file is obtained, the version management system provides a corresponding interface, through which the one-key log is directly imported. The version management system automatically extracts the corresponding version information and process name from it, queries the corresponding debug ipk and cross-compilation information location from the database, installs and deploys the corresponding debug ipk, and generates a gdb environment.
[0092] The beneficial technical effect of this embodiment is: by building a one-click log tool and a health status monitoring process on the server management side, the core dump file is monitored and collected, and the corresponding one-click log is obtained based on the core dump file. The management, alarm and one-click log collection of the core dump file are realized within the preset management control platform. After sending the one-click log to the firmware development side, the firmware can simulate the deployment of an environment consistent with the fault site according to the one-click log, and at the same time call the preset diagnostic analysis tool to perform automatic error analysis output on the core dump file. In this way, a convenient process from generation to collection and analysis of a complete core dump file is realized, which greatly shortens the error location time; secondly, the analysis is more accurate and simple, which previously required particularly experienced developers to perform analysis and location. This solution will reduce the difficulty of analysis operations. It can be seen that the implementation of the present invention not only improves the efficiency and accuracy of system error analysis, but also significantly reduces the workload of manual error analysis and reduces the maintenance cost of complex systems.
[0093] Based on the above embodiments, Figure 4 The figure shows an exemplary execution process flow chart of a firmware development side. First, the version release for different preset management platforms is managed by the version management system developed in the firmware development side; when the version management system generates a release version, it can automatically obtain the corresponding debug file debug ipk with a symbol table according to different versions, and perform automated error analysis output. The version management system archives directory relationships such as version number, generation time, firmware versions, release ipk, debug ipk, and cross-compilation information. Finally, the version management system provides a core dump file analysis function, which imports and parses a one-key log file, extracts the corresponding software package from the historical version folder in the above steps according to the version information and fault module information in the one-key log file, and deploys and generates the corresponding debug environment with a symbol table. Analyze the core dump file, print prompt error information, and provide a debugging terminal for developers to verify. In addition, the output content suggestion in this embodiment can be customized.
[0094] Since the release file deployed by the on-site server cannot be debugged directly, the traditional method is to recompile and generate the debug version and then refresh it to the server to read and analyze the core dump file, which is very time-consuming. Through this embodiment, efficiency can be improved and it is highly efficient. In addition, when generating the firmware version, the current compilation section can be saved, which ensures the consistency of the core dump file and the analysis environment, and the problem location is more accurate and reliable.
[0095] like Figure 5 The figure shows an exemplary flow chart of the execution process of the server management side. Open BMC provides a one-click log tool and a health status monitoring process. When a core dump file occurs during the operation of Open BMC, the health status monitoring process triggers an alarm, and the on-site manager collects the one-click log information and sends it to the developer; the developer can Figure 4 Provide suggestions on process positioning issues in the process.
[0096] It can be seen that this embodiment uses the open source platform Open BMC to propose an efficient and automated solution for error diagnosis and analysis in complex hardware systems. The complex steps of core dump file analysis are simplified, and the difficulty and error rate of operation are reduced through the automated core dump file collection and analysis mechanism. In summary, this embodiment overcomes many limitations of traditional core dump file analysis, and its advantages lie in its efficiency, ease of operation, reliability, and remote management capabilities. These advantages together provide a comprehensive and efficient solution for the core dump file analysis of the server, greatly saving the time of developers to locate serious fault information, improving the efficiency of handling on-site problems, indirectly creating higher value for customers, and significantly improving the efficiency of server problem handling.
[0097] Correspondingly, the embodiment of the present application also discloses a core dump file automatic analysis device, which is applied to the server management side, see Figure 6 As shown, the device comprises:
[0098] The tool and process construction module 11 is used to construct a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored;
[0099] A first one-key log acquisition module 12 is used to monitor the core dump file using the health status monitoring process, and when the core dump file is monitored, trigger a one-key log collection operation according to the alarm information, so as to collect the core dump file through the one-key log tool, and obtain a corresponding one-key log based on the core dump file;
[0100] The first error analysis and positioning module 13 is used to send the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and positioning to obtain error information corresponding to the core dump file.
[0101] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0102] It can be seen that the above scheme of this embodiment is applied to the server management side, including: building a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored; the core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-click log collection operation is triggered according to the alarm information, so that the core dump file is collected through the one-click log tool, and the corresponding one-click log is obtained based on the core dump file; the one-click log is sent to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-click log, and calls the preset diagnostic analysis tool to perform fault analysis and positioning to obtain error information corresponding to the core dump file.
[0103] The beneficial technical effect of the present application is: by building a one-click log tool and a health status monitoring process on the server management side, the core dump files are monitored and collected, and the corresponding one-click log is obtained based on the core dump files. The management, alarm and one-click log collection of core dump files within the preset management control platform are realized. After sending the one-click log to the firmware development side, the firmware can simulate the deployment of an environment consistent with the fault site according to the one-click log, and at the same time call the preset diagnostic analysis tool to perform automatic error analysis output on the core dump file. In this way, a convenient process from generation to collection and analysis of a complete core dump file is realized, which greatly shortens the error location time; secondly, the analysis is more accurate and simple, and in the past, only particularly experienced developers were required to perform analysis and location. This solution will reduce the difficulty of analysis operations. It can be seen that the implementation of the present invention not only improves the efficiency and accuracy of system error analysis, but also significantly reduces the workload of manual error analysis and reduces the maintenance cost of complex systems.
[0104] In a specific implementation, the core dump file automatic analysis device further includes:
[0105] A configuration file acquisition module, used to acquire the configuration file corresponding to the preset management control platform;
[0106] A configuration file modification module, used to modify the configuration file using a preset management tool to define the core dump file as a target naming format and specify a target storage location for the core dump file; wherein the target naming format includes a process name corresponding to when the core dump file is generated, and version information of a preset management control platform corresponding to when the core dump file is generated;
[0107] Accordingly, the first one-key log acquisition module 12 is specifically used for:
[0108] The target storage location is monitored by using the health status monitoring process, and when it is detected that the target storage location generates the core dump file, a one-key log collection operation is triggered according to the alarm information;
[0109] Accordingly, the first error analysis and positioning module 13 is specifically used for:
[0110] The one-key log is sent to the firmware development side so that the firmware development side parses the one-key log to obtain the target naming format of the core dump file, determines the process name and the version information according to the target naming format, queries a preset database according to the version information to perform corresponding fault simulation deployment, and calls a preset diagnostic analysis tool to perform fault analysis and location according to the process name to obtain error information corresponding to the core dump file.
[0111] In a specific implementation, the first one-key log acquisition module 12 is specifically used to:
[0112] The core dump file is monitored by the health status monitoring process. When the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information through the web page interface of the baseboard manager or the interface based on the data management center protocol.
[0113] In a specific implementation, the first one-key log acquisition module 12 includes:
[0114] An interface determination unit, used to determine a version management system interface pre-provided by the firmware development side;
[0115] A log import unit is used to send the one-key log to the firmware development side so that the firmware development side imports the one-key log through the version management system interface, and performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
[0116] In a specific implementation, the first error analysis and positioning module 13 is specifically used to:
[0117] Sending the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and positioning according to the diagnostic library input target instructions or directly display the error point code to obtain error information corresponding to the core dump file;
[0118] The diagnostic library is a diagnostic library that is pre-built based on a plurality of error information collected by the firmware development side and based on the error information.
[0119] Correspondingly, the embodiment of the present application also discloses a core dump file automatic analysis device, which is applied to the firmware development side, see Figure 7 As shown, the device comprises:
[0120] The second one-key log acquisition module 21 is used to acquire the one-key log sent by the server management side; the one-key log is a log obtained by collecting core dump files through the server management side using a one-key log tool constructed after the one-key log collection operation is triggered according to the alarm information, and based on the core dump files; wherein the core dump files are monitored by the health status monitoring process constructed by the server management side, and when the core dump files are monitored, the alarm information is generated;
[0121] The second error analysis and positioning module 22 is used to perform corresponding fault simulation deployment based on the preset database according to the one-key log, and call the preset diagnosis and analysis tool to perform fault analysis and positioning to obtain error information corresponding to the core dump file.
[0122] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0123] The beneficial technical effect of the present application is: by building a one-click log tool and a health status monitoring process on the server management side, the core dump files are monitored and collected, and the corresponding one-click log is obtained based on the core dump files. The management, alarm and one-click log collection of core dump files within the preset management control platform are realized. After sending the one-click log to the firmware development side, the firmware can simulate the deployment of an environment consistent with the fault site according to the one-click log, and at the same time call the preset diagnostic analysis tool to perform automatic error analysis output on the core dump file. In this way, a convenient process from generation to collection and analysis of a complete core dump file is realized, which greatly shortens the error location time; secondly, the analysis is more accurate and simple, and in the past, only particularly experienced developers were required to perform analysis and location. This solution will reduce the difficulty of analysis operations. It can be seen that the implementation of the present invention not only improves the efficiency and accuracy of system error analysis, but also significantly reduces the workload of manual error analysis and reduces the maintenance cost of complex systems.
[0124] In a specific implementation, the core dump file automatic analysis device further includes:
[0125] The debugging module is used to enable the debugging function and generate corresponding debugging version installation packages with debugging symbols when compiling and releasing different versions of the management control platform;
[0126] A data collection module is used to obtain the firmware version, release version installation package, cross-compilation information and the debug version installation package generated during the compilation process;
[0127] The database archiving module is used to generate corresponding correspondence information using the firmware version, the release version installation package, the cross-compilation information and the debug version installation package, and write the correspondence information into the preset database.
[0128] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 30 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0129] Figure 8A schematic diagram of the structure of an electronic device 30 provided in an embodiment of the present application. The electronic device 30 may specifically include: at least one processor 31, at least one memory 32, a power supply 33, a communication interface 34, an input / output interface 35, and a communication bus 36. The memory 32 is used to store a computer program, which is loaded and executed by the processor 31 to implement the relevant steps in the automatic analysis method of the core dump file disclosed in any of the aforementioned embodiments. In addition, the electronic device 30 in this embodiment may specifically be a server.
[0130] In this embodiment, the power supply 33 is used to provide working voltage for each hardware device on the electronic device 30; the communication interface 34 can create a data transmission channel between the electronic device 30 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 35 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0131] In addition, the memory 32 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 321, a computer program 322 and data 323, etc. The data 323 may include various data. The storage method may be temporary storage or permanent storage.
[0132] The operating system 321 is used to manage and control the hardware devices and computer programs 322 on the electronic device 30, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the core dump file automatic analysis method performed by the electronic device 30 disclosed in any of the aforementioned embodiments, the computer program 322 can further include a computer program that can be used to complete other specific tasks.
[0133] Further, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (Random Access Memory, RAM), a memory, a read-only memory (Read-Only Memory, ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, when the computer program is executed by the processor, the aforementioned core dump file automatic analysis method is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiment, which will not be repeated here.
[0134] Furthermore, an embodiment of the present application also provides a computer program product, including a computer program / instruction, which implements any one of the above-mentioned core dump file automatic analysis methods when executed by a processor.
[0135] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0136] The steps of the core dump file automatic analysis method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with a software module executed by hardware or a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0137] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0138] The above is a detailed introduction to the core dump file automatic analysis method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for automatically analyzing a core dump file, characterized in that: Applied to the server management side, including: Construct a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored; The core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, so as to collect the core dump file through the one-key log tool, and obtain a corresponding one-key log based on the core dump file; The one-key log is sent to the firmware development side so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
2. The automatic core dump file analysis method according to claim 1, characterized in that: Before building the one-click log tool and health status monitoring process, it also includes: Obtaining a configuration file corresponding to the preset management control platform; The configuration file is modified using a preset management tool to define the core dump file as a target naming format and specify a target storage location of the core dump file; wherein the target naming format includes a process name corresponding to when the core dump file is generated, and version information of a preset management control platform corresponding to when the core dump file is generated; Correspondingly, the core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, including: The target storage location is monitored by using the health status monitoring process, and when it is detected that the target storage location generates the core dump file, a one-key log collection operation is triggered according to the alarm information; Accordingly, the one-key log is sent to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file, including: The one-key log is sent to the firmware development side so that the firmware development side parses the one-key log to obtain the target naming format of the core dump file, determines the process name and the version information according to the target naming format, queries a preset database according to the version information to perform corresponding fault simulation deployment, and calls a preset diagnostic analysis tool to perform fault analysis and location according to the process name to obtain error information corresponding to the core dump file.
3. The automatic core dump file analysis method according to claim 1, characterized in that: The core dump file is monitored by the health status monitoring process, and when the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information, including: The core dump file is monitored by the health status monitoring process. When the core dump file is monitored, a one-key log collection operation is triggered according to the alarm information through the web page interface of the baseboard manager or the interface based on the data management center protocol.
4. The automatic core dump file analysis method according to claim 1, characterized in that: The sending of the one-key log to the firmware development side so that the firmware development side performs corresponding fault simulation deployment based on a preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file, including: Determine a version management system interface pre-provided by the firmware development side; The one-key log is sent to the firmware development side so that the firmware development side imports the one-key log through the version management system interface, and performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file.
5. The method for automatically analyzing a core dump file according to any one of claims 1 to 4, characterized in that: The sending of the one-key log to the firmware development side so that the firmware development side performs corresponding fault simulation deployment based on a preset database according to the one-key log, and calls a preset diagnostic analysis tool to perform fault analysis and location to obtain error information corresponding to the core dump file, including: Sending the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the preset database according to the one-key log, and calls the preset diagnostic analysis tool to perform fault analysis and positioning according to the diagnostic library input target instructions or directly display the error point code to obtain error information corresponding to the core dump file; The diagnostic library is a diagnostic library that is pre-built based on a plurality of error information collected by the firmware development side and based on the error information.
6. A method for automatically analyzing a core dump file, characterized in that: Applied to firmware development, including: Obtaining a one-key log sent by the server management side; the one-key log is a log obtained by collecting a core dump file through the server management side using a one-key log tool constructed after a one-key log collection operation is triggered according to the alarm information, and based on the core dump file; wherein the core dump file is monitored by a health status monitoring process constructed by the server management side, and when the core dump file is monitored, the alarm information is generated; According to the one-key log, corresponding fault simulation deployment is performed based on a preset database, and a preset diagnostic analysis tool is called to perform fault analysis and location to obtain error information corresponding to the core dump file.
7. The method for automatically analyzing a core dump file according to claim 6, characterized in that: Before obtaining the one-key log sent by the server management side, the method further includes: Enable the debugging function and generate corresponding debugging version installation packages with debugging symbols when compiling and releasing different versions of the management control platform; Obtain the firmware version, release version installation package, cross-compilation information, and the debug version installation package generated during the compilation process; Corresponding correspondence information is generated using the firmware version, the release version installation package, the cross-compilation information, and the debug version installation package, and the correspondence information is written into the preset database.
8. An automatic core dump file analysis device, characterized in that: Applied to the server management side, including: The tool and process construction module is used to construct a one-click log tool and a health status monitoring process; the one-click log tool is used to collect core dump files generated by the preset management control platform during operation; the health status monitoring process is used to monitor whether the core dump file is currently generated, and generate corresponding alarm information when the core dump file is monitored; A first one-key log acquisition module, configured to monitor the core dump file using the health status monitoring process, and when the core dump file is monitored, trigger a one-key log collection operation according to the alarm information, so as to collect the core dump file through the one-key log tool, and obtain a corresponding one-key log based on the core dump file; The first error analysis and positioning module is used to send the one-key log to the firmware development side, so that the firmware development side performs corresponding fault simulation deployment based on the one-key log and a preset database, and calls a preset diagnostic analysis tool to perform fault analysis and positioning to obtain error information corresponding to the core dump file.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the automatic core dump file analysis method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer program is executed by a processor, the method for automatically analyzing core dump files as described in any one of claims 1 to 7 is implemented.
