Server detection method, program product, electronic equipment and storage medium
By establishing a communication connection between the server to be tested and the fixture control system in server detection, using the substrate management controller and finger cylinder technology, the problems of inefficient detection efficiency and omission of fault points in the existing technology are solved, and more efficient and accurate detection results are achieved.
Patent Information
- Application Number
- CN202510686031.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-05-26
AI Technical Summary
In the prior art, server detection efficiency is inefficient, potential failure points are easily missed, and the comprehensiveness of detection and detection effect are poor.
By establishing a communication connection between the server to be tested and the fixture control system, the server is turned on and entered the operating system with the substrate management controller, and the control command is issued to the fixture control system, so that the finger cylinder presses the switch control, triggers the shutdown event, and determines the detection result of the switch control based on the reception of the shutdown event.
It improves the efficiency, accuracy and comprehensiveness of detection, can more accurately detect the functions of switch controls and related circuits, reduces the dependence of manual operations, and improves the automation level of the production line.
Smart Images

Figure CN120196492A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of servers, and particularly to a detection method, a program product, an electronic device, and a storage medium for servers. Background Art
[0002] During the production process of servers, the combination of hardware components and their compatibility often bring potential problems. In the related art, the detection of servers mainly relies on manual inspection or single-function testing, which is inefficient and prone to missing potential fault points, resulting in poor detection comprehensiveness and detection effect. Summary of the Invention
[0003] This application provides a detection method, a program product, an electronic device, and a storage medium for servers, so as to at least solve the problems of low detection efficiency, easy omission of potential fault points, and poor detection comprehensiveness and detection effect in the related art.
[0004] This application provides a detection method for a server, which is applied to a server to be tested. The server to be tested is communicatively connected to a jig control system, and a finger cylinder is placed in front of a switch control of the server to be tested. The method includes: Controlling the server to be tested to power on and run an operating system based on a baseboard management controller; Sending at least one first control instruction to the jig control system, where the first control instruction is used to make the jig control system control the finger cylinder to press the switch control; Performing a target operation and determining a detection result of the switch control based on the reception situation of a shutdown event.
[0005] This application also provides a detection method for a server, which is applied to a jig control system. The jig control system is communicatively connected to a server to be tested, and a finger cylinder is placed in front of a switch control of the server to be tested. The method includes: Receiving the first control instruction sent by the server to be tested; the first control instruction is sent by the server to be tested after powering on and running the operating system; In response to the first control instruction, controlling the finger cylinder to press the switch control so that the server to be tested performs a target operation and determines a detection result of the switch control based on the reception situation of a shutdown event.
[0006] This application also provides a computer program product, which is applied to a server to be tested. The server to be tested is communicatively connected to a jig control system, and a finger cylinder is placed in front of a switch control of the server to be tested. The computer program product includes: A first processing module, configured to control the server to be tested to power on and run an operating system based on a baseboard management controller; A second processing module, configured to send a first control instruction to the fixture control system at least once, where the first control instruction is used to cause the fixture control system to control the finger cylinder to press the switch control; A third processing module, configured to perform a target operation and determine a detection result of the switch control based on the reception of a shutdown event.
[0007] This application also provides a computer program product, which is applied to a fixture control system. The fixture control system is communicatively connected to a server under test, and a finger cylinder is placed in front of a switch control of the server under test. The computer program product includes: An eighth processing module, configured to receive a first control instruction sent by the server under test; the first control instruction is sent by the server under test after it is powered on and runs an operating system; A ninth processing module, configured to, in response to the first control instruction, control the finger cylinder to press the switch control so that the server under test performs a target operation and determines a detection result of the switch control based on the reception of a shutdown event.
[0008] This application also provides an electronic device, including: a memory, configured to store a computer program; a processor, configured to implement the steps of any of the above-mentioned server detection methods when executing the computer program.
[0009] This application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned server detection methods are implemented.
[0010] Through this application, by establishing a communication connection between the server under test and the fixture control system, the baseboard management controller of the server under test controls the server under test to power on and enter the operating system. After entering the operating system, a first control instruction is sent to the fixture control system to instruct the fixture control system to control the finger cylinder to press the switch control to generate a shutdown event. By monitoring the shutdown event and recording the reception of the shutdown event, the detection result of the switch control is determined. Therefore, the technical problems of low detection efficiency, easy omission of potential fault points, poor detection comprehensiveness and detection effect can be solved, and the technical effects of improving the detection efficiency, accuracy and comprehensiveness can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] To more clearly illustrate the embodiments of this application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0012] Figure 1 One of the schematic flowcharts of a server detection method provided by an embodiment of the present application; Figure 2 The framework diagram of a server detection method provided by an embodiment of the present application; Figure 3 Another schematic flowchart of a server detection method provided by an embodiment of the present application; Figure 4 The structural schematic diagram of a finger cylinder provided by an embodiment of the present application; Figure 5 One of the structural schematic diagrams of a computer program product provided by an embodiment of the present application; Figure 6 Another schematic flowchart of a server detection method provided by an embodiment of the present application; Figure 7 Another structural schematic diagram of a computer program product provided by an embodiment of the present application; Figure 8 The structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0013] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a 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 those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0014] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0015] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.
[0016] Combined with the specific application environment architecture or specific hardware architecture on which the execution of the server detection method depends, the specific application environment architecture or specific hardware architecture will be described herein.
[0017] Embodiments of the present application provide a detection method for a server. In combination with the execution process of the detection method for the server, the method will be described in detail.
[0018] The detection method for the server is applied to the server to be tested. Among them, the server to be tested is communicatively connected to the fixture control system, and a finger cylinder is placed in front of the switch control of the server to be tested. The switch control is the mainboard power-on / off button.
[0019] The detection method for the server can be used in the board card testing stage to comprehensively detect the mainboard power-on / off button and its related control functions on the production line, ensure that each mainboard can start smoothly and operate normally when powered on, so as to ensure the quality and reliability of the final product.
[0020] As Figure 1 shown, the detection method for the server includes: step 110, step 120, and step 130.
[0021] Step 110: Based on the baseboard management controller, control the server to be tested to power on and run the operating system; In this step, the baseboard management controller (BMC) is an independent management subsystem for servers and high-end computing devices, usually integrated on the mainboard. It provides remote monitoring and management functions. Even when the main system (such as the operating system or CPU) is in a shutdown or fault state, the BMC can still work normally.
[0022] The operating system (OS) is the core software of the computer system, which is a built-in program used to coordinate various hardware components of the computer to interact with users, responsible for managing hardware resources, providing a user interface, and providing a basic environment for the operation of application programs.
[0023] In some embodiments, the operating system can be a Linux operating system.
[0024] Figure 2 An example of a system architecture diagram for this method is shown. The server to be tested includes a to-be-tested board system, on which a BMC network port, an OS network port, and an interactive serial port are provided. In the actual execution process, the fixture control system can communicate with the BMC network port, and the baseboard management controller can control the server to be tested to power on and enter the OS without pressing the switch control, and automatically start the test program.
[0025] The fixture control system is a fixing rack used to fix the test board and the test tooling, which can achieve quick plugging and unplugging, quick alignment, and prevent operators from installing the equipment incorrectly. It needs to be customized for the board. There is a control board inside. The fixture control system of this application has a network routing function inside, can monitor the BMC network access, and supports the BMC remote power-on command.
[0026] In some embodiments, step 110 may include: The baseboard management controller receives the power-on instruction sent by the fixture control system, and the power-on instruction is sent when the fixture control system detects that the server to be tested is not powered on; In response to the power-on instruction, power on and run the operating system.
[0027] In this embodiment, as Figure 3 shown, after the server to be tested is assembled, the fixture control system communicates with the BMC network port through the network to obtain the power-on status of the current server to be tested. If the server to be tested is not powered on, a power-on instruction is issued through the BMC, such as remotely powering on through the ipmi protocol, to instruct the server to be tested to power on, so that the main board powers on and enters the Basic Input / Output System (BIOS), and then starts the OS. This process does not require manual participation and realizes full automation. After the server to be tested powers on and enters the OS, the diagnostic system is automatically started to start the test program and execute the diagnostic test items one by one.
[0028] In this application, by receiving the power-on instruction sent by the fixture control system through the baseboard management controller and in response to the power-on instruction, power on and run the operating system, the dependence on manual operation can be reduced, thereby reducing labor costs and optimizing the resource allocation of the factory; and no additional external equipment support is required, saving equipment investment and simplifying the test architecture of the factory, and reducing the overall production cost.
[0029] According to the server detection method provided by the embodiments of this application, by receiving the power-on instruction sent by the fixture control system through the baseboard management controller and in response to the power-on instruction, power on and run the operating system, the power-on and power-off control of the server can be automatically realized without passing through the switch control, and there is no need to configure an additional complete system outside the test platform to be responsible for triggering the button operation, reducing the system integration and subsequent maintenance costs, saving the setting control, reducing the complexity of deployment and the time cost and difficulty consumed, reducing the management difficulty and risk, and improving the automation degree of detection.
[0030] Step 120: Send the first control instruction to the fixture control system at least once, and the first control instruction is used to make the fixture control system control the finger cylinder to press the switch control; In this step, the first control instruction is used to enable the fixture control system to control the finger cylinder to press the switch control.
[0031] The switch control is set on the server to be tested and is a button for triggering power on / off.
[0032] The finger cylinder is a pneumatic actuator with a special design that mimics the clamping action of a human finger and is used to press, grasp, clamp, or position small workpieces.
[0033] Figure 4 A schematic structural diagram of a finger cylinder is illustrated, including a cylinder movable rod 420 and a cylinder cavity 430 connected to the cylinder movable rod 420. A pressure sensor 410 is provided at the top of the cylinder movable rod 420 to output sensing data through a sensor cable 450; an optical fiber 440 is provided inside the cylinder movable rod 420 and the cylinder cavity 430.
[0034] Continue to refer to Figure 2 , the finger cylinder is connected to the fixture control system. The top of the cylinder movable rod 420 is set in front of the switch control of the server to be tested. The finger cylinder is controlled by the fixture control system. In the actual execution process, after the test program of the server to be tested is started, the on-board diagnostic system of the server to be tested sends a first control instruction to the control system of the fixture control system through the interactive serial port. The control system responds to the first control instruction and controls the finger cylinder to move to press the switch control.
[0035] Step 130: Based on the reception situation of the shutdown event, perform a target operation and determine the detection result of the switch control.
[0036] In this step, the reception situation of the shutdown event is used to characterize whether a shutdown event is monitored, the number of monitored shutdown events, etc.
[0037] The target operation is used to prevent the server to be tested from performing a shutdown action in response to the shutdown event, so that after pressing the switch control, the reception situation of the shutdown event is obtained and the shutdown action is not performed.
[0038] The detection result includes normal function or abnormal function; in some embodiments, the detection result may also include: normal or abnormal rebound function, normal or abnormal set position, normal or abnormal display light function, etc.
[0039] Such as Figure 3As shown, when the switch control can normally respond to the power-on and power-off instructions, after the finger cylinder presses the switch control, the switch control is pressed down, and the Complex Programmable Logic Device (CPLD) will trigger a power-off event, and the OS receives the power-off event. Among them, the CPLD, as part of the main board control circuit, is responsible for receiving, processing, and forwarding the switch control event signals, can directly manage the hardware signals of the switch control, and interact with the baseboard management controller or the operating system.
[0040] The server under test performs a target operation to prevent the server under test from performing a power-off action in response to the power-off event, and the on-board diagnostic system in the server under test determines whether the function of the switch control is normal based on the reception of the power-off event.
[0041] In some embodiments, the reception situation may further include the situation of the power-off events monitored within a preset time.
[0042] In the process of R & D, the inventor found that in the related technology, there is also an automated testing method. Usually, when starting the test, a jig or other triggering device is used to simulate pressing the power-on button. The main steps of the entire testing process are as follows: First, the test jig presses the power-on button through the triggering device, and then waits for the system to enter the operating system interface before starting the subsequent automated testing. However, this testing method has the following limitations: 1) It cannot comprehensively capture button failures. If there are abnormalities in the power-on button (for example, the button is unresponsive, has poor contact, or cannot be triggered), the system usually cannot start successfully and cannot enter the operating system. Since the normal startup cannot be completed, the subsequent automated testing cannot be carried out. This means that problems with the button itself may cause the interruption of the entire testing process, and the specific situation of the button failure cannot be recorded. 2) It cannot collect button performance data in real time. The automated system cannot effectively record and collect the test status of the power-on button, especially cannot record in detail the failures that occur to the button during the startup process. The testing system usually cannot accurately capture whether the button responds correctly within the predetermined time, nor can it provide complete data on the button quality. This makes it impossible to effectively quantitatively evaluate the quality and performance of the button. 3) Bad button data cannot be collected. Even if the test jig triggers the button, if the button has defects (such as poor contact, slow response, or other performance problems), the system cannot capture these bad data during the testing process. Therefore, the automated testing cannot fully reflect the actual quality status of the power-on button, resulting in incomplete testing results for the button performance. 4) Manual intervention cannot achieve full automation. Although a jig can be used to trigger the button operation, this process still relies on external devices and manual intervention. Since the test program is built into the test machine, when the button is abnormal and the machine cannot start, the specific performance of the button cannot be automatically recorded in the test results, and the manual button-pressing solution cannot completely replace the automated testing. Therefore, full-automation testing cannot be achieved, and human operation errors and delays cannot be eliminated, affecting the efficiency and accuracy of the testing.
[0043] In the process of R & D, the inventor also found that in the related technology, much attention is focused on detecting the power-on line and the power-on panel. However, this method of separately detecting individual components cannot test the signals at the interfaces on the motherboard and the CPLD terminals inside the board, cannot evaluate the electrical performance of the entire system, including power supply stability, signal integrity, etc., cannot discover potential electrical problems in advance, and ignores the collaborative work between different components. For example, whether the interaction between the motherboard, CPLD, and other peripheral devices is smooth, and whether there will be compatibility problems during system integration, which may lead to system failures in actual applications.
[0044] In this application, through the baseboard management controller, the server under test can be powered on without using a switch control and without manual user control, with a high degree of automation. Precise functional verification can be performed on each device before leaving the factory, which is suitable for large-scale production inspection scenarios to ensure that each device has undergone precise functional verification before leaving the factory. This helps to improve the automation level of the production line, enhance the reliability and controllability of the overall production, and contribute to the intelligent and automated upgrade of the production line.
[0045] According to the internal control system of the fixture, control the finger cylinder to press the switch control to trigger a shutdown event, and determine the detection result of the switch control based on the reception of the shutdown event. In addition to the traditional hardware performance test, the switch control of the main board can also be accurately tested, avoiding false detection caused by abnormal switch control. It has high detection efficiency and accuracy, low design cost, small occupied space, and is simple and easy to implement.
[0046] In addition, by establishing a communication connection between the server under test and the fixture control system, the baseboard management controller of the server under test controls the system under test to power on and enter the operating system. After entering the operating system, a first control instruction is sent to the fixture control system to instruct the fixture control system to control the finger cylinder to press the switch control to generate a shutdown event. By detecting the shutdown event and recording the reception of the shutdown event, the detection result of the switch control can be detected. It can comprehensively consider the collaborative work between different components, as well as other important interfaces and functions of the system, including not only the switch operation verification of the switch control itself, but also the function of how the CPLD processes and transmits switch control events, effectively evaluate the electrical performance of the entire system, including power supply stability, signal integrity, etc., effectively detect whether the interaction between the main board, complex programmable logic device and other peripheral devices is smooth, and whether there are compatibility issues during system integration, ensure the smooth execution of power-on and power-off operations, achieve an effective quantitative evaluation of the quality and performance of the switch control, effectively detect key issues that are easily overlooked, reduce the risk of unforeseen failures or performance degradation of the product in certain scenarios, and improve the accuracy, comprehensiveness and consistency of detection.
[0047] According to the server detection method provided by the embodiments of the present application, by establishing a communication connection between the server to be tested and the fixture control system, the baseboard management controller of the server to be tested controls the system to be tested to power on and enter the operating system. After entering the operating system, a first control instruction is sent to the fixture control system to instruct the fixture control system to control the finger cylinder to press the switch control to generate a shutdown event. By monitoring the shutdown event and recording the reception situation of the shutdown event, the detection result of the switch control is determined. It has a high degree of automation. While effectively detecting the function of the switch control, it can comprehensively consider the collaborative work between different components, as well as other important interfaces and functions of the system, covering the signals of the power-on line and the power-on panel and the test of the internal link signals of the main board, realizing the electrical performance detection of the entire system of the server, and improving the efficiency, accuracy and comprehensiveness of the detection.
[0048] In some embodiments, based on the reception situation of the shutdown event, determining the detection result of the switch control may include: In the case where it is determined that the shutdown event has not been received, it is determined that the switch control is abnormal.
[0049] In this embodiment, for example, the diagnostic system can detect whether a shutdown event of the switch control being pressed is received under the OS. If no shutdown event is detected within the preset time, it is considered that the test fails (test Fail), and it is determined that the switch control is abnormal.
[0050] In the case where the shutdown event is received, if the shutdown event is received within the preset time, it can be considered that the switch control is normal and the test is successful (test PASS).
[0051] In some embodiments, in the case where it is determined that the shutdown event is received, the rebound function and the indicator light function of the switch control can be further detected.
[0052] In some embodiments, multiple first control instructions can also be sent to control the finger cylinder to press the switch control multiple times, and based on whether the number of monitored shutdown events is consistent with the number of sent first control instructions, it is detected whether the switch control is normal.
[0053] In the present application, a comprehensive and systematic function test of the switch control can be carried out on a full-automatic test bench; during the test process, the system can automatically simulate the operation of the switch control, verify the response time of the switch control, the accuracy of signal transmission, and the correct processing and response of the CPLD to button events, effectively improving the test efficiency, ensuring the stability and reliability of the functions of the switch control and its related circuits, and avoiding errors and missed detections caused by manual testing.
[0054] According to the detection method of the server provided by the embodiments of the present application, by monitoring the shutdown event, it is possible to detect whether the switch control can be normally triggered based on whether the shutdown event is received. The operation is simple and convenient, and the detection accuracy is relatively high, effectively ensuring the stability and reliability of the switch control and its related circuit functions.
[0055] In some embodiments, based on the reception situation of the shutdown event, performing a target operation may include: When the shutdown event is received, change the system settings to intercept and block the shutdown event.
[0056] In this embodiment, blocking the shutdown event prevents the server under test from performing a shutdown action in response to the shutdown event.
[0057] For example, when testing the execution of the switch control item, the diagnostic system intercepts the shutdown event of the linux system, prevents the actual shutdown action, sends a first control instruction for triggering the switch control to the fixture control system, and the fixture system controls the finger cylinder to generate an action of pressing the button, and releases the finger cylinder after a first duration.
[0058] According to the detection method of the server provided by the embodiments of the present application, by changing the system settings to intercept and block the shutdown event during the self-detection of the switch control, it is possible to only monitor the shutdown event and record the reception situation of the shutdown event, without performing a specific shutdown action, so that the server under test can maintain the running state when the shutdown event is triggered to perform self-test on the switch control according to the reception situation of the shutdown event, quickly and accurately perform a comprehensive test on the switch control and related circuits, without manual detection, reducing the time consumption and potential human errors brought by manual operations, and improving the test speed, as well as the efficiency and consistency of the test.
[0059] In some embodiments, when the shutdown event is received, changing the system settings to intercept and block the shutdown event may include: When the shutdown event is received, truncate the shutdown action of the server under test through the power button event configuration file of the daemon process, and perform an increment operation on the reception count of the received shutdown event.
[0060] In this embodiment, when the shutdown event is received, the Advanced Configuration and Power Interface (acpid) service is automatically started under the system. The acpid listens for the event of pressing the power-on button, truncates the server shutdown action through the acpid event power button event (powerbtn) configuration file, and points to its own script for recording the number of button presses. During the actual execution process, the system file / etc / acpi / events / powerbtn can be modified through the following code: # / etc / acpi / events / powerbtn event=button / power action= / diag / record_powerbutton_click.sh The / diag / record_powerbutton_click.sh script records the number of times the power switch control is pressed.
[0061] According to the server detection method provided by the embodiments of the present application, by changing the system settings during the self-detection of the power switch control to intercept and block the shutdown event, it is possible to only monitor the shutdown event and record the reception of the shutdown event without performing the specific shutdown action, so that the server under test can remain in the running state when the shutdown event is triggered to perform self-check on the power switch control according to the reception of the shutdown event, quickly and accurately perform a comprehensive test on the power switch control and related circuits, without manual detection, reducing the time consumption and potential human errors brought by manual operations, improving the test speed, as well as the efficiency and consistency of the test.
[0062] In some embodiments, after performing the target operation and determining the detection result of the power switch control based on the reception of the shutdown event, the method may further include: Restore the system settings to perform the shutdown action when the shutdown event is received.
[0063] In this embodiment, after the detection is completed, continue to refer to Figure 3 , the system shutdown event can be released so that the shutdown action can be performed after pressing the power switch control.
[0064] In the actual execution process, by modifying the acpid event configuration file, the event is redirected to the system shutdown event. For example, the system file / etc / acpi / events / powerbtn can be modified through the following code: # / etc / acpi / events / powerbtn event=button / power action= / sbin / shutdown -h now So that the system no longer blocks the shutdown event after receiving the shutdown event, and the shutdown action can be performed after pressing the power switch control.
[0065] According to the server detection method provided by the embodiments of the present application, by restoring the system settings after completing the detection of the switch control and canceling the shielding of the shutdown event, it is possible to normally execute the shutdown action when the subsequent server to be tested receives the shutdown event, maintaining the normal operation of the server to be tested.
[0066] As Figure 3 shown, in some embodiments, issuing the first control instruction to the fixture control system at least once may include: Issuing the first control instruction to the fixture control system, the first control instruction being used to cause the fixture control system to control the finger cylinder to press the switch control and last for a first duration; After a second duration, reissue the first control instruction to the fixture control system, the second duration being greater than the first duration.
[0067] In this embodiment, the first duration can be user-defined, such as set to 0.2s or 0.25s, etc. The first duration is used to avoid the CPLD power-off triggered by pressing the switch control for a long time, and will not send the shutdown time to the OS to trigger the shutdown event of the OS.
[0068] The second duration is greater than the first duration, such as set to 0.4s or 0.5s, etc.
[0069] For example, when the switch control item test is executed, the diagnostic system will intercept the shutdown event of the linux system, prevent the real shutdown action, send the first control instruction for triggering the switch control to the fixture control system, and the fixture system controls the cylinder to generate the action of pressing the button, and releases the cylinder after lasting for the first duration.
[0070] Monitor the shutdown event, and after the second duration, reissue the first control instruction to the fixture control system again to cause the fixture control system to control the finger cylinder to press the switch control and last for the first duration, and also monitor the shutdown event and shield the shutdown event.
[0071] If the shutdown event is monitored, perform an increment operation on the number of shutdown events.
[0072] According to the server detection method provided by the embodiments of the present application, by issuing the first control instruction to the fixture control system at least twice to cause the finger cylinder to press the switch control multiple times, it is convenient to subsequently detect the sensitivity and rebound function of the switch control based on whether the number of received shutdown events is consistent with the number of issued first control instructions, further improving the comprehensiveness and accuracy of the switch control function detection.
[0073] In some embodiments, determining the detection result of the switch control based on the reception situation of the shutdown event may include: When the first control instruction is sent to the fixture control system at least twice, record the number of received shutdown events; When the number is inconsistent with the number of times the first control instruction is sent, determine that the rebound function of the switch control is abnormal.
[0074] In this embodiment, based on a certain time interval, such as the second duration, the first control instruction can be sent to the fixture control system multiple times. The fixture control system responds to the first control instruction in sequence to control the finger cylinder to press the switch control. If the number of monitored shutdown events is consistent with the number of times the first control instruction is sent, it is considered that the rebound function of the switch control is normal; if the number of monitored shutdown events is inconsistent with the number of times the first control instruction is sent, for example, the number of times the first control instruction is sent is greater than the number of received shutdown events, it is considered that the rebound function of the switch control is abnormal.
[0075] It can be understood that when the switch control rebounds insufficiently, after pressing the switch control for the first time, a shutdown event can be triggered, but the switch control cannot rebound, so that the shutdown event cannot be triggered again after pressing the button for the second time. Even the motherboard CPLD will force the motherboard to power off, resulting in the number of times the first control instruction is sent being greater than the number of received shutdown events.
[0076] According to the detection method of the server provided by the embodiments of the present application, by sending the first control instruction to the fixture control system at least twice, the switch control is detected based on whether the number of received shutdown events is consistent with the number of times the first control instruction is sent. On the basis of detecting that the switch control can be triggered normally, it can also detect whether the rebound function of the switch control is normal, effectively detecting problems such as poor contact, slow response or other performance problems of the switch control, and further improving the comprehensiveness and accuracy of the switch control function detection.
[0077] Continue to refer to Figure 3 In some embodiments, after sending the first control instruction to the fixture control system at least once, the method may further include: Obtain the actual pressure value when the finger cylinder presses the switch control; Based on the actual pressure value and the preset pressure range, detect the set position of the switch control.
[0078] In this embodiment, the set position may include installation coordinates, angle, etc.
[0079] The actual pressure value can be collected by the pressure sensor 410 and recorded in the fixture control system.
[0080] The preset pressure range is the pressing pressure range corresponding to pressing the switch control to trigger the power-on and power-off events under the reasonable setting of the switch control. The preset pressure range can be determined through pre-tests.
[0081] During the actual execution process, after the diagnostic system receives the number of presses of the shutdown event record, it can obtain the actual pressure value from the fixture system and determine whether the actual pressure value is reasonable to detect whether the setting of the switch control is reasonable.
[0082] In some embodiments, the preset pressure range can be set to the range of 5N to 10N.
[0083] In some embodiments, based on the actual pressure value and the preset pressure range, detecting the setting position of the switch control may include: When the actual pressure value is within the preset pressure range, determining that the setting position of the switch control is normal; When the actual pressure value is not within the preset pressure range, determining that the setting position of the switch control is abnormal.
[0084] In this embodiment, when the actual pressure value is within the preset pressure range, it is considered that the actual pressure value is reasonable and the setting position of the switch control is determined to be normal; when the actual pressure value is not within the preset pressure range, it is considered that the actual pressure value is unreasonable and the setting position of the switch control is determined to be abnormal.
[0085] For example, when the setting position or angle of the switch control is tilted, the actual pressure value required to press it to turn it on and off may be less than the pressure value in the normal setting case. According to the detection method of the server provided by the embodiments of the present application, by collecting the actual pressure value of the finger cylinder pressing the switch control and detecting whether the actual pressure value is reasonable, it can effectively and quickly detect whether the setting position of the switch control is reasonable, has a high detection accuracy, and is easy to implement.
[0086] In some embodiments, continuing to refer to Figure 3 , at least one time sending a first control instruction to the fixture control system may include: Sending a first control instruction to the fixture control system, and the first control instruction is used to make the fixture control system control the finger cylinder to press the switch control; Obtaining the actual pressure value of the finger cylinder pressing the switch control; When it is determined based on the actual pressure value that the actual pressure value is reasonable, sending a first control instruction to the fixture control system again; the first control instruction is used to make the fixture control system control the finger cylinder to press the switch control again.
[0087] In some embodiments, after the baseboard management controller controls the server under test to power on and run the operating system, the method may further include: Obtaining the illumination information of the switch control conducted by the optical fiber 440 inside the finger cylinder; Detect the display light function of the switch control based on the light information and the first preset value.
[0088] In this embodiment, the light information is used to characterize the brightness, color, etc. of the display light arranged on the switch control.
[0089] Continue to refer to Figure 4 , the cylinder head of the finger cylinder is connected with an optical fiber 440, which is used to lead out the light of the display light of the switch control to the light analyzer inside the fixture to detect the display light function of the switch control.
[0090] It can be understood that in some embodiments, an LED light is arranged inside the switch control, which is used to display different colors when the server to be tested is in different states. The first preset value is the color displayed by the display light of the switch control when the display light function is normal and the server to be tested is in the powered-on state. For example, it shows orange in the powered-off state and green in the powered-on state.
[0091] If the light information is consistent with the first preset value, it is approximately considered that the display light function is normal; if the light information is inconsistent with the first preset value, it is approximately considered that the display light function is abnormal.
[0092] For example, after controlling the server to be tested to power on, if the light information conducted through the optical fiber 440 is green and is consistent with the first preset value, it is determined that the display light function is normal; if the light information conducted through the optical fiber is orange or black, it is determined that the display light function is abnormal.
[0093] According to the server detection method provided by the embodiments of the present application, the display light function of the switch control is detected through the light information of the switch control conducted by the optical fiber 440 inside the finger cylinder. The operation is simple and easy to implement, and has high detection accuracy and detection efficiency.
[0094] In some embodiments, before controlling the server to be tested to power on and run the operating system based on the baseboard management controller, the method may further include: Obtain the light information of the switch control conducted by the optical fiber 440 inside the finger cylinder; Detect the display light function of the switch control based on the light information and the second preset value.
[0095] In this embodiment, the second preset value is the color displayed by the display light of the switch control when the display light function is normal and the server to be tested is in the powered-off state.
[0096] In the actual execution process, before controlling the server to be tested to power on, the light information conducted through the optical fiber 440 can also be obtained first and compared with the second preset value. If the light information is consistent with the second preset value, it is considered that the display light function is normal; if the light information is inconsistent with the second preset value, it is considered that the display light function is abnormal.
[0097] According to the server detection method provided by the embodiments of the present application, the display lamp function of the switch control is detected by the light information of the switch control conducted through the optical fiber 440 inside the finger cylinder. The operation is simple and easy to implement, and has high detection accuracy and detection efficiency.
[0098] The server detection method provided by the embodiments of the present application can comprehensively cover the related functions of the switch control, including but not limited to sensitivity, response time, display effect, signal transmission, and CPLD event processing, etc. It covers the detection of multiple links, realizes systematic testing, significantly reduces missed detections and errors caused by manual omission or inaccurate operation, further improves the quality stability of the product, and improves the usability and market acceptance of the product.
[0099] In some embodiments, after performing a target operation and determining the detection result of the switch control based on the reception of the shutdown event, the method may further include: Outputting the detection result corresponding to the server to be tested.
[0100] In this embodiment, continue to refer to Figure 3 , after obtaining the detection result after the detection is completed, the detection result can also be automatically reported to the factory data system by the system to ensure that each test result can be traced and analyzed.
[0101] By automatically recording and analyzing the detailed data of each test and uploading it to the central data management system of the factory in real time, the traceability and transparency of the test results are strengthened, and rich data support is provided for the quality monitoring of the factory, which is convenient for later problem tracking and quality analysis.
[0102] According to the server detection method provided by the embodiments of the present application, by outputting and storing the detection result corresponding to the server to be tested, it is beneficial to quality control and problem tracking in large-scale production, can significantly improve the automation level of the production line, and reduce the quality hidden dangers caused by insufficient testing.
[0103] 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 implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0104] The embodiments of the present application also provide a server detection method, which is applied to a jig control system; the server to be tested is communicatively connected to the jig control system, and a finger cylinder is placed in front of the switch control of the server to be tested.
[0105] As Figure 6 shown, the method includes: step 610 and step 620.
[0106] Step 610: Receive a first control instruction sent by the server under test; the first control instruction is sent by the server under test after it is powered on and running the operating system. Step 620: In response to the first control instruction, control the finger cylinder to press the switch control so that the server under test performs a target operation based on the reception of the shutdown event and determines the detection result of the switch control.
[0107] According to the server detection method provided by the embodiments of the present application, by establishing a communication connection between the server under test and the fixture control system, the baseboard management controller of the server under test controls the server under test to power on and enter the operating system. After entering the operating system, a first control instruction is sent to the fixture control system to instruct the fixture control system to control the finger cylinder to press the switch control to generate a shutdown event. By monitoring the shutdown event and recording the reception of the shutdown event, the detection result of the switch control is determined. It has a high degree of automation. While effectively detecting the function of the switch control, it can comprehensively consider the collaborative work between different components, as well as other important interfaces and functions of the system, covering the signals of the power-on line and the power-on panel and the test of the internal link signals of the main board, realizing the electrical performance detection of the entire system of the server, and improving the efficiency, accuracy and comprehensiveness of the detection.
[0108] In some embodiments, the method may further include: Before step 610, when it is detected that the server under test is not powered on, send a power-on instruction to the baseboard management controller of the server under test; the power-on instruction is used to instruct the server under test to perform a power-on action based on the baseboard management controller.
[0109] According to the server detection method provided by the embodiments of the present application, the baseboard management controller receives the power-on instruction sent by the fixture control system and responds to the power-on instruction to power on and run the operating system. The server can be automatically powered on without going through the switch control, and there is no need to configure an additional complete system outside the test platform to be responsible for triggering the button operation, reducing the system integration and subsequent maintenance costs, saving the setting of controls, reducing the complexity of deployment and the time cost and difficulty consumed, reducing the management difficulty and risk, and improving the automation degree of detection.
[0110] Embodiments of the present application also provide a computer program product.
[0111] As Figure 5 shown, this computer program product is applied to the server under test; the server under test is communicatively connected to the fixture control system, and a finger cylinder is placed in front of the switch control of the server under test; this computer program product may include: a first processing module 510, a second processing module 520, and a third processing module 530.
[0112] The first processing module 510 is configured to power on the server under test based on the baseboard management controller and run the operating system. The second processing module 520 is configured to send a first control instruction to the fixture control system at least once. The first control instruction is used to enable the fixture control system to control the finger cylinder to press the switch control. The third processing module 530 is configured to perform a target operation and determine the detection result of the switch control based on the reception situation of the shutdown event.
[0113] According to the computer program product provided by the embodiments of the present application, by establishing a communication connection between the server under test and the fixture control system, the baseboard management controller of the server under test is used to power on the system under test and enter the operating system. After entering the operating system, a first control instruction is sent to the fixture control system to instruct the fixture control system to control the finger cylinder to press the switch control to generate a shutdown event. By monitoring the shutdown event and recording the reception situation of the shutdown event, the detection result of the switch control is determined. It has a high degree of automation. While effectively detecting the function of the switch control, it can comprehensively consider the collaborative work between different components, as well as other important interfaces and functions of the system, covering the signals of the power-on line and the power-on panel and the test of the internal link signals of the main board, realizing the electrical performance detection of the entire system of the server, and improving the efficiency, accuracy and comprehensiveness of the detection.
[0114] In some embodiments, the third processing module 530 may further be configured to: When receiving the shutdown event, change the system settings to intercept and block the shutdown event.
[0115] In some embodiments, the third processing module 530 may further be configured to: When receiving the shutdown event, truncate the shutdown operation of the server under test through the power button event configuration file of the daemon process, and perform an increment operation on the reception count of the received shutdown event.
[0116] In some embodiments, the second processing module 520 may further be configured to: Send a first control instruction to the fixture control system. The first control instruction is used to enable the fixture control system to control the finger cylinder to press the switch control and last for a first duration. After a second duration, send a first control instruction to the fixture control system again. The second duration is greater than the first duration.
[0117] In some embodiments, the third processing module 530 may further be configured to: When determining that the shutdown event is not received, determine that the switch control is abnormal.
[0118] In some embodiments, the third processing module 530 may further be configured to: When the first control instruction is sent to the fixture control system at least twice, record the number of received shutdown events; When the number is inconsistent with the number of times the first control instruction is sent, determine that the rebound function of the switch control is abnormal.
[0119] In some embodiments, the computer program product may further include a fourth processing module, configured to: After sending the first control instruction to the fixture control system at least once, obtain the actual pressure value of the finger cylinder pressing the switch control; Based on the actual pressure value and the preset pressure range, detect the set position of the switch control.
[0120] In some embodiments, the computer program product may further include a fifth processing module, configured to: After powering on the server under test based on the baseboard management controller and running the operating system, obtain the light information of the switch control conducted by the optical fiber 440 inside the finger cylinder; Based on the light information and the first preset value, detect the display lamp function of the switch control.
[0121] In some embodiments, the computer program product may further include a sixth processing module, configured to: Before powering on the server under test based on the baseboard management controller and running the operating system, obtain the light information of the switch control conducted by the optical fiber 440 inside the finger cylinder; Based on the light information and the second preset value, detect the display lamp function of the switch control.
[0122] In some embodiments, the first processing module 510 may further be configured to: Cause the baseboard management controller to receive the power-on instruction sent by the fixture control system, where the power-on instruction is sent when the fixture control system detects that the server under test is not powered on; In response to the power-on instruction, power on and run the operating system.
[0123] In some embodiments, the computer program product may further include a seventh processing module, configured to: After performing the target operation and determining the detection result of the switch control based on the reception situation of the shutdown event, output the detection result corresponding to the server under test.
[0124] Embodiments of the present application further provide a computer program product.
[0125] The computer program product is applied to a jig control system; a server to be tested is communicatively connected to the jig control system, and a finger cylinder is placed in front of a switch control of the server to be tested.
[0126] As Figure 7 shown, the computer program product includes: an eighth processing module 710 and a ninth processing module 720.
[0127] The eighth processing module 710 is configured to receive a first control instruction sent by the server to be tested; the first control instruction is sent by the server to be tested after it is powered on and runs an operating system. The ninth processing module 720 is configured to, in response to the first control instruction, control the finger cylinder to press the switch control so that the server to be tested performs a target operation and determines a detection result of the switch control based on the reception of a shutdown event.
[0128] According to the computer program product provided by the embodiments of the present application, by establishing a communication connection between the server to be tested and the jig control system, the baseboard management controller of the server to be tested controls the server to be tested to power on and enter the operating system, and after entering the operating system, issues a first control instruction to the jig control system to instruct the jig control system to control the finger cylinder to press the switch control to generate a shutdown event. By monitoring the shutdown event and recording the reception of the shutdown event, the detection result of the switch control is determined, which has a high degree of automation. While effectively detecting the function of the switch control, it can comprehensively consider the collaborative work between different components, as well as other important interfaces and functions of the system, covering the signals of the power-on line and the power-on panel and the test of the internal link signals of the main board, and realizing the electrical performance detection of the entire system of the server, improving the efficiency, accuracy and comprehensiveness of the detection.
[0129] In some embodiments, the computer program product may further include: A tenth processing module, configured to, before receiving the first control instruction sent by the server to be tested, send a power-on instruction to the baseboard management controller of the server to be tested when it is detected that the server to be tested is not powered on; the power-on instruction is used to instruct the server to be tested to perform a power-on action based on the baseboard management controller.
[0130] For the description of the features in the embodiments corresponding to the computer program product, reference may be made to the relevant description of the embodiments corresponding to the detection method of the server, which will not be elaborated here one by one.
[0131] Embodiments of the present application also provide an electronic device, as Figure 8 shown, including a memory 802 and a processor 801. The memory 802 stores a computer program, and the processor 801 is configured to run the computer program to execute the steps in any of the embodiments of the above-mentioned detection method of the server.
[0132] Embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program is configured to execute the steps in any of the above-described embodiments of the server detection method when running.
[0133] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memory (ROM for short), random access memory (RAM for short), external hard drives, magnetic disks, or optical discs that can store computer programs.
[0134] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the steps in any of the above-described embodiments of the server detection method.
[0135] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present application.
[0136] The above has introduced in detail a server detection method provided by the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several 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 detection method for a server, characterized in that, Applied to the server under test, the server under test is communicatively connected to the fixture control system, and a finger cylinder is placed in front of the switch control of the server under test; the method includes: Based on the baseboard management controller, control the server under test to power on and run the operating system; Send a first control instruction to the fixture control system at least once, and the first control instruction is used to make the fixture control system control the finger cylinder to press the switch control; Based on the reception situation of the shutdown event, perform a target operation and determine the detection result of the switch control.
2. The detection method of the server according to claim 1, wherein Based on the reception situation of the shutdown event, performing a target operation includes: When the shutdown event is received, change the system settings to intercept and block the shutdown event.
3. The detection method of the server according to claim 2, characterized in that, The changing the system settings to intercept and block the shutdown event when the shutdown event is received includes: When the shutdown event is received, truncate the shutdown action of the server under test through the power button event profile of the daemon process, and perform an increment operation on the number of times the received shutdown event is received.
4. The detection method of the server according to any one of claims 1-3, characterized in that Based on the reception situation of the shutdown event, determining the detection result of the switch control includes: When it is determined that the shutdown event is not received, determine that the switch control is abnormal.
5. The detection method of the server according to any one of claims 1-3, characterized in that, The sending the first control instruction to the fixture control system at least once includes: Send a first control instruction to the fixture control system, and the first control instruction is used to make the fixture control system control the finger cylinder to press the switch control and last for a first duration; After a second duration, resend the first control instruction to the fixture control system, and the second duration is greater than the first duration.
6. The detection method of the server according to any one of claims 1-3, characterized in that Based on the reception situation of the shutdown event, determining the detection result of the switch control includes: When the first control instruction is sent to the fixture control system at least twice, record the number of times the received shutdown event occurs; When the number is inconsistent with the number of times the first control instruction is sent, determine that the rebound function of the switch control is abnormal.
7. The detection method of the server according to any one of claims 1-3, characterized in that After the at least once sending the first control instruction to the fixture control system, the method further includes: Obtain the actual pressure value of the finger cylinder pressing the switch control; Based on the actual pressure value and the preset pressure range, detect the setting position of the switch control.
8. The detection method of the server according to any one of claims 1-3, characterized in that, After the controlling the server under test to power on and run the operating system based on the baseboard management controller, the method further includes: Obtain the illumination information of the switch control conducted by the optical fiber inside the finger cylinder; Based on the illumination information and the first preset value, detect the display lamp function of the switch control.
9. The detection method of the server according to any one of claims 1-3, characterized in that, Before the controlling the server under test to power on and run the operating system based on the baseboard management controller, the method further includes: Obtain the illumination information of the switch control conducted by the optical fiber inside the finger cylinder; Based on the illumination information and the second preset value, detect the display lamp function of the switch control.
10. The detection method of the server according to any one of claims 1-3, characterized in that, The controlling the server under test to power on and run the operating system based on the baseboard management controller includes: The baseboard management controller receives the power-on instruction sent by the fixture control system, and the power-on instruction is sent when the fixture control system detects that the server to be tested is not powered on; In response to the power-on instruction, power on and run the operating system.
11. The detection method of the server according to any one of claims 1-3, characterized in that, After receiving the situation based on the shutdown event, performing the target operation and determining the detection result of the switch control, the method further includes: Output the detection result corresponding to the server to be tested.
12. A detection method for a server, characterized in that, Applied to a fixture control system, the fixture control system is communicatively connected to a server to be tested, and a finger cylinder is placed in front of a switch control of the server to be tested; the method includes: Receive a first control instruction sent by the server to be tested; the first control instruction is sent by the server to be tested after it is powered on and running the operating system; In response to the first control instruction, control the finger cylinder to press the switch control so that the server to be tested performs a target operation and determines the detection result of the switch control based on the received situation of the shutdown event.
13. A computer program product, characterized in that, Applied to a server to be tested, the server to be tested is communicatively connected to a fixture control system, and a finger cylinder is placed in front of a switch control of the server to be tested; the computer program product includes: A first processing module, configured to control the server to be tested to power on and run the operating system based on the baseboard management controller; A second processing module, configured to send a first control instruction to the fixture control system at least once, and the first control instruction is used to cause the fixture control system to control the finger cylinder to press the switch control; A third processing module, configured to perform a target operation and determine the detection result of the switch control based on the received situation of the shutdown event.
14. A computer program product, characterized in that, Applied to a fixture control system, the fixture control system is communicatively connected to a server to be tested, and a finger cylinder is placed in front of a switch control of the server to be tested; the computer program product includes: An eighth processing module, configured to receive a first control instruction sent by the server to be tested; the first control instruction is sent by the server to be tested after it is powered on and running the operating system; A ninth processing module, configured to, in response to the first control instruction, control the finger cylinder to press the switch control so that the server to be tested performs a target operation and determines the detection result of the switch control based on the received situation of the shutdown event.
15. An electronic device, characterized in that, Includes: A memory, configured to store a computer program; A processor, configured to implement the steps of the server detection method according to any one of claims 1 to 12 when executing the computer program.
16. A non-transitory computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program, when executed by a processor, implements the steps of the server detection method according to any one of claims 1 to 12.
Citation Information
Patent Citations
A server integrated test fixture, a system and a method
CN109446009A
Server control method and device, terminal equipment and readable storage medium
CN117235004A
Fault tolerant systems and method of using the same
US20170024294A1