Abnormality detection method and device, electronic equipment and storage medium

By obtaining the abnormal log call information of the substrate management controller of the electronic device, the abnormal log file information is obtained and analyzed independently from the BMC, and the abnormal component information and location are automatically determined, which solves the problem of low fault detection efficiency of electronic device and achieves high efficiency Exception detection and fault resolution.

CN118916195APending Publication Date: 2024-11-08LCFC HEFEI ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410882446.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the prior art, electronic equipment fault detection efficiency is low, and it requires manual analysis of the location and type of faulty components, which consumes a long time and is low in accuracy.

Method used

By obtaining the exception log call information in the electronic device's substrate management controller (BMC), a detection script is generated, and abnormal log file information is obtained and analyzed independently from the BMC, and combined with the pre-set detection reference information, the abnormal component information is automatically determined. and position to achieve efficient abnormal detection.

Benefits of technology

It realizes efficient abnormal detection of electronic devices, reduces the use of BMC processing space, avoids the low accuracy and time-consuming problems of manual detection, and improves the efficiency of fault resolution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916195A_ABST
    Figure CN118916195A_ABST
Patent Text Reader

Abstract

The invention provides an anomaly detection method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first detection script for the electronic equipment under the condition that the electronic equipment operates abnormally; the first detection script comprises calling information of an abnormal log in a baseboard management controller (BMC) of the electronic equipment; obtaining abnormal log file information based on the first detection script; based on the abnormal log file information and preset detection reference information, obtaining an abnormal detection result for the electronic equipment; the anomaly detection result is used for representing anomaly related information of the electronic equipment. Efficient anomaly detection of the electronic equipment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an anomaly detection method, device, electronic device and storage medium. Background Art

[0002] In the current era of high computing power, servers (electronic equipment) often experience electronic equipment failures during operation after being deployed and maintained in large numbers in computer rooms. Engineers are usually required to manually analyze the location and type of faulty electronic equipment components to determine whether it is necessary to replace the components. This process is time-consuming and the efficiency of electronic equipment anomaly detection is low. Therefore, how to achieve efficient anomaly detection of electronic equipment has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides an anomaly detection method, device, electronic device and storage medium to at least solve the above technical problems existing in the prior art.

[0004] According to a first aspect of the present application, a method for detecting anomalies is provided, the method comprising:

[0005] In the case where the electronic device operates abnormally, a first detection script for the electronic device is obtained; the first detection script includes call information of an abnormal log in a baseboard management controller BMC of the electronic device;

[0006] Based on the first detection script, abnormal log file information is obtained;

[0007] Based on the abnormal log file information and the preset detection reference information, an abnormal detection result for the electronic device is obtained; the abnormal detection result is used to characterize the abnormality-related information of the electronic device.

[0008] In the above solution, the abnormal log file information is obtained based on the first detection script, including:

[0009] Acquire a second detection script for the electronic device; the second detection script is used to call the first detection script;

[0010] Abnormal log file information is obtained based on the first detection script, the execution dependency information of the first detection script, and the second detection script.

[0011] In the above solution, the abnormal log file information includes abnormal data source information; the abnormal detection result for the electronic device is obtained based on the abnormal log file information and the preset detection reference information, including:

[0012] Compare the abnormal data source information with the preset detection reference information, and determine the abnormal component information of the electronic device based on the identification field information in the abnormal data source information;

[0013] Based on the abnormal component information, an abnormality detection result for the electronic device is obtained.

[0014] In the above solution, obtaining an abnormality detection result for the electronic device based on the abnormal component information includes:

[0015] Based on the abnormal component information and the abnormal data source information, determine the abnormal location information and the abnormal type information corresponding to the abnormal component information;

[0016] Based on the abnormal component information, abnormal location information and abnormal type information, an abnormality detection result for the electronic device is obtained.

[0017] In the above solution, the abnormal log file information also includes abnormal data target information; and obtaining the abnormal detection result for the electronic device based on the abnormal component information includes:

[0018] Based on the abnormal component information, abnormal data source information and abnormal data target information, determining abnormal location information and abnormal type information corresponding to the abnormal component information;

[0019] Based on the abnormal component information, abnormal location information and abnormal type information, an abnormality detection result for the electronic device is obtained.

[0020] In the above solution, after obtaining the abnormality detection result for the electronic device, the method further includes:

[0021] The abnormality detection result is displayed based on a target display format.

[0022] According to a second aspect of the present application, there is provided an abnormality detection device, the device comprising:

[0023] A first acquisition unit is used to acquire a first detection script for the electronic device when the electronic device runs abnormally; the first detection script includes call information of an abnormality log in a baseboard management controller BMC of the electronic device;

[0024] A second acquisition unit, configured to obtain abnormal log file information based on the first detection script;

[0025] The third acquisition unit is used to obtain an abnormality detection result for the electronic device based on the abnormality log file information and preset detection reference information; the abnormality detection result is used to represent abnormality related information of the electronic device.

[0026] In the above scheme, the second acquisition unit is used to acquire a second detection script for the electronic device; the second detection script is used to call the first detection script; based on the first detection script, the execution dependency information of the first detection script and the second detection script, the abnormal log file information is obtained.

[0027] According to a third aspect of the present application, an electronic device is provided, including:

[0028] at least one processor; and

[0029] a memory communicatively connected to the at least one processor; wherein,

[0030] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present application.

[0031] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method described in the present application.

[0032] In the present application, when an electronic device runs abnormally, a first detection script for the electronic device is obtained; the first detection script includes call information of an abnormal log in a baseboard management controller BMC of the electronic device; based on the first detection script, abnormal log file information is obtained; based on the abnormal log file information and pre-set detection reference information, an abnormal detection result for the electronic device is obtained; the abnormal detection result is used to characterize abnormal related information of the electronic device. Efficient abnormal detection of the electronic device is achieved.

[0033] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0035] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0036] Figure 1 A schematic diagram of the implementation process of the abnormality detection method according to the embodiment of the present application is shown;

[0037] Figure 2 The overall block diagram of abnormality detection in an embodiment of the present application is shown;

[0038] Figure 3 A schematic diagram of the process of obtaining abnormal log file information in an embodiment of the present application is shown;

[0039] Figure 4 A schematic diagram of a process for determining abnormal position information and abnormal type information corresponding to abnormal component information in an embodiment of the present application is shown;

[0040] Figure 5 A schematic diagram of the structure of an abnormality detection device according to an embodiment of the present application is shown;

[0041] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0043] The embodiment of the present application provides an abnormality detection method, in the case of abnormal operation of an electronic device, a first detection script for the electronic device is obtained; the first detection script includes call information of an abnormality log in a baseboard management controller BMC of the electronic device; based on the first detection script, abnormality log file information is obtained; based on the abnormality log file information and pre-set detection reference information, an abnormality detection result for the electronic device is obtained; the abnormality detection result is used to characterize abnormality-related information of the electronic device. Efficient abnormality detection of the electronic device is achieved.

[0044] The present application embodiment provides an abnormality detection method, such as Figure 1 As shown, the method includes:

[0045] S101: When an electronic device operates abnormally, a first detection script for the electronic device is obtained; the first detection script includes call information of an abnormality log in a baseboard management controller BMC of the electronic device.

[0046] In this step, the electronic device is a server. In the case of an abnormal operation of the electronic device, the first detection script for the electronic device is read. Wherein, the first detection script is a programming language, which is used to instruct a computer to perform a specified task or operation, and is a script that an engineer pre-enters into the electronic device. The first detection script includes the call information of the abnormal log in the BMC (Baseboard Management Controller) of the electronic device. It can be understood that when an abnormality occurs in the electronic device, the BIOS (Basic Input Output System) of the electronic device triggers the generation of an abnormal log, and the abnormal log is transmitted to the BMC for storage or generated and stored by the BMC itself through the BIOS. The engineer uses the web (webpage) of the BMC to view the abnormal event log or the standard interface tool ipmitool to obtain the abnormal event log, but the BMC can only display or view part of the data, and cannot analyze the specific cause and type of the abnormality in detail. It can only be analyzed manually by engineers based on incomplete data. The process is time-consuming, and the accuracy of manual analysis is low. The embodiment of the present application obtains a first detection script for the electronic device, and the first detection script includes call information of the abnormal log in the baseboard management controller BMC of the electronic device. Therefore, the abnormality detection of the electronic device can be performed independently of the BMC, and there is no need to rely on establishing an abnormal log parsing process on the BMC side to parse the log, thereby freeing up the processing space of the BMC, increasing the utilization rate of the BMC resources, and avoiding the situation where the log parsing fails when the BMC side program runs abnormally.

[0047] S102: Obtain abnormal log file information based on the first detection script.

[0048] In this step, since the first detection script contains the call information of the abnormal log in the baseboard management controller BMC of the electronic device, based on the first detection script, the abnormal log can be called out from the BMC of the electronic device to obtain the abnormal log file information. The specific process of obtaining the abnormal log file information is described in detail in the following relevant parts, which will not be repeated here.

[0049] S103: Based on the abnormal log file information and the preset detection reference information, an abnormal detection result for the electronic device is obtained; the abnormal detection result is used to represent abnormal related information of the electronic device.

[0050] In this step, the detection reference information is the IPMI (Intelligent Platform Management Interface) specification information of the electronic device system event log, which is pre-set information. According to the abnormal log file information obtained in step S102 and the pre-set detection reference information, an abnormal detection result for the electronic device can be obtained. Among them, the abnormal detection result characterizes the abnormal related information of the electronic device, such as the specific abnormal component, the location of the abnormal component, and the abnormal type of the abnormal component.

[0051] In the scheme shown in steps S101 to S103, when an electronic device runs abnormally, a first detection script for the electronic device is obtained; the first detection script includes call information of an abnormal log in a baseboard management controller BMC of the electronic device; based on the first detection script, abnormal log file information is obtained; based on the abnormal log file information and pre-set detection reference information, an abnormal detection result for the electronic device is obtained; the abnormal detection result is used to characterize abnormal related information of the electronic device. There is no need to rely on BMC combined with manual methods to perform abnormal detection. The embodiment of the present application performs abnormal detection independently of BMC, which not only releases the processing space of BMC and increases the utilization rate of BMC resources, but also avoids the problems of low accuracy and long time consumption caused by manual detection, and realizes efficient abnormal detection of electronic devices.

[0052] In an optional solution, obtaining abnormal log file information based on the first detection script includes:

[0053] Acquire a second detection script for the electronic device; the second detection script is used to call the first detection script;

[0054] Abnormal log file information is obtained based on the first detection script, the execution dependency information of the first detection script, and the second detection script.

[0055] In this application, the second detection script is also a programming language used to instruct a computer to perform a specified task or operation, and is a script pre-entered into an electronic device by an engineer. The second detection script of the electronic device is read, and the second detection script is used to call the first detection script. It can be understood that reference Figure 2 As shown, the anomaly detection method of the embodiment of the present application can be applied to an anomaly detection device, which includes an anomaly log collection module and an anomaly log parsing module. In the anomaly log collection module, the first detection script is called by the second detection script, the first detection script is used to call the anomaly log in the BMC, and the designated file is used to store the anomaly log file information obtained by executing the second detection script. Figure 3As shown, the first detection script calls the abnormal log in the BMC, and then the second detection script calls the first detection script. When calling the first detection script, the second detection script needs to use the execution dependency information (pre-written toolkit) of the first detection script. When executing the second detection script, it is necessary to specify the IP (Internet Protocol) of the server to be collected in the windows environment of the electronic device, and the second detection script can collect the abnormal log file information of the electronic device under the server into the specified file. Among them, this file is used for subsequent abnormal detection. In this way, engineers can quickly locate and confirm the location and cause of component failure, so as to determine whether it is necessary to replace or repair the component, thereby effectively improving the efficiency of abnormal resolution of electronic equipment.

[0056] In an optional solution, the abnormal log file information includes abnormal data source information; and obtaining the abnormal detection result for the electronic device based on the abnormal log file information and preset detection reference information includes:

[0057] Compare the abnormal data source information with the preset detection reference information, and determine the abnormal component information of the electronic device based on the identification field information in the abnormal data source information;

[0058] Based on the abnormal component information, an abnormality detection result for the electronic device is obtained.

[0059] In this application, the abnormal log file information includes abnormal data source information. The abnormal data source information is the running code information of all abnormal components in the electronic device. Figure 3 and Figure 4As shown, in the abnormal log parsing module, the abnormal data source information is compared with the pre-set detection reference information one by one, and based on the identification field information (such as the Sensor Type (component type) field) in the abnormal data source information, the specific component information corresponding to the identification field information can be found from the pre-set detection reference information, that is, the abnormal component information of the electronic device. Then based on the obtained abnormal component information, the abnormal type generated by the abnormal component can be determined, and the abnormal detection result for the electronic device can be obtained. Among them, the abnormal data source information is compared with the pre-set detection reference information, and the abnormal detection result for the electronic device based on the obtained abnormal component information can be executed by the relevant parsing program in the electronic device, wherein the relevant parsing program can be an executable program generated by an engineer using the python language according to the parsing process. Run the program in the windows environment, and specify the specified file collected by the aforementioned abnormal log file information as the file to be parsed, and the analysis can be automatically performed. The embodiment of the present application performs abnormal detection independently of the BMC, which not only releases the processing space of the BMC, increases the utilization rate of the BMC resources, but also avoids the problems of low accuracy and long time consumption caused by manual detection, and can achieve efficient abnormal detection of electronic devices.

[0060] In an optional solution, obtaining an abnormality detection result for the electronic device based on the abnormal component information includes:

[0061] Based on the abnormal component information and the abnormal data source information, determine the abnormal location information and the abnormal type information corresponding to the abnormal component information;

[0062] Based on the abnormal component information, abnormal location information and abnormal type information, an abnormality detection result for the electronic device is obtained.

[0063] In this application, after obtaining the abnormal component information, refer to Figure 4As shown, according to the abnormal component information and the abnormal data source information, the abnormal position information and abnormal type information corresponding to the abnormal component information are determined. Usually, the abnormal data source information includes three types of data, such as data (data) 1 to data3, where data1 represents the aforementioned identification field information, such as the Sensor Type field. Data2 represents the abnormal position information of the component, such as the abnormality occurs on the memory numbered 2. Data3 represents the abnormal type information of the component, such as the abnormal type of the memory is system overload. After obtaining the abnormal component information, return to the abnormal data source information to query the data2 and data3 corresponding to the abnormal component information, and you can get the abnormal position information and abnormal type information corresponding to the abnormal component information. The abnormal component information, abnormal position information, and abnormal type information together constitute the abnormal detection result of the electronic device. For example, the abnormal detection result can be: a system overload abnormality occurs on the memory numbered 2. In this way, engineers can repair or replace specific abnormal components and their abnormal types of electronic equipment in a targeted manner, which improves the efficiency of abnormal detection and can also improve the efficiency of troubleshooting of electronic equipment.

[0064] In an optional solution, the abnormal log file information further includes abnormal data target information; and obtaining an abnormal detection result for the electronic device based on the abnormal component information includes:

[0065] Based on the abnormal component information, abnormal data source information and abnormal data target information, determining abnormal location information and abnormal type information corresponding to the abnormal component information;

[0066] Based on the abnormal component information, abnormal location information and abnormal type information, an abnormality detection result for the electronic device is obtained.

[0067] In this application, the abnormal data source information also includes redfish inventory, which mainly includes abnormal location information and abnormal type information of some customized components. The abnormal log file information also includes abnormal data target information, and the abnormal data target information includes hidden log from the electronic device BIOS, which also includes abnormal location information and abnormal type information of some customized components. If the abnormal location information and abnormal type information corresponding to the abnormal component information cannot be determined based on data2 and data3 in the aforementioned abnormal data source information, refer to Figure 4As shown, the abnormal location information and abnormal type information corresponding to the abnormal component information are determined according to the abnormal data source information (specifically Redfish Inventory), abnormal component information, and abnormal data target information (such as hidden log). The abnormal component information, abnormal location information, and abnormal type information together constitute the abnormal detection result of the electronic device. This improves the abnormal detection efficiency and can also improve the troubleshooting efficiency of the electronic device.

[0068] In an optional solution, after obtaining the abnormality detection result for the electronic device, the method further includes:

[0069] The abnormality detection result is displayed based on a target display format.

[0070] In this application, after obtaining the abnormal detection results for the electronic device, in order to visualize the abnormal detection results, so that engineers can perform maintenance or quality inspection on the electronic device based on the abnormal detection results. According to the target display format (a user-defined format, generally in English format), the abnormal detection results are displayed one by one. This reduces the difficulty of engineers in after-sales maintenance of electronic equipment and improves the efficiency of abnormal detection.

[0071] The embodiment of the present application provides an abnormality detection device, such as Figure 5 As shown, the device comprises:

[0072] The first acquisition unit 501 is used to acquire a first detection script for the electronic device when the electronic device runs abnormally; the first detection script includes call information of an abnormality log in a baseboard management controller BMC of the electronic device;

[0073] A second acquisition unit 502 is used to obtain abnormal log file information based on the first detection script;

[0074] The third acquisition unit 503 is used to obtain an abnormality detection result for the electronic device based on the abnormality log file information and preset detection reference information; the abnormality detection result is used to represent abnormality related information of the electronic device.

[0075] In an optional solution, the second acquisition unit 502 is used to acquire a second detection script for the electronic device; the second detection script is used to call the first detection script; based on the first detection script, the execution dependency information of the first detection script and the second detection script, abnormal log file information is obtained.

[0076] In an optional solution, the abnormal log file information includes abnormal data source information; the third acquisition unit 503 is used to compare the abnormal data source information with pre-set detection reference information, and determine the abnormal component information of the electronic device based on the identification field information in the abnormal data source information; based on the abnormal component information, obtain the abnormal detection result for the electronic device.

[0077] In an optional solution, the third acquisition unit 503 is used to determine the abnormal location information and abnormal type information corresponding to the abnormal component information based on the abnormal component information and the abnormal data source information; and obtain the abnormal detection result for the electronic device based on the abnormal component information, the abnormal location information and the abnormal type information.

[0078] In an optional solution, the abnormal log file information also includes abnormal data target information; the third acquisition unit 503 is used to determine the abnormal position information and abnormal type information corresponding to the abnormal component information based on the abnormal component information, abnormal data source information and abnormal data target information; based on the abnormal component information, abnormal position information and abnormal type information, obtain the abnormal detection result for the electronic device.

[0079] In an optional solution, the device further includes:

[0080] The display unit is used to display the abnormality detection result based on a target display format.

[0081] It should be noted that the anomaly detection device in the embodiment of the present application solves the problem based on a principle similar to that of the aforementioned anomaly detection method. Therefore, the implementation process, implementation principle, and beneficial effects of the anomaly detection device can all be referred to the description of the implementation process, implementation principle, and beneficial effects of the aforementioned method, and the repeated parts will not be repeated.

[0082] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0083] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0084] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0085] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0086] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as anomaly detection methods. For example, in some embodiments, the anomaly detection method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the anomaly detection method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the anomaly detection method in any other appropriate manner (e.g., by means of firmware).

[0087] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0088] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0089] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0090] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0091] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0092] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0094] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0095] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An anomaly detection method, characterized in that: The method comprises: In the case where the electronic device operates abnormally, a first detection script for the electronic device is obtained; the first detection script includes call information of an abnormal log in a baseboard management controller BMC of the electronic device; Based on the first detection script, abnormal log file information is obtained; Based on the abnormal log file information and the preset detection reference information, an abnormal detection result for the electronic device is obtained; the abnormal detection result is used to characterize the abnormality-related information of the electronic device.

2. The method according to claim 1, characterized in that The abnormal log file information is obtained based on the first detection script, including: Acquire a second detection script for the electronic device; the second detection script is used to call the first detection script; Abnormal log file information is obtained based on the first detection script, the execution dependency information of the first detection script, and the second detection script.

3. The method according to claim 1 or 2, characterized in that: The abnormal log file information includes abnormal data source information; The obtaining of an abnormality detection result for the electronic device based on the abnormality log file information and the preset detection reference information includes: Compare the abnormal data source information with the preset detection reference information, and determine the abnormal component information of the electronic device based on the identification field information in the abnormal data source information; Based on the abnormal component information, an abnormality detection result for the electronic device is obtained.

4. The method according to claim 3, characterized in that The obtaining, based on the abnormal component information, an abnormality detection result for the electronic device includes: Based on the abnormal component information and the abnormal data source information, determine the abnormal location information and the abnormal type information corresponding to the abnormal component information; Based on the abnormal component information, abnormal location information and abnormal type information, an abnormality detection result for the electronic device is obtained.

5. The method according to claim 3, characterized in that: The abnormal log file information also includes abnormal data target information; the abnormal detection result for the electronic device is obtained based on the abnormal component information, including: Based on the abnormal component information, abnormal data source information and abnormal data target information, determining abnormal location information and abnormal type information corresponding to the abnormal component information; Based on the abnormal component information, abnormal location information and abnormal type information, an abnormality detection result for the electronic device is obtained.

6. The method according to claim 1, characterized in that After obtaining the abnormality detection result for the electronic device, the method further includes: The abnormality detection result is displayed based on a target display format.

7. An abnormality detection device, characterized in that: The device comprises: A first acquisition unit is used to acquire a first detection script for the electronic device when the electronic device runs abnormally; the first detection script includes call information of an abnormality log in a baseboard management controller BMC of the electronic device; A second acquisition unit, configured to obtain abnormal log file information based on the first detection script; The third acquisition unit is used to obtain an abnormality detection result for the electronic device based on the abnormality log file information and preset detection reference information; the abnormality detection result is used to represent abnormality related information of the electronic device.

8. The device according to claim 7, characterized in that The second acquisition unit is used to acquire a second detection script for the electronic device; the second detection script is used to call the first detection script; based on the first detection script, the execution dependency information of the first detection script and the second detection script, abnormal log file information is obtained.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.