Method for testing status indicator light of server and electronic device

By acquiring and comprehensively analyzing the operating parameters and component presence status of the server status indicator lights, and conducting multiple rounds of testing, the problem of poor testing results for status indicator lights in existing technologies has been solved, and more accurate test results have been achieved.

CN121187901BActive Publication Date: 2026-02-06INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511738355.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-02-06
Estimated Expiration
2045-11-25

AI Technical Summary

Technical Problem

Existing testing methods for server status indicator lights are easily affected by other factors on the server, leading to false tests and poor test results.

Method used

By acquiring the first and second operating parameters of the target indicator light and combining them with the on-site status of the target server components, multiple rounds of testing are conducted to determine the indicator light's illumination status, usage status, and operational status, and the test results are comprehensively judged.

Benefits of technology

It reduces false positives, provides more accurate test results, and improves the testing performance of status indicator lights.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121187901B_ABST
    Figure CN121187901B_ABST
Patent Text Reader

Abstract

The application discloses a kind of server's state indicating lamp's test method and electronic equipment, it is related to server technical field, the method comprises: according to the first operating parameter and the second operating parameter of target indicating lamp to be tested on target server, the lighting state of target indicating lamp is tested, and first test result is obtained;According to the in-place state of the target server component corresponding to the target indicating lamp according to first test result, the use state of target indicating lamp is tested, and second test result is obtained;According to second test result, control target indicating lamp executes operating state test, and third test result is obtained, wherein, third test result is used to indicate whether target indicating lamp is allowed to be lit;According to first test result, second test result and third test result determine the test result of target indicating lamp, by the application, the technical problem that state indicating lamp test effect is poor is solved, and the technical effect that state indicating lamp test effect is improved is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of servers, and in particular to a test method for a status indicator light of a server and an electronic device. BACKGROUND

[0002] In order to display the running status of a server and the operation status of a server component on the server, many status indicator lights are provided on the server, such as a server health indicator light, a hard disk read-write and status indicator light, and a power status indicator light. In order to ensure the normal running of the server, the status indicator light of the server needs to be tested during the production and testing of the server. The current test method generally relies on manual comparison of whether the color of the indicator light seen is consistent with the color in the specification standard to determine whether the status indicator light passes the test, but this test method is easily affected by other factors on the server, leading to misjudgment of the status indicator light of the server and poor test effect of the status indicator light of the server. SUMMARY

[0003] The present application provides a test method for a status indicator light of a server and an electronic device to at least solve the problem of poor test effect of the status indicator light in the related art.

[0004] The present application provides a test method for a status indicator light of a server, comprising: testing the lighting state of a target indicator light on a target server according to a first running parameter and a second running parameter of the target indicator light to be tested, to obtain a first test result, wherein the first running parameter is used to indicate the running condition of the target indicator light of the target server in a running state, the second running parameter is used to indicate the expected running condition of the target indicator light of the target server in the running state, and the lighting state is used to indicate whether the target indicator light is lit and the abnormal condition of the running parameter of the target indicator light in the case that the target indicator light is lit; testing the use state of the target indicator light according to the first test result and the in-place state of a target server component corresponding to the target indicator light, to obtain a second test result, wherein the in-place state is used to indicate whether the target server component is in place, and the use state is used to indicate whether the target indicator light is used on the target server; controlling the target indicator light to perform an operation state test according to the second test result, to obtain a third test result, wherein the third test result is used to indicate whether the target indicator light is allowed to be lit; and determining the test result of the target indicator light according to the first test result, the second test result, and the third test result.

[0005] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-mentioned test methods for a status indicator light of a server.

[0006] By the present application, the lighting state of the target indicator light is tested according to the first operating parameter and the second operating parameter of the target indicator light to be tested on the target server, a first test result is obtained, the use state of the target indicator light is tested according to the first test result and the in-place state of the target server component corresponding to the target indicator light, a second test result is obtained, the operation state test of the target indicator light is controlled according to the second test result, a third test result is obtained, and the test result of the target indicator light is determined according to the first test result, the second test result and the third test result. The test result determined in this way takes into account the influence of whether the server component is in place, can reduce false positives, and through the progression of multiple rounds of testing, can also give a more accurate test result. Therefore, the technical problem of poor test effect of the state indicator light in the related art can be solved, and the technical effect of improving the test effect of the state indicator light is achieved. BRIEF DESCRIPTION OF DRAWINGS

[0007] In order to more clearly illustrate the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0008] Figure 1 is a hardware structure block diagram of a test method for a state indicator light of a server according to an embodiment of the present application;

[0009] Figure 2 is a flowchart of a test method for a state indicator light of a server according to an embodiment of the present application;

[0010] Figure 3 is a schematic diagram of a dynamic calibration method based on an AR device according to an embodiment of the present application;

[0011] Figure 4 is a schematic diagram of a three-level abnormality diagnosis mechanism based on a target indicator light after the target indicator light is tested according to an embodiment of the present application;

[0012] Figure 5 is a schematic diagram of a specific use flow of an algorithm in a fault matching mode according to an embodiment of the present application;

[0013] Figure 6 is a schematic diagram of a non-contact LED detection system of a server according to an embodiment of the present application;

[0014] Figure 7 is a schematic diagram of a flow of testing a state indicator light by a non-contact LED detection system according to an embodiment of the present application;

[0015] Figure 8is a structural block diagram of a test device of a status indicator light of a server according to an embodiment of the present application. DETAILED DESCRIPTION

[0016] The technical solutions in the embodiments of the present application will be clearly and completely described in connection with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0017] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. The terms "first", "second" and the like in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0018] In order for those skilled in the art to better understand the technical solutions of the present application, the present application will be further described in detail below in connection with the drawings and specific embodiments.

[0019] In combination with the specific application environment architecture or specific hardware architecture on which the execution of the test method of the status indicator light of the server depends, the specific application environment architecture or specific hardware architecture is described herein.

[0020] The method embodiments provided in the embodiments of the present application can be executed in a server device or similar computing device. Taking the execution on the server device as an example, Figure 1 is a hardware structural block diagram of the test method of the status indicator light of the server according to the embodiments of the present application. As shown in Figure 1 , the server device can include one or more (only one is shown in Figure 1 ) processor 102 (the processor 102 can include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device can further include a transmission device 106 for communication function and an input and output device 108. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the above-mentioned server device. For example, the server device can further include more or less components than those shown in Figure 1 , or have a different configuration from Figure 1 .

[0021] The memory 104 can be used to store computer programs, such as software programs of application software and modules, for example, a computer program corresponding to the method for testing the status indicator light of a server in the embodiments of the present application. The processor 102 performs various functional applications and data processing, i.e., implements the method described above, by running the computer program stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely disposed relative to the processor 102, which can be connected to the server device through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0022] The transmission device 106 is configured to receive or send data via a network. The network can include, for example, a wireless network provided by a communication service provider of the server device. In one example, the transmission device 106 includes a network interface controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module configured to communicate with the Internet in a wireless manner.

[0023] The embodiments of the present application provide a method for testing a status indicator light of a server.

[0024] In the embodiments of the present application, a method for testing a status indicator light of a server is provided, Figure 2 is a flowchart of the method for testing a status indicator light of a server according to the embodiments of the present application, as shown in Figure 2 The method includes the following steps:

[0025] In step S202, a first test result is obtained by testing a lighting state of a target indicator light according to a first running parameter and a second running parameter of the target indicator light to be tested on a target server, wherein the first running parameter is used to indicate a running condition of the target indicator light in a running state of the target server, the second running parameter is used to indicate an expected running condition of the target indicator light in the running state of the target server, and the lighting state is used to indicate whether the target indicator light is lit and an abnormal condition of a running parameter of the target indicator light in the case that the target indicator light is lit.

[0026] In step S204, a use state of the target indicator light is tested according to the first test result and an in-place state of a target server component corresponding to the target indicator light, to obtain a second test result, wherein the in-place state is used to indicate whether the target server component is in place, and the use state is used to indicate whether the target indicator light is used on the target server;

[0027] In step S206, the target indicator light is controlled to perform an operation state test according to the second test result, to obtain a third test result, wherein the third test result is used to indicate whether the target indicator light is allowed to be lighted up;

[0028] In step S208, a test result of the target indicator light is determined according to the first test result, the second test result and the third test result.

[0029] Through the above steps, the light-up state of the target indicator light is tested according to the first running parameter and the second running parameter of the target indicator light to be tested on the target server, to obtain the first test result, the use state of the target indicator light is tested according to the first test result and the in-place state of the target server component corresponding to the target indicator light, to obtain the second test result, the target indicator light is controlled to perform the operation state test according to the second test result, to obtain the third test result, and the test result of the target indicator light is determined according to the first test result, the second test result and the third test result. The test result determined in this way takes into account the influence of the factor of whether the server component is in place, can reduce false positives, and through the progression of multiple rounds of testing, can also give a more accurate test result. Therefore, the technical problem of poor test effect of the state indicator light in the related art can be solved, and the technical effect of improving the test effect of the state indicator light is achieved.

[0030] In the embodiment provided in step S202, the target indicator light can be but is not limited to any one of the state indicator lights on the target server.

[0031] Optionally, in this embodiment, the target server can be but is not limited to a server that has performed a component self-test, that is, before the target server is tested for the state indicator light, the target server has passed the server component self-test, and the server components on the target server are all in a healthy running state. Specifically, for a hard disk, the bandwidth, rate and smart (Self-Monitoring, Analysis and Reporting Technology) health log should meet the design requirements of the model, and for a PCIE (Peripheral Component Interconnect Express) device, the device should meet the theoretical design requirements of the device on the model.

[0032] Optionally, in the embodiment, the running state of the target server can be, but is not limited to, a normal running state of the target server, which can be, but is not limited to, a state in which no server component of each target server has failed.

[0033] Optionally, in the embodiment, the first running parameter can be, but is not limited to, an indication of the running state of the target indicator in the normal running state of the target server. The second running parameter can be, but is not limited to, an indication of the expected running state of the target indicator in the normal running state of the target server. The first running parameter can be, but is not limited to, a real-time collected running state of the target indicator, and the second running parameter can be, but is not limited to, an expected running state of the target indicator in the normal running state of the target server recorded in a standard document.

[0034] Optionally, in the embodiment, the first running parameter can include, but is not limited to, a color parameter for indicating a color, a frequency parameter for indicating a light emitting frequency, and a light intensity parameter for indicating a light emitting intensity, and the like.

[0035] Optionally, in the embodiment, the second running parameter can also include, but is not limited to, a color parameter for indicating a color and a frequency parameter for indicating a light emitting frequency, and the like.

[0036] Optionally, in the embodiment, the running parameter can be, but is not limited to, a control signal for indicating how to control the target indicator to emit light.

[0037] Optionally, in the embodiment, the testing of the lighting state of the target indicator according to the first running parameter and the second running parameter can be, but is not limited to, first testing whether the light intensity parameter included in the first running parameter meets the requirement of a light intensity threshold value; in the case that the requirement of the light intensity threshold value is not met, determining that the first test result indicates that the target indicator is not lit; in the case that the requirement of the light intensity threshold value is met, detecting a color similarity between the color parameter included in the first running parameter and the color parameter included in the second running parameter; in the case that the color similarity is greater than or equal to a color similarity threshold value, determining that the first test result indicates that the target indicator is lit and that the running parameter of the target indicator is normal in the case that the target indicator is lit; and in the case that the color similarity is less than the color similarity threshold value, determining that the first test result indicates that the target indicator is lit and that the running parameter of the target indicator is abnormal in the case that the target indicator is lit.

[0038] As an optional implementation, the lighting state of the target indicator light can be tested according to the first operating parameter and the second operating parameter of the target indicator light to be tested on the target server to obtain a first test result, which can but is not limited to the following manner: detecting a second similarity between a first color parameter and a second color parameter and a third similarity between a first frequency parameter and a second frequency parameter, wherein the first color parameter is used to indicate the color of the target indicator light of the target server in the running state, the second color parameter is used to indicate the expected color of the target indicator light of the target server in the running state, the first frequency parameter is used to indicate the light emitting frequency of the target indicator light of the target server in the running state, and the second frequency parameter is used to indicate the expected light emitting frequency of the target indicator light of the target server in the running state, the first operating parameter includes the first color parameter, the first frequency parameter, and a light intensity parameter, the second operating parameter includes the second color parameter and the second frequency parameter, and the light intensity parameter is used to indicate the light emitting intensity of the target indicator light of the target server in the running state; in the case that the second similarity is greater than or equal to a second threshold value and the third similarity is greater than or equal to a third threshold value, it is determined that the first test result is used to indicate that the target indicator light is lit and the operating parameter of the target indicator light is normal; in the case that the second similarity is less than the second threshold value or the third similarity is less than the third threshold value, and the light intensity parameter is greater than or equal to a fourth threshold value, it is determined that the first test result is used to indicate that the target indicator light is lit and the operating parameter of the target indicator light is abnormal; in the case that the second similarity is less than the second threshold value or the third similarity is less than the third threshold value, and the light intensity parameter is less than the fourth threshold value, it is determined that the first test result is used to indicate that the target indicator light is not lit.

[0039] Optionally, in the embodiment, the first color parameter can but is not limited to be used to indicate the color of the light emitted by the target indicator light of the target server in the running state, and the second color parameter can but is not limited to be used to indicate the color of the light expected to be emitted by the target indicator light of the target server in the running state.

[0040] Through the above steps, through the combination of the similarities of the color, the frequency, and the light intensity parameter, compared with the recognition of the artificial naked eye, the first test result can be more accurately judged, which provides a basis for giving a more accurate test result of the target indicator light.

[0041] Optionally, in the embodiment, the second threshold value can be but is not limited to equal to the third threshold value, or can be but is not limited to not equal to the third threshold value. For example, when the change of the color of the status indicator light can better reflect the change of the running condition of the server component corresponding to the status indicator light than the change of the frequency, the second threshold value is set to be greater than the third threshold value; when the change of the frequency of the status indicator light can better reflect the change of the running condition of the server component corresponding to the status indicator light than the change of the color, the second threshold value is set to be less than the third threshold value, and the like. Specifically, if for a specific server component, the color change of the status indicator light can more directly and accurately reflect the running state or failure, the second threshold value (the similarity threshold value of the color parameter) is set to be higher than the third threshold value (the similarity threshold value of the frequency parameter). This means that the accurate matching of the color becomes a more critical standard for judging whether the status indicator light is normal, and the matching standard of the frequency is relatively loose. Such setting helps to more accurately capture the color change and improve the accuracy of failure detection. Conversely, if the frequency change is more critical for failure diagnosis, the second threshold value is set to be lower than the third threshold value, so that the matching standard of the frequency parameter is more strict, and the matching standard of the color parameter is relatively loose. In this case, even if the color parameter has a slight deviation, as long as the frequency parameter meets the expectation, the test result can still be considered normal, and vice versa, which can trigger a failure warning. Different server components or different application scenarios can have different sensitivities to color and frequency, and the above-mentioned dynamic adjustment of the threshold value can make the test method adapt to more diversified scenarios and improve the overall flexibility and applicability.

[0042] Optionally, in the embodiment, the fourth threshold value can be but is not limited to the aforementioned light intensity threshold value.

[0043] Through the above steps, it is first judged whether the second similarity is greater than or equal to the second threshold value and whether the third similarity is greater than or equal to the third threshold value, that is, it is first judged whether the target indicator light can pass the test directly, which avoids additional judgment and operation on the target indicator light that can pass the test directly, and can improve the test efficiency of the status indicator light.

[0044] In the embodiment provided in step S204, the in-place state can be but is not limited to used for indicating whether the target server component is in place. For example, in the case of the status indicator light being a memory indicator light, the target server component can be but is not limited to a memory stick, and the in-place state can be but is not limited to used for indicating whether the memory stick is inserted into the memory slot.

[0045] Optionally, in the embodiment, it can be but is not limited to judged whether the status indicator light is put into use by judging whether the server component corresponding to the status indicator light is in place, so as to avoid operation and false test on the status indicator light that is not put into use.

[0046] As an optional implementation, the use state of the target indicator light can be tested according to the first test result and the in-place state of the target server component corresponding to the target indicator light to obtain a second test result, which can but not limited to be implemented in the following way: in the case that the first test result indicates that the target indicator light is not lit, the target server component corresponding to the target indicator light is searched from the state indicator light and the server component having the corresponding relationship; the in-place information of the target server component is obtained from the controller of the target server, wherein the in-place information is used to indicate whether the target server component is installed in the target position of the target server; in the case that the in-place information indicates that the target server component is installed in the target position, it is determined that the second test result indicates that the target indicator light is used on the target server; in the case that the in-place information indicates that the target server component is not installed in the target position, it is determined that the second test result indicates that the target indicator light is not used on the target server.

[0047] Optionally, in the embodiment, first, after the first test result indicates that the target indicator light is not lit, the server component associated with the indicator light can be searched based on the known corresponding relationship between the indicator light and the server component. Then, the in-place information of the component can be obtained from the controller of the server to confirm whether the component is actually installed in the specified position of the server. The controller herein can but not limited to refer to the management controller located inside the server, such as the BMC (Baseboard Management Controller). Finally, according to the in-place information of the component, it can be determined whether the target indicator light is being used. If the component is in place but the indicator light is not lit, it can be that the indicator light is faulty or there is other problem; on the contrary, if the component is not in place, then the indicator light is not lit is normal because there is no corresponding component to require it to represent the state.

[0048] Through the above steps, by combining the lighting state of the indicator light and the in-place information of the component, the detection of the state indicator light can be realized from a more comprehensive perspective. For example, when the indicator light is not lit, it is first confirmed whether the associated component is in place, which can exclude false positives caused by the component not being installed, and ensure the accuracy of the state indicator light test.

[0049] In the embodiment provided in step S206, the operation state test can but not limited to be used to test whether the target indicator light is allowed to be lit, or can also be referred to as testing whether the target indicator light has physical failure such as filament burnout and the like.

[0050] Optionally, in the embodiment, according to the second test result, the operation state test performed by the control target indicator light can but not limited to include: connecting an independent, programmable signal source (such as a function generator) to the drive circuit of the target indicator light, bypassing the built-in controller of the server. The analog signal source sends a signal to the target indicator light according to the preset test signal format, trying to drive it to light up. The response state of the target indicator light after receiving the test signal is collected using a photoelectric sensor, including color, brightness, frequency, etc. The actual response is compared with the expected response generated by the preset test signal. If they are consistent, it means that the state indicator light is allowed to be lit up; if they are not consistent, it means that the state indicator light is not allowed to be lit up.

[0051] As an optional implementation, the operation state test performed by the control target indicator light according to the second test result to obtain the third test result can but not limited to be realized by the following way: in the case that the second test result is used to indicate that the target indicator light is used on the target server, the controller of the target server is controlled to send a light-up instruction to the target indicator light, wherein the light-up instruction is used to light up the target indicator light; a return instruction sent by the controller is received, wherein the return instruction is used to indicate whether the controller successfully sends the light-up instruction to the target indicator light; in the case that the received return instruction is used to indicate that the controller successfully sends the light-up instruction to the target indicator light, a third running parameter of the target indicator light is collected, wherein the third running parameter is used to indicate the running condition of the target indicator light after receiving the light-up instruction; a first similarity between the third running parameter and a fourth running parameter is detected, wherein the fourth running parameter is used to indicate the expected running condition of the target indicator light under the control of the light-up instruction; in the case that the first similarity is greater than or equal to a first threshold value, it is determined that the third test result is used to indicate that the target indicator light is allowed to be lit up; in the case that the first similarity is less than the first threshold value, it is determined that the third test result is used to indicate that the target indicator light is not allowed to be lit up.

[0052] Optionally, in the embodiment, in the case that the second test result is used to indicate that the target indicator light is used on the target server, it means that the current target indicator light is used but not lit up, which can but not limited to be further analyzed for the reason why this situation occurs.

[0053] Optionally, in the embodiment, a lighting instruction can be sent to the target indicator light through the controller (such as BMC) of the target server first. This step can activate the indicator light using another control channel to bypass the in-band control, to observe whether it can respond normally and enter the expected lighting state. Then wait for the return instruction of the controller to confirm whether the controller successfully sends the lighting instruction to the target indicator light, to ensure that the test instruction is executed correctly, and to avoid misjudgment caused by network failure or controller itself problem. Once it is confirmed that the controller successfully sends the lighting instruction, the third operating parameter of the indicator light can be collected to evaluate the actual operating state of the target indicator light after being controlled. The collected third operating parameter is compared with the fourth preset operating parameter (i.e. the ideal operating state of the indicator light under the control instruction), and the similarity between the two is calculated. According to the comparison between the first similarity and the first threshold value, if the similarity meets the threshold value requirement of the first threshold value (i.e. the first similarity ≥ the first threshold value), it is determined that the target indicator light is allowed to be lit; otherwise, if the similarity is lower than the first threshold value, it is determined that the indicator light is not allowed to be lit.

[0054] Optionally, in the embodiment, the design of the first threshold value can not be limited by other threshold values (such as the second threshold value and the third threshold value), and can be set the same as or different from other threshold values.

[0055] Optionally, in the embodiment, the third operating parameter can be determined as a color parameter, a frequency parameter, a light intensity parameter, or a combination of the three, according to the design of the target indicator light on the target server. In the case where the return instruction is received to indicate that the controller successfully sends the lighting instruction to the target indicator light, the importance level of the target server component corresponding to the target indicator light on the target server can be detected to obtain the target importance level of the target server component before collecting the third operating parameter of the target indicator light, where the importance level is used to indicate the importance of the target server component on the target server. In the case where the target importance level belongs to the third level, the test light intensity parameter is determined as the third operating parameter, and the standard light intensity parameter is determined as the fourth operating parameter, where the test light intensity parameter is used to indicate the light intensity of the target indicator light after receiving the lighting instruction, the standard light intensity parameter is used to indicate the expected light intensity of the target indicator light under the control of the lighting instruction, and the importance level includes the third level. In the case where the target importance level belongs to the second level, the test frequency parameter and the test light intensity parameter are both determined as the third operating parameter, and the standard frequency parameter and the standard light intensity parameter are both determined as the fourth operating parameter, where the test frequency parameter is used to indicate the light frequency of the target indicator light after receiving the lighting instruction, the standard light intensity parameter is used to indicate the expected light frequency of the target indicator light under the control of the lighting instruction, the importance level further includes the second level, and the importance of the second level is higher than that of the third level. In the case where the target importance level belongs to the first level, the test frequency parameter, the test light intensity parameter, and the test color parameter are all determined as the third operating parameter, and the standard frequency parameter, the standard light intensity parameter, and the test color parameter are all determined as the fourth operating parameter, where the test color parameter is used to indicate the color of the target indicator light after receiving the lighting instruction, the standard color parameter is used to indicate the expected color of the target indicator light under the control of the lighting instruction, the importance level further includes the first level, and the importance of the first level is higher than that of the second level. Through the above steps, for components with lower importance (third level), such as auxiliary fans or secondary interfaces, the test mainly focuses on the light intensity parameter to ensure the basic lighting function is normal, and the accuracy requirements for color and frequency are relatively low, which can effectively reduce the test time and resource consumption. For components with medium importance (second level), such as storage hard drives or network interface cards, the test pays attention to both the frequency parameter and the light intensity parameter, because the running status of these components often needs to be conveyed more accurately through the flashing frequency and brightness of the indicator light to respond to performance fluctuations or fault warnings in time. For components with high importance (first level), such as CPUs (Central Processing Unit) or memory modules, the test comprehensively covers the color parameter, the frequency parameter, and the light intensity parameter to ensure that the indicator lights of these key components can accurately reflect their running status and health condition, and any slight deviation may indicate a major problem, so the test standard is more stringent.The test strategy based on the importance level of the components not only improves the detection efficiency, but also ensures the deep monitoring of the key components by reasonably allocating test resources, and reduces the complexity of the test of non-key components, avoiding unnecessary over-testing.

[0056] Optionally, in the embodiment, when the third operating parameter includes multiple parameters, the similarity between each parameter and the corresponding fourth operating parameter can be calculated to obtain multiple similarities, and then the average of the multiple similarities can be calculated to obtain the first similarity. For example, when the third operating parameter includes a frequency parameter and a light intensity parameter, the frequency similarity between the frequency parameter in the third operating parameter and the frequency parameter in the fourth operating parameter can be calculated, and then the light intensity similarity between the light intensity parameter in the third operating parameter and the light intensity parameter in the fourth operating parameter can be calculated, and then the average of the frequency similarity and the light intensity similarity can be calculated to obtain the first similarity. Through the above steps, the multi-parameter average similarity method is used for testing the server indicator light, which can not only comprehensively and accurately evaluate the operating state of the indicator light, but also simplify the decision-making process and improve the test efficiency.

[0057] Optionally, in the embodiment, when interacting with the controller (which can include but is not limited to obtaining the in-place information from the controller and sending the light-on instruction from the controller of the target server to the target indicator light), a secure communication link based on the TLS1.3 transmission protocol (Transport Layer Security Protocol 1.3 version) between the server BMC can be established to replace the traditional clear text or weak encryption IPMI (Intelligent Platform Management Interface) session, and the HMAC (Hash-based Message Authentication Code) can be calculated for all instructions and data transmitted between the server BMC to ensure data security.

[0058] Through the above steps, it can be directly verified whether the lighting function of the target indicator light is normal, i.e., whether the indicator light can correctly enter the lighting state and display the expected color and flashing frequency according to the control instruction, so as to confirm whether its physical layer is working normally.

[0059] In the embodiment provided in step S208, the first test result, the second test result and the third test result can be comprehensively judged to obtain a more accurate and targeted test result of the target indicator light.

[0060] As an optional implementation, the determination of the test result of the target indicator light according to the first test result, the second test result and the third test result can be, but is not limited to, implemented in the following manner: in the case that the first test result indicates that the target indicator light is on and the operating parameter of the target indicator light is normal, it is determined that the test result of the target indicator light is that the target indicator light passes the test; in the case that the first test result indicates that the target indicator light is on and the operating parameter of the target indicator light is abnormal, it is determined that the test result of the target indicator light is that the target indicator light fails the test and there is an abnormality in the control signal of the target indicator light; in the case that the second test result indicates that the target indicator light is not used on the target server, it is determined that the test result of the target indicator light is that the target indicator light passes the test; in the case that the third test result indicates that the target indicator light is not allowed to be on, it is determined that the test result of the target indicator light is that the target indicator light fails the test and there is a fault in the target indicator light; in the case that the third test result indicates that the target indicator light is allowed to be on, it is determined that the test result of the target indicator light is that an auxiliary component of the target server component has a fault, wherein the auxiliary component is configured to provide a component state of the target server component for the target indicator light.

[0061] Optionally, in the embodiment, the control signal of the target indicator light can be, but is not limited to, configured to control the target indicator light to show a corresponding operating condition as the operating state of the target server component changes.

[0062] Optionally, in the embodiment, the auxiliary component of the target server component can be, but is not limited to, an additional device existing in the server to support the normal operation or functional performance of the main components (such as CPU, memory, hard disk). These components, although not directly responsible for core data processing tasks, are essential for the complete functionality and stability of the server. For example, for a network card, its auxiliary components include the network cable connected to the network card.

[0063] Through the above steps, by combining different test results, especially by introducing the analysis of the auxiliary components, the intelligent level and the fault diagnosis efficiency of the server status indicator light test are greatly improved. It not only can accurately identify the faults of the indicator light itself, but also can provide more insightful support for the operation and maintenance of the server through indirect inspection of the auxiliary components, to ensure the reliability and stability of the server operation.

[0064] As an optional implementation, before testing the lighting state of the target indicator light according to the first operating parameter and the second operating parameter of the target indicator light to be tested on the target server, the first operating parameter and the second operating parameter can be acquired in the following manner, but are not limited thereto: the first camera is used to collect a first light signal of the target indicator light in a visible light band, and the second camera is used to collect a second light signal of the target indicator light in a near-infrared band; a reference position of the second light signal on the target server is identified; a light signal at the reference position on the target server is extracted from the first light signal, to obtain a target light signal; a first color parameter, a first frequency parameter and a light intensity parameter are extracted from the target light signal, to obtain the first operating parameter, wherein the first color parameter is used to indicate the light-emitting color of the target indicator light on the target server in the running state, the first frequency parameter is used to indicate the light-emitting frequency of the target indicator light on the target server in the running state, and the light intensity parameter is used to indicate the light-emitting intensity of the target indicator light on the target server in the running state; the third camera is used to capture a target image of the target server; the target server type corresponding to the target image is searched from the server images and the server types having a corresponding relationship, wherein the target server belongs to the target server type; the target parameter set corresponding to the target server type is searched from the server types and the indicator light parameter sets having a corresponding relationship, wherein the target parameter set includes attribute parameters corresponding to each state indicator light on a server belonging to the target server type in the running state; the target attribute parameter corresponding to the target indicator light is searched from the target parameter set, to obtain the second operating parameter, wherein the target attribute parameter is used to indicate the attribute of the light signal emitted by the target indicator light on the server belonging to the target server type in the running state.

[0065] Optionally, in this embodiment, the light signals are collected by cameras in different bands respectively, which can determine the color and the flashing frequency from the perspective of visible light, and at the same time, the blackbody radiation signal generated by the heat of the LED (Light Emitting Diode) chip (i.e., the state indicator light) can be captured in the near-infrared band, which helps to distinguish the active light-emitting (heat of the LED chip) and the passive reflection (ambient light) of the indicator light in a high-reflectivity environment. The reference position of the near-infrared light signal on the target server is identified, and this position information is matched with the positioning of the light signal in the visible light band, to ensure the accuracy of the test data. The color, frequency and light intensity parameters are extracted from the first light signal, which constitute the first operating parameter, for subsequent comparative analysis with the second operating parameter.

[0066] Optionally, in this embodiment, in order to solve the interference of high reflection environment, distinguish between active light emission (state indicator light heating) and passive reflection (environmental light), because environmental reflection only exists in the visible light band (400-700nm), and the state indicator light operating temperature produces characteristic radiation in the near-infrared band, the blackbody radiation heat signal (non-visible light reflection) of the state indicator light can be captured in the near-infrared band, therefore, the color can be identified in the visible light band, and the state indicator light heating point can be detected in the near-infrared band (700-1000nm). At the same time, the near-infrared wave has strong penetration, can penetrate the colored packaging material (such as amber filter cover) on the surface of the state indicator light, and can also identify the actual state of the state indicator light covered by dust / oil stains.

[0067] Optionally, in this embodiment, a polarizing plate can also be installed on the first camera, the second camera and the third camera, and the reflection of the metal shell can be eliminated by using polarization filtering, so that the misjudgment rate of the light signal can be reduced from 8% to 0.4%.

[0068] Optionally, in this embodiment, when using the first camera, the second camera and the third camera, the ambient illuminance value can be collected in real time, and the exposure parameter of the camera can be dynamically adjusted (ΔT=K×ΔL, K is a preset coefficient, ΔL is the ambient illuminance value, and ΔT is the exposure parameter); and the state indicator light effective light spot can be extracted by background difference method to eliminate transient light interference.

[0069] Through the above steps, through double light signal collection and reference position positioning, the attribute parameters of the target indicator light, including color, frequency and light intensity, can be more accurately extracted. This high-precision parameter extraction is crucial for identifying small changes in the indicator light, and helps to timely discover potential changes in the operation of the state indicator light.

[0070] Optionally, in this embodiment, the target image of the target server can be but not limited to the image in each direction of the target server.

[0071] Optionally, in this embodiment, the attribute parameters of each state indicator light of the server of different server types in the running state can be but not limited to maintained, and the attribute parameters here can be but not limited to include color parameters, frequency parameters and light intensity parameters of light, etc.

[0072] Optionally, in this embodiment, the attributes of the light signal can also be but not limited to include color parameters, frequency parameters and light intensity parameters of light, etc.

[0073] Optionally, in the present embodiment, finding the target server type corresponding to the target image from the server image and server type with the corresponding relationship can include, but is not limited to, identifying the server model by using a lightweight YOLOv7-nano (YOLOv7 ultra-light version) model. By using the model to find the target image in multiple server images, the recognition accuracy can be effectively improved, and the size of the model will not be too high.

[0074] Through the above steps, the server type can be quickly and accurately determined by shooting the target image and with the help of advanced image recognition technology, eliminating the uncertainty that may be brought by human recognition, improving the automation and intelligent level of server type recognition, and thus speeding up the entire test process.

[0075] In summary, through the above steps, the light signal attribute parameters of the target indicator light are captured in real time by the first camera and the second camera, ensuring real-time and accurate monitoring of the current state of the indicator light. The target attribute parameters of the target server type under the specified operating state are obtained and stored as the expected benchmark for subsequent comparison with the actual test results. The establishment of this standard benchmark provides a clear reference point for difference detection. The above steps make it possible to achieve efficient and accurate testing of the status indicator light.

[0076] As an optional implementation, after finding the target server type corresponding to the target image from the corresponding server images and server types, the corresponding server images and server types, as well as the corresponding server types and indicator light parameter sets, can be updated in the following ways, but are not limited to: If no target server type corresponding to the target image is found, the location box set is set onto the target plane of the target server on the augmented reality device using the augmented reality device; the location boxes in the location box set are set onto the positions of the various status indicator lights of the target server on the target plane using the augmented reality device, obtaining candidate indicator light positions for each status indicator light; the status indicator lights of the target server are controlled to be lit one by one, and the position of the light spot on the target plane when each status indicator light is lit is detected, obtaining the parameter values ​​for each status indicator light. The system analyzes the positions of various status indicator lights. It adjusts the candidate indicator light positions based on the reference indicator light positions to obtain the target indicator light positions for each status indicator light. It identifies the target design file where the positions of each status indicator light on the server are located relative to the target indicator light positions from multiple design files. This design file is used to indicate the server's design scheme. It extracts the attribute parameters corresponding to each status indicator light from the target design file to obtain a set of reference parameters. It records the target server type and reference parameter set of the corresponding target server, and also records the target image and target server type. Finally, it adds the corresponding target server type and reference parameter set to the corresponding server type and indicator light parameter set, and adds the corresponding target image and target server type to the corresponding server image and server type.

[0077] Optionally, in this embodiment, if the target server type cannot be identified based on the image, an AR (Augmented Reality) device can be used to project a set of location frames (i.e., virtual frames) onto the actual physical location of the target server to mark the positions of the status indicator lights on the server. These frames can be, but are not limited to, placed on the plane of the target server, corresponding to the server's status indicator lights. Each location frame can be placed near the actual position of the corresponding status indicator light using an AR device to determine a candidate position for each LED indicator light. To calibrate the accuracy of the candidate positions, the status indicator lights on the target server can be controlled to light up one by one, while an image acquisition device is used to capture the positions of the light spots generated when the lights are lit. These light spot positions are considered as reference positions for the status indicator lights. Using the obtained reference positions, the previously set candidate positions are corrected to obtain the precise position of each status indicator light, i.e., the target indicator light position.

[0078] Optionally, in this embodiment,Figure 3 This is a schematic diagram of a dynamic calibration method based on an AR device according to an embodiment of this application. Figure 3 As shown, in the event that the server model recognition fails, a virtual positioning frame can be projected onto the server panel using AR glasses; the frame position can be adjusted by gestures (using IMU (Inertial Measurement Unit) + 6DoF (Six Degrees of Freedom) technology, but not limited to); IPMI commands can be sent to sequentially light up LEDs and calibrate coordinates; and the physical layout mapping table can be stored in the blockchain (to prevent tampering).

[0079] Optionally, in this embodiment, after obtaining the accurate location of the status indicator light, a server design scheme matching the currently acquired target indicator light location can be identified from multiple stored design files, but not limited to this one. This helps in understanding the server's structure and the design intent of the LED indicator lights. Once the corresponding design scheme is identified, the attribute parameters of each status indicator light, such as color, flashing frequency, and function, are extracted from the design file to form a reference parameter set. The newly identified server type and its attribute parameters are then recorded and updated to the internal database for future rapid identification and detection. Simultaneously, the correspondence between the target image and the target server type is also recorded to expand the identification range.

[0080] Optionally, in this embodiment, the design documents may refer to, but are not limited to, documents or datasets that describe the server hardware design in detail. The design documents may include, but are not limited to, the layout of various server components, electrical characteristics, design details, etc. In this application, the design documents pay particular attention to the layout and attribute parameters of the status indicator lights, such as their position, color, and function. The design documents may come from the server manufacturer or design team, providing necessary reference for dynamic calibration and status indicator light testing.

[0081] By following the steps above, we can dynamically adapt to new server types, even those we have never encountered before. On-site calibration using AR devices, combined with corrections based on the actual illuminated status indicator lights on the server, ensures the accuracy of the indicator light positions and attributes.

[0082] As an optional implementation, after testing the lighting state of the target indicator light according to the first operating parameter and the second operating parameter of the target indicator light to be tested on the target server, and obtaining the first test result, the target indicator light can be further managed in the following manner, but is not limited thereto: in the case where the first test result indicates that the target indicator light is lit and the operating parameters of the target indicator light are normal, the controller of the target server sends a switching instruction to the target indicator light, wherein the switching instruction is used to instruct to switch the light-emitting color of the target indicator light; the target time difference between the parameter switching time and the instruction issuing time of the switching instruction is detected, wherein the parameter switching time is the time when the change in the operating condition of the target indicator light is detected; in the case where the target time difference is greater than or equal to the time difference threshold, it is determined that the target fault of the target indicator light is detected, wherein the target fault is used to indicate that the indicator light power supply of the target indicator light is unstable, and the indicator light power supply is used to supply power to the target indicator light.

[0083] Optionally, in the embodiment, Figure 4 FIG. 1 is a schematic diagram of a three-level abnormality diagnosis mechanism of a target indicator light after testing according to an embodiment of the present application. When the LED light is switched, the LED signal information such as color information and frequency information can be compared with the IPMI instruction to determine whether the delay is large. When the delay is large, it is possible that the power supply fluctuates (i.e., the aforementioned unstable indicator light power supply). In addition, when the IPMI information is normal, the component in-place information is normal, and the component such as the hard disk LED is abnormal, it is inferred that there is a hard disk fault.

[0084] Through the above steps, the color of the state indicator light is actively controlled to switch, and the response time of the color change is accurately measured, so that the power supply abnormality of the state indicator light, such as unstable voltage, current fluctuation or power supply line problem, can be found in time. The state indicator light flickers or the color changes abnormally due to the power supply state abnormality, and the accurate transmission of the state of the server components is ensured.

[0085] As an optional implementation, after testing the lighting state of the target indicator light according to the first operating parameter and the second operating parameter of the target indicator light to be tested on the target server, and obtaining the first test result, the future failure of the target indicator light prediction server component can be predicted by the following method, but is not limited to: in the case that the first test result indicates that the target indicator light is lit and the operating parameters of the target indicator light are normal, the target knowledge graph of the target server is constructed under the condition that the target server is running, wherein the target knowledge graph includes nodes connected by edges and node states in which the nodes are located, the nodes include: server components in the target server and state indicator lights in the target server, the edges are used to represent the connection relationship between the connected nodes, and the node states are used to indicate the running condition of the nodes on the target server; the first input parameter and the second input parameter are extracted from the target knowledge graph, wherein the first input parameter is used to represent the edge, and the second input parameter is used to represent the node state; the first input parameter and the second input parameter are input into the target convolution layer to obtain a target convolution vector; the target convolution vector is input into the first detection model to obtain target failure information, wherein the target failure information is used to predict the failure occurring in the running process of the target server, the first detection model is obtained by training a first initial detection model using convolution vector samples labeled with failure information labels, the second detection model includes the target convolution layer and a target output layer, and the second detection model is obtained by training a second initial detection model using first input samples and second input samples labeled with failure information labels, the first input samples are used to represent edge samples in the knowledge graph sample, the second input samples are used to represent node state samples in the knowledge graph sample, the knowledge graph sample is constructed under the condition that a sample server is running, the convolution vector sample is obtained by inputting the first input sample and the second input sample into the target convolution layer, and the failure information label is used to indicate the failure occurring in the running process of the sample server.

[0086] Optionally, in the present embodiment, as shown in Figure 4 , the decision tree can be generated by a deep learning algorithm GCN (Graph Convolutional Network) to associate the component health information and the LED light information, and establish a corresponding failure model, such as a hard disk red flash, which can be combined with the established SSD (Solid State Drive) life model to provide a 72-hour early warning.

[0087] More specifically, Figure 5 is a schematic diagram of a specific use process of an algorithm in a failure matching mode according to an embodiment of the present application. As shown in Figure 5 , the specific use process of the algorithm in the failure mode matching can include the following steps, but is not limited to:

[0088] Step S1: Construct a knowledge graph:

[0089] Nodes: Include various components of the server (such as CPU, memory, hard disk, power supply, etc.) and status indicator lights (health status lights, hard disk activity lights, etc.). Each node has characteristics such as component health indicators (such as smart attributes of hard disks, temperatures of CPUs, etc.) and LED states (colors, frequencies, etc.).

[0090] Edges: Represent the association between components and components, and between components and status indicator lights. For example, there is an edge between the hard disk node and the hard disk activity light node, indicating their association.

[0091] Step S2: Define node characteristics and edge relationships:

[0092] Node characteristics: For component nodes, characteristics can include their current health status indicators (numerical or categorical); for status indicator light nodes, characteristics can include their current color, frequency, etc.

[0093] Edge relationships: Can be represented by an adjacency matrix, and the weight of the edge can represent the strength of the connection (e.g., set according to physical connection or logical association).

[0094] Step S3: Train the GCN model (i.e., the aforementioned second detection model):

[0095] Input of GCN model: Adjacency matrix of knowledge graph (i.e., the aforementioned first input parameter) and node feature matrix (i.e., the aforementioned second input parameter).

[0096] Output of GCN model: Label of each node (e.g., normal, warning, failure) or label of the entire graph (e.g., health status of the server).

[0097] Training data of GCN model: Requires historical data, including component status, status indicator light status (i.e., the aforementioned first input sample), association between components and indicator lights (i.e., the aforementioned second input sample), and finally confirmed failure cause (i.e., the aforementioned failure information label).

[0098] Step S4: Generate a decision tree (i.e., the aforementioned first detection model):

[0099] Since GCN is a black box model, a decision tree model can be trained using the node embeddings (feature representations) learned by GCN, thereby generating interpretable rules.

[0100] Specifically, the node embeddings (i.e., the aforementioned target convolution vectors) of the intermediate layers of GCN (i.e., the aforementioned target convolution layers) can be used as features and input into the decision tree model for training, and the goal of the decision tree is to predict the failure type.

[0101] Step S5: Fault mode matching and early warning:

[0102] When new data (i.e. the current moment component state and state indicator light state) comes, it can be but not limited to constructed into a knowledge graph, input into the trained GCN model to get node embedding, and then use the decision tree model for fault classification.

[0103] If the decision tree model outputs a certain fault warning (such as hard disk failure), it can be but not limited to combined with the prediction results of another fault prediction model (such as the SSD life model) to trigger the warning together.

[0104] Through the above steps, the knowledge graph can intuitively reflect the structure of the internal hardware of the server and the state of the indicator light, facilitating multi-level and multi-angle analysis and improving the accuracy and comprehensiveness of fault judgment. By predicting potential fault information through the trained detection model, early warning can be provided before the fault actually occurs, which helps the operation and maintenance personnel to take preventive measures and reduce unplanned downtime and maintenance costs. Through learning a large number of historical fault data and the correlation of indicator light state changes, the model can automatically identify complex fault patterns and achieve higher accuracy in predicting specific fault types. Based on the deep learning model for fault prediction, the operation and maintenance personnel are provided with data-driven decision-making basis, which can more scientifically and reasonably arrange maintenance plans, avoid over-maintenance or insufficient maintenance, and optimize resource allocation.

[0105] As an optional implementation, the application also provides a server non-contact LED detection system, Figure 6 is a schematic diagram of a server non-contact LED detection system according to an embodiment of the application. As Figure 6 shown, the non-contact LED detection system can be but not limited to mainly composed of a visual detection module, an IPMI interface module, a storage module, and an output module, the storage module and the visual detection module, the output module are connected through electricity, and the storage module and the IPMI interface module are connected through a communication network. The visual detection module can be but not limited to including a multispectral imaging unit (400-1000nm waveband) (including a near-infrared sensor (i.e. the second camera mentioned above) and a visible light camera (i.e. the first camera mentioned above)), a polarization filter, and an embedded FPGA preprocessing unit.

[0106] The IPMI interface module can but not limited to include integrated TLS 1.3 encrypted channel, also utilizing HMAC-SHA256 (Hash-based Message Authentication Code with SHA-256) data signing technology. The TLS 1.3 encrypted channel is to establish a secure communication link based on the TLS 1.3 transmission protocol between the IPMI module and the server BMC (i.e. the aforementioned controller), replacing the traditional plaintext or weak encryption IPMI session. The HMAC-SHA256 data signing is to calculate the HMAC (Hash-based Message Authentication Code) for all key instructions and response data transmitted through IPMI. Through the above operations, it can prevent replay attacks (attackers record a normal LED state response once, and replay the data packet to deceive the detection system at system failure), use different temporary keys for each session using the TLS 1.3 protocol, and the HMAC can add a timestamp or sequence number to make the replayed data packet invalid in the machine failure state, avoid deceiving the system, and cause the detection system to misjudge. It can also avoid malicious software or attackers tampering with the LED state returned by the BMC, and the HMAC signature ensures that any tampering with the data will be immediately discovered, because the attacker cannot generate a correct signature. And in the active verification process, the control BMC sends the LED control instruction, and the secure channel ensures that the instruction indeed comes from the authorized system, and the BMC cannot deny receiving the instruction. Through the above operations, the IPMI interface module is upgraded from a simple state query interface to a trusted execution and verification channel, providing a secure foundation for subsequent active verification and consistency checking.

[0107] The storage module can be, but is not limited to, applied to a hierarchical edge computing architecture (a front-end FPGA (Field-Programmable Gate Array) real-time FFT (Fast Fourier Transform) and a back-end GPU (Graphics Processing Unit) running a deep learning model (i.e., the first detection model and the second detection model described above)). The front-end FPGA real-time FFT: that is, deploying an FPGA chip at the data interface of the camera (i.e., the first camera device), which is specially responsible for frequency domain analysis. By using hardware parallelism, the frequency domain analysis delay is reduced to within 10 ms (millisecond), ensuring that fast flashing signals above 4 Hz (Hertz) can be accurately captured. The back-end GPU running the deep learning model: that is, the corresponding relationship between the historical LED state change pattern and the real fault record, based on the deep learning model, the component failure probability (in a certain period of time in the future) is obtained. Through the above design, the real-time bottleneck can be solved, predictive maintenance can be realized, and the cloud transmission burden can be reduced. The FPGA only uploads feature data to the GPU / cloud when an anomaly is detected or prediction is needed, which can reduce the transmission of raw video data. The output module can be, but is not limited to, supporting AR glasses three-dimensional positioning and hierarchical warning (normal / early warning / severe) based on the MQTT (Message Queuing Telemetry Transport) protocol.

[0108] Optionally, in the present embodiment, Figure 7 is a schematic diagram of a flow of testing a status indicator light by a non-contact LED detection system according to an embodiment of the present application. As shown in Figure 7As shown, the visual detection module can but not limited to store the actual collected server LED state information, including the position, number, color, frequency information of the LED to the storage module, and these information is collectively referred to as visual information (i.e. the first operating parameter mentioned above); the IPMI interface module can but not limited to obtain the health state information of the server and components (including bandwidth, rate and smart health log information, etc.), the number information of the components, the in-place information, the light state information, and store them to the storage module; further, the IPMI information also depends on whether the component supports out-of-band monitoring of the component light, for the supported components, such as hard disk, the light state information obtained by the IPMI interface should be off under normal circumstances, when the hard disk fails, the IPMI can obtain the fault state of the light information is on (obtain the hard disk failure signal), and for some unsupported components, such as network card, the IPMI information cannot obtain the light information of the network card, and only the in-place information can be obtained. The storage module can but not limited to store the existing machine configuration information data, such as BOM (Bill of Materials, Bill of Materials) or configuration table information, which can but not limited to include the model of the machine, the component type and number information; this configuration information data can be passed by the upstream link or actively maintained before the detection system is started; based on the component position specification required by the machine type, a physical mapping relationship is formed, and through the physical mapping relationship, the LED standard state data of the machine type can be obtained to form an LED standard database (i.e. the second operating parameter mentioned above), which can but not limited to include the standard position, number, color, frequency information of the LED of the machine and components under the current configuration of the machine type; if there is no existing configuration information data, AR dynamic calibration is needed to obtain the LED standard data. The storage module can but not limited to first self-check the health state information of the components, if the health state of the components meets the standard, further LED information comparison is performed; if the health state of the components does not meet the standard, it is directly prompted that the components may have faults, and it is not necessary to further detect the LED information of the components.The storage module compares and analyzes the visual information and the LED standard database information, judges whether they are consistent, and transmits the comparison and analysis result to the output module; if the visual information is consistent with the LED standard database information, the output is that the LED state is normal; if the visual information is inconsistent with the LED standard database information, it is necessary to judge whether the light information (color, frequency) is inconsistent with the LED standard database information or the LED lamp is directly not bright, if the LED is bright but the light information is inconsistent with the LED standard database information, it is output that the LED abnormal light information is wrong (that is, the control signal of the target indicator light is abnormal), if the LED lamp is directly not bright, it is necessary to judge whether the component is normal in place through the IPMI information, if the component is in place, the active verification protocol is called to detect the light information of the corresponding component (such as hard disk can be lighted through IPMI command, such as network card can be lighted through SSH (Secure Shell, Secure Shell) command) (that is, the execution operation state of the foregoing is tested), when the active verification protocol does not pass, it is judged that the LED physical fault is output, if the active verification protocol passes, it can be judged that the component auxiliary component fault (such as the network card component is connected with a network cable, under normal circumstances, the connection state and the rate state LED will be normally lighted, in the case that the LED lamp is directly not bright, through the active verification protocol, the network card component is positioned and lighted through SSH, which can be normally lighted, so it can be judged that the network cable connected with the network card may have a fault). The output module can but is not limited to output and display the processing result of the storage module.

[0109] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment.

[0110] The embodiment of the application also provides a test device for a state indicator light of a server, Figure 8 is a structural block diagram of a test device for a state indicator light of a server according to the embodiment of the application, as Figure 8 shown, the device comprises:

[0111] The first test module 802 is configured to test the lighting state of the target indicator light according to the first running parameter and the second running parameter of the target indicator light to be tested on the target server, and obtain a first test result, wherein the first running parameter is used to indicate the running condition of the target indicator light in the running state of the target server, the second running parameter is used to indicate the expected running condition of the target indicator light in the running state of the target server, and the lighting state is used to indicate whether the target indicator light is lighted and the abnormal condition of the running parameter of the target indicator light in the case that the target indicator light is lighted.

[0112] The second test module 804 is configured to test a use state of the target indicator light according to the first test result and an in-place state of a target server component corresponding to the target indicator light, to obtain a second test result, where the in-place state is used to indicate whether the target server component is in place, and the use state is used to indicate whether the target indicator light is used on the target server;

[0113] The first control module 806 is configured to control the target indicator light to perform an operation state test according to the second test result, to obtain a third test result, where the third test result is used to indicate whether the target indicator light is allowed to be lighted up.

[0114] The first determination module 808 is configured to determine a test result of the target indicator light according to the first test result, the second test result, and the third test result.

[0115] According to the above apparatus, the first running parameter and the second running parameter of the target indicator light to be tested on the target server are used to test a light-up state of the target indicator light, to obtain a first test result, the use state of the target indicator light is tested according to the first test result and an in-place state of a target server component corresponding to the target indicator light, to obtain a second test result, the target indicator light is controlled to perform an operation state test according to the second test result, to obtain a third test result, and the test result of the target indicator light is determined according to the first test result, the second test result, and the third test result, so that the test result determined in this way takes into account the influence of the factor of whether the server component is in place, and can reduce false positives, and the progressive multiple rounds of testing can also give a more accurate test result, and therefore, the technical problem of poor test effect of the state indicator light in the related art can be solved, and the technical effect of improving the test effect of the state indicator light is achieved.

[0116] Optionally, the first test module comprises: a first detection unit, configured to detect a first similarity between a first color parameter and a second color parameter and a third similarity between a first frequency parameter and a second frequency parameter, wherein the first color parameter is used to indicate a color of the target indicator light in a running state of the target server, the second color parameter is used to indicate a desired color of the target indicator light in the running state of the target server, the first frequency parameter is used to indicate a light-emitting frequency of the target indicator light in the running state of the target server, the second frequency parameter is used to indicate a desired light-emitting frequency of the target indicator light in the running state of the target server, the first running parameter comprises the first color parameter, the first frequency parameter and a light intensity parameter, the second running parameter comprises the second color parameter and the second frequency parameter, and the light intensity parameter is used to indicate a light-emitting intensity of the target indicator light in the running state of the target server; and a first determination unit, configured to determine that the first test result is used to indicate that the target indicator light is lit and the running parameter of the target indicator light is normal in a case where the first similarity is greater than or equal to a second threshold value and the third similarity is greater than or equal to a third threshold value; determine that the first test result is used to indicate that the target indicator light is lit and the running parameter of the target indicator light is abnormal in a case where the first similarity is less than the second threshold value or the third similarity is less than the third threshold value, and the light intensity parameter is greater than or equal to a fourth threshold value; and determine that the first test result is used to indicate that the target indicator light is not lit in a case where the first similarity is less than the second threshold value or the third similarity is less than the third threshold value, and the light intensity parameter is less than the fourth threshold value.

[0117] Optionally, the second test module comprises: a searching unit, configured to search for a target server component corresponding to the target indicator light from state indicator lights and server components having a corresponding relationship in a case where the first test result is used to indicate that the target indicator light is not lit; an acquiring unit, configured to acquire in-place information of the target server component from a controller of the target server, wherein the in-place information is used to indicate whether the target server component is installed at a target position of the target server; a second determination unit, configured to determine that the second test result is used to indicate that the target indicator light is used on the target server in a case where the in-place information is used to indicate that the target server component is installed at the target position; and a third determination unit, configured to determine that the second test result is used to indicate that the target indicator light is not used on the target server in a case where the in-place information is used to indicate that the target server component is not installed at the target position.

[0118] Optionally, the first control module comprises: a control unit, configured to control a controller of the target server to send a lighting instruction to the target indicator light in a case where the second test result indicates that the target indicator light is used on the target server, wherein the lighting instruction is used to light up the target indicator light; a receiving unit, configured to receive a return instruction sent by the controller, wherein the return instruction is used to indicate whether the controller successfully sends the lighting instruction to the target indicator light; an acquisition unit, configured to acquire a third running parameter of the target indicator light in a case where the received return instruction indicates that the controller successfully sends the lighting instruction to the target indicator light, wherein the third running parameter is used to indicate a running condition of the target indicator light after the target indicator light receives the lighting instruction; a second detection unit, configured to detect a first similarity between the third running parameter and a fourth running parameter, wherein the fourth running parameter is used to indicate an expected running condition of the target indicator light under the control of the lighting instruction; a fourth determination unit, configured to determine that the third test result indicates that the target indicator light is allowed to be lighted up in a case where the first similarity is greater than or equal to a first threshold value; and a fifth determination unit, configured to determine that the third test result indicates that the target indicator light is not allowed to be lighted up in a case where the first similarity is less than the first threshold value.

[0119] Optionally, the first determination module comprises: a seventh determination unit, configured to determine that the test result of the target indicator light is that the target indicator light passes the test in a case where the first test result indicates that the target indicator light is lighted up and a running parameter of the target indicator light is normal; an eighth determination unit, configured to determine that the test result of the target indicator light is that the target indicator light fails the test and a control signal of the target indicator light is abnormal in a case where the first test result indicates that the target indicator light is lighted up and the running parameter of the target indicator light is abnormal; a ninth determination unit, configured to determine that the test result of the target indicator light is that the target indicator light passes the test in a case where the second test result indicates that the target indicator light is not used on the target server; a tenth determination unit, configured to determine that the test result of the target indicator light is that the target indicator light fails the test and the target indicator light has a fault in a case where the third test result indicates that the target indicator light is not allowed to be lighted up; and an eleventh determination unit, configured to determine that the test result of the target indicator light is that an auxiliary component of the target server component has a fault in a case where the third test result indicates that the target indicator light is allowed to be lighted up, wherein the auxiliary component is used to provide a component state of the target server component for the target indicator light.

[0120] Optionally, the foregoing test device further comprises: a collection module, configured to collect a first light signal of the target indicator light in a visible light band through a first camera and collect a second light signal of the target indicator light in a near-infrared band through a second camera; a first identification module, configured to identify a reference position of the second light signal on the target server; a first extraction module, configured to extract a light signal at the reference position on the target server from the first light signal to obtain a target light signal; a second extraction module, configured to extract a first color parameter, a first frequency parameter and a light intensity parameter from the target light signal to obtain the first running parameter, wherein the first color parameter is used to indicate a light-emitting color of the target indicator light of the target server in the running state, the first frequency parameter is used to indicate a light-emitting frequency of the target indicator light of the target server in the running state, and the light intensity parameter is used to indicate a light-emitting intensity of the target indicator light of the target server in the running state; a shooting module, configured to shoot a target image of the target server through a third camera; a first search module, configured to search for a target server type corresponding to the target image from server images and server types having a corresponding relationship, wherein the target server belongs to the target server type; a second search module, configured to search for a target parameter set corresponding to the target server type from server types and indicator light parameter sets having a corresponding relationship, wherein the target parameter set includes attribute parameters corresponding to each state indicator light of a server belonging to the target server type in the running state; and a third search module, configured to search for a target attribute parameter corresponding to the target indicator light from the target parameter set to obtain the second running parameter, wherein the target attribute parameter is used to indicate an attribute of a light signal emitted by the target indicator light of the target server type in the running state.

[0121] Optionally, the foregoing test device further comprises: a first setting module, configured to, after finding the target server type corresponding to the target image from the server images and the server types having the corresponding relationship, set the position frame set to the target server on the target plane on the augmented reality device in the case that the target server type corresponding to the target image is not found; a second setting module, configured to set each position frame in the position frame set to the position of each state indicator light of the target server on the target plane on the augmented reality device to obtain the candidate indicator light position of each state indicator light; a second control module, configured to control each state indicator light of the target server to be lit one by one, and detect the position of the light spot on the target plane in the case that each state indicator light is lit to obtain the reference indicator light position of each state indicator light; an adjustment module, configured to adjust the candidate indicator light position of each state indicator light by the reference indicator light position of each state indicator light to obtain the target indicator light position corresponding to each state indicator light; a second identification module, configured to identify the target design file in which the position of each state indicator light of the server is at the target indicator light position from the plurality of design files, wherein the design file is used to indicate the design scheme of the server; a third extraction module, configured to extract the attribute parameter corresponding to each state indicator light from the target design file to obtain the reference parameter set; a recording module, configured to record the target server type of the target server having the corresponding relationship and the reference parameter set, and record the target image and the target server type having the corresponding relationship; and an adding module, configured to add the target server type and the reference parameter set having the corresponding relationship to the server type and the indicator light parameter set having the corresponding relationship, and add the target image and the target server type having the corresponding relationship to the server image and the server type having the corresponding relationship.

[0122] Optionally, the foregoing test device further comprises: a third control module, configured to, after testing the lighting state of the target indicator light according to the first running parameter and the second running parameter of the target indicator light to be tested on the target server to obtain the first test result, control the controller of the target server to send a switching instruction to the target indicator light in the case that the first test result is used to indicate that the target indicator light is lit and the running parameter of the target indicator light is normal, wherein the switching instruction is used to indicate switching the light-emitting color of the target indicator light; a detection module, configured to detect the target time difference between the parameter switching moment and the instruction sending moment of the switching instruction, wherein the parameter switching moment is the moment when the change of the running condition of the target indicator light is detected; and a second determination module, configured to determine that the target indicator light has the target fault in the case that the target time difference is greater than or equal to the time difference threshold, wherein the target fault is used to indicate that the indicator light power supply of the target indicator light is unstable, and the indicator light power supply is used to supply power to the target indicator light.

[0123] Optionally, the foregoing test device further comprises: a construction module configured to, after obtaining the first test result by testing the lighting state of the target indicator light according to the first operating parameter and the second operating parameter of the target indicator light to be tested on the target server, and in a case where the first test result indicates that the target indicator light is lit and the operating parameter of the target indicator light is normal, construct a target knowledge graph of the target server in a case where the target server is running, wherein the target knowledge graph comprises nodes connected by edges and node states of the nodes, the nodes comprise server components in the target server and state indicator lights in the target server, the edges are used to represent connection relationships between the connected nodes, and the node states are used to indicate operating conditions of the nodes on the target server; a fourth extraction module configured to extract the first input parameter and the second input parameter from the target knowledge graph, wherein the first input parameter is used to represent the edges, and the second input parameter is used to represent the node states; a first input module configured to input the first input parameter and the second input parameter into a target convolution layer to obtain a target convolution vector; and a second input module configured to input the target convolution vector into a first detection model to obtain target fault information, wherein the target fault information is used to predict faults occurring in the target server during operation, the first detection model is obtained by training a first initial detection model using convolution vector samples labeled with fault information labels, the second detection model comprises the target convolution layer and a target output layer, and the second detection model is obtained by training a second initial detection model using first input samples and second input samples labeled with the fault information labels, the first input samples are used to represent edge samples in a knowledge graph sample, the second input samples are used to represent node state samples in the knowledge graph sample, the knowledge graph sample is constructed in a case where a sample server is running, the convolution vector samples are obtained by inputting the first input samples and the second input samples into the target convolution layer, and the fault information labels are used to indicate faults occurring in the sample server during operation.

[0124] The features of the embodiments of the test device for the state indicator light of the server can be referred to the related descriptions of the embodiments of the test method for the state indicator light of the server, which will not be repeated here.

[0125] The embodiments of the test method for the state indicator light of the server also provide an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the foregoing embodiments of the test method for the state indicator light of the server.

[0126] The embodiments of the test method for the state indicator light of the server also provide a computer readable storage medium, which stores a computer program, wherein the computer program is configured to perform the steps in any of the foregoing embodiments of the test method for the state indicator light of the server when running.

[0127] In an example embodiment, the computer readable storage medium described above can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media capable of storing computer programs.

[0128] Embodiments of the present application also provide a computer program product, which comprises a computer program, and the computer program, when executed by a processor, implements the steps in any of the above-mentioned server state indicator light testing method embodiments.

[0129] Embodiments of the present application also provide another computer program product, which comprises a non-volatile computer readable storage medium, and the non-volatile computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps in any of the above-mentioned server state indicator light testing method embodiments.

[0130] The skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in the above description in general terms. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. The skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0131] The above describes in detail the server state indicator light testing method and electronic device provided by the present application. The principles and implementation modes of the present application are described by applying specific examples in this paper, and the above description of the examples is only applicable to help understand the method of the present application and its core idea. It should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A method for testing the status indicator lights of a server, characterized in that, include: The lighting status of the target indicator light is tested based on the first and second operating parameters of the target indicator light to be tested on the target server to obtain a first test result. The first operating parameter is used to indicate the operating status of the target indicator light when the target server is running. The second operating parameter is used to indicate the expected operating status of the target indicator light when the target server is running. The lighting status is used to indicate whether the target indicator light is lit and any abnormalities in the operating parameters of the target indicator light when the target indicator light is lit. Based on the first test result and the in-situ status of the target server component corresponding to the target indicator light, the usage status of the target indicator light is tested to obtain a second test result. The in-situ status is used to indicate whether the target server component is in-situ, and the usage status is used to indicate whether the target indicator light is used on the target server. Based on the second test result, the target indicator light is controlled to perform an operation status test to obtain a third test result, wherein the third test result is used to indicate whether the target indicator light is allowed to be lit. The test results of the target indicator light are determined based on the first test result, the second test result, and the third test result. The step of determining the test result of the target indicator light based on the first test result, the second test result, and the third test result includes: if the first test result indicates that the target indicator light is lit and the operating parameters of the target indicator light are normal, determining that the test result of the target indicator light is that the target indicator light has passed the test; if the first test result indicates that the target indicator light is lit and the operating parameters of the target indicator light are abnormal, determining that the test result of the target indicator light is that the target indicator light has failed the test and the control signal of the target indicator light is abnormal; if the second test result indicates that the target indicator light is not used on the target server, determining that the test result of the target indicator light has passed the test; if the third test result indicates that the target indicator light is not allowed to be lit, determining that the test result of the target indicator light is that the target indicator light has failed the test and the target indicator light is faulty; if the third test result indicates that the target indicator light is allowed to be lit, determining that the test result of the target indicator light is that an auxiliary component of the target server component has failed, wherein the auxiliary component is used to provide the target indicator light with the component status of the target server component.

2. The test method for the server status indicator light according to claim 1, characterized in that, The step of controlling the target indicator light to perform an operation status test based on the second test result to obtain a third test result includes: If the second test result indicates that the target indicator light is being used on the target server, the controller controlling the target server sends a lighting command to the target indicator light, wherein the lighting command is used to illuminate the target indicator light; Receive a return instruction sent by the controller, wherein the return instruction is used to indicate whether the controller has successfully sent the light-on instruction to the target indicator light; If the received return instruction indicates that the controller has successfully sent the lighting instruction to the target indicator light, a third operating parameter of the target indicator light is collected, wherein the third operating parameter is used to indicate the operating status of the target indicator light after receiving the lighting instruction; Detect the first similarity between the third operating parameter and the fourth operating parameter, wherein the fourth operating parameter is used to indicate the expected operating condition of the target indicator light under the control of the lighting command; If the first similarity is greater than or equal to the first threshold, the third test result is determined to indicate that the target indicator light is allowed to be lit. If the first similarity is less than the first threshold, the third test result is determined to indicate that the target indicator light is not allowed to be lit.

3. The test method for the server status indicator light according to claim 1, characterized in that, The step of testing the usage status of the target indicator light based on the first test result and the in-situ status of the target server component corresponding to the target indicator light, and obtaining the second test result, includes: If the first test result indicates that the target indicator light is not lit, the target server component corresponding to the target indicator light is found from the corresponding status indicator lights and server components; Obtain the presence information of the target server component from the controller of the target server, wherein the presence information is used to indicate whether the target server component is installed at the target location of the target server; If the presence information is used to indicate that the target server component is installed at the target location, the second test result is determined to indicate that the target indicator light is used on the target server; If the presence information indicates that the target server component is not installed at the target location, the second test result is determined to indicate that the target indicator light is not being used on the target server.

4. The test method for the server status indicator light according to claim 1, characterized in that, The step of testing the illumination state of the target indicator light based on the first and second operating parameters of the target indicator light to be tested on the target server, and obtaining the first test result, includes: The method detects a second similarity between a first color parameter and a second color parameter, and a third similarity between a first frequency parameter and a second frequency parameter. The first color parameter indicates the color of the target indicator light of the target server in the operating state. The second color parameter indicates the desired color of the target indicator light of the target server in the operating state. The first frequency parameter indicates the emission frequency of the target indicator light of the target server in the operating state. The second frequency parameter indicates the desired emission frequency of the target indicator light of the target server in the operating state. The first operating parameter includes the first color parameter, the first frequency parameter, and a light intensity parameter. The second operating parameter includes the second color parameter and the second frequency parameter. The light intensity parameter indicates the emission intensity of the target indicator light of the target server in the operating state. If the second similarity is greater than or equal to the second threshold and the third similarity is greater than or equal to the third threshold, the first test result is determined to indicate that the target indicator light is lit and the operating parameters of the target indicator light are normal. If the second similarity is less than the second threshold or the third similarity is less than the third threshold, and the light intensity parameter is greater than or equal to the fourth threshold, the first test result is determined to indicate that the target indicator light is lit and the operating parameters of the target indicator light are abnormal. If the second similarity is less than the second threshold or the third similarity is less than the third threshold, and the light intensity parameter is less than the fourth threshold, the first test result is determined to indicate that the target indicator light is not lit.

5. The test method for the server status indicator light according to claim 1, characterized in that, Before testing the illumination status of the target indicator light based on the first and second operating parameters of the target indicator light to be tested on the target server, the method further includes: The first light signal of the target indicator light is acquired by a first camera in the visible light band, and the second light signal of the target indicator light is acquired by a second camera in the near-infrared band. Identify the reference position of the second optical signal on the target server; The target optical signal is obtained by extracting the optical signal located at the reference position on the target server from the first optical signal; The first color parameter, the first frequency parameter, and the light intensity parameter are extracted from the target light signal to obtain the first operating parameters. The first color parameter is used to indicate the color of the target indicator light emitted by the target server in the operating state, the first frequency parameter is used to indicate the emission frequency of the target indicator light emitted by the target server in the operating state, and the light intensity parameter is used to indicate the emission intensity of the target indicator light emitted by the target server in the operating state. The target image of the target server is captured by a third camera; Find the target server type corresponding to the target image from the server image and server type that have a corresponding relationship, wherein the target server belongs to the target server type; The target parameter set corresponding to the target server type is found from the corresponding server type and indicator parameter set. The target parameter set includes the attribute parameters corresponding to each status indicator of the server belonging to the target server type in the running state. The target attribute parameter corresponding to the target indicator light is found from the target parameter set to obtain the second operating parameter, wherein the target attribute parameter is used to indicate the attribute of the light signal emitted by the target indicator light of the server of the target server type in the operating state.

6. The test method for the server status indicator light according to claim 5, characterized in that, After finding the target server type corresponding to the target image from the corresponding server images and server types, the method further includes: If the target server type corresponding to the target image is not found, the location box set is set onto the target plane of the target server on the augmented reality device using the augmented reality device; The augmented reality device is used to set each position box in the position box set to the position of each status indicator light of the target server on the target plane, thereby obtaining the candidate indicator light positions for each status indicator light; The system controls each status indicator light of the target server to be lit one by one, and detects the position of the light spot on the target plane when each status indicator light is lit, so as to obtain the reference indicator light position of each status indicator light. By adjusting the candidate indicator positions of each status indicator based on the reference indicator positions of each status indicator, the target indicator positions corresponding to each status indicator are obtained. The positions of various status indicator lights of the server are identified from multiple design files in the target design file at the target indicator light position, wherein the design file is used to indicate the design scheme of the server; Extract the attribute parameters corresponding to each status indicator from the target design file to obtain a reference parameter set; Record the target server type and reference parameter set of the target server with corresponding relationship, and record the target image and target server type with corresponding relationship; Add the target server type and reference parameter set with corresponding relationships to the server type and indicator parameter set with corresponding relationships, and add the target image and target server type with corresponding relationships to the server image and server type with corresponding relationships.

7. The test method for the server status indicator light according to claim 1, characterized in that, After testing the illumination state of the target indicator light based on the first and second operating parameters of the target indicator light to be tested on the target server and obtaining the first test result, the method further includes: When the first test result indicates that the target indicator light is lit and the operating parameters of the target indicator light are normal, the controller controlling the target server sends a switching command to the target indicator light, wherein the switching command is used to indicate the switching of the light emission color of the target indicator light; The target time difference between the detection parameter switching time and the time when the switching command is issued is detected, wherein the parameter switching time is the time when the change in the operation of the target indicator light is detected; If the target time difference is greater than or equal to the time difference threshold, it is determined that a target fault is detected in the target indicator light, wherein the target fault is used to indicate that the indicator light power supply of the target indicator light is unstable, and the indicator light power supply is used to supply power to the target indicator light.

8. The test method for the server status indicator light according to claim 1, characterized in that, After testing the illumination state of the target indicator light based on the first and second operating parameters of the target indicator light to be tested on the target server and obtaining the first test result, the method further includes: When the first test result indicates that the target indicator light is lit and the operating parameters of the target indicator light are normal, and the target server is running, a target knowledge graph of the target server is constructed. The target knowledge graph includes nodes connected by edges and the node status of the nodes. The nodes include server components in the target server and status indicator lights in the target server. The edges are used to represent the connection relationship between the connected nodes, and the node status is used to indicate the running status of the nodes on the target server. Extract a first input parameter and a second input parameter from the target knowledge graph, wherein the first input parameter is used to characterize the edge and the second input parameter is used to characterize the node state; The first input parameter and the second input parameter are input into the target convolutional layer to obtain the target convolutional vector; The target convolutional vector is input into the first detection model to obtain target fault information, wherein the target fault information is used to predict faults that occur during the operation of the target server. The first detection model is obtained by training a first initial detection model using convolutional vector samples labeled with fault information. The second detection model includes the target convolutional layer and the target output layer. The second detection model is obtained by training a second initial detection model using first input samples and second input samples labeled with the fault information. The first input sample is used to represent edge samples in the knowledge graph sample, and the second input sample is used to represent node state samples in the knowledge graph sample. The knowledge graph sample is constructed under the condition that the sample server is running. The convolutional vector sample is obtained by inputting the first input sample and the second input sample into the target convolutional layer. The fault information label is used to indicate faults that occur during the operation of the sample server.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to perform the steps of the test method for the status indicator lights of the server as described in any one of claims 1 to 8 when executing the computer program.

Citation Information

Patent Citations

  • Hard disk backboard indicating lamp lighting test method and server

    CN119359628A

  • Method and system for testing indicating lamp of storage device

    CN119806954A