CN117076227A - Simulation test system, method, device and medium for monitoring function of hard disk backboard - Google Patents

Simulation test system, method, device and medium for monitoring function of hard disk backboard Download PDF

Info

Publication number
CN117076227A
CN117076227A CN202311117844.XA CN202311117844A CN117076227A CN 117076227 A CN117076227 A CN 117076227A CN 202311117844 A CN202311117844 A CN 202311117844A CN 117076227 A CN117076227 A CN 117076227A
Authority
CN
China
Prior art keywords
hard disk
disk backboard
backboard
test
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311117844.XA
Other languages
Chinese (zh)
Inventor
武秋星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202311117844.XA priority Critical patent/CN117076227A/en
Publication of CN117076227A publication Critical patent/CN117076227A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2736Tester hardware, i.e. output processing circuits using a dedicated service processor for test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a simulation test system, a simulation test method, a simulation test device and a simulation test medium for a monitoring function of a hard disk backboard, wherein the simulation test system comprises the following components: the device comprises a main control computer, a hard disk backboard simulation device and a server mainboard to be tested, wherein the hard disk backboard simulation device is in data connection with the main control computer through a CPLD communication interface, and the hard disk backboard simulation device is in data connection with a baseboard management controller of the server mainboard to be tested through an I2C interface. The main control computer is used for acquiring the hard disk backboard model supported by the server main board to be tested; modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model; and controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result. The application can simulate the actual hard disk backboard and test the monitoring function of the hard disk backboard, and effectively improves the testing efficiency.

Description

Simulation test system, method, device and medium for monitoring function of hard disk backboard
Technical Field
The application relates to the technical field of computers, in particular to a simulation test system, a simulation test method, a simulation test device and a simulation test medium for a monitoring function of a hard disk backboard.
Background
The hard disk backboard is a board card connected with the hard disk on the server, and the hard disk backboard is integrated with modules such as a temperature sensor, a hard disk in-place lamp, a hard disk warning lamp and the like. In the related art, a server monitors a hard disk backboard through a Baseboard Management Controller (BMC), wherein the main monitoring mode is that the BMC is connected with a CPLD chip on the hard disk backboard through an I2C bus, monitors the temperature of the hard disk backboard, the in-place state and the alarm state of all hard disks through the hard disk backboard CPLD, controls the corresponding hard disk alarm lamps to be turned on and off according to the state of the hard disks, and triggers the BMC to correspond to an alarm log. Therefore, the monitoring function of the BMC on the hard disk backboard is mainly to match with the actual hard disk backboard to perform relevant function tests including temperature reading, hard disk in-place state test and hard disk state alarm test according to the number and the type of the hard disk backboard supported by the server.
Because the hard disk backboard is divided into a plurality of types according to the different numbers of the supporting interfaces, all the supported hard disk backboard types need to be covered during testing, so the monitoring function of the test BMC on the hard disk backboard needs to be matched with all the hard disk backboard, and the corresponding number of hard disks are configured for actual function testing. In actual test, the temperature sensor of the hard disk backboard is heated by the hot air gun to test the temperature reading monitoring function of the hard disk backboard, all the hard disks are plugged and unplugged one by one to test the hard disk on-site state monitoring function of the corresponding interfaces, and the fault hard disks are connected to the interfaces of all the hard disk backboard one by one to test the hard disk alarm monitoring function of all the hard disk interfaces.
However, since one server is limited by the chassis structure, the hard disk back plates which can be matched are limited, and thus, a plurality of servers with different chassis structures need to be built for testing all hard disk back plate types. In addition, when the in-place state and the alarm of the hard disk backboard are tested, the actual number of hard disks are matched and the hard disks are manually plugged, so that the cost of the tested materials is increased, and a great amount of time is spent. In addition, as the temperature reading value monitoring and overtemperature warning function test of the BMC on the hard disk backboard can trigger corresponding high temperature warning and read corresponding temperature reading values only through an external heating mode, corresponding scenes of the hard disk backboard temperature sensor during faults cannot be covered, and whether the temperature reading value read by the BMC is accurate or not cannot be tested.
Disclosure of Invention
In view of the above problems, the present application aims to provide a system, a method, a device and a medium for simulating a monitoring function of a hard disk back plate, which can simulate an actual hard disk back plate and test the monitoring function of the hard disk back plate, thereby effectively improving the testing efficiency.
The application aims to achieve the aim, and the aim is achieved by the following technical scheme:
in a first aspect, the present application discloses a simulation test system for monitoring functions of a hard disk back plate, comprising: the system comprises a main control computer, a hard disk backboard simulation device and a server mainboard to be tested, wherein the main control computer is respectively connected with the hard disk backboard simulation device and the server mainboard to be tested in a data mode.
The hard disk backboard simulation device is provided with a CPLD chip, an I2C interface, a CPLD communication interface and a temperature sensor, and is in data connection with the main control computer through the CPLD communication interface, and is in data connection with the baseboard management controller of the server mainboard to be tested through the I2C interface.
The main control computer is used for acquiring the hard disk backboard model supported by the server main board to be tested; modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model; and controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
In a second aspect, the application also discloses a simulation test method for the monitoring function of the hard disk backboard, which comprises the following steps:
obtaining a hard disk backboard model supported by a server mainboard to be tested;
modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model;
and controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
Further, the obtaining the hard disk backboard model supported by the server main board to be tested includes:
obtaining a hard disk backboard model supported by a server main board to be tested, and determining parameters of the hard disk backboard according to the hard disk backboard model;
the parameters of the hard disk backboard comprise: the I2C address of the hard disk backboard, the number of the hard disks supported by the hard disk backboard and the firmware version number of the CPLD chip of the hard disk backboard.
Further, the modifying the parameter setting of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model includes:
determining the model of the hard disk backboard to be simulated, and acquiring parameters of the hard disk backboard to be simulated;
modifying the I2C address of the hard disk backboard simulation device according to the I2C address of the hard disk backboard to be simulated;
according to the firmware version number of the CPLD chip of the hard disk backboard to be simulated, modifying the firmware of the CPLD chip of the hard disk backboard simulation device, and simulating the number of hard disks supported by the hard disk backboard;
logging in a baseboard management controller of a server mainboard to be tested, and reading current display parameters of a hard disk backboard;
detecting whether the display parameters of the hard disk backboard are correct or not according to the parameters of the hard disk backboard to be simulated;
if not, the test fails.
Further, the controlling the CPLD chip to simulate the operation state of the hard disk back plate according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result includes:
when the hard disk in-place state monitoring function test is carried out, the corresponding register and GPIO state signals are modified by issuing instructions to the CPLD chip so as to simulate the in-place and alarm states of the hard disk;
acquiring recorded hard disk in-place and alarm states through a baseboard management controller of a to-be-tested server mainboard, and carrying out consistency comparison with the simulated hard disk in-place and alarm states;
if the test results are consistent, the test is successful; if not, the test fails.
Further, the controlling the CPLD chip according to the test item simulates the running state of the hard disk back plate, reads the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determines the test result, and further includes:
when the hard disk alarm state monitoring function test is carried out, the GPIO state signal of the hard disk port fault lamp is modified by issuing a command to the CPLD chip so as to simulate fault hard disk alarm;
acquiring recorded hard disk alarm state information through a baseboard management controller of a to-be-tested server mainboard;
if the obtained hard disk alarm state information is consistent with the simulated fault hard disk alarm, the test is successful, otherwise, the test fails.
Further, the controlling the CPLD chip according to the test item simulates the running state of the hard disk back plate, reads the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determines the test result, and further includes:
when the hard disk temperature reading function test is carried out, the reading value of the temperature sensor is modified by issuing a command to the CPLD chip;
acquiring a recorded hard disk temperature reading value through a baseboard management controller of a to-be-tested server mainboard;
if the obtained hard disk temperature reading value is consistent with the reading value of the modified temperature sensor, the test is successful, otherwise, the test fails.
Further, the hard disk backboard display parameters include: the name number of the hard disk backboard, the version number of the backboard CPLD and the number of the hard disk ports supported by the backboard.
In a third aspect, the present application also discloses a device for simulating and testing the monitoring function of the hard disk backboard, which comprises:
the memory is used for storing a simulation test program of the monitoring function of the hard disk backboard;
and the processor is used for realizing the steps of the simulation test method of the hard disk backboard monitoring function when executing the simulation test program of the hard disk backboard monitoring function.
In a fourth aspect, the present application also discloses a readable storage medium, where a simulation test program of a hard disk back plate monitoring function is stored, where the simulation test program of the hard disk back plate monitoring function, when executed by a processor, implements the steps of the simulation test method of the hard disk back plate monitoring function as described in any one of the above.
Compared with the prior art, the application has the beneficial effects that: the application discloses a simulation test system, a simulation test method, a simulation test device and a simulation test medium for monitoring functions of a hard disk backboard. During testing, the simulation device is connected to the I2C interface of the hard disk backboard of the server main board through an I2C line, and the CPLD chip on the simulation device simulates the number and the corresponding state of the interfaces of all types of hard disk backboard supported by the server; the on-site and alarm states of the hard disk are simulated by modifying the corresponding register and GPIO states of the CPLD chip, so that the monitoring function of the BMC on the on-site and alarm states of the hard disk is tested; and the CPLD is used for modifying the read value of the temperature sensor, and the accuracy of the BMC in reading the temperature read value of the hard disk backboard is tested. The application can simulate the actual hard disk backboard and test the monitoring function of the hard disk backboard, reduces the investment of testing cost, saves testing time and improves testing efficiency.
It can be seen that the present application has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a system configuration diagram of a simulation test system for monitoring functions of a hard disk back plate in an embodiment of the present application.
Fig. 2 is a flow chart of a method for simulating and testing a monitoring function of a hard disk back plate according to an embodiment of the application.
FIG. 3 is a flow chart of another method for simulating and testing the monitoring function of the back plate of the hard disk according to the embodiment of the application.
Fig. 4 is a schematic structural diagram of a simulation test device for monitoring functions of a hard disk back plate according to an embodiment of the present application.
In the figure, 1, a main control computer; 2. a hard disk backboard simulation device; 3. a server motherboard to be tested; 4. a CPLD chip; 5. an I2C interface; 6. CPLD communication interface; 7. a temperature sensor; 101. a processor; 102. a memory; 103. an input interface; 104. an output interface; 105. a communication unit; 106. a keyboard; 107. a display; 108. and a mouse.
Detailed Description
The core of the application is to provide a simulation test method for the monitoring function of the hard disk backboard, in the related technology, all types of the hard disk backboard need to be tested, and a plurality of servers with different chassis structures need to be built. In addition, when the in-place state and the alarm of the hard disk backboard are tested, the actual number of hard disks are matched and the hard disks are manually plugged, so that the cost of the tested materials is increased, and a great amount of time is spent. In addition, as the temperature reading value monitoring and overtemperature warning function test of the BMC on the hard disk backboard can trigger corresponding high temperature warning and read corresponding temperature reading values only through an external heating mode, corresponding scenes of the hard disk backboard temperature sensor during faults cannot be covered, and whether the temperature reading value read by the BMC is accurate or not cannot be tested.
In the simulation test method for the monitoring function of the hard disk backboard, firstly, the model of the hard disk backboard supported by the main board of the server to be tested is obtained. And then, modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model. And finally, controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server mainboard to be tested in real time, and determining the test result. Therefore, the application can simulate the actual hard disk backboard and test the monitoring function of the hard disk backboard, and effectively improves the testing efficiency.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
The following explains key terms appearing in the present application.
BMC, execution server remote management controller, english name Baseboard Management Controller, is baseboard management controller.
CPLD (Complex Programmable Logic Device) is simply referred to as Complex PLD, a more Complex logic element than PLD. A CPLD is a digital integrated circuit in which a user constructs logic functions by himself as required. The basic design method is to generate corresponding target files by means of an integrated development software platform and using methods such as schematic diagrams, hardware description languages and the like, and transmit codes to a target chip through a downloading cable (programming in a system) to realize a designed digital system.
GPIO (English: general-purpose input/output), P0-P3 with a function similar to 8051, the PINs of which can be used freely by program control, and the PINs of which can be used as General Purpose Input (GPI) or General Purpose Output (GPO) or General Purpose Input and Output (GPIO) according to practical considerations, such as clk generator, chip select, etc.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, the present embodiment provides an analog testing system for monitoring functions of a hard disk back plate, including: the system comprises a main control computer 1, a hard disk backboard simulation device 2 and a server mainboard 3 to be tested, wherein the main control computer 1 is respectively in data connection with the hard disk backboard simulation device 2 and the server mainboard 3 to be tested.
The hard disk backboard simulator 2 is provided with a CPLD chip 4, an I2C interface 5, a CPLD communication interface 6 and a temperature sensor 7, the hard disk backboard simulator 2 is in data connection with the main control computer 1 through the CPLD communication interface 6, and the hard disk backboard simulator 2 is in data connection with the BMC of the server main board 3 to be tested through the I2C interface 5.
The main control computer 1 is used for acquiring the hard disk backboard model supported by the server mainboard 3 to be tested; modifying parameter settings of the hard disk backboard simulation device 2 according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model; and controlling the CPLD chip 4 to simulate the running state of the hard disk backboard according to the test items, reading the monitoring information of the BMC of the server main board 3 to be tested in real time, and determining the test result.
Specifically, the hard disk backboard simulation device 2 is connected with a corresponding I2C interface on the server motherboard 3 to be tested through the I2C interface 5, so that I2C communication with the BMC is realized, the hard disk backboard simulation device 2 is used as an I2C slave device, different hard disk backboard is simulated through modifying an I2C address, the BMC is enabled to be identified as different types of hard disk backboard, the number of supported hard disks and the in-place state of the corresponding hard disks are simulated through modifying the firmware of the CPLD chip 4, the simulated hard disk interface GPIO state is modified through the CPLD chip to trigger the hard disk fault alarm and whether the corresponding interface is in place or not, the read value of the temperature sensor 7 is modified through the CPLD chip to test the temperature read value function of the BMC monitoring backboard, and the accuracy of the read temperature read value of the BMC is tested through comparing whether the modified temperature read value is consistent with the read value monitored under the BMC.
Based on the above embodiments, referring to fig. 2, this embodiment discloses a simulation test method for a monitoring function of a hard disk back plate, and an execution subject of the method is a host computer 1. The method specifically comprises the following steps:
s101: and obtaining the model of the hard disk backboard supported by the main board of the server to be tested.
Specifically, the model of the hard disk backboard supported by the server main board to be tested is obtained, and parameters of the hard disk backboard are determined according to the model of the hard disk backboard. The parameters of the hard disk backboard include: the I2C address of the hard disk backboard, the number of the hard disks supported by the hard disk backboard and the firmware version number of the CPLD chip of the hard disk backboard.
S102: and modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model.
Specifically, firstly, determining the model of the hard disk backboard to be simulated, and obtaining parameters of the hard disk backboard to be simulated. And then, modifying the I2C address of the hard disk backboard simulation device according to the I2C address of the hard disk backboard to be simulated. At this time, the firmware of the CPLD chip of the hard disk backboard simulation device is modified according to the firmware version number of the CPLD chip of the hard disk backboard to be simulated, and the number of hard disks supported by the hard disk backboard is simulated. And then logging in the BMC of the server main board to be tested, and reading the current display parameters of the hard disk backboard. Finally, detecting whether the display parameters of the hard disk backboard are correct or not according to the parameters of the hard disk backboard to be simulated; if not, the test fails. Wherein, the display parameters of the hard disk backboard comprise: the name number of the hard disk backboard, the version number of the backboard CPLD and the number of the hard disk ports supported by the backboard.
S103: and controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
The step realizes the simulation test of the monitoring functions of the three hard disk backboard. According to different test items, the specific test process is as follows:
1. when the hard disk in-place state monitoring function test is carried out, firstly, corresponding registers and GPIO state signals are modified by issuing instructions to the CPLD chip so as to simulate the in-place and alarm states of the hard disk; then acquiring recorded hard disk in-place and alarm states through a baseboard management controller of a to-be-tested server mainboard, and carrying out consistency comparison with the simulated hard disk in-place and alarm states; if the test results are consistent, the test is successful; if not, the test fails.
2. When the hard disk alarm state monitoring function test is carried out, firstly, a GPIO state signal of a hard disk port fault lamp is modified by issuing a command to a CPLD chip so as to simulate fault hard disk alarm; then acquiring recorded hard disk alarm state information through a baseboard management controller of a to-be-tested server mainboard; if the obtained hard disk alarm state information is consistent with the simulated fault hard disk alarm, the test is successful, otherwise, the test fails.
3. When the hard disk temperature reading function test is carried out, firstly, the reading value of the temperature sensor is modified by issuing a command to the CPLD chip; then acquiring a recorded hard disk temperature reading value through a baseboard management controller of a to-be-tested server main board; if the obtained hard disk temperature reading value is consistent with the reading value of the modified temperature sensor, the test is successful, otherwise, the test fails.
So far, the simulation test of the monitoring function of the hard disk backboard of one model is completed, and in practical application, all supported hard disk backboard types of the test server are traversed, and according to different hard disk backboard models, the steps are repeated, so that the test of the monitoring function of the BMC hard disk backboard of the server to be tested can be completed
In addition, it should be specifically noted that, the execution body of the simulation test method for the monitoring function of the hard disk back plate provided by the embodiment of the present application includes, but is not limited to, at least one of a server, a terminal, and an electronic device capable of being configured to execute the method provided by the embodiment of the present application. In other words, the method for simulating and testing the monitoring function of the hard disk backboard can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
As an example, based on the above embodiment, referring to fig. 3, the present embodiment further discloses a method for simulating and testing a monitoring function of a hard disk back plate, which specifically includes the following steps:
s201: and obtaining the type of the hard disk backboard supported by the server mainboard to be tested, and determining the parameters of the hard disk backboard according to the type of the hard disk backboard.
S202: and determining the model of the hard disk backboard to be simulated, and acquiring parameters of the hard disk backboard to be simulated.
The parameters of the hard disk backboard include: the I2C address of the hard disk backboard, the number of the hard disks supported by the hard disk backboard and the firmware version number of the CPLD chip of the hard disk backboard.
S203: and modifying the firmware of the CPLD chip of the hard disk backboard simulation device according to the firmware version number of the CPLD chip of the hard disk backboard to be simulated, and simulating the number of the hard disks supported by the hard disk backboard.
S204: logging in a baseboard management controller of a server mainboard to be tested, and reading current display parameters of the hard disk backboard.
S205: and detecting whether the display parameters of the hard disk backboard are consistent with the parameters of the simulated hard disk backboard, if so, executing the next step, otherwise, failing the test.
By the method, whether the display of the corresponding hard disk backboard parameters under the BMC web of the server is correct or not is checked, and the display comprises a hard disk backboard name number, a backboard CPLD version number, a backboard supported hard disk port number and the like.
S206: the corresponding register and GPIO state signals are modified by issuing instructions to the CPLD chip so as to simulate the hard disk in-place and alarm states.
S207: and acquiring the recorded hard disk in-place and alarm states through the BMC of the server to be tested.
S208: judging whether the recorded state is consistent with the simulated state; if yes, executing the next step, otherwise, failing the test.
And the three steps are that the states of the on-site GPIO of the hard disk are modified, the on-site and off-site states of the hard disk are simulated, meanwhile, whether the states of the corresponding hard disk under the BMC are consistent with expectations or not is checked, whether the corresponding on-site and off-site alarm logs are normal or not is checked, all supported hard disk ports are traversed, and therefore the on-site state monitoring function of the BMC on all ports of the hard disk is tested.
S209: and modifying the GPIO state signal of the hard disk port fault lamp by issuing an instruction to the CPLD chip so as to simulate fault hard disk alarm.
S210: and acquiring recorded hard disk alarm state information through the BMC of the server main board to be tested.
S211: judging whether the recorded state is consistent with the simulated state; if yes, executing the next step, otherwise, failing the test.
The three steps are that the fault hard disk alarm is simulated by modifying the GPIO state of the hard disk port fault lamp, meanwhile, the BMC is logged in to check whether the state of the corresponding hard disk is an alarm state or not, whether the corresponding alarm log accords with the expectation or not is logged in the BMC, all supported hard disk ports are traversed, and therefore the function of monitoring the alarm state of all ports of the hard disk by the BMC is tested
S212: the read value of the temperature sensor is modified by issuing a command to the CPLD chip.
S213: and acquiring the recorded hard disk temperature reading value through a baseboard management controller of the server main board to be tested.
S214: judging whether the recorded reading value is consistent with the simulated reading value; if yes, executing the next step, otherwise, failing the test.
The three steps are that the read value of the temperature sensor is modified through the CPLD to test the function of the BMC for monitoring the read value of the back plate temperature, and the accuracy of the BMC for reading the read value of the temperature is tested by comparing whether the modified read value of the temperature is consistent with the read value monitored under the BMC.
S215: judging whether all types of the adaptive hard disk backboard are tested; if yes, ending the test; otherwise, step S202 is performed.
Therefore, the simulation test method for the monitoring function of the hard disk backboard provided by the application tests the function of the BMC monitoring hard disk backboard through the hard disk backboard simulation device, and the simulation device comprises an I2C interface, a CPLD chip and a temperature sensor. During testing, the simulation device is connected to the I2C interface of the hard disk backboard of the server main board through an I2C line, and the CPLD chip on the simulation device simulates the number and the corresponding state of the interfaces of all types of hard disk backboard supported by the server; the on-site and alarm states of the hard disk are simulated by modifying the corresponding register and GPIO states of the CPLD chip, so that the monitoring function of the BMC on the on-site and alarm states of the hard disk is tested; and the CPLD is used for modifying the read value of the temperature sensor, and the accuracy of the BMC in reading the temperature read value of the hard disk backboard is tested. The method can simulate the actual hard disk backboard and test the monitoring function of the hard disk backboard, reduces the investment of testing cost, saves testing time and improves testing efficiency.
Referring to fig. 4, the application also discloses an analog testing device for monitoring functions of the hard disk backboard, which comprises a processor 101 and a memory 102; the processor 101 executes the simulation test program of the hard disk backboard monitoring function stored in the memory, and then realizes the following steps:
1. and obtaining the model of the hard disk backboard supported by the main board of the server to be tested.
2. And modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model.
3. And controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
The simulation test device for the monitoring function of the hard disk backboard provided by the embodiment can include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer or the like.
Processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 101 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processor, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 101 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a central processor (Central Processing Unit, CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 101 may be integrated with an image processor (Graphics Processing Unit, GPU) for use in connection with rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 101 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 102 may include one or more computer-readable storage media, which may be non-transitory. Memory 102 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 102 is at least used for storing a computer program, where the computer program can implement relevant steps of the simulation test method for the monitoring function of the hard disk back plate disclosed in any of the foregoing embodiments after being loaded and executed by the processor 101. In addition, the resources stored in the memory 102 may also include an operating system, data, and the like, and the storage manner may be transient storage or permanent storage. The operating system may include Windows, unix, linux, among others. The data may include, but is not limited to, data involved in the above-described analog test method of the hard disk back-plate monitoring function, and the like.
Further, the simulation test device for the monitoring function of the hard disk backboard in the embodiment may further include:
the input interface 103 is configured to obtain an externally-imported analog test program of the hard disk backplate monitoring function, store the obtained analog test program of the hard disk backplate monitoring function in the memory 102, and also be configured to obtain various instructions and parameters transmitted by an external terminal device, and transmit the various instructions and parameters to the processor 101, so that the processor 101 uses the various instructions and parameters to develop corresponding processing. In this embodiment, the input interface 103 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And an output interface 104 for outputting various data generated by the processor 101 to a terminal device connected thereto, so that other terminal devices connected to the output interface can acquire various data generated by the processor 101. In this embodiment, the output interface 104 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit 105 is used for establishing remote communication connection between the server operation service optimizing configuration device and the external server so that the simulation test device with the hard disk backboard monitoring function can mount the image file to the external server. In this embodiment, the communication unit 105 may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
A keyboard 106 for acquiring various parameter data or instructions inputted by a user by tapping the key cap in real time.
And the display 107 is used for displaying the related information of the simulation test process running the monitoring function of the hard disk backboard in real time.
The mouse 108 may be used to assist the user in inputting data and to simplify the user's operation.
The application also discloses a readable storage medium, which includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a simulation test program of the hard disk backboard monitoring function, and the simulation test program of the hard disk backboard monitoring function realizes the following steps when being executed by a processor:
1. and obtaining the model of the hard disk backboard supported by the main board of the server to be tested.
2. And modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model.
3. And controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
In summary, the application can simulate the actual hard disk backboard and test the monitoring function of the hard disk backboard, thereby reducing the investment of testing cost, saving testing time and improving testing efficiency.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit.
Similarly, each processing unit in the embodiments of the present application may be integrated in one functional module, or each processing unit may exist physically, or two or more processing units may be integrated in one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The simulation test system, the simulation test method, the simulation test device and the simulation test device for the monitoring function of the hard disk backboard and the readable storage medium provided by the application are described in detail. The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present application and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.

Claims (10)

1. The simulation test system for the monitoring function of the hard disk backboard is characterized by comprising the following components:
the system comprises a main control computer, a hard disk backboard simulation device and a server mainboard to be tested, wherein the main control computer is respectively connected with the hard disk backboard simulation device and the server mainboard to be tested in a data mode;
the hard disk backboard simulation device is provided with a CPLD chip, an I2C interface, a CPLD communication interface and a temperature sensor; the hard disk backboard simulation device is in data connection with the main control computer through a CPLD communication interface, and is in data connection with a baseboard management controller of the server mainboard to be tested through an I2C interface;
the master control computer is specifically used for:
obtaining the model of a hard disk backboard supported by a server mainboard to be tested; modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model; and controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
2. The simulation test method for the monitoring function of the hard disk backboard is characterized by comprising the following steps of:
obtaining a hard disk backboard model supported by a server mainboard to be tested;
modifying parameter settings of the hard disk backboard simulation device according to the model of the hard disk backboard to simulate the hard disk backboard of the corresponding model;
and controlling the CPLD chip to simulate the running state of the hard disk backboard according to the test item, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result.
3. The method for simulating the monitoring function of the hard disk back plate according to claim 2, wherein the obtaining the hard disk back plate model supported by the server main board to be tested comprises:
obtaining a hard disk backboard model supported by a server main board to be tested, and determining parameters of the hard disk backboard according to the hard disk backboard model;
the parameters of the hard disk backboard comprise: the I2C address of the hard disk backboard, the number of the hard disks supported by the hard disk backboard and the firmware version number of the CPLD chip of the hard disk backboard.
4. A method for simulating a monitoring function of a hard disk back plate according to claim 3, wherein modifying the parameter setting of the hard disk back plate simulator according to the type of the hard disk back plate to simulate the corresponding type of the hard disk back plate comprises:
determining the model of the hard disk backboard to be simulated, and acquiring parameters of the hard disk backboard to be simulated;
modifying the I2C address of the hard disk backboard simulation device according to the I2C address of the hard disk backboard to be simulated;
modifying the firmware of the CPLD chip of the hard disk backboard simulation device according to the firmware version number of the CPLD chip of the hard disk backboard to be simulated;
setting the number of the hard disks supported by the hard disk backboard simulation device according to the number of the hard disks supported by the hard disk backboard to be simulated; logging in a baseboard management controller of a server main board to be tested;
acquiring current display parameters of the hard disk backboard through a baseboard management controller;
extracting a hard disk backboard name number, a firmware version number of a hard disk backboard CPLD chip and the number of hard disks supported by the hard disk backboard from the current hard disk backboard display parameters;
judging whether the extracted name number of the hard disk backboard is the same as the model of the hard disk backboard to be simulated;
if not, the test fails; if yes, judging whether the extracted firmware version number of the CPLD chip of the hard disk backboard is the same as the firmware version number of the CPLD chip of the hard disk backboard to be simulated;
if not, the test fails; if yes, judging whether the number of the extracted hard disks supported by the hard disk backboard is the same as the number of the hard disks supported by the hard disk backboard to be simulated;
if not, the test fails.
5. The method for simulating the monitoring function of the hard disk back plate according to claim 4, wherein the controlling the CPLD chip to simulate the operation state of the hard disk back plate according to the test items, reading the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determining the test result comprises:
when the hard disk in-place state monitoring function test is carried out, the corresponding register and GPIO state signals are modified by issuing instructions to the CPLD chip so as to simulate the in-place and alarm states of the hard disk;
acquiring recorded hard disk in-place and alarm states through a baseboard management controller of a to-be-tested server mainboard, and carrying out consistency comparison with the simulated hard disk in-place and alarm states;
if the test results are consistent, the test is successful; if not, the test fails.
6. The method for simulating the monitoring function of the hard disk back plate according to claim 4, wherein the controlling the CPLD chip to simulate the operation state of the hard disk back plate according to the test items reads the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determines the test result, further comprises:
when the hard disk alarm state monitoring function test is carried out, the GPIO state signal of the hard disk port fault lamp is modified by issuing a command to the CPLD chip so as to simulate fault hard disk alarm;
acquiring recorded hard disk alarm state information through a baseboard management controller of a to-be-tested server mainboard;
if the obtained hard disk alarm state information is consistent with the simulated fault hard disk alarm, the test is successful, otherwise, the test fails.
7. The method for simulating the monitoring function of the hard disk back plate according to claim 4, wherein the controlling the CPLD chip to simulate the operation state of the hard disk back plate according to the test items reads the monitoring information of the baseboard management controller of the server main board to be tested in real time, and determines the test result, further comprises:
when the hard disk temperature reading function test is carried out, the reading value of the temperature sensor is modified by issuing a command to the CPLD chip;
acquiring a recorded hard disk temperature reading value through a baseboard management controller of a to-be-tested server mainboard;
if the obtained hard disk temperature reading value is consistent with the reading value of the modified temperature sensor, the test is successful, otherwise, the test fails.
8. The method for simulating the monitoring function of a hard disk back plate according to claim 4, wherein the display parameters of the hard disk back plate include: the name number of the hard disk backboard, the version number of the backboard CPLD and the number of the hard disk ports supported by the backboard.
9. The utility model provides a simulation test device of hard disk backplate control function which characterized in that includes:
the memory is used for storing a simulation test program of the monitoring function of the hard disk backboard;
a processor for implementing the steps of the method for simulating the monitoring function of the hard disk back plate according to any one of claims 2 to 8 when executing the program for simulating the monitoring function of the hard disk back plate.
10. A readable storage medium, characterized by: the readable storage medium stores thereon a simulation test program of a hard disk back plate monitoring function, which when executed by a processor, implements the steps of the simulation test method of a hard disk back plate monitoring function as set forth in any one of claims 2 to 8.
CN202311117844.XA 2023-08-31 2023-08-31 Simulation test system, method, device and medium for monitoring function of hard disk backboard Pending CN117076227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311117844.XA CN117076227A (en) 2023-08-31 2023-08-31 Simulation test system, method, device and medium for monitoring function of hard disk backboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311117844.XA CN117076227A (en) 2023-08-31 2023-08-31 Simulation test system, method, device and medium for monitoring function of hard disk backboard

Publications (1)

Publication Number Publication Date
CN117076227A true CN117076227A (en) 2023-11-17

Family

ID=88711537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311117844.XA Pending CN117076227A (en) 2023-08-31 2023-08-31 Simulation test system, method, device and medium for monitoring function of hard disk backboard

Country Status (1)

Country Link
CN (1) CN117076227A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117992311A (en) * 2024-03-29 2024-05-07 苏州元脑智能科技有限公司 Server and hard disk monitoring method, device, equipment and medium thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117992311A (en) * 2024-03-29 2024-05-07 苏州元脑智能科技有限公司 Server and hard disk monitoring method, device, equipment and medium thereof
CN117992311B (en) * 2024-03-29 2024-06-14 苏州元脑智能科技有限公司 Server and hard disk monitoring method, device, equipment and medium thereof

Similar Documents

Publication Publication Date Title
CN108170612B (en) Automatic testing method and device and server
CN117076227A (en) Simulation test system, method, device and medium for monitoring function of hard disk backboard
WO2018201615A1 (en) Testing method and system for use with battery management unit
CN102147831A (en) Logic verification method and device
CN115983173A (en) Register model generation method and device, computer equipment and storage medium
CN113703792A (en) Firmware remote upgrade test method, device, server and medium
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN116610336A (en) Firmware upgrading method, system, device and readable storage medium
CN115576711A (en) Method and system for simulating returned data and computing equipment
US6813751B2 (en) Creating standard VHDL test environments
CN111295658A (en) Simulation device, simulation method, and simulation program
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN109753308B (en) Instruction path verification system and instruction path monitoring method
CN113176993A (en) Case testing method and device, electronic equipment and storage medium
CN112732498A (en) Test method, device, equipment and storage medium for simulating single-point power-on and power-off of equipment
CN111859985A (en) AI customer service model testing method, device, electronic equipment and storage medium
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN117709255B (en) Test method, device, equipment and medium for indirect access register
CN108073427A (en) FPGA image loading method and system
CN114003431B (en) Non-4 k aligned Trim data verification method, system and device for Nvme solid state disk
CN115114212B (en) VPD (virtual private digital) refreshing method, device, equipment and medium
EP3961389A1 (en) Virtual machine for developing and testing target code for hardware designs
CN112988250B (en) Multi-mainboard USB service configuration method, system, terminal and storage medium
CN117873441A (en) Method, device, equipment and medium for determining customization options
CN115129568A (en) Server mainboard virtualization capability verification method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination