Unlock instant, AI-driven research and patent intelligence for your innovation.

An automatic testing method and device for restarting a BMC based on an ipmi instruction

An automated test and restart technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of time-consuming and labor-intensive testing, difficulty in troubleshooting, and difficulty in reusing, so as to improve test efficiency and design Reliable principle and simple structure

Active Publication Date: 2019-03-08
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to solve the traditional manual use cases in the above-mentioned BMC restart test that require testers to repeatedly and frequently test an option for multiple cycles. The test is extremely time-consuming and labor-intensive, and there is no log as a record in the whole process, and subsequent troubleshooting is difficult , the defect that it is difficult to reuse between multiple projects, an automatic test method and device based on the ipmi command to restart the BMC are provided to solve the above technical problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An automatic testing method and device for restarting a BMC based on an ipmi instruction
  • An automatic testing method and device for restarting a BMC based on an ipmi instruction
  • An automatic testing method and device for restarting a BMC based on an ipmi instruction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] like figure 1 As shown, the present invention provides a kind of automatic test method that restarts BMC based on ipmi instruction, comprises the steps:

[0059] S1. The test host obtains the IP address of the BMC through the ipmi command;

[0060] S2. The test host pings the IP address of the BMC;

[0061] S3. The test host restarts the BMC coldly through the ipmi command, and pings the IP address of the BMC during the cold restart process;

[0062] S4. Generate a test log;

[0063] S5. Determine whether the BMC restart test passes.

[0064] In the above-mentioned embodiment 1, step S1 is realized by the following code:

[0065] public static String getIPAddress(String BMCURL, String BMCUserName, String BMCPassword,

[0066] String channelNum , String OSIP ,String OSUserName ,String OSPassword) {

[0067] String commandResult =lanPrint(BMCURL, BMCUserName, BMCPassword, channelNum);

[0068] String IPAddressVal = "";

[0069] String[] resultArray = commandResult....

Embodiment 2

[0096] like figure 2 As shown, the specific steps of step S5 in the above-mentioned embodiment 1 are as follows:

[0097] S51. judging whether the BMC restart process is passed;

[0098] S52. If yes, enter step S53; if no, enter step S56;

[0099] S53. Judging whether there is no abnormal key field in the test log;

[0100] S54. If yes, then enter step S55; if no, then enter step S56;

[0101] S55. The test case is passed, and the test ends;

[0102] S56. The test case fails, and the test ends.

Embodiment 3

[0104] like image 3 As shown, in the above-mentioned embodiment 2, the specific steps of step S51 are as follows:

[0105] S511. Obtain the test data of the IP address of the test host pinging the BMC during the BMC restart process. The test data includes the restart start connection time period, the restart process connection time period and the restart end connection time period, and the ping and connection time period of each connection time period. no;

[0106] S512. Judging in the test data of the IP address of the test host pinging the BMC, whether the ping can be done during the restart start connection time period, the ping pass cannot be done during the restart process connection time period, and the ping pass can be done during the restart end connection time period;

[0107] S513. If yes, the BMC restart process is passed; if not, the BMC restart process is not passed; implemented by the following code:

[0108] public static list getPingIPResult(String IP) thro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an automatic testing method and device for restarting a BMC based on an ipmi instruction. The method comprises the following steps of S1 using a testing host to obtain an IP address of the BMC through the ipmi instruction; S2 testing the IP address of the host ping BMC; S3 using the test host to instruct the cold restart of the BMC through the ipmi, and ping the IP address of the BMC in the cold restart process; S4 generating a test log; S5 judging whether the BMC restart test is passed or not. The device comprises a BMC IP address acquisition module, a BMC IP address ping module, a BMC cold restart module, a test log generation module and a test judgment module. According to the method and the device, the restart automation of the BMC is realized, whether the BMC passes the test in the restart process can be judged, the test efficiency is improved, the manpower resource is saved, and the product quality is ensured.

Description

technical field [0001] The invention belongs to the field of server BMC testing, and in particular relates to an automatic testing method and device for restarting a BMC based on an ipmi command. Background technique [0002] BMC plays a very important role in computer systems. Whether the performance of a motherboard is superior or not depends to a large extent on whether the BMC management function on the motherboard is advanced, so BMC module testing has always been an important part of server testing. The BMC restart test through the ipmi command is the most common method for BMC restart, so the BMC restart test is the most important part of the BMC test. Traditional manual use cases require testers to repeatedly and frequently test an option for multiple cycles. The test is extremely time-consuming and labor-intensive, and there is no log as a record for the entire process. It is difficult to troubleshoot problems later, and it is difficult to reuse between multiple pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 刘凤霞胥志泉
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD