Network fault repair method and device, equipment and storage medium

By obtaining network information of the server operating system and management system, calculating the overall accessibility index, and repairing network failures when preset conditions are met, it solves the problem that network failure affects the normality of the test in server automation batch testing, and improves the test reliability.

CN119484250AActive Publication Date: 2025-02-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411620584.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-18
Estimated Expiration
2044-11-13

AI Technical Summary

Technical Problem

During the server automation batch testing process, due to the complexity of the test scenario and the mutual interference between test cases, the server may experience network failure, affecting the normal progress of the test, and the existing technology is difficult to effectively solve this problem.

Method used

By obtaining network information with the server operating system and management system, the overall accessibility index is calculated, and when the index meets the preset conditions, the target server with network failure is determined and repaired.

Benefits of technology

Improve the reliability of server automation batch testing, ensure that the test tasks can be executed normally, and avoid test failures caused by network failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484250A_ABST
    Figure CN119484250A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of servers, and discloses a network fault repair method, device and equipment and a storage medium, which are applied to a test system, and the test system is used for testing at least one server. The method comprises the following steps: acquiring first network information with each server operating system and second network information with each server management system; based on the first network information and the second network information, determining an overall accessibility index of one or more currently tested servers; and under the condition that the overall accessibility index meets a preset condition, determining a target server with a network fault according to a test task executed for each server, and repairing the network fault of the target server. The reliability of automatic batch testing of servers can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of server technology, and in particular to a network fault repair method, device, equipment and storage medium. Background Art

[0002] Before a server leaves the factory, in order to ensure the product quality of the server, various functions of the server are usually tested. In some technologies, in order to reduce the workload of server testing, the server is automatically tested in batches through a test system. However, when the test system performs automated testing tasks, due to the complexity of the test scenario and the mutual interference between test cases, the server may experience network failures, which in turn affects the normal progress of automated testing. The reliability of automated batch testing of servers needs to be improved. Summary of the invention

[0003] In view of this, the present disclosure provides a network fault repair method, a network fault repair device, an electronic device and a computer-readable storage medium, which can improve the reliability of automated batch testing of servers.

[0004] In a first aspect, the present disclosure provides a network fault repair method, which is applied to a test system, wherein the test system is used to test at least one server; the method comprises:

[0005] Acquire first network information between each server operating system and second network information between each server management system;

[0006] Determining an overall accessibility index of one or more servers currently being tested based on the first network information and the second network information;

[0007] When the overall accessibility index meets the preset conditions, the target server with the network failure is determined according to the test tasks performed on each of the servers, and the network failure of the target server is repaired.

[0008] In a second aspect, the present disclosure provides a network fault repair device, which is applied to a test system, wherein the test system is used to test at least one server; the device comprises:

[0009] A network information acquisition module, used to acquire first network information between each server operating system and second network information between each server management system;

[0010] an accessibility index determination module, configured to determine an overall accessibility index of one or more servers currently being tested based on the first network information and the second network information;

[0011] The fault repair module is used to determine the target server with network failure and repair the network failure of the target server according to the test tasks performed on each of the servers when the overall accessibility index meets the preset conditions.

[0012] In a third aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the above method by executing the computer instructions.

[0013] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the above method.

[0014] In some embodiments of the present disclosure, the overall accessibility index determined based on the first network information and the second network information can reflect the overall probability of a network failure occurring in one or more servers currently being tested. Furthermore, when the overall accessibility index meets preset conditions, the target server with a network failure can be accurately located and the network failure of the target server can be repaired based on the test tasks performed on each server, thereby preventing server test failures caused by network failures, thereby greatly improving the reliability of automated batch testing of servers. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 is a schematic diagram of a scenario of automated batch testing of servers provided by some embodiments of the present disclosure;

[0017] Figure 2 is a flowchart of a network fault repair method provided by some embodiments of the present disclosure;

[0018] Figure 3 is a module diagram of a network fault repair device provided by an embodiment of the present disclosure;

[0019] Figure 4 It is a schematic diagram of the structure of an electronic device provided by some embodiments of the present disclosure. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0022] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "some embodiments" or "the embodiment" should be understood as "at least some embodiments". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0023] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0024] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0025] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0026] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0027] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0028] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0029] Combined with reference Figure 1 , which is a schematic diagram of a scenario of automated batch testing of servers provided in some embodiments of the present disclosure. Figure 1 In the example, servers A, B, and C are the servers to be tested. The test system can execute test tasks for each server by running the test case script to complete the server test. Server testing can be divided into two aspects: hardware testing and software testing.

[0030] Hardware testing may include but is not limited to central processing unit (CPU) testing, memory testing, storage testing, network testing, power testing, heat dissipation testing, motherboard testing, hardware compatibility testing, etc. For example, testing the effectiveness of the server motherboard interface. Another example is testing the maximum read and write speed and capacity supported by the storage device.

[0031] Software testing may include but is not limited to functional testing, performance testing, safety and reliability testing, software compatibility testing, etc. For example, testing the basic input / output system (BIOS) function of the server. Another example is testing the power-off recovery function of the server.

[0032] In some embodiments, servers A, B, and C may be servers of the same type. The so-called same type means that the software and hardware of servers A, B, and C are the same. In the test system, different test case scripts can be run for servers A, B, and C to execute different test tasks of the same type of servers in parallel. For example, run the test case script a1 to test the BIOS function and operating system function in server A; run the test case script b1 to test the motherboard heat dissipation and interface validity in server B. And so on. Finally, the test results of servers A, B, and C are summarized, which are the test results of the corresponding types of servers. In these embodiments, different functions of the same type of servers can be tested in parallel, and the test efficiency is high.

[0033] In some embodiments, servers A, B, and C may be different types of servers. The so-called different types refer to differences in the software or hardware of servers A, B, and C. In the test system, each type of server may have one or more corresponding test case scripts. By running the test case scripts corresponding to each type of server, the test tasks of the corresponding type of server can be executed, and the test results of the corresponding type of server can be obtained. For example, assuming that server A belongs to the M1 type server, corresponding to the test case scripts a21 and a22; server B belongs to the M2 type server, corresponding to the test case scripts b21, b22, and b23. Then, after running the test scripts a21 and a22 and executing the test tasks for server A, the test results of the M1 type server can be obtained; after running the test scripts b21, b22, and b23 and executing the test tasks for server B, the test results of the M2 type server can be obtained. In these embodiments, the test system can run the test case scripts of each type of server in parallel, so as to perform parallel testing on each type of server, and the test efficiency is high.

[0034] Based on the above description, this solution of running test case scripts through the test system to test multiple servers in parallel is the automated batch testing of the servers.

[0035] It should be noted that, first of all, Figure 1 It is just an example of 3 servers, which does not constitute a limitation on the present disclosure. In the actual server automation batch testing scenario, the number of servers tested in parallel can be set according to actual needs, such as 5 servers or 10 servers. Secondly, the server type of batch testing, the correspondence between the server and the test case script, can also be set according to actual needs. The two test scenarios listed above do not constitute a limitation on the present disclosure. For example, among the multiple servers tested in parallel, some servers can be servers of the same type, and some servers can be servers of different types.

[0036] Continue reading Figure 1. In some embodiments of the present disclosure, in the area where the server is located, an intelligent device (such as an intelligent robot) may also be included. The test system may be connected to the intelligent device for communication. During the batch testing of the server, for testing needs, the test system may also issue control instructions to the intelligent device to control the intelligent device to perform specified operations on one or more of the servers. For example, when the baseboard management control system (Baseboard Management Controller, BMC) of server A fails, resulting in the inability to remotely power on and off server A through the baseboard management control system, the test system may control the intelligent device to move to the location of server A and perform power-on or power-off operations on server A.

[0037] based on Figure 1 For the server automated batch test scenario shown, although it can greatly improve the server test efficiency and reduce the workload of server testing, due to the complexity of the test scenario and the mutual interference between test cases, it is possible to cause network failures in the server, making the test system unable to access the server's operating system or baseboard management and control system, thereby affecting the normal progress of automated testing. For example, when executing test case script a21, the baseboard management and control system of server A is shut down for testing purposes, and after the test is completed, the baseboard management and control system is not restarted. In this way, after the test case script a21 is executed, if the baseboard management and control system of server A needs to be accessed when continuing to execute test case script a22, a failure to access the baseboard management and control system will occur, making it impossible for the automated test to continue to execute. That is, the reliability of server automated batch testing is not high enough.

[0038] In view of this, the present disclosure provides a network fault repair method, which can repair the network fault of the server in the scenario of automated batch testing of the server, thereby improving the reliability of automated batch testing of the server. The network fault repair method can be applied to Figure 1 The test system in the test system, or the electronic device used to run the test system. The electronic device may include but is not limited to tablet computers, laptop computers, desktop computers, servers, controllers, etc. Figure 2 , which is a flow chart of a network fault repair method provided in some embodiments of the present disclosure. Figure 2 In the present invention, the network fault repair method may include the following steps:

[0039] Step S201, obtaining first network information between each server operating system and second network information between each server management system.

[0040] In this embodiment, the server operating system refers to the OS (Operating System) in the server, which is mainly used for the server's device management, file management system, memory management, multi-tasking, and user interface. The server management system refers to the baseboard management and control system in the server, which is mainly used for the server's device information management, status monitoring management, and remote control management. In general, the difference between the server operating system and the server management system is that the server operating system is mainly used to provide a stable operating environment for applications and services, and manage the hardware and software resources in the server; the server management system is mainly used for hardware monitoring and management of the server, and provides remote management functions for the server.

[0041] The first network information can characterize the communication quality between the test system and each server operating system, including but not limited to the disconnection status (i.e., connection or disconnection status) between the test system and each server operating system, the first response time of the server operating system when communicating with each server operating system, the packet loss rate during the communication process, etc. Similarly, the second network information can characterize the communication quality between the test system and each server management system, including but not limited to the disconnection status between the test system and each server management system, the first response time of the server management system when communicating with each server management system, the packet loss rate during the communication process, etc.

[0042] Specifically, in the server, the server operating system and the server management system may have respective corresponding IP addresses. Based on the network diagnostic command and the IP addresses of the server operating system and the server management system, the first network information and the second network information may be obtained. For example, by using the ping command, a data packet is sent to the IP address of the server operating system, and based on the response of the server operating system, the first network information may be obtained.

[0043] Furthermore, considering that in the scenario of automated batch testing of servers, when executing some specific test tasks for the server, the test system and the server operating system or server management system should be in a disconnected state. If during the execution of these specific test tasks, the test system and the server operating system or server management system are detected to be in a disconnected state by technical means such as the ping command, it does not mean that there is a network failure between the test system and the server operating system or server management system. This is because, under normal circumstances, the test case script used to execute these specific test tasks will include a network recovery instruction. After the test task is executed, the connection between the test system and the server operating system or server management system can be restored through the network recovery instruction. For example, assuming that when running the test case script a3 to test the BIOS function of the server, after the server is started, it will enter the BIOS system and will not enter the server operating system. That is, during the running of the test case script a3, the test system and the server operating system are in a disconnected state. After the BIOS function test is completed, the network connection between the test system and the server operating system can be restored by executing the network recovery instruction in the test case script a3. Therefore, during the running of the test case script a3, the disconnection between the test system and the server operating system detected by technical means such as the ping command is not accurate.

[0044] In view of this, in this embodiment, the first network information can be obtained based on the following logic: starting from a specified time point, if the test system and the server operating system are detected to be in a disconnected state for a first preset time period, then it can be determined that the test system and the server operating system are in a disconnected state, otherwise, it can be considered that the test system and the server operating system are in a connected state. The first preset time period can be the maximum execution time of a single test task. In this way, it is possible to effectively avoid the situation where the network between the test system and the server operating system is normally disconnected, thereby ensuring the accuracy of the first network information obtained.

[0045] Furthermore, when it is determined that the test system is connected to the server operating system, the duration from the specified time point to the first receipt of a response from the server operating system indicating a successful connection can be used as the first response duration of the server operating system. For example, assuming that 10:30:20 is used as the specified time point, and a ping command is executed every 1 second, if the ping commands sent between the 20th and 39th seconds all receive responses indicating a failed connection, and the first response indicating a successful connection is received at the 40th second, then the duration between the 20th and 40th seconds (i.e., 20 seconds) can be used as the first response duration of the server operating system.

[0046] The second network information can be obtained based on the following logic, similar to the principle of obtaining the first network information: starting from a specified time point, if the test system and the server management system are detected to be disconnected for a first preset time period, then it can be determined that the test system and the server management system are disconnected; otherwise, it can be considered that the test system and the server management system are connected. Further, when it is determined that the test system and the server management system are connected, the time from the specified time point to the first receipt of a response from the server management system indicating a successful connection can be used as the second response time of the server management system.

[0047] The first network information and the second network information can be used to reflect whether a network failure occurs between the test system and the server. Specifically, if based on the first network information, it is determined that the first response time of each server operating system is relatively long, or there are relatively few server operating systems connected to the test system, it can be said that the probability of a network failure between the test system and the server operating system is relatively high. Similarly, if based on the second network information, it is determined that the first response time of each server management system is relatively long, or there are relatively few server management systems connected to the test system, it can be said that the probability of a network failure between the test system and the server management system is relatively high.

[0048] Step S202: determining the overall accessibility index of one or more servers currently being tested based on the first network information and the second network information.

[0049] The overall accessibility index is used to characterize the probability of network failure of one or more servers currently being tested. That is, all servers currently being tested are regarded as a server set, and the overall accessibility index is used to characterize the probability of network failure of the server set as a whole.

[0050] In this embodiment, the first network information and the second network information may be fused and calculated to determine the overall accessibility index. For example, the overall accessibility index may be calculated in the following manner:

[0051] The first response time between each server operating system and the second response time of each server management system are averaged to obtain the overall response time of one or more servers currently tested;

[0052] Determine the total number of server operating systems and server management systems connected to the test system;

[0053] The product of the overall response time and the total number of systems is taken as the overall accessibility index.

[0054] In the subsequent embodiments of the present disclosure, a better method for calculating the overall accessibility index is provided, which will not be described in detail here.

[0055] Step S203, when the overall accessibility index meets the preset conditions, according to the test tasks executed for each server, the target server having the network failure is determined, and the network failure of the target server is repaired.

[0056] Specifically, depending on the calculation method of the overall accessibility index, the overall accessibility index may be inversely proportional or directly proportional to the probability of a network failure in the server set. Wherein, if the overall accessibility index is inversely proportional to the probability of a network failure in the server set, if the overall accessibility index is less than a first threshold, it may be indicated that the overall accessibility index meets a preset condition. Where the overall accessibility index is directly proportional to the probability of a network failure in the server set, if the overall accessibility index is greater than a second threshold, it may be indicated that the overall accessibility index meets the preset condition.

[0057] Based on the above description, when the overall accessibility index meets the preset conditions, it means that the probability of a network failure in the server set is relatively high. In this case, one or more servers currently being tested can be traversed, and the network disconnection between the test system and each server operating system or server management system can be detected. Among them, for the server operating system A1 and server management system A2 in any server A, if it is detected that the test system is disconnected from the server operating system A1 or the server management system A2, then according to the test task performed on server A, it is determined whether the network disconnection between the test system and the server operating system A1 or the server management system A2 is normal. If it is normal, it is determined that there is no network failure in server A. If it is abnormal, it is determined that server A is the target server with a network failure. For example, suppose that during the traversal process, it is detected that the test system is disconnected from the server operating system A1. In this case, if it is found that the test task performed on server A is to detect whether the BIOS function is normal (without entering the server operating system A1), it can be determined that it is normal for the test system to be disconnected from the server operating system A1, that is, there is no network failure in server A. On the contrary, if it is found that the test task performed on server A is to test whether the server management system A2 can accurately control the fan in server A (without affecting the server operating system A1), it can be determined that the network disconnection between the test system and the server operating system A1 is abnormal. Therefore, it can be determined that server A is the target server with a network failure.

[0058] After determining the target server with a network failure, the network failure of the target server can be automatically repaired through preset instructions, etc., so as to ensure the normal execution of subsequent test tasks. For example, assuming that a network disconnection is detected between the test system and the server operating system A1, and through analysis it is found that the cause of the network disconnection is that server A is not started, the smart device in the area where server A is located can be controlled to perform a startup operation on server A. In this way, the network disconnection problem between the test system and the server operating system A1 can be solved, thereby ensuring the normal execution of subsequent test tasks.

[0059] To summarize, in some embodiments of the present disclosure, the overall accessibility index determined based on the first network information and the second network information can reflect the overall probability of a network failure occurring in one or more servers currently being tested. Furthermore, when the overall accessibility index meets preset conditions, based on the test tasks performed on each server, the target server with a network failure can be accurately located and the network failure of the target server can be repaired, thereby preventing server test failures caused by network failures, thereby greatly improving the reliability of automated batch testing of servers.

[0060] The solution of this application is further described below.

[0061] In some embodiments, the overall accessibility index of one or more servers currently being tested is determined based on the first network information and the second network information in step S201, which may be performed as follows: steps 1) and 2):

[0062] 1) Based on the first network information, a first accessibility index of the server operating system is determined, and based on the second network information, a second accessibility index of the server management system is determined.

[0063] Specifically, based on the disconnection status between each server operating system, the proportion of server operating systems in a connected state can be counted, and based on a preset operating system response time threshold, the proportion of server operating systems in a connected state and the first response time of the server operating systems in a connected state, the first accessibility index of the server operating system can be determined.

[0064] The operating system response time threshold may be the maximum execution time of a single test task. The first accessibility index is used to characterize the probability of network failures in all server operating systems currently being tested, and its calculation formula may be as shown in expression (1):

[0065]

[0066] Among them, AI osIndicates a first accessibility index of the server operating system;

[0067] N os Indicates the percentage of server operating systems that are in connected state;

[0068] T os_resp Indicates the first response time of the server operating system in the connected state. If multiple server operating systems have their own corresponding first response time, T os_resp It may be a value obtained by averaging the first response times of the multiple server operating systems;

[0069] T os_threah Indicates the operating system response time threshold.

[0070] Similarly, based on the disconnection status between each server management system, the proportion of server management systems in a connected state can be counted, and based on a preset management system response time threshold, the proportion of server management systems in a connected state and the second response time of the server management systems in a connected state, the second accessibility index of the server management system can be determined.

[0071] The calculation formula of the accessibility index of the server management system can be shown as expression (2):

[0072]

[0073] Among them, AI bmc Indicates a second accessibility index of the server management system;

[0074] N bmc Indicates the percentage of server management systems that are in a connected state;

[0075] T bmc_resp Indicates the first response time of the server management system in the connected state. If multiple server management systems have their own corresponding first response time, T bmc_resp It may be a value obtained by averaging the first response times of the multiple server management systems;

[0076] T bmc_threah Indicates the operating system response time threshold.

[0077] 2) The first accessibility index and the second accessibility index are fused and calculated to obtain an overall accessibility index.

[0078] Specifically, the first accessibility index and the second accessibility index may be added together to obtain an overall accessibility index. That is, the overall accessibility index AI may be expressed as expression (3):

[0079]

[0080] The overall accessibility index AI obtained based on expression (3) can be inversely proportional to the probability of network failure occurring in the server set.

[0081] In the above embodiment, when determining the overall accessibility index AI, the number of server operating systems and server management systems in a connected state, as well as the response time of the server operating system and the server management system are comprehensively considered, and the obtained overall accessibility index is more objective and accurate.

[0082] In some embodiments, the step S203 of repairing the network failure of the target server includes:

[0083] According to the specified repair operation steps, control the intelligent devices in the area where the target server is located to repair the network failure of the target server;

[0084] In the case where the network failure of the target server cannot be repaired by the intelligent device, if there is a system in a connected state in the server management system and the server operating system, the network failure of the target server is repaired based on the system in a connected state;

[0085] In the event that the network failure of the target server cannot be repaired by the connected system, if there is a standby server identical to the target server, the target server is replaced with the standby server.

[0086] Specifically, in network fault repair, the network fault of the target server can be repaired in the order of smart device > server management system or server operating system > alternative server. In this way, the network fault of the target server can be repaired to the greatest extent possible.

[0087] In some embodiments, according to the specified repair operation steps, controlling the smart device in the area where the target server is located to repair the network failure of the target server may include:

[0088] When the target server is in a shutdown state, control the intelligent device to perform a startup operation on the target server;

[0089] When the target server is powered on, the intelligent device is controlled to connect with the hardware interface of the target server, and the software configuration of the target server is updated through the hardware interface to repair the network failure of the target server.

[0090] Specifically, updating the software configuration of the target server through the hardware interface may include:

[0091] 1) Update the network configuration of the target server. For example, if the target server currently enters the BIOS system, set the target server to enter the server operating system the next time it starts. After the setting is completed, restart the target server to enter the server operating system. In this way, the network connection between the test system and the server operating system can be restored.

[0092] 2) Reinstall the server operating system or server management system.

[0093] Specifically, by reinstalling the system, a failed server operating system or server management system can be repaired, and then the network connection between the test system and the server operating system or server management system can be restored.

[0094] In some embodiments, repairing a network failure of a target server based on a system in a connected state may include:

[0095] When the server operating system is in a connected state and a network failure occurs in the server management system, the network failure of the server management system is repaired through the server operating system;

[0096] When the server management system is in a connected state and a network failure occurs in the server operating system, the network failure of the server operating system is repaired through the server management system.

[0097] For example, when the server management system is in a connected state, the target server can be powered on, restarted, started, etc. in the device management interface of the server management system, and then the server operating system can be started, thereby restoring the network connection between the test system and the server operating system. For another example, when the server operating system is in a connected state, the server management system can be started by executing a specified command in the server operating system, thereby restoring the network connection between the test system and the server management system.

[0098] In some embodiments, after replacing the target server with the backup server, the method of the present disclosure may further include:

[0099] Setting the media access control address of the backup server to the media access control address of the target server;

[0100] Setting the Internet Protocol address of the server operating system of the backup server to the Internet Protocol address of the server operating system of the target server;

[0101] The Internet Protocol address of the server management system of the backup server is set to the Internet Protocol address of the server management system of the target server.

[0102] Specifically, the media access control address can also be called the MAC (Media Access Control Address) address, and the Internet Protocol address can also be called the IP (Internet Protocol Address) address. By setting the media access control address and Internet Protocol address of the backup server to be the same as the target server, the test server can establish a connection with the backup server based on the address of the target server, and use the backup server as the target server to complete the test task for the target server.

[0103] This completes the entire description of the method disclosed herein.

[0104] Combined with reference Figure 3 , which is a module diagram of a network fault repair device provided by an embodiment of the present disclosure. Figure 3 In the present invention, the network fault recovery device includes:

[0105] The network information acquisition module 301 is used to acquire first network information between each server operating system and second network information between each server management system;

[0106] An accessibility index determination module 302, configured to determine an overall accessibility index of one or more servers currently being tested based on the first network information and the second network information;

[0107] The fault repair module 303 is used to determine the target server with network failure according to the test tasks performed on each server when the overall accessibility index meets the preset conditions, and repair the network failure of the target server.

[0108] In some embodiments, the accessibility index determination module 302 is specifically configured to:

[0109] Determining a first accessibility index of the server operating system based on the first network information, and determining a second accessibility index of the server management system based on the second network information;

[0110] The first accessibility index and the second accessibility index are fused and calculated to obtain an overall accessibility index.

[0111] In some embodiments, the first network information includes the disconnection status between each server operating system and the first response time of the server operating system when communicating with each server operating system, and the second network information includes the disconnection status between each server management system and the second response time of the server management system when communicating with each server management system; the accessibility index determination module 302 is specifically used to:

[0112] Based on the disconnection status with each server operating system, count the percentage of server operating systems in the connected state;

[0113] Determine a first accessibility index of the server operating system based on a preset operating system response time threshold, a proportion of server operating systems in a connected state, and a first response time of the server operating system in a connected state;

[0114] Based on the disconnection status with each server management system, the proportion of server management systems in the connected state is counted;

[0115] Based on a preset management system response time threshold, a proportion of server management systems in a connected state, and a second response time of the server management system in a connected state, a second accessibility index of the server management system is determined.

[0116] In some embodiments, the fault recovery module 303 is specifically used to:

[0117] According to the specified repair operation steps, control the intelligent devices in the area where the target server is located to repair the network failure of the target server;

[0118] In the case where the network failure of the target server cannot be repaired by the intelligent device, if there is a system in a connected state in the server management system and the server operating system, the network failure of the target server is repaired based on the system in a connected state;

[0119] In the event that the network failure of the target server cannot be repaired by the connected system, if there is a standby server identical to the target server, the target server is replaced with the standby server.

[0120] In some embodiments, the fault recovery module 303 is specifically used to:

[0121] When the target server is in a shutdown state, control the intelligent device to perform a startup operation on the target server;

[0122] When the target server is powered on, the intelligent device is controlled to connect with the hardware interface of the target server, and the software configuration of the target server is updated through the hardware interface to repair the network failure of the target server.

[0123] In some embodiments, after the standby server is used to replace the target server, the fault recovery module 303 is further used to:

[0124] Setting the media access control address of the backup server to the media access control address of the target server;

[0125] Setting the Internet Protocol address of the server operating system of the backup server to the Internet Protocol address of the server operating system of the target server;

[0126] The Internet Protocol address of the server management system of the backup server is set to the Internet Protocol address of the server management system of the target server.

[0127] In some embodiments, the fault recovery module 303 is specifically used to:

[0128] When the server operating system is in a connected state and a network failure occurs in the server management system, the network failure of the server management system is repaired through the server operating system;

[0129] When the server management system is in a connected state and a network failure occurs in the server operating system, the network failure of the server operating system is repaired through the server management system.

[0130] The network fault repair device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0131] The network fault repairing device disclosed in the present invention has the same beneficial effects as the above-mentioned network fault repairing method, which will not be described in detail here.

[0132] The present disclosure also provides an electronic device having the above Figure 3 The network fault recovery device shown.

[0133] Combined with reference Figure 4 , is a schematic diagram of the structure of an electronic device provided by some embodiments of the present disclosure. Figure 4As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0134] The processor 10 may be a first PCIe device, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0135] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0136] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0137] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0138] The electronic device further comprises a communication interface 30 for the electronic device to communicate with other devices or a communication network.

[0139] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0140] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0141] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A network fault repair method, characterized in that: Applied to a test system, the test system is used to test at least one server; the method comprises: Acquire first network information between each server operating system and second network information between each server management system; Determining an overall accessibility index of one or more servers currently being tested based on the first network information and the second network information; When the overall accessibility index meets the preset conditions, the target server with the network failure is determined according to the test tasks performed on each of the servers, and the network failure of the target server is repaired.

2. The method according to claim 1, characterized in that: The step of determining the overall accessibility index of the currently tested one or more servers based on the first network information and the second network information comprises: Determining a first accessibility index of the server operating system based on the first network information, and determining a second accessibility index of the server management system based on the second network information; The first accessibility index and the second accessibility index are fused and calculated to obtain the overall accessibility index.

3. The method according to claim 2, characterized in that The first network information includes the disconnection status between each of the server operating systems and the first response duration of the server operating system when communicating with each of the server operating systems; the second network information includes the disconnection status between each of the server management systems and the second response duration of the server management system when communicating with each of the server management systems; The determining, based on the first network information, a first accessibility index of the server operating system, and the determining, based on the second network information, a second accessibility index of the server management system, comprises: Based on the disconnection status between each of the server operating systems, counting the proportion of the server operating systems in the connected state; Determine a first accessibility index of the server operating system based on a preset operating system response time threshold, a proportion of server operating systems in a connected state, and a first response time of the server operating system in a connected state; Based on the disconnection status between each of the server management systems, counting the proportion of server management systems in a connected state; Based on a preset management system response time threshold, a proportion of server management systems in a connected state, and a second response time of the server management system in a connected state, a second accessibility index of the server management system is determined.

4. The method according to claim 1, characterized in that: The repairing of the network failure of the target server includes: According to the specified repair operation steps, control the intelligent device in the area where the target server is located to repair the network failure of the target server; In the case where the network failure of the target server cannot be repaired by the smart device, if there is a system in a connected state between the server management system and the server operating system, the network failure of the target server is repaired based on the system in a connected state; In the case that the network failure of the target server cannot be repaired by the system in the connected state, if there is a spare server identical to the target server, the target server is replaced by the spare server.

5. The method according to claim 4, characterized in that According to the specified repair operation steps, controlling the intelligent device in the area where the target server is located to repair the network failure of the target server includes: When the target server is in a shutdown state, controlling the smart device to power on the target server; When the target server is in the power-on state, the smart device is controlled to connect with the hardware interface of the target server, and the software configuration of the target server is updated through the hardware interface to repair the network failure of the target server.

6. The method according to claim 4, characterized in that After replacing the target server with the standby server, the method further includes: Setting the media access control address of the standby server to the media access control address of the target server; Setting the Internet Protocol address of the server operating system of the standby server to the Internet Protocol address of the server operating system of the target server; The Internet Protocol address of the server management system of the standby server is set to the Internet Protocol address of the server management system of the target server.

7. The method according to claim 4, characterized in that The repairing of the network failure of the target server based on the system in the connected state includes: When the server operating system is in a connected state and a network failure occurs in the server management system, repairing the network failure of the server management system through the server operating system; When the server management system is in a connected state and a network failure occurs in the server operating system, the network failure of the server operating system is repaired by the server management system.

8. A network fault repair device, characterized in that: Applied to a test system, the test system is used to test at least one server; the device comprises: A network information acquisition module, used to acquire first network information between each server operating system and second network information between each server management system; an accessibility index determination module, configured to determine an overall accessibility index of one or more servers currently being tested based on the first network information and the second network information; The fault repair module is used to determine the target server with network failure and repair the network failure of the target server according to the test tasks performed on each of the servers when the overall accessibility index meets the preset conditions.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the network fault repair method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the network fault repair method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and apparatus for providing mobile and other intermittent connectivity in a computing environment

    CA2570093A1

  • Server capable of achieving network abnormity repair and network abnormity repair method thereof

    CN103490946A

  • Artificial intelligence early warning system

    CN109447048A