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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


