Hard disk monitoring method, device and system
By acquiring and analyzing the SGPIO signal of the hard disk, it ensures that the hard disk is in a stable state and sends status information, which solves the problem of inaccurate hard disk status monitoring and improves the accuracy of hard disk monitoring.
Patent Information
- Application Number
- CN202111136810.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-27
Smart Images

Figure CN113868085B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of hard disk monitoring, and in particular, relates to a hard disk monitoring method, device and system. Background Art
[0002] A large number of hard disks are used in server devices. As the storage medium of the server, the hard disk plays a very important role in the server. Therefore, it is particularly important to monitor the working status of the server hard disk in real time. The current mainstream method for monitoring the hard disk status is to monitor the hard disk working status by parsing the SGPIO (Serial General-Purpose IO ports) protocol. Since the SGPIO may be in an unstable state when the device is just powered on, the parsed SGPIO information is inaccurate, resulting in inaccurate monitoring of the hard disk status information. Summary of the invention
[0003] The embodiments of the present application provide a hard disk monitoring method, device and system, which can solve the problem of inaccurate monitoring of hard disk status information.
[0004] In a first aspect, an embodiment of the present application provides a hard disk monitoring method, comprising:
[0005] Acquire SGPIO signals and status information of the hard disk to be tested, wherein the SGPIO signals include SCLK signals, SLOAD signals and SDATAOUT signals;
[0006] When the SCLK signal, the SLOAD signal, and the SDATAOUT signal meet a first preset condition, the status information is sent to a BMC (Baseboard Manager Controller).
[0007] In a possible implementation manner of the first aspect, the first preset condition includes:
[0008] The SCLK signal, the SLOAD signal and the SDATAOUT signal satisfy a first state, and the duration of the first state reaches a first preset time. The first state is that there is at least one high-level signal and one low-level signal among the SCLK signal, the SLOAD signal and the SDATAOUT signal.
[0009] In a possible implementation manner of the first aspect, the status information includes operation information, in-place information, and misalignment information of the hard disk to be tested.
[0010] In a possible implementation manner of the first aspect, the hard disk monitoring method further includes:
[0011] When the SCLK signal, the SLOAD signal and the SDATAOUT signal satisfy a second state and the duration of the second state reaches a second preset time, sending the state information to the BMC is prohibited, and the second state is that the SCLK signal, the SLOAD signal and the SDATAOUT signal are all high-level signals.
[0012] In a possible implementation manner of the first aspect, the hard disk monitoring method further includes:
[0013] Acquire a reset signal sent by the BMC, where the reset signal is a signal sent by the BMC when it is determined according to the status information that the hard disk to be tested fails after receiving the status information;
[0014] The hard disk to be tested is controlled to restart according to the reset signal.
[0015] In a second aspect, an embodiment of the present application provides a hard disk monitoring device, including:
[0016] A first acquisition module, used to acquire SGPIO signals and status information of the hard disk to be tested, wherein the SGPIO signals include SCLK signals, SLOAD signals and SDATAOUT signals;
[0017] The sending module is used to send the status information to the BMC when the SCLK signal, the SLOAD signal and the SDATAOUT signal meet a first preset condition.
[0018] In a possible implementation manner of the second aspect, the first preset condition includes:
[0019] The SCLK signal, the SLOAD signal and the SDATAOUT signal satisfy a first state, and the duration of the first state reaches a first preset time. The first state is that there is at least one high-level signal and one low-level signal among the SCLK signal, the SLOAD signal and the SDATAOUT signal.
[0020] In a possible implementation manner of the second aspect, the hard disk monitoring device further includes:
[0021] A second acquisition module is used to acquire a reset signal sent by the BMC, wherein the reset signal is a signal sent by the BMC when it determines that the hard disk to be tested fails according to the status information after receiving the status information;
[0022] The control module is used to control the hard disk to be tested to restart according to the reset signal.
[0023] In a third aspect, an embodiment of the present application provides a hard disk monitoring system, including a CPLD (Complex Programmable Logic Device) and a BMC, wherein the CPLD executes any one of the methods described in the first aspect.
[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.
[0025] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods described in the first aspect above.
[0026] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0027] The SGPIO signal and status information of the hard disk to be tested are obtained, and the SGPIO signal includes an SCLK signal, an SLOAD signal, and an SDATAOUT signal. When the SCLK signal, the SLOAD signal, and the SDATAOUT signal meet the first preset condition, the hard disk to be tested is in a stable state, and the status information of the hard disk to be tested in a stable state is sent to the BMC. The hard disk monitoring method provided in the embodiment of the present application improves the accuracy of determining whether the hard disk to be tested is in a stable state by analyzing multiple signals, and ensures that the status information of the hard disk to be tested is transmitted to the BMC when the hard disk to be tested is working stably. The BMC monitors the status of the hard disk to be tested according to the status information, thereby improving the accuracy of monitoring the hard disk to be tested.
[0028] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 is a schematic diagram of a hard disk monitoring system provided by an embodiment of the present application;
[0031] Figure 2 It is a flowchart of a hard disk monitoring method provided by an embodiment of the present application;
[0032] Figure 3 is a flowchart of a hard disk monitoring method provided by another embodiment of the present application;
[0033] Figure 4 It is a structural schematic diagram of a hard disk monitoring device provided in an embodiment of the present application;
[0034] Figure 5 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0036] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0037] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0038] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0039] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0040] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0041] Figure 1 FIG. 1 is a schematic diagram of a hard disk monitoring system provided by an embodiment of the present application. Figure 1 As shown, the hard disk monitoring system includes CPLD and BMC. CPLD obtains the SGPIO signal and status information of the hard disk to be tested. The SGPIO signal includes SCLK signal, SLOAD signal and SDATAOUT signal. When the SCLK signal, SLOAD signal and SDATAOUT signal meet the first preset condition, the hard disk to be tested is in a stable state, and CPLD sends the status information to BMC. BMC parses the status information to monitor the status of the hard disk to be tested. Since the status information received by BMC is a signal collected by CPLD when the hard disk to be tested is stable, the status information can truly reflect the working status of the hard disk to be tested, thereby improving the accuracy of monitoring the status of the hard disk to be tested.
[0042] It should be noted that multiple hard disks to be tested are installed on the backplane, and the CPLD can obtain the SGPIO signals and status information of the hard disks to be tested through the backplane. Wireless communication can be carried out between the CPLD and the BMC, so that the CPLD can collect the status information of the hard disks to be tested on site and send it to the remote BMC, so as to achieve the effect of remote monitoring of the hard disks to be tested by the BMC.
[0043] Figure 2 FIG. 1 is a flow chart of a hard disk monitoring method provided by an embodiment of the present application. Figure 2 As shown, the hard disk monitoring method includes step S201 and step S202.
[0044] Step S201, obtaining SGPIO signals and status information of the hard disk to be tested, where the SGPIO signals include SCLK signals, SLOAD signals, and SDATAOUT signals.
[0045] Specifically, a plurality of hard disks to be tested are installed on the backplane, and the CPLD can obtain SGPIO signals and status information of the hard disks to be tested through the backplane.
[0046] Exemplarily, the status information includes operation information, in-position information and misalignment information of the hard disk to be tested. The BMC can analyze the operation information, in-position information and misalignment information to monitor the status information of the hard disk to be tested.
[0047] Step S202: When the SCLK signal, the SLOAD signal, and the SDATAOUT signal meet a first preset condition, the status information is sent to the BMC.
[0048] Specifically, when the SCLK signal, the SLOAD signal, and the SDATAOUT signal meet the first preset condition, it indicates that the hard disk to be tested is in a stable operating state, and the status information obtained by the CPLD can accurately reflect the working state of the hard disk to be tested. The CPLD sends the status information to the BMC, and the BMC can accurately monitor the hard disk to be tested based on the status information. The hard disk monitoring method provided in the embodiment of the present application improves the accuracy of determining whether the hard disk to be tested is in a stable state by analyzing multiple signals, and ensures that the status information of the hard disk to be tested is transmitted to the BMC when the hard disk to be tested is working stably. The BMC monitors the status of the hard disk to be tested based on the status information, thereby improving the accuracy of monitoring the hard disk to be tested.
[0049] Exemplarily, the first preset condition includes: the SCLK signal, SLOAD signal and SDATAOUT signal satisfy a first state, and the duration of the first state reaches a first preset time, and the first state is that there is at least one high level signal and one low level signal in the SCLK signal, SLOAD signal and SDATAOUT signal.
[0050] Specifically, when the device is turned on, the SCLK signal, SLOAD signal and SDATAOUT signal of the hard disk to be tested are all high-level signals. When the hard disk to be tested runs stably, the SCLK signal, SLOAD signal and SDATAOUT signal will frequently switch between high-level state and low-level state to achieve information interaction with the CPLD. Therefore, when the hard disk to be tested is in a stable working state, the SCLK signal, SLOAD signal and SDATAOUT signal cannot be in a high-level state all the time. The SCLK signal, SLOAD signal and SDATAOUT signal meet the first state (there is at least one high-level signal and one low-level signal in the SCLK signal, SLOAD signal and SDATAOUT signal), and when the duration of the first state reaches the first preset time, it means that the hard disk to be tested is in a stable working state.
[0051] It should be noted that designers can set the specific value of the first preset time according to actual conditions.
[0052] In one embodiment of the present application, the hard disk monitoring method further includes step S203.
[0053] Step S203, when the SCLK signal, SLOAD signal and SDATAOUT signal meet the second state and the duration of the second state reaches a second preset time, it is prohibited to send state information to the BMC. The second state is that the SCLK signal, SLOAD signal and SDATAOUT signal are all high level signals.
[0054] Specifically, when the SCLK signal, SLOAD signal and SDATAOUT signal meet the second state, and the duration of the second state reaches the second preset time, the hard disk under test is in an unstable state, and the status information at this time cannot truly reflect the working status of the hard disk under test, and the CPLD is prohibited from sending status information to the BMC.
[0055] It should be noted that designers can set the specific value of the second preset time according to actual conditions.
[0056] Figure 3 FIG. 2 is a flow chart of a hard disk monitoring method provided by another embodiment of the present application. Figure 3 The hard disk monitoring method also includes step S301 and step S302.
[0057] Step S301, obtaining a reset signal sent by the BMC, wherein the reset signal is a signal sent by the BMC after receiving status information and determining that a hard disk to be tested fails according to the status information.
[0058] Specifically, the BMC can determine whether the hard disk to be tested fails by analyzing the status information of the hard disk to be tested. When the BMC determines that the hard disk to be tested fails, the BMC sends a reset signal to the CPLD.
[0059] Step S302, controlling the hard disk to be tested to restart according to the reset signal.
[0060] Specifically, after receiving the reset signal, the CPLD controls the hard disk to be tested to restart, so that the hard disk to be tested automatically eliminates the fault.
[0061] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0062] Figure 4 FIG. 1 is a schematic diagram showing the structure of a hard disk monitoring device provided in an embodiment of the present application. Figure 4 As shown, the hard disk monitoring device includes:
[0063] A first acquisition module 41 is used to acquire SGPIO signals and status information of the hard disk to be tested, wherein the SGPIO signals include SCLK signals, SLOAD signals and SDATAOUT signals;
[0064] The sending module 42 is configured to send the status information to the BMC when the SCLK signal, the SLOAD signal and the SDATAOUT signal meet a first preset condition.
[0065] In one embodiment of the present application, the first preset condition includes:
[0066] The SCLK signal, the SLOAD signal and the SDATAOUT signal satisfy a first state, and the duration of the first state reaches a first preset time. The first state is that there is at least one high-level signal and one low-level signal among the SCLK signal, the SLOAD signal and the SDATAOUT signal.
[0067] In one embodiment of the present application, the status information includes operation information, in-place information and misalignment information of the hard disk to be tested.
[0068] In one embodiment of the present application, the hard disk monitoring device further includes:
[0069] A second acquisition module is used to acquire a reset signal sent by the BMC, wherein the reset signal is a signal sent by the BMC when it determines that the hard disk to be tested fails according to the status information after receiving the status information;
[0070] The control module is used to control the hard disk to be tested to restart according to the reset signal.
[0071] In one embodiment of the present application, the hard disk monitoring device further includes:
[0072] A prohibition module is used to prohibit sending the status information to the BMC when the SCLK signal, the SLOAD signal and the SDATAOUT signal meet a second state and the duration of the second state reaches a second preset time, and the second state is that the SCLK signal, the SLOAD signal and the SDATAOUT signal are all high-level signals.
[0073] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0074] in addition, Figure 4The hard disk monitoring device shown can be a software unit, a hardware unit, or a unit combining software and hardware built into an existing terminal device, or can be integrated into the terminal device as an independent pendant, or can exist as an independent terminal device.
[0075] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0076] Figure 5 This is a schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Figure 5 As shown, the terminal device 5 of this embodiment may include: at least one processor 50 ( Figure 5 Only one processor 50 is shown in the figure), a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50. When the processor 50 executes the computer program 52, the steps in any of the above-mentioned method embodiments are implemented, for example Figure 2 Steps S201 to S202 in the illustrated embodiment. Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 4 The functions of the modules 41 to 42 are shown.
[0077] Exemplarily, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules / units may be a series of computer program 52 instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5.
[0078] The terminal device 5 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that Figure 5 It is only an example of the terminal device 5 and does not constitute a limitation on the terminal device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0079] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0080] In some embodiments, the memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or memory of the terminal device 5. In other embodiments, the memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program 52. The memory 51 may also be used to temporarily store data that has been output or is to be output.
[0081] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program 52. When the computer program 52 is executed by the processor 50, the steps in the above-mentioned method embodiments can be implemented.
[0082] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0083] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program 52, and the computer program 52 can be stored in a computer-readable storage medium. When the computer program 52 is executed by the processor 50, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program 52 includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, RandomAccess Memory), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0084] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0085] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0086] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0087] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0088] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
[0089] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A hard disk monitoring method, characterized in that: include: Acquire SGPIO signals and status information of the hard disk to be tested, wherein the SGPIO signals include SCLK signals, SLOAD signals and SDATAOUT signals; When the SCLK signal, the SLOAD signal, and the SDATAOUT signal meet a first preset condition, sending the status information to the BMC; The first preset condition includes: the SCLK signal, the SLOAD signal and the SDATAOUT signal meet a first state, and the duration of the first state reaches a first preset time, and the first state is that there is at least one high-level signal and one low-level signal among the SCLK signal, the SLOAD signal and the SDATAOUT signal; When the SCLK signal, the SLOAD signal and the SDATAOUT signal satisfy a second state and the duration of the second state reaches a second preset time, sending the state information to the BMC is prohibited, and the second state is that the SCLK signal, the SLOAD signal and the SDATAOUT signal are all high-level signals.
2. The hard disk monitoring method according to claim 1, characterized in that: The status information includes operation information, in-position information and misalignment information of the hard disk to be tested.
3. The hard disk monitoring method according to any one of claims 1 to 2, characterized in that: Also includes: Acquire a reset signal sent by the BMC, where the reset signal is a signal sent by the BMC when it is determined according to the status information that the hard disk to be tested fails after receiving the status information; The hard disk to be tested is controlled to restart according to the reset signal.
4. A hard disk monitoring device, characterized in that: include: A first acquisition module, used to acquire SGPIO signals and status information of the hard disk to be tested, wherein the SGPIO signals include SCLK signals, SLOAD signals and SDATAOUT signals; A sending module, configured to send the status information to the BMC when the SCLK signal, the SLOAD signal and the SDATAOUT signal meet a first preset condition; The first preset condition includes: the SCLK signal, the SLOAD signal and the SDATAOUT signal meet a first state, and the duration of the first state reaches a first preset time, and the first state is that there is at least one high-level signal and one low-level signal among the SCLK signal, the SLOAD signal and the SDATAOUT signal; When the SCLK signal, the SLOAD signal and the SDATAOUT signal satisfy a second state and the duration of the second state reaches a second preset time, sending the state information to the BMC is prohibited, and the second state is that the SCLK signal, the SLOAD signal and the SDATAOUT signal are all high-level signals.
5. The hard disk monitoring device according to claim 4, characterized in that: Also includes: A second acquisition module is used to acquire a reset signal sent by the BMC, wherein the reset signal is a signal sent by the BMC when it determines that the hard disk to be tested fails according to the status information after receiving the status information; The control module is used to control the hard disk to be tested to restart according to the reset signal.
6. A hard disk monitoring system, characterized in that: The method comprises a CPLD and a BMC, wherein the CPLD executes the method according to any one of claims 1 to 3.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
