CN116192686A - BMC stability test method, device, equipment and medium - Google Patents

BMC stability test method, device, equipment and medium Download PDF

Info

Publication number
CN116192686A
CN116192686A CN202310187393.0A CN202310187393A CN116192686A CN 116192686 A CN116192686 A CN 116192686A CN 202310187393 A CN202310187393 A CN 202310187393A CN 116192686 A CN116192686 A CN 116192686A
Authority
CN
China
Prior art keywords
bmc
tested
test
address
current
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
CN202310187393.0A
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.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing 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 Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202310187393.0A priority Critical patent/CN116192686A/en
Publication of CN116192686A publication Critical patent/CN116192686A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a BMC stability testing method, device, equipment and medium. The method comprises the following steps: acquiring test information of the BMC to be tested; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address; and repeatedly switching the IP address type of the BMC to be tested according to the test information through a control interface, acquiring the switched network detection data of the BMC to be tested, and providing the network detection data for a target user through a test data display page. According to the embodiment of the invention, the IP address type of the BMC to be tested can be automatically switched for multiple times based on the control interface and the test information, the network detection data of the switched BMC to be tested is obtained and displayed, the stability of the BMC to be tested is tested, the test efficiency and the test accuracy are improved, and the labor cost and the time cost of the BMC stability test are reduced.

Description

BMC stability test method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for testing BMC stability.
Background
The baseboard management controller (Baseboard Management Controller, BMC) of the server is a control unit that realizes server management. The BMC of the server is responsible for the core functions of hardware state management, operating system management, health state management, power consumption management and the like of the server. The Internet protocol (Internet Protocol, IP) address types of BMCs include static IP addresses and dynamic IP addresses. The BMC may switch to a different IP address type. After the IP address type of the BMC is changed, the BMC should maintain stable operation. In order to ensure the stability of the server and the stability of the BMC, the server needs to be subjected to stability test in the development stage of the server. In the stability test of the BMC, the IP address type of the BMC needs to be switched for multiple times, and network detection data of the BMC after switching is obtained.
In the related art, the common BMC stability test scheme is: the tester manually switches the IP address type of the BMC for a plurality of times, detects the network function of the BMC after switching, and obtains the network detection data of the BMC after switching. According to the BMC stability test scheme in the related art, a tester is required to manually switch the IP address type of the BMC for multiple times, a large amount of labor cost and time cost are consumed, the test efficiency is low, and the test accuracy cannot be guaranteed.
Disclosure of Invention
The invention provides a BMC stability testing method, device, equipment and medium, which are used for solving the problems that a BMC stability testing scheme in the related technology consumes a great deal of labor cost and time cost, has lower testing efficiency and cannot guarantee testing accuracy.
According to an aspect of the present invention, there is provided a BMC stability test method, including:
acquiring test information of the BMC to be tested; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address;
and repeatedly switching the IP address type of the BMC to be tested according to the test information through a control interface, acquiring the switched network detection data of the BMC to be tested, and providing the network detection data for a target user through a test data display page.
According to the technical scheme, the IP address type of the BMC to be tested can be automatically switched for multiple times based on the control interface and the test information, the network detection data of the switched BMC to be tested is obtained and displayed, the stability of the BMC to be tested is tested, the test efficiency and the test accuracy are improved, and the labor cost and the time cost of the BMC stability test are reduced.
Optionally, the test information of the BMC to be tested is obtained from a test file corresponding to the BMC to be tested.
According to the technical scheme, the test information of the BMC to be tested can be stored and managed through the test file, so that in the test process of the BMC to be tested, the IP address type of the BMC to be tested is repeatedly switched through the control interface according to the test information of the BMC to be tested, the network detection data of the switched BMC to be tested is obtained, and the stability test is conducted on the BMC to be tested.
Optionally, the repeatedly switching, by the control interface, the IP address type of the BMC to be tested according to the test information, obtaining network detection data of the switched BMC to be tested, and providing the network detection data to a target user through a test data display page, including:
determining the current IP address type of the BMC to be tested;
if the current IP address type of the BMC to be tested is a dynamic IP address, controlling the BMC to be tested through a control interface to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested;
performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user;
Detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time;
and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
According to the technical scheme, based on the control interface and the test information, under the condition that the current IP address type of the BMC to be tested is a dynamic IP address, the current IP address type of the BMC to be tested is automatically switched to a static IP address, and network detection data of the switched BMC are automatically acquired and displayed until the completion of the stability test of the BMC to be tested is determined according to the preset test times or the preset test duration.
Optionally, controlling, by the control interface, the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested includes:
and sending a static IP setting instruction to the BMC to be tested through a control interface, controlling the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back static setting completion information.
According to the technical scheme provided by the embodiment of the invention, the current IP address type of the BMC to be tested can be automatically switched to the static IP address based on the control interface and the test information.
Optionally, performing IP address connectivity detection and web page login detection on the BMC to be tested to obtain a current connectivity detection result and a current web page login detection result, and providing the current connectivity detection result and the current web page login detection result to the target user, where the steps include:
after receiving static setting completion information fed back by the BMC to be tested, establishing network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to a target user through a test data display page;
sending a webpage login detection instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to detect the webpage login function of the BMC to be tested, and feeding back the webpage login detection result;
and providing the current webpage login detection result fed back by the BMC to be tested to the target user through the test data display page.
According to the technical scheme provided by the embodiment of the invention, based on the control interface, after the current IP address type of the BMC to be tested is switched to the static IP address, the network detection data of the switched BMC can be automatically acquired and displayed.
Optionally, after determining the current IP address type of the BMC to be tested, the method further includes:
if the current IP address type of the BMC to be tested is a static IP address, controlling the BMC to be tested through a control interface to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested;
performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user;
detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time;
and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
According to the technical scheme, the current IP address type of the BMC to be tested can be automatically switched to the dynamic IP address based on the control interface and the test information under the condition that the current IP address type of the BMC to be tested is the static IP address, and the network detection data of the switched BMC are automatically acquired and displayed until the completion of the stability test of the BMC to be tested is determined according to the preset test times or the preset test duration.
Optionally, the detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration includes:
adding 1 to the test times of the BMC to be tested, and detecting whether the test times of the BMC to be tested are equal to preset test times or not;
if the test times of the BMC to be tested are equal to the preset test times, determining that the stability test of the BMC to be tested is completed;
if the test times of the BMC to be tested are not equal to the preset test times, determining that the stability test of the BMC to be tested is not completed.
According to the technical scheme, the operation of switching the IP address type of the BMC to be tested can be repeatedly executed based on the preset test times, the purpose of automatically switching the IP address type of the BMC to be tested for multiple times based on the control interface and the test information is achieved, the network detection data of the switched BMC to be tested is obtained, and the stability test is carried out on the BMC to be tested.
According to another aspect of the present invention, there is provided a BMC stability test device including:
the information acquisition module is used for acquiring the test information of the BMC to be tested; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address;
The BMC test module is used for repeatedly switching the IP address type of the BMC to be tested according to the test information through the control interface, obtaining the switched network detection data of the BMC to be tested, and providing the network detection data for a target user through a test data display page.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor network;
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the BMC stability test method according to any embodiment of the invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for implementing the BMC stability test method according to any embodiment of the present invention when executed by a processor.
According to the technical scheme, the test information of the BMC to be tested is obtained; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address; and then repeatedly switching the IP address type of the BMC to be tested according to the test information through the control interface, acquiring the network detection data of the switched BMC to be tested, providing the network detection data for a target user through a test data display page, solving the problems that a BMC stability test scheme in the related technology can consume a large amount of labor cost and time cost, the test efficiency is lower and the test accuracy cannot be ensured, acquiring the IP address type of the BMC to be tested based on the control interface and the test information, automatically switching the IP address type of the BMC to be tested for multiple times, acquiring and displaying the network detection data of the switched BMC to be tested, and performing stability test on the BMC to be tested, thereby improving the test efficiency and the test accuracy, and reducing the labor cost and the time cost of the BMC stability test.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a BMC stability testing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a BMC stability testing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a BMC stability testing method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a BMC stability testing device according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device implementing a BMC stability test method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and the claims of the present invention and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a BMC stability testing method according to an embodiment of the present invention. The method can be applied to the situation that the network detection data of the BMC after the switching is automatically obtained and displayed through the IP address type of the BMC is switched for multiple times, and the stability test is carried out on the BMC of the server.
As shown in fig. 1, the method includes:
and step 101, acquiring test information of the BMC to be tested.
Wherein the test information includes: an alternative static IP address and an alternative dynamic IP address.
Optionally, the BMC to be tested is one or more BMCs that need to be tested. The test information of the BMC to be tested is information related to the stability test of the BMC to be tested. The test information of the BMC to be tested comprises an alternative static IP address and an alternative dynamic IP address of the BMC to be tested. The alternative static IP address of the BMC to be tested is a static IP address allocated in advance for the BMC to be tested. The alternative dynamic IP address of the BMC to be tested is a dynamic IP address allocated in advance for the BMC to be tested.
Optionally, the obtaining the test information of the BMC to be tested includes: and acquiring the test information of the BMC to be tested from the test file corresponding to the BMC to be tested. The test file corresponding to the BMC to be tested is a file for storing test information of the BMC to be tested. And uploading the test file corresponding to the BMC to be tested to the electronic equipment by the target user through the terminal equipment. The electronic equipment acquires a test file corresponding to the BMC to be tested, which is uploaded by a target user, and acquires the test information of the BMC to be tested from the test file corresponding to the BMC to be tested. The target user may be a tester.
Therefore, the test information of the BMC to be tested is stored and managed through the test file, the control interface is convenient to repeatedly switch the IP address type of the BMC to be tested according to the test information of the BMC to be tested in the test process of the BMC to be tested, the network detection data of the switched BMC to be tested is obtained, and the stability test is conducted on the BMC to be tested.
And 102, repeatedly switching the IP address type of the BMC to be tested according to the test information through a control interface, acquiring the switched network detection data of the BMC to be tested, and providing the network detection data for a target user through a test data display page.
Optionally, the control interface is a functional interface set in the electronic device and used for sending a control instruction to the BMC to be tested and controlling the BMC to be tested to execute a corresponding operation.
Optionally, the IP address type of the BMC to be tested includes a static IP address and a dynamic IP address. If the IP address of the BMC to be tested is a static IP address, the type of the IP address of the BMC to be tested is the static IP address. If the IP address of the BMC to be tested is a dynamic IP address, the type of the IP address of the BMC to be tested is the dynamic IP address.
Optionally, the network detection data of the BMC to be tested includes a connectivity detection result and a web login detection result of the BMC to be tested. The connectivity detection result of the BMC to be tested is a detection result obtained by performing connectivity detection on the IP address of the BMC to be tested. The webpage login detection result of the BMC to be tested is a detection result obtained by detecting the webpage login function of the BMC to be tested.
Optionally, the detecting connectivity of the IP address of the BMC to be tested refers to detecting whether the network communication connection established based on the IP address of the BMC to be tested is connected. The detection of the webpage login function of the BMC to be tested refers to detecting whether the BMC to be tested can login a webpage or not.
Optionally, the test data presentation page is a page for providing network detection data of the BMC to be tested to a user.
Optionally, the repeatedly switching, by the control interface, the IP address type of the BMC to be tested according to the test information, obtaining network detection data of the switched BMC to be tested, and providing the network detection data to a target user through a test data display page, including: determining the current IP address type of the BMC to be tested; if the current IP address type of the BMC to be tested is a dynamic IP address, controlling the BMC to be tested through a control interface to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested; performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user; detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time; and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
Therefore, the current IP address type of the BMC to be tested can be automatically switched to the static IP address based on the control interface and the test information under the condition that the current IP address type of the BMC to be tested is the dynamic IP address, and the network detection data of the switched BMC can be automatically acquired and displayed until the completion of the stability test of the BMC to be tested is determined according to the preset test times or the preset test duration.
Optionally, determining the current IP address type of the BMC to be tested includes: and sending a state query instruction to the BMC to be tested through a control interface, and controlling the BMC to be tested to feed back the current IP address type of the BMC to be tested. The state query instruction is an instruction for controlling the to-be-tested BMC to feed back the current IP address type of the to-be-tested BMC. And the electronic equipment sends a state query instruction to the BMC to be tested through the control interface. And after receiving the state query instruction, the BMC to be tested feeds back the current IP address type of the BMC to be tested to the electronic equipment, so that the electronic equipment determines the current IP address type of the BMC to be tested.
Optionally, controlling, by the control interface, the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested includes: and sending a static IP setting instruction to the BMC to be tested through a control interface, controlling the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back static setting completion information. Therefore, the current IP address type of the BMC to be tested can be automatically switched to the static IP address based on the control interface and the test information.
Optionally, performing IP address connectivity detection and web page login detection on the BMC to be tested to obtain a current connectivity detection result and a current web page login detection result, and providing the current connectivity detection result and the current web page login detection result to the target user, where the steps include: after receiving static setting completion information fed back by the BMC to be tested, establishing network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to a target user through a test data display page; sending a webpage login detection instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to detect the webpage login function of the BMC to be tested, and feeding back the webpage login detection result; and providing the current webpage login detection result fed back by the BMC to be tested to the target user through the test data display page. Therefore, based on the control interface, after the current IP address type of the BMC to be tested is switched to the static IP address, the network detection data of the switched BMC can be automatically acquired and displayed.
Optionally, the static IP setting instruction is an instruction for controlling the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back static setting completion information. The static IP setting instruction carries the alternative static IP address of the BMC to be tested. The static setting completion information is preset information for indicating that the to-be-tested BMC has set the alternative static IP address of the to-be-tested BMC as the IP address of the to-be-tested BMC. If the current IP address type of the BMC to be tested is a dynamic IP address, the electronic equipment sends a static IP setting instruction to the BMC to be tested through a control interface. After receiving the static IP setting instruction, the BMC to be tested extracts an alternative static IP address of the BMC to be tested in the static IP setting instruction, and sets the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, so that the type of the IP address of the BMC to be tested is switched to the static IP address, and then static setting completion information is fed back to the electronic equipment.
Optionally, after receiving the static setting completion information fed back by the BMC to be tested, the electronic device establishes network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol. Preset network communication protocols include, but are not limited to: internet protocol version iv IPv4 or internet protocol version six IPv6.
Optionally, connectivity detection is performed on the IP address of the BMC to be tested to obtain a current connectivity detection result, including: sending a preset detection message to the BMC to be tested; judging whether a detection response message returned by the BMC to be tested is received within a preset time length; if yes, determining that the connectivity detection result is connected; if not, determining that the connectivity detection result is non-connectivity.
Optionally, the preset detection message is a message sent to the BMC to be tested in the connectivity detection process. The detection response message is a response message which needs to be returned by the BMC to be tested after receiving the preset detection message. And the electronic equipment sends a preset detection message to the BMC to be tested, and then judges whether a detection response message returned by the BMC to be tested is received within a preset time length. If the electronic equipment receives a detection response message returned by the BMC to be tested within a preset time, and the detection response message indicates that the network communication connection established based on the IP address of the BMC to be tested is connected, determining that the current connectivity detection result is connected. If the electronic equipment does not receive the detection response message returned by the BMC to be tested within the preset time, and the detection response message indicates that the network communication connection established based on the IP address of the BMC to be tested is not connected, determining that the connectivity detection result is not connected. The preset duration can be set according to the service requirement. The preset duration is, for example, 10 minutes.
Optionally, the step of providing the current connectivity detection result to the target user through the test data display page includes: and displaying the current connectivity detection result in a connectivity detection result display area of a test data display page, so as to provide the current connectivity detection result for a target user. The connectivity detection result display area is a page area which is arranged on the test data display page and used for displaying the connectivity detection result of the BMC to be tested.
Optionally, the webpage login detection instruction is an instruction for controlling the BMC to be tested to detect a webpage login function of the BMC to be tested. And the electronic equipment sends a webpage login detection instruction to the BMC to be tested through the control interface. And after receiving the webpage login detection instruction, the BMC to be tested detects the webpage login function of the BMC to be tested, and feeds back the webpage login detection result to the electronic equipment.
Optionally, the webpage login detection instruction carries a uniform resource locator address of a preset webpage; the detecting the webpage login function of the BMC to be tested comprises the following steps: extracting a uniform resource locator address of a preset webpage in a webpage login detection instruction; judging whether the preset webpage can be logged in according to the uniform resource locator address of the preset webpage; if yes, determining that the current webpage login detection result is normal login; if not, determining that the current webpage login detection result is that login cannot be performed.
Optionally, the preset web page is a web page for logging in during the detection of the web page logging function. If the preset webpage can be logged in according to the uniform resource locator address of the preset webpage, which indicates that the BMC to be tested can log in the webpage, the webpage login detection result is determined to be normal login. If the preset webpage cannot be logged in according to the uniform resource locator address of the preset webpage, and the BMC to be tested cannot log in the webpage, determining that the webpage login detection result is that the webpage cannot be logged in.
Optionally, the providing, by the test data presentation page, the current web login detection result fed back by the BMC to be tested to the target user includes: and displaying the current webpage login detection result in a webpage login detection result display area of the test data display page, so that the current webpage login detection result is provided for a target user. The webpage login detection result display area is a webpage area which is arranged on the test data display page and used for displaying the webpage login detection result of the BMC to be tested.
Optionally, the detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration includes: adding 1 to the test times of the BMC to be tested, and detecting whether the test times of the BMC to be tested are equal to preset test times or not; if the test times of the BMC to be tested are equal to the preset test times, determining that the stability test of the BMC to be tested is completed; if the test times of the BMC to be tested are not equal to the preset test times, determining that the stability test of the BMC to be tested is not completed.
Therefore, the operation of switching the IP address type of the BMC to be tested can be repeatedly executed based on the preset test times, the IP address type of the BMC to be tested is automatically switched for multiple times based on the control interface and the test information, the network detection data of the switched BMC to be tested is obtained and displayed, and the stability test is carried out on the BMC to be tested.
Optionally, the number of times of testing the BMC to be tested is the number of times of switching IP address types of the BMC to be tested in the current testing process. In the initial state, the number of tests of the BMC to be tested is 0. The preset test times can be set according to the service requirements. The preset number of tests is, for example, 100.
Optionally, the detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration includes: detecting whether the current test duration of the BMC to be tested is greater than or equal to a preset test duration; if the current test time length of the BMC to be tested is longer than or equal to the preset test time length, determining that the stability test of the BMC to be tested is completed; if the current test duration of the BMC to be tested is smaller than the preset test duration, determining that the stability test of the BMC to be tested is not completed.
Therefore, the operation of switching the IP address type of the BMC to be tested can be repeatedly executed based on the preset test duration, the IP address type of the BMC to be tested is automatically switched for multiple times based on the control interface and the test information, the network detection data of the switched BMC to be tested is obtained and displayed, and the stability test is carried out on the BMC to be tested.
Optionally, the current test duration of the BMC to be tested is a duration from the first switching of the IP address type of the BMC to be tested to the current time. The preset test duration can be set according to service requirements. The preset test duration is, for example, 1 hour.
Optionally, after determining that the stability test of the BMC to be tested is completed, determining that the test process of the BMC to be tested is finished.
Optionally, the method further comprises: and storing the current connectivity detection result and the current webpage login detection result into a network detection data file corresponding to the BMC to be tested. The network detection data file corresponding to the BMC to be tested is a file for storing network detection data of the BMC to be tested.
Therefore, the network detection data of the BMC to be tested is recorded through the network detection data file, so that a target user can check and recheck the network detection data of the BMC to be tested after the test is finished.
Optionally, after determining the current IP address type of the BMC to be tested, the method further includes: if the current IP address type of the BMC to be tested is a static IP address, controlling the BMC to be tested through a control interface to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested; performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user; detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time; and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
Therefore, the current IP address type of the BMC to be tested can be automatically switched to the dynamic IP address based on the control interface and the test information under the condition that the current IP address type of the BMC to be tested is the static IP address, and the network detection data of the switched BMC can be automatically acquired and displayed until the completion of the stability test of the BMC to be tested is determined according to the preset test times or the preset test duration.
Optionally, controlling, by the control interface, the BMC to be tested to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested includes: and sending a dynamic IP setting instruction to the BMC to be tested through a control interface, controlling the BMC to be tested to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back dynamic setting completion information.
Therefore, the current IP address type of the BMC to be tested can be automatically switched to the dynamic IP address based on the control interface and the test information.
Optionally, performing IP address connectivity detection and web page login detection on the BMC to be tested to obtain a current connectivity detection result and a current web page login detection result, and providing the current connectivity detection result and the current web page login detection result to the target user, where the steps include: after receiving the dynamic setting completion information fed back by the BMC to be tested, establishing network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to a target user through a test data display page; sending a webpage login detection instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to detect the webpage login function of the BMC to be tested, and feeding back the webpage login detection result; and providing the current webpage login detection result fed back by the BMC to be tested to the target user through the test data display page.
Therefore, based on the control interface, after the current IP address type of the BMC to be tested is switched to the dynamic IP address, the network detection data of the switched BMC can be automatically acquired and displayed.
Optionally, the dynamic IP setting instruction is an instruction for controlling the BMC to be tested to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back dynamic setting completion information. The dynamic IP setting instruction carries the alternative dynamic IP address of the BMC to be tested. The dynamic setting completion information is preset information for indicating that the to-be-tested BMC has set the alternative dynamic IP address of the to-be-tested BMC as the IP address of the to-be-tested BMC. If the current IP address type of the BMC to be tested is a static IP address, the electronic equipment sends a dynamic IP setting instruction to the BMC to be tested through a control interface. After the BMC to be tested receives the dynamic IP setting instruction, extracting an alternative dynamic IP address of the BMC to be tested in the dynamic IP setting instruction, setting the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested, switching the IP address type of the BMC to be tested to the dynamic IP address, and feeding back the dynamic setting completion information to the electronic equipment. After receiving the dynamic setting completion information fed back by the BMC to be tested, the electronic equipment establishes network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol.
According to the technical scheme, the test information of the BMC to be tested is obtained; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address; and then repeatedly switching the IP address type of the BMC to be tested according to the test information through the control interface, acquiring the network detection data of the switched BMC to be tested, providing the network detection data for a target user through a test data display page, solving the problems that a BMC stability test scheme in the related technology can consume a large amount of labor cost and time cost, the test efficiency is lower and the test accuracy cannot be ensured, acquiring the IP address type of the BMC to be tested based on the control interface and the test information, automatically switching the IP address type of the BMC to be tested for multiple times, acquiring and displaying the network detection data of the switched BMC to be tested, and performing stability test on the BMC to be tested, thereby improving the test efficiency and the test accuracy, and reducing the labor cost and the time cost of the BMC stability test.
Example two
Fig. 2 is a flowchart of a BMC stability testing method according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above. As shown in fig. 2, the method includes:
Step 201, obtaining test information of the BMC to be tested.
Wherein the test information includes: an alternative static IP address and an alternative dynamic IP address.
Step 202, determining the current IP address type of the BMC to be tested: if the current IP address type of the BMC to be tested is a dynamic IP address, executing step 203; if the current IP address type of the BMC to be tested is a static IP address, step 208 is executed.
Step 203, a static IP setting instruction is sent to the BMC to be tested through a control interface, the BMC to be tested is controlled to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, and static setting completion information is fed back.
Step 204, after receiving the static setting completion information fed back by the BMC to be tested, establishing a network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to a target user through a test data display page.
Step 205, sending a webpage login detection instruction to the to-be-tested BMC through the control interface, controlling the to-be-tested BMC to detect the webpage login function of the to-be-tested BMC, and feeding back the webpage login detection result.
And 206, providing the current webpage login detection result fed back by the BMC to be tested to the target user through the test data display page.
Step 207, detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration: if the stability test of the BMC to be tested is completed, executing step 213; if the stability test of the BMC to be tested is not completed, the method returns to step 202.
Step 208, sending a dynamic IP setting instruction to the BMC to be tested through a control interface, controlling the BMC to be tested to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back dynamic setting completion information.
Step 209, after receiving the dynamic setting completion information fed back by the BMC to be tested, establishing a network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to a target user through a test data display page.
Step 210, sending a webpage login detection instruction to the to-be-tested BMC through the control interface, controlling the to-be-tested BMC to detect the webpage login function of the to-be-tested BMC, and feeding back the webpage login detection result.
Step 211, providing the current webpage login detection result fed back by the BMC to be tested to the target user through the test data display page.
Step 212, detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration: if the stability test of the BMC to be tested is completed, executing step 213; if the stability test of the BMC to be tested is not completed, the method returns to step 202.
And step 213, determining that the testing process of the BMC to be tested is finished.
According to the technical scheme, the current IP address type of the BMC to be tested can be automatically switched to the static IP address based on the control interface and the test information under the condition that the current IP address type of the BMC to be tested is the dynamic IP address, the network detection data of the switched BMC are automatically acquired and displayed until the stability test of the BMC to be tested is completed according to the preset test times or the preset test time, the current IP address type of the BMC to be tested can be automatically switched to the dynamic IP address based on the control interface and the test information under the condition that the current IP address type of the BMC to be tested is the static IP address, the network detection data of the switched BMC are automatically acquired and displayed until the stability test of the BMC to be tested is completed according to the preset test times or the preset test time, the network detection data of the switched BMC to be tested are automatically switched for multiple times based on the control interface and the test information, the stability test of the BMC to be tested is acquired and displayed, the test efficiency and the test accuracy are improved, and the labor cost and the time cost of the stability test are reduced.
Example III
Fig. 3 is a flowchart of a BMC stability testing method according to a third embodiment of the present invention, including the following steps:
step 301, obtaining test information of the BMC to be tested from a test file corresponding to the BMC to be tested.
Wherein the test information includes: an alternative static IP address and an alternative dynamic IP address.
Step 302, determining the current IP address type of the BMC to be tested: if the current IP address type of the BMC to be tested is a dynamic IP address, step 303 is executed; if the current IP address type of the BMC to be tested is a static IP address, step 310 is performed.
Step 303, sending a static IP setting instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back static setting completion information.
Step 304, after receiving the static setting completion information fed back by the BMC to be tested, establishing network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to the target user through the test data display page.
And 305, storing the connectivity detection result into a network detection data file corresponding to the BMC to be tested.
Step 306, sending a webpage login detection instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to detect the webpage login function of the BMC to be tested, and feeding back the webpage login detection result.
Step 307, the webpage login detection result fed back by the BMC to be tested is provided to the target user through the test data display page.
And 308, storing the detection result of the current webpage login into a network detection data file corresponding to the BMC to be tested.
Step 309, detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration: if the stability test of the BMC to be tested is completed, step 317 is executed; if the stability test of the BMC to be tested is not completed, the process returns to step 302.
Step 310, sending a dynamic IP setting instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back the dynamic setting completion information.
Step 311, after receiving the dynamic setting completion information fed back by the BMC to be tested, establishing a network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to the target user through the test data display page.
And step 312, storing the connectivity detection result into a network detection data file corresponding to the BMC to be tested.
Step 313, sending a webpage login detection instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to detect the webpage login function of the BMC to be tested, and feeding back the webpage login detection result.
And 314, providing the current webpage login detection result fed back by the BMC to be tested for the target user through the test data display page.
And step 315, storing the current webpage login detection result into a network detection data file corresponding to the BMC to be tested.
Step 316, detecting whether the stability test of the BMC to be tested is completed according to the preset test times or the preset test duration: if the stability test of the BMC to be tested is completed, step 317 is executed; if the stability test of the BMC to be tested is not completed, the process returns to step 302.
Step 317, determining that the testing process of the BMC to be tested is finished.
According to the technical scheme, the IP address type of the BMC to be tested can be automatically switched for multiple times based on the control interface and the test information, the network detection data of the BMC to be tested after switching is obtained and displayed, the BMC to be tested is subjected to stability test, the test efficiency and the test accuracy are improved, and the labor cost and the time cost of the BMC stability test are reduced.
Example IV
Fig. 4 is a schematic structural diagram of a BMC stability testing device according to a fourth embodiment of the present invention. The apparatus may be configured in an electronic device. As shown in fig. 4, the apparatus includes: an information acquisition module 401 and a BMC test module 402.
The information obtaining module 401 is configured to obtain test information of the BMC to be tested; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address; the BMC test module 402 is configured to repeatedly switch, through a control interface, an IP address type of the BMC to be tested according to the test information, obtain network detection data of the switched BMC to be tested, and provide the network detection data to a target user through a test data display page.
According to the technical scheme, the test information of the BMC to be tested is obtained; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address; and then repeatedly switching the IP address type of the BMC to be tested according to the test information through the control interface, acquiring the network detection data of the switched BMC to be tested, providing the network detection data for a target user through a test data display page, solving the problems that a BMC stability test scheme in the related technology can consume a large amount of labor cost and time cost, the test efficiency is lower and the test accuracy cannot be ensured, acquiring the IP address type of the BMC to be tested based on the control interface and the test information, automatically switching the IP address type of the BMC to be tested for multiple times, acquiring and displaying the network detection data of the switched BMC to be tested, and performing stability test on the BMC to be tested, thereby improving the test efficiency and the test accuracy, and reducing the labor cost and the time cost of the BMC stability test.
In an optional implementation manner of the embodiment of the present invention, optionally, the information obtaining module 401 is specifically configured to: and acquiring the test information of the BMC to be tested from the test file corresponding to the BMC to be tested.
In an optional implementation manner of the embodiment of the present invention, optionally, the BMC test module 402 is specifically configured to: determining the current IP address type of the BMC to be tested; if the current IP address type of the BMC to be tested is a dynamic IP address, controlling the BMC to be tested through a control interface to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested; performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user; detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time; and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
In an optional implementation of the embodiment of the present invention, optionally, the BMC test module 402 is further configured to: if the current IP address type of the BMC to be tested is a static IP address, controlling the BMC to be tested through a control interface to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested; performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user; detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time; and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
In an optional implementation of the embodiment of the present invention, optionally, the BMC test module 402 is further configured to: and storing the current connectivity detection result and the current webpage login detection result into a network detection data file corresponding to the BMC to be tested.
In an optional implementation manner of the embodiment of the present invention, optionally, when the BMC test module 402 performs an operation of detecting whether the stability test of the BMC to be tested is completed according to a preset number of tests or a preset test duration, the method is specifically used for: adding 1 to the test times of the BMC to be tested, and detecting whether the test times of the BMC to be tested are equal to preset test times or not; if the test times of the BMC to be tested are equal to the preset test times, determining that the stability test of the BMC to be tested is completed; if the test times of the BMC to be tested are not equal to the preset test times, determining that the stability test of the BMC to be tested is not completed.
In an optional implementation manner of the embodiment of the present invention, optionally, when the BMC test module 402 performs an operation of detecting whether the stability test of the BMC to be tested is completed according to a preset number of tests or a preset test duration, the method is specifically used for: detecting whether the current test duration of the BMC to be tested is greater than or equal to a preset test duration; if the current test time length of the BMC to be tested is longer than or equal to the preset test time length, determining that the stability test of the BMC to be tested is completed; if the current test duration of the BMC to be tested is smaller than the preset test duration, determining that the stability test of the BMC to be tested is not completed.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The BMC stability testing device can execute the BMC stability testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the BMC stability testing method.
Example five
Fig. 5 shows a schematic structural diagram of an electronic device 10 that may be used to implement the BMC stability test method according to an embodiment of the invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., which is in network communication connection with the at least one processor 11, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program built into the Random Access Memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the BMC stability test method.
In some embodiments, the BMC stability test method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When a computer program is built into RAM 13 and executed by processor 11, one or more steps of the BMC stability test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the BMC stability test method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the BMC stability test method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for testing BMC stability, comprising:
acquiring test information of the BMC to be tested; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address;
and repeatedly switching the IP address type of the BMC to be tested according to the test information through a control interface, acquiring the switched network detection data of the BMC to be tested, and providing the network detection data for a target user through a test data display page.
2. The method of claim 1, wherein the obtaining the test information of the BMC to be tested comprises:
and acquiring the test information of the BMC to be tested from the test file corresponding to the BMC to be tested.
3. The method according to claim 1, wherein the repeatedly switching, by the control interface, the IP address type of the BMC to be tested according to the test information, obtaining the network detection data of the switched BMC to be tested, and providing the network detection data to the target user through the test data presentation page, includes:
determining the current IP address type of the BMC to be tested;
if the current IP address type of the BMC to be tested is a dynamic IP address, controlling the BMC to be tested through a control interface to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested;
performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user;
detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time;
And if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
4. A method according to claim 3, wherein controlling the BMC to be tested via the control interface to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested comprises:
and sending a static IP setting instruction to the BMC to be tested through a control interface, controlling the BMC to be tested to set the alternative static IP address of the BMC to be tested as the IP address of the BMC to be tested, and feeding back static setting completion information.
5. The method of claim 4, wherein performing IP address connectivity detection and web page login detection on the BMC to be tested to obtain a current connectivity detection result and a current web page login detection result, and providing the current connectivity detection result and the current web page login detection result to the target user comprises:
after receiving static setting completion information fed back by the BMC to be tested, establishing network communication connection with the BMC to be tested according to the IP address of the BMC to be tested and a preset network communication protocol, performing connectivity detection on the IP address of the BMC to be tested to obtain a current connectivity detection result, and providing the current connectivity detection result to a target user through a test data display page;
Sending a webpage login detection instruction to the BMC to be tested through the control interface, controlling the BMC to be tested to detect the webpage login function of the BMC to be tested, and feeding back the webpage login detection result;
and providing the current webpage login detection result fed back by the BMC to be tested to the target user through the test data display page.
6. A method according to claim 3, further comprising, after determining the current IP address type of the BMC to be tested:
if the current IP address type of the BMC to be tested is a static IP address, controlling the BMC to be tested through a control interface to set the alternative dynamic IP address of the BMC to be tested as the IP address of the BMC to be tested;
performing IP address connectivity detection and webpage login detection on the BMC to be tested to obtain a current connectivity detection result and a current webpage login detection result, and providing the current connectivity detection result and the current webpage login detection result for the target user;
detecting whether the stability test of the BMC to be tested is finished or not according to the preset test times or the preset test time;
and if the stability test of the BMC to be tested is not completed, returning to execute the operation of determining the current IP address type of the BMC to be tested.
7. The method according to claim 3 or 6, wherein the detecting whether the stability test of the BMC to be tested is completed according to a preset number of tests or a preset test duration comprises:
adding 1 to the test times of the BMC to be tested, and detecting whether the test times of the BMC to be tested are equal to preset test times or not;
if the test times of the BMC to be tested are equal to the preset test times, determining that the stability test of the BMC to be tested is completed;
if the test times of the BMC to be tested are not equal to the preset test times, determining that the stability test of the BMC to be tested is not completed.
8. A BMC stability test device, comprising:
the information acquisition module is used for acquiring the test information of the BMC to be tested; wherein the test information includes: an alternative static IP address and an alternative dynamic IP address;
the BMC test module is used for repeatedly switching the IP address type of the BMC to be tested according to the test information through the control interface, obtaining the switched network detection data of the BMC to be tested, and providing the network detection data for a target user through a test data display page.
9. An electronic device, the electronic device comprising:
At least one processor;
and a memory communicatively coupled to the at least one processor network;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the BMC stability test method of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the BMC stability test method of any of claims 1-7 when executed.
CN202310187393.0A 2023-02-22 2023-02-22 BMC stability test method, device, equipment and medium Pending CN116192686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310187393.0A CN116192686A (en) 2023-02-22 2023-02-22 BMC stability test method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310187393.0A CN116192686A (en) 2023-02-22 2023-02-22 BMC stability test method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116192686A true CN116192686A (en) 2023-05-30

Family

ID=86452081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310187393.0A Pending CN116192686A (en) 2023-02-22 2023-02-22 BMC stability test method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116192686A (en)

Similar Documents

Publication Publication Date Title
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
CN116192686A (en) BMC stability test method, device, equipment and medium
CN116405408A (en) Automatic equipment inspection method, device, equipment and storage medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN116027226A (en) Component testing method and device, electronic equipment and storage medium
CN115599438A (en) Method, device, equipment and medium for constructing application program publishing package
CN116306400B (en) Integrated circuit verification method, system, device, equipment and medium
CN117539699A (en) BMC test method, device, equipment and medium
CN116303071A (en) Interface testing method and device, electronic equipment and storage medium
CN116089307A (en) BIOS testing method, device, equipment and medium
CN115967638A (en) Equipment simulation system, method, equipment and storage medium
CN116319292A (en) BMC network configuration method, device, equipment and storage medium
CN117971581A (en) Equipment testing method and device, electronic equipment and storage medium
CN117459373A (en) Network diagnosis method, device and storage medium
CN117520080A (en) Server testing method, device, equipment and medium
CN118075182A (en) Flow recording method, device, equipment and medium in multi-tenant mode
CN116755944A (en) Server testing method and device, electronic equipment and storage medium
CN117493000A (en) Task processing method, device, equipment and medium
CN117331762A (en) Test method, device, equipment and medium for link training of PCIe equipment
CN117826055A (en) Reliability test method and device for ammeter
CN116107878A (en) Remote debugging method, device, equipment and storage medium
CN118098322A (en) Method, device, equipment and medium for testing rotation vibration of hard disk
CN116302944A (en) Service system testing method and device, electronic equipment and storage medium
CN115543712A (en) Automatic detection method and device for equipment configuration information, electronic equipment and medium
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment 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