An anomaly monitoring method, computer-readable storage medium, system, and device

By disabling the timeout detection function for anomaly monitoring commands and continuously monitoring the responses of devices such as hard drives, the problem of not being able to detect device anomalies in a timely manner in existing technologies is solved, achieving higher reliability and security.

CN115640188BActive Publication Date: 2026-11-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211102388.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2026-11-17
Estimated Expiration
2042-09-09

AI Technical Summary

Technical Problem

In existing technologies, devices such as hard drives cannot be detected by the host or server in a timely manner when they malfunction, which may exacerbate the abnormal situation or cause data loss, reducing the reliability and security of data storage.

Method used

By controlling the shutdown of the timeout detection function that automatically turns on following the anomaly monitoring command, the anomaly monitoring command continuously listens for the response of the monitored device until a response command is received, at which point the device is determined to be abnormal.

Benefits of technology

It improves the reliability and security of the equipment, enables timely monitoring and handling of equipment anomalies, and reduces the risk of data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640188B_ABST
    Figure CN115640188B_ABST
Patent Text Reader

Abstract

This invention discloses an anomaly monitoring method, computer-readable storage medium, system, and apparatus, relating to the field of detection. The method involves sending an anomaly monitoring command to the monitored target device; controlling and disabling a timeout detection function that automatically activates upon receiving the anomaly monitoring command, whereby the anomaly monitoring command is deactivated if no response command is received within a preset time; determining whether a response command to the corresponding anomaly monitoring command sent by the monitored target device has been received; and if so, determining that an anomaly has been detected in the monitored target device. This application, by controlling and disabling the timeout detection function that automatically activates upon receiving the anomaly monitoring command, ensures that the anomaly monitoring command sent to the monitored target device is not deactivated, thereby continuously determining whether a response command to the corresponding anomaly monitoring command has been received from the monitored target device. This allows for direct detection of anomalies in the monitored target device, improving the reliability and security of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of detection, and in particular to an anomaly monitoring method, computer-readable storage medium, system, and apparatus. Background Technology

[0002] In existing technologies, the method of querying whether a device such as a hard drive has an abnormal problem through a host or server involves sending an abnormality query command to the device at preset intervals. The preset interval is typically set to 5 seconds. The problem with this technology is that the hard drive may not be experiencing an abnormality when the query command is sent, so it will not send a response command. However, if the hard drive subsequently experiences a problem, it will only be able to respond and report the abnormality upon receiving the next query command. For hard drives, if an abnormality is not handled promptly by the host or server, the abnormality may worsen or even result in data loss during the period of the abnormality. Therefore, existing technologies cannot detect abnormalities in storage devices in a timely manner, reducing the reliability and security of data storage. Summary of the Invention

[0003] The purpose of this invention is to provide an anomaly monitoring method, computer-readable storage medium, system, and device. This application controls the timeout detection function, which automatically turns on following the anomaly monitoring command, to be turned off, so that the anomaly monitoring command sent to the monitored target device will not be disabled. This allows for continuous determination of whether a response command corresponding to the anomaly monitoring command sent by the monitored target device is received. Therefore, anomalies of the monitored target device can be directly detected, improving the reliability and security of the device.

[0004] To address the aforementioned technical problems, this invention provides an anomaly monitoring method applied to a processor, comprising:

[0005] Send anomaly monitoring commands to the monitored target device;

[0006] Control the shutdown of the timeout detection function that automatically starts following the anomaly monitoring command. The timeout detection function controls the anomaly monitoring command to be disabled when no command in response to the anomaly monitoring command is received within a preset time.

[0007] Determine whether a response command corresponding to the anomaly monitoring command has been received from the monitored target device;

[0008] If so, it is determined that an anomaly has been detected in the monitored target device.

[0009] Preferably, after determining that an anomaly has been detected in the monitored target device, the method further includes:

[0010] Send an anomaly information confirmation command to the monitored target device;

[0011] The system receives abnormal information from the monitored target device in response to the abnormal information determination instruction. The abnormal information is a specific abnormal event of the monitored target device.

[0012] Preferably, after receiving the anomaly information corresponding to the anomaly information determination instruction sent by the monitored target device, the method further includes:

[0013] Invoke the exception information processing tool corresponding to the exception information and process the exception event corresponding to the exception information based on the exception information processing tool.

[0014] Preferably, before sending the anomaly information determination instruction to the monitored target device, the method further includes:

[0015] The anomaly type of the monitored target device is determined according to the response command;

[0016] Based on the aforementioned exception type, determine the exception information determination instruction corresponding to that exception type.

[0017] Preferably, determining whether a response instruction corresponding to the anomaly monitoring instruction sent by the monitored target device is received includes:

[0018] Periodically determine whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received.

[0019] Preferably, controlling the shutdown of the timeout detection function that automatically starts following the anomaly monitoring command includes:

[0020] The I / O modification processing function tool is invoked, and the timeout detection function, which is automatically enabled following the anomaly monitoring command, is disabled based on the I / O modification processing function tool.

[0021] Preferably, determining whether a response instruction corresponding to the anomaly monitoring instruction sent by the monitored target device is received includes:

[0022] Determine whether an anomaly identifier created by the monitored target device has been received;

[0023] If so, determine that a response command corresponding to the abnormal monitoring command sent by the monitored target device has been received.

[0024] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-described anomaly monitoring methods.

[0025] To address the aforementioned technical problems, the present invention also provides an anomaly monitoring system, comprising:

[0026] An anomaly monitoring command sending unit is used to send anomaly monitoring commands to the monitored target device;

[0027] The control unit is used to control the shutdown of the timeout detection function that automatically turns on following the anomaly monitoring command. The timeout detection function controls the anomaly monitoring command to be disabled when no command responding to the anomaly monitoring command is received within a preset time.

[0028] The judgment unit is used to determine whether a response instruction corresponding to the abnormal monitoring instruction sent by the monitored target device has been received; if so, the judgment unit is triggered.

[0029] The determination unit is used to determine whether an anomaly has been detected in the monitored target device.

[0030] To address the aforementioned technical problems, the present invention also provides an anomaly monitoring device, comprising:

[0031] Memory, used to store computer programs;

[0032] A processor for executing the computer program to implement the steps of the above-described anomaly monitoring method.

[0033] This application provides an anomaly monitoring method, computer-readable storage medium, system, and apparatus. The method involves sending an anomaly monitoring command to a monitored target device; controlling the shutdown of a timeout detection function that automatically activates upon receiving the anomaly monitoring command, whereby the anomaly monitoring command is disabled if no response command is received within a preset time; determining whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received; and if so, determining that an anomaly has been detected in the monitored target device. This application, by controlling the shutdown of the timeout detection function that automatically activates upon receiving the anomaly monitoring command, ensures that the anomaly monitoring command sent to the monitored target device is not disabled, thereby continuously determining whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received. Since the anomaly monitoring command is not sent at preset intervals, but rather continuously monitored for a response command corresponding to the anomaly monitoring command sent by the monitored target device, anomalies in the monitored target device can be directly detected, improving the reliability and security of the device. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 A flowchart of an anomaly monitoring method provided by the present invention;

[0036] Figure 2 This is a schematic diagram illustrating the application of an anomaly monitoring method provided by the present invention;

[0037] Figure 3 This invention provides a schematic diagram of the structure of an anomaly monitoring system.

[0038] Figure 4 This is a schematic diagram of an anomaly monitoring device provided by the present invention. Detailed Implementation

[0039] The core of this invention is to provide an anomaly monitoring method, computer-readable storage medium, system, and device. This application controls the timeout detection function, which automatically turns on following the anomaly monitoring command, to be turned off, so that the anomaly monitoring command sent to the monitored target device will not be disabled. This allows for continuous determination of whether a response command corresponding to the anomaly monitoring command sent by the monitored target device is received. Therefore, anomalies of the monitored target device can be directly detected, improving the reliability and security of the device.

[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0041] Please refer to Figure 1 , Figure 1 A flowchart of an anomaly monitoring method provided by the present invention, the method being applied to a processor, the method comprising:

[0042] S11: Send an anomaly monitoring command to the monitored target device;

[0043] In existing technologies, the host obtains information from the storage device at regular intervals. When the storage device experiences an urgent failure and needs to report it to the host, the storage device can only wait for the host to actively query the information. In some time-sensitive scenarios, such as when an anomaly occurs in the storage device, a rapid response from the host is expected. In such scenarios, relying on the host's periodic queries may cause the optimal time for the host to handle the anomaly to be missed. To address this, this solution provides an anomaly monitoring method that can immediately identify the anomaly when the storage device malfunctions. First, an anomaly monitoring command is sent to the monitored target device. This monitoring command only needs to be sent once, unlike existing technologies that send commands at regular intervals, thus improving the processing efficiency and reliability of the solution. After the anomaly monitoring command is sent, it is stored in the processor and awaits subsequent response commands. The entire process is automated, improving the automation level of the solution.

[0044] To implement asynchronous notifications, an asynchronous event request command needs to be defined, as shown in Table 1. Here, Bytes represents the number of bytes. The host requests asynchronous events from the monitored target device by sending a custom exception monitoring command (0xEE). If the monitored target device has an asynchronous event, it will immediately respond to the command. If the monitored target device does not have an asynchronous event at that time, the host will continue to listen for this command until it responds. Once the monitored target device generates an asynchronous event, it will immediately respond to the exception monitoring command, and the host will immediately take corresponding actions. Compared to the proactive request operations of existing technologies, the response time is greatly improved.

[0045] Table 1

[0046]

[0047] S12: Controls the shutdown of the timeout detection function that automatically turns on when following the anomaly monitoring command. The timeout detection function controls the anomaly monitoring command to be disabled when no response command is received within a preset time.

[0048] After an anomaly monitoring command is sent, it is necessary to control the timeout detection function that is automatically enabled for the corresponding anomaly monitoring command to be disabled. In the existing technology, if no response command is received after a certain period of time after each command is sent, the command will be deactivated. Since the anomaly monitoring command in this solution corresponds to monitoring one anomaly, and only this anomaly monitoring command is monitored, no additional monitoring commands will be sent. Therefore, it is necessary to control the timeout detection function of this anomaly monitoring command to be disabled. Subsequently, it is only necessary to wait for the response command of this anomaly monitoring command, which improves the reliability and feasibility of the solution.

[0049] Since existing technologies send monitoring commands to the storage device at regular time intervals, they may not consider the timeout detection function that accompanies the monitoring commands. This solution uses continuously waiting anomaly monitoring commands to monitor anomalies in the target device. Considering that each command has a timeout detection function, commands that do not receive a response can be disabled. Therefore, this solution needs to control the timeout detection function of the anomaly monitoring specified after sending to be turned off. The timeout detection function is similar to a timer. After this function is turned off, its timing function is no longer enabled. That is, the sent anomaly monitoring command is no longer timed; it only monitors whether the command has received a response command, which improves the reliability of the solution.

[0050] S13: Determine whether a response command corresponding to the abnormal monitoring command sent by the monitored target device has been received. If yes, proceed to S14.

[0051] After sending the target monitoring command, it is only necessary to determine whether a response command corresponding to the command has been received from the monitored target device. Once the monitored target device has some abnormal problems, it will actively send the abnormal situation. This abnormal situation can be detected by the abnormal monitoring command in the first time. Then the processor can receive the response command corresponding to the abnormal monitoring command. The whole process is automated, which improves the feasibility of the solution.

[0052] After receiving the response instruction for the anomaly monitoring instruction, this solution will send the next anomaly monitoring instruction to the monitored target device, so that the monitored target device can be continuously monitored for anomalies. Therefore, the anomaly monitoring instruction of this solution can continuously monitor for anomalies, but the next instruction will only be sent after a problem is detected, instead of sending monitoring instructions at preset intervals, which improves the processing efficiency and detection accuracy of the solution.

[0053] S14: Determine that an anomaly has been detected in the monitored target device.

[0054] At this point, it is determined that an anomaly has been detected in the monitored target device. Compared with existing technologies, this technology can detect anomalies in the target device at the first moment. In other words, when a problem occurs in the target device, it can be monitored in a timely manner so that corresponding actions can be taken promptly. The entire process is automated, which improves the reliability and feasibility of the solution.

[0055] This solution can monitor processors on certain servers or on certain hosts. It can be adjusted according to actual needs and usage, which improves the flexibility of the solution. At the same time, the devices that can be monitored are not limited to storage devices, such as hard drives. It can monitor the current status of multiple devices to see if there are any abnormalities, which improves the reliability and comprehensiveness of the solution.

[0056] This invention can promptly report abnormal situations of the monitored target device to the host, enabling the host to respond and handle these abnormalities quickly. Compared to the previous mechanism of host-initiated queries, this significantly improves the timeliness of event processing. For example, in areas such as host path switching, it can effectively reduce path switching latency and minimize service interruption time.

[0057] In summary, this application provides an anomaly monitoring method, computer-readable storage medium, system, and apparatus. The method involves sending an anomaly monitoring command to a monitored target device; controlling the shutdown of a timeout detection function that automatically activates upon receiving the anomaly monitoring command, whereby the timeout detection function disables the anomaly monitoring command if no response command is received within a preset time; determining whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received; and if so, determining that an anomaly has been detected in the monitored target device. This application, by controlling the shutdown of the timeout detection function that automatically activates upon receiving the anomaly monitoring command, ensures that the anomaly monitoring command sent to the monitored target device is not disabled, thereby continuously determining whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received. Since the anomaly monitoring command is not sent at preset intervals, but rather continuously monitored for a response command corresponding to the anomaly monitoring command sent by the monitored target device, anomalies in the monitored target device can be directly detected, improving the reliability and security of the device.

[0058] Based on the above embodiments:

[0059] As a preferred embodiment, after determining that an anomaly has been detected in the monitored target device, the method further includes:

[0060] Send an anomaly information confirmation command to the monitored target device;

[0061] The system receives the corresponding abnormal information from the monitored target device, which is the specific abnormal event of the monitored target device.

[0062] Once it is determined that the monitored device has an anomaly, it is necessary to obtain the specific anomaly of the monitored target device. Therefore, an anomaly information determination command is sent to the monitored target device. The monitored target device will then send the corresponding anomaly information, which is the specific anomaly of the monitored target device. At this time, the processor can receive the anomaly information so that it can handle the anomaly event accordingly, resolve the anomaly of the monitored target device, and improve the reliability of the solution.

[0063] The abnormal information includes multiple abnormal events of the monitored target device, and each abnormality can be stored in the form of a log file. This allows subsequent inspectors to intuitively see the abnormal problems that have occurred in the monitored target device, thus improving the reliability of the solution.

[0064] As shown in Table 2, asynchronous events refer to events indicating anomalies in the monitored target device. After the host determines that the monitored target device is abnormal, it will immediately send an anomaly information determination command (0xED) to obtain detailed information about the asynchronous event, including the number of bytes occupied by the asynchronous event information expected by the host. As shown in Table 3, after receiving the anomaly information determination command (0xED), the monitored target device will immediately organize the asynchronous event information and respond to the host. The information includes an anomaly event ID, which the host uses to verify and distinguish different anomaly information. The host uses the second byte to determine how many asynchronous events still need to be processed on the storage to prepare the next operation plan. The third byte specifies the total number of bytes of asynchronous event details (excluding the first four bytes).

[0065] Table 2

[0066] Bytes describe 0 Send exception information confirmation command 0xED 1 Asynchronous event information ID 2-3 The asynchronous event information expected by the host occupies bytes

[0067] Table 3

[0068] Bytes describe 1 Asynchronous event information ID 2 How many asynchronous events are left in storage? 2-3 Subsequent asynchronous event information occupies bytes … Asynchronous event details

[0069] In a preferred embodiment, after receiving the anomaly information from the monitored target device that corresponds to the anomaly information determination instruction, the method further includes:

[0070] Invoke the exception information handling tool corresponding to the exception information and handle the exception event corresponding to the exception information based on the exception information handling tool.

[0071] Once the specific details of the anomaly occurring in the monitored target device are determined, the corresponding anomaly processing tool is invoked. The anomaly is then resolved based on this tool, which can be invoked appropriately according to the specific circumstances of the anomaly, thus improving the flexibility of the solution. For example, if one of the two data transmission links between the processor and the monitored target device malfunctions, the processor can detect this anomaly and invoke the appropriate processing tool to interrupt data transmission on the faulty link, using only the other working circuit to transmit data or commands, thereby improving the reliability of the solution.

[0072] As a preferred embodiment, before sending the anomaly information determination instruction to the monitored target device, the method further includes:

[0073] Determine the anomaly type of the monitored target device based on the response command;

[0074] Determine the corresponding exception information determination instruction based on the exception type.

[0075] The exception information determination instruction sent by the processor can be adjusted according to the exception type determined by the response instruction returned by the monitored target device. If the exception type of the monitored target device is different, the exception information determination instruction sent will also be different. This adaptive adjustment of the exception information determination instruction ultimately improves the efficiency of the solution. The exception information determination instruction can more accurately obtain the exception of the monitored target device. Because the exception information determination instruction is determined according to the exception type, it is specifically targeted at the exception of the target device, and can more effectively obtain its specific exception information, thereby improving the reliability and feasibility of the solution.

[0076] As shown in Table 4, the data of the monitored target device responding to the host's abnormal monitoring command will be reported. The asynchronous event ID will be reported (the host will obtain the detailed information of the asynchronous event based on the asynchronous event ID). The asynchronous event type is used to distinguish different asynchronous events, that is, the abnormal type of the monitored target device is sent synchronously, so that the processing side can handle it more efficiently.

[0077] Table 4

[0078] Bits describe But31-bit16 Reserved for future use. Bit15-bit8 Asynchronous event information ID, But7-bit0 Asynchronous event types

[0079] As a preferred embodiment, determining whether a response instruction corresponding to the anomaly monitoring instruction sent by the monitored target device has been received includes:

[0080] Periodically check whether a response command has been received from the monitored target device for the corresponding anomaly monitoring command.

[0081] When determining whether a response command to the corresponding anomaly monitoring command sent by the monitored target device has been received, this can be done periodically. This allows the system to detect problems as soon as they occur in the monitored target device and take appropriate steps to resolve the anomaly. The entire process is automated, which improves the automation level and reliability of the solution.

[0082] Please refer to Figure 2 , Figure 2 This is a schematic diagram illustrating the application of an anomaly monitoring method provided by the present invention.

[0083] As a preferred embodiment, controlling the shutdown of the timeout detection function that automatically starts following anomaly monitoring commands includes:

[0084] Call the IO modification processing function tool and, based on the IO modification processing function tool, control the shutdown of the timeout detection function that is automatically enabled following the exception monitoring command.

[0085] In practice, the way to control the automatic activation of the timeout detection function following the anomaly monitoring is to call the IO modification processing function tool. From the perspective of manual preprocessing, it is necessary to modify the parameters of the function corresponding to the shutdown operation. After modifying the parameters, the tool can be called in actual application to execute the shutdown of the timeout detection function for the anomaly monitoring command. Since the parameter modification process is a preprocessing process, no additional adjustments are required when using the solution, which improves the automation level of the solution and increases the processing efficiency.

[0086] like Figure 2 As shown, to enable the monitored target device to asynchronously notify the host, it is necessary to modify the driver interface related to the self-developed host plugin on the host side, modify the IO (INPUT-OUTPUT) request handling function, and perform special handling on the custom asynchronous event request command (0xEE). To prevent the asynchronous request event from being terminated by the host due to timeout, the IO request handling function needs to handle the exception detection command (0xEE) separately, allowing it to bypass the command timeout detection, so that the host can continuously listen for this command until the monitored target device responds to it. In addition, fd = open("a.txt") is the process of opening the file, Read(fd, buffer) is the process of reading the file, sys_read() is the process of reading data, and VFS represents the file system.

[0087] As a preferred embodiment, determining whether a response instruction corresponding to the anomaly monitoring instruction sent by the monitored target device has been received includes:

[0088] Determine whether an anomaly flag created by the monitored target device has been received;

[0089] If so, determine that a response command has been received from the target device being monitored, corresponding to the abnormal monitoring command.

[0090] When determining whether a response command sent by the monitored target device has been received, it is possible to determine whether an anomaly identifier created by the monitored target device has been received. In this solution, if an anomaly occurs in the monitored target device, it can proactively report the problem and establish an anomaly identifier indicating the problem. The host or server processor only needs to listen for outgoing anomaly monitoring commands in real time. When the anomaly monitoring command detects an anomaly identifier created by the monitored target device, it is considered to have received a response command to the corresponding anomaly monitoring command sent by the monitored target device. The entire process is automated, improving the feasibility of the solution.

[0091] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-described anomaly monitoring methods.

[0092] For a description of the computer-readable storage medium provided by this invention, please refer to the embodiments of the above-described anomaly monitoring method; further details will not be repeated here.

[0093] Please refer to Figure 3 , Figure 3 This is a schematic diagram of an anomaly monitoring system provided by the present invention.

[0094] The present invention also provides an anomaly monitoring system, comprising:

[0095] Anomaly monitoring command sending unit 10 is used to send anomaly monitoring commands to the monitored target device;

[0096] Control unit 11 is used to control the shutdown of the timeout detection function that automatically turns on following the anomaly monitoring command. The timeout detection function controls the anomaly monitoring command to be disabled when no command responding to the anomaly monitoring command is received within a preset time.

[0097] Judgment unit 12 is used to determine whether a response instruction corresponding to the abnormal monitoring instruction sent by the monitored target device is received; if so, the judgment unit is triggered.

[0098] The determination unit 13 is used to determine whether an abnormality has been detected in the monitored target device.

[0099] Following the determination unit, the following is also included:

[0100] An anomaly information determination instruction sending unit is used to send an anomaly information determination instruction to the monitored target device;

[0101] An abnormal information receiving unit is used to receive abnormal information sent by the monitored target device in accordance with the abnormal information determination instruction, wherein the abnormal information is a specific abnormal event of the monitored target device.

[0102] Following the abnormal information receiving unit, the system also includes:

[0103] Invoke the exception information processing tool corresponding to the exception information and process the exception event corresponding to the exception information based on the exception information processing tool.

[0104] Prior to the anomaly information determination instruction sending unit, the system also includes:

[0105] An anomaly type determination unit is used to determine the anomaly type of the monitored target device based on the response instruction;

[0106] An exception information determination instruction determination unit is used to determine an exception information determination instruction corresponding to the exception type based on the exception type.

[0107] The judgment unit includes:

[0108] Periodically determine whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received.

[0109] The control unit includes:

[0110] The I / O modification processing function tool is invoked, and the timeout detection function, which is automatically enabled following the anomaly monitoring command, is disabled based on the I / O modification processing function tool.

[0111] The judgment unit includes:

[0112] An anomaly identifier receiving and judging unit is used to judge whether an anomaly identifier created by the monitored target device is received; if so, the response instruction receiving and judging unit is triggered.

[0113] The response instruction receiving and determining unit is used to determine whether a response instruction corresponding to the abnormal monitoring instruction sent by the monitored target device has been received.

[0114] For a description of the anomaly monitoring system provided by this invention, please refer to the embodiments of the anomaly monitoring method described above; further details will not be repeated here.

[0115] Please refer to Figure 4 , Figure 4 This is a schematic diagram of an anomaly monitoring device provided by the present invention.

[0116] The present invention also provides an anomaly monitoring device, comprising:

[0117] Memory 1 is used to store computer programs;

[0118] Processor 2 is used to execute the computer program to implement the steps of the above-described anomaly monitoring method.

[0119] For a description of the anomaly monitoring device provided by the present invention, please refer to the embodiments of the above anomaly monitoring method, which will not be repeated here.

[0120] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0121] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0122] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An anomaly monitoring method, characterized in that, Applied to processors, including: Send anomaly monitoring commands to the monitored target device; The timeout detection function, which automatically starts following the anomaly monitoring command, is controlled to be turned off, so that the anomaly monitoring command only needs to be sent once instead of being sent at regular intervals; the timeout detection function controls the anomaly monitoring command to be disabled when no response command is received within a preset time. Determine whether a response command corresponding to the anomaly monitoring command has been received from the monitored target device; If so, it is determined that an anomaly has been detected in the monitored target device; After determining that an anomaly has been detected in the monitored target device, the process further includes: Send an anomaly information confirmation command to the monitored target device; The system receives abnormal information from the monitored target device corresponding to the abnormal information determination instruction, wherein the abnormal information is a specific abnormal event of the monitored target device. Before sending the anomaly information confirmation instruction to the monitored target device, the method further includes: The anomaly type of the monitored target device is determined according to the response command; Determine the corresponding exception information determination instruction based on the exception type; Controlling the shutdown of the timeout detection function that automatically starts following the anomaly monitoring command includes: The I / O modification processing function tool is invoked, and the timeout detection function, which is automatically enabled following the anomaly monitoring command, is disabled based on the I / O modification processing function tool.

2. The anomaly monitoring method as described in claim 1, characterized in that, After receiving the anomaly information corresponding to the anomaly information determination instruction sent by the monitored target device, the method further includes: Invoke the exception information processing tool corresponding to the exception information and process the exception event corresponding to the exception information based on the exception information processing tool.

3. The anomaly monitoring method as described in claim 1, characterized in that, Determining whether a response instruction corresponding to the anomaly monitoring instruction sent by the monitored target device has been received includes: Periodically determine whether a response command corresponding to the anomaly monitoring command sent by the monitored target device has been received.

4. The anomaly monitoring method according to any one of claims 1 to 3, characterized in that, Determining whether a response instruction corresponding to the anomaly monitoring instruction sent by the monitored target device has been received includes: Determine whether an anomaly identifier created by the monitored target device has been received; If so, determine that a response command corresponding to the abnormal monitoring command sent by the monitored target device has been received.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the anomaly monitoring method as described in any one of claims 1 to 4.

6. An anomaly monitoring system, characterized in that, include: An anomaly monitoring command sending unit is used to send anomaly monitoring commands to the monitored target device; The control unit is used to control the shutdown of the timeout detection function that automatically turns on following the anomaly monitoring command, so that the anomaly monitoring command only needs to be sent once instead of being sent every certain period of time. The timeout detection function controls the anomaly monitoring command to be disabled when no response command is received within a preset time. The judgment unit is used to determine whether a response instruction corresponding to the abnormal monitoring instruction sent by the monitored target device has been received; if so, the judgment unit is triggered. The determination unit is used to determine whether an anomaly has been detected in the monitored target device; It also includes: an anomaly information determination instruction sending unit, used to send an anomaly information determination instruction to the monitored target device; An abnormal information receiving unit is used to receive abnormal information sent by the monitored target device in accordance with the abnormal information determination instruction, wherein the abnormal information is a specific abnormal event of the monitored target device; Before the exception information determination instruction sending unit, it also includes: An anomaly type determination unit is used to determine the anomaly type of the monitored target device based on the response instruction; An anomaly information determination instruction determination unit is used to determine an anomaly information determination instruction corresponding to the anomaly type based on the anomaly type. Control unit, including: The I / O modification processing function tool is invoked, and the timeout detection function, which is automatically enabled following the anomaly monitoring command, is disabled based on the I / O modification processing function tool.

7. An anomaly monitoring device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the anomaly monitoring method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • PCIE equipment anomaly detection method and system, electronic equipment and storage medium

    CN111309532A