CN113986639A - Server function testing method, device, equipment and storage medium - Google Patents

Server function testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113986639A
CN113986639A CN202111593644.2A CN202111593644A CN113986639A CN 113986639 A CN113986639 A CN 113986639A CN 202111593644 A CN202111593644 A CN 202111593644A CN 113986639 A CN113986639 A CN 113986639A
Authority
CN
China
Prior art keywords
mainboard
target
test
server
motherboard
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
CN202111593644.2A
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 CN202111593644.2A priority Critical patent/CN113986639A/en
Publication of CN113986639A publication Critical patent/CN113986639A/en
Pending legal-status Critical Current

Links

Images

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/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • 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/2273Test methods
    • 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

Landscapes

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

Abstract

The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a server function. The method comprises the following steps: establishing communication channels of a plurality of mainboards of a server to be tested; selecting one main board from a plurality of main boards as a target main board; executing a target function test command on the target mainboard; remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel; and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command. The scheme of the invention only needs to maintain one test program, reduces the difficulty of maintaining the test program, simplifies the function test operation, reduces the workload of testers and obviously improves the test efficiency.

Description

Server function testing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a server function.
Background
With the rapid development of current computing power, the usage of servers is rising sharply. The research and development and iterative update of the server are particularly important, and each server motherboard is subjected to retest and verification before leaving a factory, wherein Functional Circuit Test (FCT) exists. The FCT is a Test method for providing a simulated operating environment (excitation and load) for a Test target board (UUT: Unit Under Test) to operate in various design states, and thus obtaining parameters of each state to verify the function of the UUT. Simply put, the UUT is loaded with the appropriate stimulus and the output response is measured for compliance. Generally, refers specifically to functional testing of the PCBA.
With the increasing number of multi-node servers and the increasing requirement on the function testing rate, the method for testing the FCT function of one multi-node server by starting up for multiple times is increasingly inconvenient. For example, suppose that the server has 4 main boards, each main board is inserted with a side board, the 4 side boards are connected to the same hard disk backplane through high-density interfaces, each main board controls 6 hard disk interfaces, the hard disk backplane has 24 hard disk ports, and all 4 nodes can completely cover all the interfaces of the hard disk backplane. According to the traditional test method of the multi-node server, 4 sets of similar and incomplete identical test programs are prepared, 4 nodes are respectively started, 4 display screens are used for sequentially testing 6 hard disk backboard interfaces covered by a first mainboard and 6 interfaces covered by a second mainboard until the last mainboard, and after the test of every 4 mainboards is completed, logs are collected and uploaded.
The defects of the traditional server testing method are as follows: first, 4 displays, 4 VGA lines, 4 keyboards, and 4 programs are needed. Secondly, the resource occupation of the factory is large, and the test table is relatively chaotic. Thirdly, the testing efficiency is extremely low; in the programs, the programs of the 4 nodes have relevance, because the programs are programs for testing a hard disk backplane, every time a problem occurs in one of the nodes, all the tasks need to be repeated, and the longest time is usually boot time in each FCT test, so that the test efficiency is greatly influenced. And finally, the program maintenance cost is high, a large number of same test functions exist in 4 sets of programs, 4 programs need to be modified when one function is maintained, and the workload of a tester for maintaining the test programs is greatly increased.
Disclosure of Invention
In view of the above, it is desirable to provide a server function testing method, apparatus, device and storage medium.
According to a first aspect of the present invention, there is provided a server function testing method, the method comprising:
establishing communication channels of a plurality of mainboards of a server to be tested;
selecting one main board from a plurality of main boards as a target main board;
executing a target function test command on the target mainboard;
remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
In some embodiments, the step of establishing communication channels of a plurality of motherboards of the server to be tested includes:
connecting a plurality of main boards of a server to be tested to the same local area network;
acquires motherboard ID information from the configuration file of each motherboard,
and modifying the network configuration file of each mainboard based on the mainboard ID information to set a network IP address, a network mask and a broadcast address, wherein the network masks and the broadcast addresses of a plurality of mainboards are the same, and the network IP addresses of different mainboards are different.
In some embodiments, the step of remotely logging on each motherboard other than the target motherboard on the target motherboard based on the established communication channel comprises:
and logging in the system of the corresponding mainboard based on the network IP address, the preset user and the preset login password of each mainboard.
In some embodiments, the method further comprises:
acquiring first test record information generated by the target mainboard executing the target function test command from a test log;
and storing the first test record information to a preset position.
In some embodiments, the method further comprises:
acquiring second test record information generated by the mainboard except the target mainboard executing the target function test command;
and additionally storing the second test record information to the preset position.
In some embodiments, the method further comprises:
receiving a test judgment result input by a user from a peripheral input device connected with the target mainboard, wherein the test judgment result comprises a first code for representing that the test of each of the plurality of mainboards is successful and a second code for representing that the test of at least one mainboard fails;
responding to the test judgment result that the test judgment result is the first code, and displaying that the target function test is successful through a display connected with the target mainboard;
and displaying the target function test failure through a display connected with the target mainboard in response to the test judgment result changing into the second code.
In some embodiments, the target function test command includes at least one of controlling a hard disk lamp to be turned on, controlling a hard disk lamp to be turned off, controlling a lamp to flash, controlling a hard disk to read and write, and reading a bandwidth.
According to a second aspect of the present invention, there is provided a server function testing apparatus, the apparatus comprising:
the establishing module is used for establishing communication channels of a plurality of mainboards of the server to be tested;
a selection module configured to select one motherboard from the plurality of motherboards as a target motherboard;
the first test module is configured to execute a target function test command on the target mainboard;
the remote login module is configured to remotely log in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and the command sending module is configured to respond to a certain mainboard to complete remote login, and send the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
According to a third aspect of the present invention, there is also provided a computer apparatus comprising:
at least one processor; and
a memory storing a computer program operable on a processor, the processor executing the program to perform the aforementioned server function testing method, the method comprising:
establishing communication channels of a plurality of mainboards of a server to be tested;
selecting one main board from a plurality of main boards as a target main board;
executing a target function test command on the target mainboard;
remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
According to a fourth aspect of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, performs the aforementioned server function testing method, the method comprising:
establishing communication channels of a plurality of mainboards of a server to be tested;
selecting one main board from a plurality of main boards as a target main board;
executing a target function test command on the target mainboard;
remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
According to the server function testing method, firstly, communication channels of a plurality of mainboards of a server to be tested are established, then one mainboard is selected from the plurality of mainboards to serve as a target mainboard, then a target function testing command is executed on the target mainboard, remote login service is carried out on each of the rest mainboards, and the target function testing command is generated to the rest mainboards through the target mainboard to be executed after the rest mainboards complete remote login.
In addition, the invention also provides a server function testing device, a computer device and a computer readable storage medium, which can also realize the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method 100 for testing server functions according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server function testing apparatus 200 according to another embodiment of the present invention;
fig. 3 is an internal structural view of a computer device in another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In an embodiment, referring to fig. 1, the present invention provides a server function testing method, specifically, the method includes the following steps:
step 101, establishing communication channels of a plurality of mainboards of a server to be tested;
the number of the mainboards of the server to be tested is two or more, for example, the existing architecture of four mainboards and 24 hard disks.
102, selecting one mainboard from a plurality of mainboards as a target mainboard;
in this embodiment, the target motherboard may be any one of a plurality of motherboards, and in a specific implementation process, the plurality of motherboards usually have preset board information, the board information has corresponding ID information, for example, IDs of four motherboards are 00, 01, 02, and 03, respectively, and the motherboard with ID information of 00 may be set as the target motherboard.
Step 103, executing a target function test command on the target mainboard;
104, remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
step 105, in response to a certain motherboard completing remote login, sending the target function test command to the certain motherboard through the target motherboard, so that the certain motherboard executes the target function test command.
According to the server function testing method, firstly, communication channels of a plurality of mainboards of a server to be tested are established, then one mainboard is selected from the plurality of mainboards to serve as a target mainboard, then a target function testing command is executed on the target mainboard, remote login service is carried out on each of the rest mainboards, and the target function testing command is generated to the rest mainboards through the target mainboard to be executed after the rest mainboards complete remote login.
In some embodiments, the foregoing step 101 specifically includes the following sub-steps:
connecting a plurality of main boards of a server to be tested to the same local area network;
acquires motherboard ID information from the configuration file of each motherboard,
and modifying the network configuration file of each mainboard based on the mainboard ID information to set a network IP address, a network mask and a broadcast address, wherein the network masks and the broadcast addresses of a plurality of mainboards are the same, and the network IP addresses of different mainboards are different.
In some embodiments, the step 104 specifically includes:
and logging in the system of the corresponding mainboard based on the network IP address, the preset user and the preset login password of each mainboard.
In some embodiments, on the basis of the preceding embodiments, the method of the present invention further comprises the steps of:
acquiring first test record information generated by the target mainboard executing the target function test command from a test log;
and storing the first test record information to a preset position.
In some embodiments, the method of the present invention further comprises the steps of:
acquiring second test record information generated by the mainboard except the target mainboard executing the target function test command;
and additionally storing the second test record information to the preset position.
In some embodiments, the method further comprises:
receiving a test judgment result input by a user from a peripheral input device connected with the target mainboard, wherein the test judgment result comprises a first code for representing that the test of each of the plurality of mainboards is successful and a second code for representing that the test of at least one mainboard fails;
responding to the test judgment result that the test judgment result is the first code, and displaying that the target function test is successful through a display connected with the target mainboard;
and displaying the target function test failure through a display connected with the target mainboard in response to the test judgment result changing into the second code.
In some embodiments, the target function test command includes at least one of controlling a hard disk lamp to be turned on, controlling a hard disk lamp to be turned off, controlling a lamp to flash, controlling a hard disk to read and write, and reading a bandwidth.
In another embodiment, in order to facilitate understanding of the technical solution of the present invention, the following description is made in detail by taking a test for controlling light-off as an example, and it is assumed that a server chassis has four upper, lower, left, and right motherboards, each motherboard has a CPU, each motherboard can be independently powered on, the server further includes a 24-port SATA hard disk backplane, each motherboard corresponds to 6 hard disks therein, and the implementation manner of controlling light-off of the server is as follows:
firstly, connecting four main boards to the same local area network, and then operating the following programs on each main board to carry out fixed IP setting;
id=`ipmitool raw 0x3c 0x70 0xff | awk '{print $1}'`
ifconfig -a > ifconfig.txt
eth=`cat ifconfig.txt | grep -A1 "enp" | sed -n '$!N;/192.168.2/!P;D' | awk NR==1|awk -F ':' '{print$1}'`
if [ $id == 00 ];then
ifconfig $eth down
ifconfig $eth 172.168.8.1 netmask 255.255.0.0 broadcast 172.168.8.11 up
sleep 2
elif [ $id == 01 ];then
ifconfig $eth down
ifconfig $eth 172.168.8.2 netmask 255.255.0.0 broadcast 172.168.8.11 up
sleep 2
elif [ $id == 02 ];then
ifconfig $eth down
ifconfig $eth 172.168.8.3 netmask 255.255.0.0 broadcast 172.168.8.11 up
sleep 2
elif [ $id == 03 ];then
ifconfig $eth down
ifconfig $eth 172.168.8.4 netmask 255.255.0.0 broadcast 172.168.8.11 up
sleep 2
fi
}
second, one of the four motherboards is selected to run the following test program, and the selected motherboard ID is assumed to be 00, and the motherboard is connected to the external input device (e.g., keyboard) and the display device (e.g., display), and the other three motherboards are not required to be connected to the external input device and the display device.
nvmeblueoff()
{
LOG "NVME Locate LED On Test..."
ledctl off=/dev/nvme0n1,/dev/nvme1n1,/dev/nvme2n1,/dev/nvme3n1,/dev/nvme4n1,/dev/nvme5n1
sleep 1s
./blueoff.sh $node2ip
sleep 1s
./blueoff.sh $node3ip
sleep 1s
./blueoff.sh $node4ip
sleep 1s
The state of the/msgbox disk position indicator lamp is
Figure 71514DEST_PATH_IMAGE001
All blue normally on and all off
if [ $
Figure 213783DEST_PATH_IMAGE001
-eq 22 ];then
LOG "NVME Locate LED Test........Passed"
return 0
else
LOG "NVME Locate LED Test........Failed"
return 1
fi
}
The functions implemented by the above test program are described as follows: firstly, executing a light-out command on a mainboard running the test program, namely turning off 6 hard disk lamps controlled by the mainboard; thirdly, calling a blue off sub-program for three times by using the IP addresses of the remaining three main boards to respectively remotely log in the remaining three main boards and execute a light-off command on the three main boards; and finally, receiving the test judgment result through the connected input equipment, and displaying the light-off test result through the connected display, for example, if all 24 hard disk lamps are turned off, informing the tester of successful test through the display.
Thirdly, the blue off procedure for turning off the lights of the other main boards is specifically as follows:
ip_add=$1
nvmex=$2
user=root
password=111111
{
/usr/bin/expect <<EOF
set timeout -1
spawn ssh $user@$ip_add
match_max 100000
expect -exact "~]# "
send"ledctl off=/dev/nvme0n1,/dev/nvme1n1,/dev/nvme2n1,/dev/nvme3n1,/dev/nvme4n1,/dev/nvme5n1 \r"
expect -exact "~]# "
send -- "exit\r"
EOF
} |tee green.txt
the IP _ add is a parameter, the parameter refers to an IP address of a certain remaining motherboard point, the content of the function is an instruction for turning off 6 hard disk lamps connected to the motherboard with the IP address being IP _ add, and the executed result is stored in green. It should be noted that: the control lamp flicker, the read-write, the bandwidth and the like are tested in a similar mode, and the log is always read and written on the first mainboard, so that the problem that the log is not visual and needs to be uploaded for 4 times in the traditional method does not exist, and only the uploading function is called after the test is finished.
In this embodiment, in the server function testing method, the main boards running the test program can respectively turn off all 24 lamps and obtain all test data as long as the addresses of the other three main boards are respectively called three times and transmitted to the blue off.sh subprogram for controlling the lamps to be turned off, and this action can be completed only by one display, so that the defects of troublesome maintenance, complex operation and equipment waste are eliminated, equipment, programs and manpower are efficiently utilized, and the debugging efficiency is greatly improved.
In another embodiment, referring to fig. 2, the present invention further provides a server function testing apparatus 200, including:
an establishing module 201 configured to establish communication channels of a plurality of mainboards of a server to be tested;
a selecting module 202 configured to select one motherboard from a plurality of motherboards as a target motherboard;
a first testing module 203 configured to execute a target function testing command on the target motherboard;
a remote login module 204 configured to perform remote login on each motherboard except the target motherboard on the target motherboard based on the established communication channel;
a command sending module 205, configured to, in response to a certain motherboard completing remote login, send the target function test command to the certain motherboard through the target motherboard, so that the certain motherboard executes the target function test command.
The server function testing device comprises a plurality of mainboards, a plurality of communication channels of the mainboards of a server to be tested are established, one of the mainboards is selected as a target mainboard, a target function testing command is executed on the target mainboard, remote login service is carried out on each of the other mainboards on the target mainboard, the target function testing command is executed on the remaining mainboard through the target mainboard after the remaining mainboard completes remote login, only one testing program needs to be maintained, the difficulty of maintaining the testing program is reduced, function testing operation is simplified, the workload of testers is reduced, and the testing efficiency is remarkably improved.
It should be noted that, for specific limitations of the server function testing apparatus, reference may be made to the above limitations of the server function testing method, and details are not described herein again. All or part of each module in the server function testing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to another aspect of the present invention, a computer device is provided, and the computer device may be a server, and its internal structure is shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements the method for server functionality testing described above, in particular the method comprising the steps of:
establishing communication channels of a plurality of mainboards of a server to be tested;
selecting one main board from a plurality of main boards as a target main board;
executing a target function test command on the target mainboard;
remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
In some embodiments, the step of establishing communication channels of a plurality of motherboards of the server to be tested includes:
connecting a plurality of main boards of a server to be tested to the same local area network;
acquires motherboard ID information from the configuration file of each motherboard,
and modifying the network configuration file of each mainboard based on the mainboard ID information to set a network IP address, a network mask and a broadcast address, wherein the network masks and the broadcast addresses of a plurality of mainboards are the same, and the network IP addresses of different mainboards are different.
In some embodiments, the step of remotely logging on each motherboard other than the target motherboard on the target motherboard based on the established communication channel comprises:
and logging in the system of the corresponding mainboard based on the network IP address, the preset user and the preset login password of each mainboard.
In some embodiments, the method further comprises:
acquiring first test record information generated by the target mainboard executing the target function test command from a test log;
and storing the first test record information to a preset position.
In some embodiments, the method further comprises:
acquiring second test record information generated by the mainboard except the target mainboard executing the target function test command;
and additionally storing the second test record information to the preset position.
In some embodiments, the method further comprises:
receiving a test judgment result input by a user from a peripheral input device connected with the target mainboard, wherein the test judgment result comprises a first code for representing that the test of each of the plurality of mainboards is successful and a second code for representing that the test of at least one mainboard fails;
responding to the test judgment result that the test judgment result is the first code, and displaying that the target function test is successful through a display connected with the target mainboard;
and displaying the target function test failure through a display connected with the target mainboard in response to the test judgment result changing into the second code.
In some embodiments, the target function test command includes at least one of controlling a hard disk lamp to be turned on, controlling a hard disk lamp to be turned off, controlling a lamp to flash, controlling a hard disk to read and write, and reading a bandwidth.
According to yet another aspect of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the server function testing method described above, in particular, comprising performing the steps of:
establishing communication channels of a plurality of mainboards of a server to be tested;
selecting one main board from a plurality of main boards as a target main board;
executing a target function test command on the target mainboard;
remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
In some embodiments, the step of establishing communication channels of a plurality of motherboards of the server to be tested includes:
connecting a plurality of main boards of a server to be tested to the same local area network;
acquires motherboard ID information from the configuration file of each motherboard,
and modifying the network configuration file of each mainboard based on the mainboard ID information to set a network IP address, a network mask and a broadcast address, wherein the network masks and the broadcast addresses of a plurality of mainboards are the same, and the network IP addresses of different mainboards are different.
In some embodiments, the step of remotely logging on each motherboard other than the target motherboard on the target motherboard based on the established communication channel comprises:
and logging in the system of the corresponding mainboard based on the network IP address, the preset user and the preset login password of each mainboard.
In some embodiments, the method further comprises:
acquiring first test record information generated by the target mainboard executing the target function test command from a test log;
and storing the first test record information to a preset position.
In some embodiments, the method further comprises:
acquiring second test record information generated by the mainboard except the target mainboard executing the target function test command;
and additionally storing the second test record information to the preset position.
In some embodiments, the method further comprises:
receiving a test judgment result input by a user from a peripheral input device connected with the target mainboard, wherein the test judgment result comprises a first code for representing that the test of each of the plurality of mainboards is successful and a second code for representing that the test of at least one mainboard fails;
responding to the test judgment result that the test judgment result is the first code, and displaying that the target function test is successful through a display connected with the target mainboard;
and displaying the target function test failure through a display connected with the target mainboard in response to the test judgment result changing into the second code.
In some embodiments, the target function test command includes at least one of controlling a hard disk lamp to be turned on, controlling a hard disk lamp to be turned off, controlling a lamp to flash, controlling a hard disk to read and write, and reading a bandwidth.
It will be understood by those skilled in the art that all or part of the processes of the above embodiments may be implemented by a computer program, which can be stored in a non-volatile computer readable storage medium, and can include the processes of the above embodiments of the methods when the computer program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A server function testing method, the method comprising:
establishing communication channels of a plurality of mainboards of a server to be tested;
selecting one main board from a plurality of main boards as a target main board;
executing a target function test command on the target mainboard;
remotely logging in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and responding to the completion of remote login of a certain mainboard, and sending the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
2. The method for testing server function according to claim 1, wherein the step of establishing communication channels of a plurality of motherboards of the server to be tested comprises:
connecting a plurality of main boards of a server to be tested to the same local area network;
acquires motherboard ID information from the configuration file of each motherboard,
and modifying the network configuration file of each mainboard based on the mainboard ID information to set a network IP address, a network mask and a broadcast address, wherein the network masks and the broadcast addresses of a plurality of mainboards are the same, and the network IP addresses of different mainboards are different.
3. The method for testing server function according to claim 2, wherein the step of remotely logging in each motherboard other than the target motherboard on the target motherboard based on the established communication channel comprises:
and logging in the system of the corresponding mainboard based on the network IP address, the preset user and the preset login password of each mainboard.
4. The server function testing method of claim 1, further comprising:
acquiring first test record information generated by the target mainboard executing the target function test command from a test log;
and storing the first test record information to a preset position.
5. The server function testing method of claim 4, further comprising:
acquiring second test record information generated by the mainboard except the target mainboard executing the target function test command;
and additionally storing the second test record information to the preset position.
6. The server function testing method of claim 1, further comprising:
receiving a test judgment result input by a user from a peripheral input device connected with the target mainboard, wherein the test judgment result comprises a first code for representing that the test of each of the plurality of mainboards is successful and a second code for representing that the test of at least one mainboard fails;
responding to the test judgment result that the test judgment result is the first code, and displaying that the target function test is successful through a display connected with the target mainboard;
and displaying the target function test failure through a display connected with the target mainboard in response to the test judgment result changing into the second code.
7. The method for testing the functions of the server according to claim 1, wherein the target function test command comprises at least one of controlling a hard disk lamp to be turned on, controlling a hard disk lamp to be turned off, controlling a lamp to flash, controlling a hard disk to read and write, and reading bandwidth.
8. A server function testing apparatus, characterized in that the apparatus comprises:
the establishing module is used for establishing communication channels of a plurality of mainboards of the server to be tested;
a selection module configured to select one motherboard from the plurality of motherboards as a target motherboard;
the first test module is configured to execute a target function test command on the target mainboard;
the remote login module is configured to remotely log in each mainboard except the target mainboard on the target mainboard based on the established communication channel;
and the command sending module is configured to respond to a certain mainboard to complete remote login, and send the target function test command to the certain mainboard through the target mainboard so that the certain mainboard executes the target function test command.
9. A computer device, comprising:
at least one processor; and
a memory storing a computer program operable in the processor, the processor executing the program to perform the server function testing method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the server function testing method of any one of claims 1 to 7.
CN202111593644.2A 2021-12-24 2021-12-24 Server function testing method, device, equipment and storage medium Pending CN113986639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111593644.2A CN113986639A (en) 2021-12-24 2021-12-24 Server function testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111593644.2A CN113986639A (en) 2021-12-24 2021-12-24 Server function testing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113986639A true CN113986639A (en) 2022-01-28

Family

ID=79734183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111593644.2A Pending CN113986639A (en) 2021-12-24 2021-12-24 Server function testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113986639A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234951A (en) * 2023-11-13 2023-12-15 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060129585A1 (en) * 2004-12-09 2006-06-15 Toshihiro Ishiki Multi node server system
CN105471675A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Method and system of testing nodes in batches
CN208752600U (en) * 2018-09-29 2019-04-16 上海华东电脑股份有限公司 A kind of multi-functional hard disk backboard system of rack-mount server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060129585A1 (en) * 2004-12-09 2006-06-15 Toshihiro Ishiki Multi node server system
CN105471675A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Method and system of testing nodes in batches
CN208752600U (en) * 2018-09-29 2019-04-16 上海华东电脑股份有限公司 A kind of multi-functional hard disk backboard system of rack-mount server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234951A (en) * 2023-11-13 2023-12-15 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium
CN117234951B (en) * 2023-11-13 2024-01-30 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US9690602B2 (en) Techniques for programming and verifying backplane controller chip firmware
CN101441592A (en) Test system and method of embedded system
CN111679982A (en) Automatic testing method for REST API (representational State transfer) interface software
US9886335B2 (en) Techniques for validating functionality of backplane controller chips
CN113986639A (en) Server function testing method, device, equipment and storage medium
US6442725B1 (en) System and method for intelligent analysis probe
CN111694684B (en) Abnormal construction method and device of storage device, electronic device and storage medium
CN109660386B (en) Software upgrading method for semiconductor memory aging test system
CN114265733A (en) Automatic testing method and device for abnormal power failure of solid state disk
CN116560985B (en) Chip equipment test control method, upper computer, equipment and medium
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
CN112463466B (en) Computer testing method
US11061689B2 (en) Synchronization method for performing bi-directional data synchronization for bios
CN117077221A (en) Hard disk screen printing distribution method and device, computer equipment and medium
CN115934503A (en) Program testing method, device, equipment and storage medium
CN114398213A (en) Method, device and equipment for testing functions of solid state disk and storage medium
CN114461458A (en) Server memory test method, system, terminal and storage medium
US20050021310A1 (en) System for testing network devices
CN114116027A (en) Method, system, terminal and storage medium for automatically installing drive for PCIE equipment
CN111857787A (en) Method, system, equipment and medium for burning firmware of voltage converter
CN112698998A (en) Sustainable integrated ARM server delivery test method
CN106548311B (en) Inventory management setting system
US11966309B2 (en) Saturation of multiple PCIe slots in a server by multiple ports in a single test card
CN114489742B (en) Upgrading method and system for improving FPGA online upgrading efficiency in ATE equipment
CN115964251A (en) Method, device and equipment for judging hard disk sequence 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220128