A BMC stress test method
By using automated test scripts and IP address switching, the problems of time-consuming, labor-intensive, and inaccurate BMC stress testing in existing technologies have been solved, achieving efficient and accurate BMC stress testing under load.
Patent Information
- Application Number
- CN202211117218.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-09-14
AI Technical Summary
Existing server BMC stress testing requires manually setting and adjusting load conditions, which is time-consuming and labor-intensive, and affects the accuracy of the test under load.
An automated test script is used to control the test server for stress testing. It automatically switches between static and dynamic IP addresses in out-of-band connection channels to read BMC information, reducing manpower and improving testing efficiency.
It enables accurate stress testing without affecting test results under server load, reducing manpower burden and improving testing efficiency.
Smart Images

Figure CN115309601B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a BMC stress testing method. Background Technology
[0002] Generally, existing servers are typically tested using BMC (Baseboard Management Controller) stress tests to verify their performance under different loads. However, since the network connectivity of a server is affected under load, the accuracy of stress tests can be somewhat inaccurate.
[0003] Server BMC stress testing involves repeatedly setting a preset number of IP addresses on the server under a certain load to test the stability of the BMC network performance based on whether the BMC can successfully complete the predetermined number of IP settings. However, existing server BMC stress testing typically requires manually setting and adjusting different load conditions repeatedly, which is extremely time-consuming. This forces operators to constantly monitor the completion of the previous test before modifying load parameters for the next round of stress testing, preventing them from performing other tasks. This is very time-consuming and labor-intensive, and may even lead to testing errors due to operator fatigue.
[0004] Therefore, there is an urgent need for a BMC stress testing method to solve the problems in the existing technology. Summary of the Invention
[0005] The purpose of this invention is to provide a BMC stress testing method that can perform stress testing when the server is under load without affecting the test results, and can also reduce the burden of manpower and improve testing efficiency through automated testing.
[0006] To achieve this objective, the present invention adopts the following technical solution:
[0007] A BMC stress testing method includes the following steps:
[0008] Step A: Create an automatic test script, which contains a plurality of static IP addresses and a plurality of dynamic IP addresses;
[0009] Step B: Execute the automatic test script using a test server. The test server will then use a stress testing tool to apply pressure to the server under test. When the load rate of the server under test reaches a first preset pressure value, the management interface of the server under test will be modified to a dedicated interface to establish an out-of-band connection.
[0010] Step C: The test server uses the plurality of static IP addresses and the plurality of dynamic IP addresses to perform online testing on the baseboard management controller of the server under test according to the automatic test script, and uses the out-of-band connection channel to view the test results.
[0011] Optionally, the plurality of static IP addresses further includes a first static BMC IPv4 address, a second static BMC IPv4 address, a first static BMC IPv6 address, and a second static BMC IPv6 address, and the plurality of dynamic IP addresses further includes a dynamic IPv4 address and a dynamic IPv6 address.
[0012] Optionally, step C further includes:
[0013] Step C1: The test server logs into the network user interface of the server under test using the dynamic IPv4 address according to the automatic test script, and reads BMC information from the server under test using the out-of-band connection channel.
[0014] Step C2: The test server modifies the BMC IPV4 address of the server under test to the first static BMC IPV4 address according to the automatic test script, logs into the network user interface using the first static BMC IPV4 address, and reads the BMC information from the server under test using the out-of-band connection channel.
[0015] Step C3: The test server logs into the network user interface using the dynamic IPv6 address according to the automatic test script, and reads the BMC information from the server under test using the out-of-band connection channel;
[0016] Step C4: The test server modifies the BMC IPV6 address of the server under test to the first static BMC IPV6 address according to the automatic test script, logs into the network user interface using the first static BMC IPV6 address, and reads the BMC information from the server under test using the out-of-band connection channel.
[0017] Step C5: The test server modifies the BMC IPV4 address of the server under test to the second static BMC IPV4 address according to the automatic test script, and restarts the BMC module of the server under test using the second static BMC IPV4 address. After the server under test restarts, it checks whether the BMC IPV4 address of the server under test is the second static BMC IPV4 address.
[0018] Step C6: The test server modifies the BMC IPV6 address of the server under test to the second static BMC IPV6 address according to the automatic test script, and restarts the BMC module of the server under test using the second static BMC IPV6 address. After the BMC module of the server under test is restarted, the test server checks the BMC IPV6 address of the server under test to confirm whether it is the second static BMC IPV6 address.
[0019] Step C7: The test server modifies the IPv6 address of the server under test (BMC) to the dynamic IPv6 address according to the automatic test script, and restarts the BMC module of the server under test using the dynamic IPv6 address. After the BMC module of the server under test is restarted, the test server checks the IPv6 address of the BMC to confirm whether it is the dynamic IPv6 address.
[0020] Step C8: The test server controls the server under test to restart using the dynamic IPv4 address according to the automatic test script. After the server under test restarts, the test server logs into the network user interface using the dynamic IPv4 address and reads the BMC information from the server under test using the out-of-band connection channel; and
[0021] Step C9: The test server controls the server under test to restart using the dynamic IPv6 address according to the automatic test script. After the server under test restarts, the test server logs into the network user interface using the dynamic IPv6 address and reads the BMC information from the server under test using the out-of-band connection channel.
[0022] Optionally, step C10 is included after step C9:
[0023] Repeat steps B through C9 20 times.
[0024] Optionally, step C11 is included after step C10: steps B to C9 are repeated 20 times, and before step B is executed, the first preset pressure value is modified to a second preset pressure value that is different from the first preset pressure value.
[0025] Beneficial effects:
[0026] The BMC stress testing method provided by this invention can perform stress testing when the server is under load without affecting the test results, and can also reduce the burden of manpower and improve testing efficiency through automated testing. Attached Figure Description
[0027] Figure 1This is a system block diagram of the application environment of the BMC stress testing method provided by the present invention;
[0028] Figure 2 This is the step flow of the BMC stress testing method provided by the present invention. Figure 1 ;
[0029] Figure 3 This is the step flow of the BMC stress testing method provided by the present invention. Figure 2 .
[0030] In the picture:
[0031] TS (Test Script), automated test scripts;
[0032] 1. Test server
[0033] 2. Server under test; 21 Baseboard Management Controller, 211 Network User Base. Detailed Implementation
[0034] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0035] In the description of this invention, unless otherwise explicitly specified and limited, the terms "connected," "linked," and "fixed" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0036] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0037] In the description of this embodiment, the terms "upper," "lower," "left," and "right," etc., refer to the orientation or positional relationship shown in the accompanying drawings. They are used only for ease of description and simplification of operation, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention. In addition, the terms "first" and "second" are used only for distinction in description and have no special meaning.
[0038] Please see Figure 1 , Figure 2 and Figure 3 , Figure 1 This is a system block diagram showing the application environment of the BMC stress testing method provided in the preferred embodiment; Figure 2 and Figure 3 This is a flowchart showing the steps of the BMC stress testing method provided in the preferred embodiment. It should be noted that... Figure 2 and Figure 3 In this context, A represents a connection. Figure 2 Middle step S170 and Figure 3 The connection symbol in step S180.
[0039] like Figure 1 and Figure 2 As shown, the BMC stress testing method provided in this embodiment allows users to remotely stress test a server under test (SUT) 2 through a test server 1. The SUT 2 has a baseboard management controller 21, and the baseboard management controller 21 has a built-in web user interface (WEBUI) 211. The web user interface 211 is an interface for controlling the parameters of the baseboard management controller 21 through a web page; in practice, users can log in to the test server 1 to perform operations. Furthermore, the operating system (OS) of the SUT 2 is a System Under Test (SUT).
[0040] As described above, the BMC stress testing method of the present invention includes the following steps S110 to S230. First, step S110 involves creating an automatic test script TS; wherein the automatic test script TS records a first static BMC IPv4 address, a second static BMC IPv4 address, a first static BMC IPv6 address, a second static BMC IPv6 address, a dynamic IPv4 address, and a dynamic IPv6 address. In practice, the automatic test script TS can be created using a test server 1 or by other computer devices.
[0041] Step S120 involves using test server 1 to execute automatic test script TS, which enables test server 1 to apply pressure to a server under test 2 using a stress testing tool. When the load rate of server under test 2 reaches a first preset pressure value, the management interface of server under test 2 is modified to a dedicated interface to establish an out-of-band (OOB) connection channel.
[0042] In this embodiment, the stress testing tool is, for example, a stress-increasing program built into the server under test 2, which can be used to control the load rate of the operating system of the server under test 2. The load rate can be CPU utilization, memory utilization, disk utilization, network utilization, CPU utilization or a combination thereof, and the first default stress value is, for example, 50, but not limited to this. The first preset stress value can be any value greater than 0 and less than or equal to 100.
[0043] Step S130 involves the test server 1 logging into the network user interface 211 of the server under test 2 using a dynamic IPv4 address according to the automatic test script TS, and reading BMC information from the server under test 2 using the out-of-band connection channel. The BMC information is, for example, a System Event Log, and in this embodiment, the user can use the BMC information to determine the IP configuration information of the baseboard management controller 21.
[0044] Step S140 involves test server 1 modifying the BMC IPv4 address of test server 2 to the first static BMC IPv4 address according to the automatic test script TS, logging into network user interface 211 using the first static BMC IPv4 address, and reading BMC information from test server 2 using out-of-band connection channel. By logging into network user interface 211 using the first static BMC IPv4 address, the user can confirm whether the BMC IPv4 address of test server has been successfully modified to the first static BMC IPv4 address by reading BMC information.
[0045] Step S150 is that the test server 1 logs into the network user interface 211 using a dynamic IPv6 address according to the automatic test script TS, and reads BMC information from the server under test 2 using the out-of-band connection channel; wherein, by logging into the network user interface 211 using a dynamic IPv6 address, the user can confirm the dynamic IP connection function of the baseboard management controller 21 by reading the BMC information.
[0046] Step S160 involves test server 1 modifying the BMC IPv6 address of test server 2 to the first static BMC IPv6 address according to the automatic test script TS, logging into network user interface 211 using the first static BMC IPv6 address, and reading BMC information from test server 2 using out-of-band connection channel. By logging into network user interface 211 using the first static BMC IPv6 address, the user can confirm whether the BMC IPv6 address of test server has been successfully modified to the first static BMC IPv6 address by reading BMC information.
[0047] Step S170 involves test server 1 modifying the BMC IPv4 address of the server under test to the second static BMC IPv4 address according to the automatic test script TS, and restarting the baseboard management controller 21 using the second static BMC IPv4 address. After the baseboard management controller 21 restarts, it checks whether the BMC IPv4 address of the server under test is the second static BMC IPv4 address. By modifying the BMC IPv4 address of the server under test to the second static BMC IPv4 address and restarting it, it can be determined whether the function of the baseboard management controller 21 in modifying static IPv4 is normal.
[0048] Furthermore, step S170, which checks whether the BMC IPV4 address of the server under test is the second static BMC IPV4 address, is only to determine whether the BMC IPV4 address of the server under test is still the second static BMC IPV4 address modified before the restart after the server under test 2 is restarted. It will not take any different subsequent actions based on whether the modification was successful or not.
[0049] Step S180 involves test server 1 modifying the BMC IPv6 address of the server under test to the second static BMC IPv6 address according to the automatic test script TS, and restarting the baseboard management controller 21 using the second static BMC IPv6 address. After the baseboard management controller 21 restarts, it checks the BMC IPv6 address of the server under test to confirm whether it is the second static BMC IPv6 address. By modifying the BMC IPv6 address of the server under test to the second static BMC IPv6 address and restarting it, it can be determined whether the function of modifying static IPv6 in the baseboard management controller 21 is normal.
[0050] Furthermore, step S180, which checks whether the BMC IPV6 address of the server under test is the second static BMC IPV6 address, is only to determine whether the BMC IPV6 address of the server under test is still the second static BMC IPV6 address modified before the restart after the server under test 2 is restarted. It will not take any different subsequent actions based on whether the modification was successful.
[0051] Step S190 involves test server 1 modifying the IPv6 address of the server under test (BMC) to a dynamic IPv6 address according to the automatic test script TS, and restarting the baseboard management controller 21 using the dynamic IPv6 address. After the baseboard management controller 21 restarts, it checks the IPv6 address of the server under test (BMC) to confirm whether it is a dynamic IPv6 address. By modifying the BMC IPv6 address of the server under test to a dynamic IPv6 address and restarting it, it can be determined whether the baseboard management controller 21's function of changing IPv6 from static to dynamic is normal.
[0052] Furthermore, step S190, which checks whether the IPv6 address of the server under test (BMC) is a dynamic IPv6 address, is only to determine whether the IPv6 address of the server under test (BMC) is still the dynamic IPv6 address modified before the restart after the server under test (2) is restarted. It will not take any different subsequent actions based on whether the modification was successful.
[0053] Step S200 is that the test server 1 controls the test server 2 to restart with a dynamic IPv4 address according to the automatic test script TS. After the test server 2 restarts, the test server 1 logs into the network user interface 211 with a dynamic IPv4 address and reads BMC information from the test server 2 using the out-of-band connection channel. In this way, the user can know whether the function of the board management controller 21 restarting with dynamic IPv4 is normal.
[0054] Step S210 is that the test server 1 controls the server under test 2 to restart with a dynamic IPv6 address according to the automatic test script TS. After the server under test 2 restarts, the test server 1 logs into the network user interface 211 with a dynamic IPv6 address and reads BMC information from the server under test 2 using the out-of-band connection channel. In this way, the user can know whether the function of the board management controller 21 restarting with dynamic IPv6 is normal.
[0055] Step S220 involves repeating steps S120 to S210 20 times. This allows the user to determine whether the IP function of the board management controller 21 is stable.
[0056] Step S230 involves repeating steps S120 to S210 20 times. Before executing step S120, the first preset pressure value is modified to a second preset pressure value that is different from the first preset pressure value. The second preset pressure value can be any value greater than 0 and less than or equal to 100; preferably, the second preset pressure value is greater than the first preset pressure value.
[0057] As described above, steps S110 to S210 mainly utilize the test server 1 to control the stress testing tool to apply pressure to the server under test 2, putting the server under test 2 under load. Then, an out-of-band connection channel is established so that when logging into the network user interface 211 of the server under test 2 using the automatic test script TS with the dynamic IPv4 address, the first static BMC IPv4 address, the dynamic IPv6 address, the first static BMC IPv6 address, the second static BMC IPv4 address, and the second static BMC IPv6 address, the out-of-band connection channel can be used to read the BMC information, allowing the user to know whether the IP function of the server under test 2 is normal under this load state. Since this embodiment allows the test server 1 to execute the automatic test script TS to automatically change the IP address, the effect of automatic testing can be achieved. Furthermore, since the test server 1 is connected to the server under test 2 using an out-of-band connection channel, the stress test of the server under test 2 will not be affected by the load, thus obtaining accurate test results.
[0058] As described above, step S220 can further test the stability of the server under test 2. Step S230 can obtain the stability of the server under test 2 under different loads.
[0059] In summary, compared to existing technologies where server load balancing (BMC) stress testing involves manual setting and adjustment of different load conditions by operators, requiring constant monitoring of the test progress, the BMC stress testing method in this embodiment primarily allows the test server to automatically load the server under test according to an automated test script. Then, by changing the static and dynamic IP addresses, the network connectivity is tested, and the test results are read through out-of-band connection channels. This allows the test server to automatically perform BMC stress testing on the server under test without manually switching IP addresses, reducing the burden on operators and improving testing efficiency, making it extremely convenient.
[0060] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those skilled in the art will be able to make various obvious changes, readjustments, and substitutions without departing from the scope of protection of the present invention. It is neither necessary nor possible to exhaustively describe all embodiments here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A BMC stress testing method, characterized in that, Includes the following steps: Step A: Create an automatic test script, which contains a plurality of static IP addresses and a plurality of dynamic IP addresses; Step B: Execute the automatic test script using a test server, so that the test server uses a stress testing tool to stress a server under test, and when the load rate of the server under test reaches a first preset stress value, modify the management interface of the server under test to a dedicated interface to establish an out-of-band connection channel. as well as Step C: The test server uses the plurality of static IP addresses and the plurality of dynamic IP addresses to perform online testing on the baseboard management controller of the server under test according to the automatic test script, and uses the out-of-band connection channel to view the test results. The plurality of static IP addresses further includes a first static BMC IPv4 address, a second static BMC IPv4 address, a first static BMC IPv6 address, and a second static BMC IPv6 address; the plurality of dynamic IP addresses further includes a dynamic IPv4 address and a dynamic IPv6 address. Step C further includes: Step C1: The test server logs into the network user interface of the server under test using the dynamic IPv4 address according to the automatic test script, and reads BMC information from the server under test using the out-of-band connection channel. Step C2: The test server modifies the BMC IPv4 address of the server under test to the first static BMC IPv4 address according to the automatic test script, logs into the network user interface using the first static BMC IPv4 address, and reads the BMC information from the server under test using the out-of-band connection channel. Step C3: The test server logs into the network user interface using the dynamic IPv6 address according to the automatic test script, and reads the BMC information from the server under test using the out-of-band connection channel; Step C4: The test server modifies the BMC IPv6 address of the server under test to the first static BMC IPv6 address according to the automatic test script, logs into the network user interface using the first static BMC IPv6 address, and reads the BMC information from the server under test using the out-of-band connection channel. Step C5: The test server modifies the BMC IPV4 address of the server under test to the second static BMC IPV4 address according to the automatic test script, and restarts the BMC module of the server under test using the second static BMC IPV4 address. After the server under test restarts, it checks whether the BMC IPV4 address of the server under test is the second static BMC IPV4 address. Step C6: The test server modifies the BMC IPV6 address of the server under test to the second static BMC IPV6 address according to the automatic test script, and restarts the BMC module of the server under test using the second static BMC IPV6 address. After the BMC module of the server under test is restarted, the test server checks the BMC IPV6 address of the server under test to confirm whether it is the second static BMC IPV6 address. Step C7: The test server modifies the IPv6 address of the server under test (BMC) to the dynamic IPv6 address according to the automatic test script, and restarts the BMC module of the server under test using the dynamic IPv6 address. After the BMC module of the server under test is restarted, the test server checks the IPv6 address of the BMC to confirm whether it is the dynamic IPv6 address. Step C8: The test server controls the server under test to restart using the dynamic IPv4 address according to the automatic test script. After the server under test restarts, the test server logs into the network user interface using the dynamic IPv4 address and reads the BMC information from the server under test using the out-of-band connection channel. as well as Step C9: The test server controls the server under test to restart using the dynamic IPv6 address according to the automatic test script. After the server under test restarts, the test server logs into the network user interface using the dynamic IPv6 address and reads the BMC information from the server under test using the out-of-band connection channel.
2. The BMC stress testing method according to claim 1, characterized in that, in, Step C9 is followed by step C10: Repeat steps B through C9 20 times.
3. The BMC pressure testing method according to claim 2, characterized in that, in, After step C10, there is a step C11: Steps B to C9 are repeated 20 times, and before executing step B, the first preset pressure value is modified to a second preset pressure value that is different from the first preset pressure value.
Citation Information
Patent Citations
BMC stability parallel testing method and system
CN108089566A