Server diagnosis method, device, system, computer device and storage medium

CN116436822BActive Publication Date: 2026-09-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310473646.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2026-09-11
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

[0005]有鉴于此,本发明提供了一种服务器诊断方法、装置、系统、计算机设备及存储介质,以解决增大服务器诊断区域的网络负担,无法保证服务器诊断系统的稳定性的问题

Benefits of technology

[0006] Firstly, this invention provides a server diagnostic method applied to a server diagnostic system, which includes a diagnostic server and a tool server. The method includes: acquiring attribute information of a target diagnostic item; determining a target configuration file and a target diagnostic tool based on the attribute information of the target diagnostic item; downloading the target configuration file from the diagnostic server and configuring the target runtime environment of the target diagnostic tool based on the target configuration file; downloading the target diagnostic tool from the tool server and calling the target diagnostic tool in the target runtime environment to perform diagnostics on the target diagnostic item based on the target diagnostic tool, thereby obtaining the diagnostic result of the server under test. The method provided above, by downloading the target configuration file from the diagnostic server and the target diagnostic tool from the tool server, effectively distributes the download task between the two servers. The download of the target diagnostic tool does not consume the transmission bandwidth of the diagnostic server, thus reducing the network burden on the server diagnostic area, avoiding network congestion, and ensuring the stability of the server diagnostic system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116436822B_ABST
    Figure CN116436822B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of servers, and discloses a server diagnosis method, device and system, computer equipment and a storage medium, attribute information of a target diagnosis item is acquired; according to the attribute information of the target diagnosis item, a target configuration file and a target diagnosis tool are determined; the target configuration file is downloaded from a diagnosis server, a target running environment of the target diagnosis tool is configured based on the target configuration file; the target diagnosis tool is downloaded from a tool server, the target diagnosis tool is called under the target running environment, diagnosis of the target diagnosis item is carried out based on the target diagnosis tool, and a diagnosis result of a server to be tested is obtained. Through sharing the downloading task based on the double servers, the downloading of the target diagnosis tool does not occupy the transmission bandwidth of the diagnosis server, the network burden of the server diagnosis area is reduced, network congestion is avoided, and the stability of the server diagnosis system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of servers, and more specifically to a server diagnostic method, apparatus, computer equipment, and storage medium. Background Technology

[0002] Currently, to ensure server performance, servers are typically subjected to various types of performance diagnostics before leaving the factory. Therefore, how to diagnose servers has become a key research topic.

[0003] In related technologies, the server under test typically downloads diagnostic tools from a pre-set diagnostic server and performs performance diagnostics by running the diagnostic tools.

[0004] However, since some diagnostic tools are large, if multiple servers simultaneously request to download such diagnostic tools from the diagnostic server, it will increase the network load on the server's diagnostic area and may even cause network congestion, thus compromising the stability of the server diagnostic system. Summary of the Invention

[0005] In view of this, the present invention provides a server diagnostic method, apparatus, system, computer equipment and storage medium to solve the problem of increasing the network burden on the server diagnostic area and failing to guarantee the stability of the server diagnostic system.

[0006] Firstly, this invention provides a server diagnostic method applied to a server diagnostic system, which includes a diagnostic server and a tool server. The method includes: acquiring attribute information of a target diagnostic item; determining a target configuration file and a target diagnostic tool based on the attribute information of the target diagnostic item; downloading the target configuration file from the diagnostic server and configuring the target runtime environment of the target diagnostic tool based on the target configuration file; downloading the target diagnostic tool from the tool server and calling the target diagnostic tool in the target runtime environment to perform diagnostics on the target diagnostic item based on the target diagnostic tool, thereby obtaining the diagnostic result of the server under test. The method provided above, by downloading the target configuration file from the diagnostic server and the target diagnostic tool from the tool server, effectively distributes the download task between the two servers. The download of the target diagnostic tool does not consume the transmission bandwidth of the diagnostic server, thus reducing the network burden on the server diagnostic area, avoiding network congestion, and ensuring the stability of the server diagnostic system.

[0007] In one optional implementation, the target configuration file includes at least target diagnostic system files and runtime components of the target diagnostic tool. After downloading the target configuration file from the diagnostic server, the method further includes:

[0008] Perform configuration checks on the target diagnostic system files and the runtime components of the target diagnostic tools to verify the target runtime environment;

[0009] If the target operating environment passes verification, proceed with the step of downloading the target diagnostic tool from the tool server.

[0010] In an alternative implementation, after downloading the target configuration file from the diagnostic server, the method further includes:

[0011] Obtain the configuration information of the server under test;

[0012] Based on the configuration information, determine whether the server under test meets the configuration requirements of the target diagnostic tool;

[0013] If the server under test meets the configuration requirements of the target diagnostic tool, proceed with the step of downloading the target diagnostic tool from the tool server.

[0014] In one alternative implementation, the target diagnostic tool is downloaded from the tool server, including:

[0015] Obtain communication restriction information between the server under test and the tool server;

[0016] Based on communication restriction information, determine the target download strategy for the target diagnostic tool;

[0017] Download the target diagnostic tool from the tool server according to the target download strategy.

[0018] In an alternative implementation, after downloading the target diagnostic tool from the tool server, the method further includes:

[0019] Obtain the verification code of the currently downloaded target diagnostic tool;

[0020] Based on the difference between the target checksum of the target diagnostic tool and the checksum of the currently downloaded target diagnostic tool, determine whether the currently downloaded target diagnostic tool is normal;

[0021] If the downloaded target diagnostic tool is confirmed to be working properly, proceed with the steps to invoke the target diagnostic tool in the target runtime environment.

[0022] In one alternative implementation, the method further includes:

[0023] The diagnostic results of the server under test are uploaded to the diagnostic server.

[0024] In a second aspect, the present invention provides a server diagnostic apparatus for use in a server diagnostic system, the server diagnostic system comprising a diagnostic server and a tool server, the apparatus comprising:

[0025] The acquisition module is used to acquire attribute information of the target diagnostic items;

[0026] The determination module is used to determine the target configuration file and target diagnostic tools based on the attribute information of the target diagnostic items;

[0027] The configuration module is used to download the target configuration file from the diagnostic server and configure the target runtime environment of the target diagnostic tool based on the target configuration file.

[0028] The diagnostic module is used to download the target diagnostic tool from the tool server, call the target diagnostic tool in the target runtime environment, and perform diagnostics on the target diagnostic items based on the target diagnostic tool to obtain the diagnostic results of the server under test.

[0029] In one optional implementation, the target configuration file includes at least the target diagnostic system file and the runtime components of the target diagnostic tool. The configuration module is further used for:

[0030] After downloading the target configuration file from the diagnostic server, the target diagnostic system files and the runtime components of the target diagnostic tools are configured to verify the target runtime environment.

[0031] If the target operating environment passes verification, proceed with the step of downloading the target diagnostic tool from the tool server.

[0032] In one alternative implementation, the configuration module is further configured to:

[0033] After downloading the target configuration file from the diagnostic server, obtain the configuration information of the server under test;

[0034] Based on the configuration information, determine whether the server under test meets the configuration requirements of the target diagnostic tool;

[0035] If the server under test meets the configuration requirements of the target diagnostic tool, proceed with the step of downloading the target diagnostic tool from the tool server.

[0036] In one alternative implementation, the diagnostic module is specifically used for:

[0037] Obtain communication restriction information between the server under test and the tool server;

[0038] Based on communication restriction information, determine the target download strategy for the target diagnostic tool;

[0039] Download the target diagnostic tool from the tool server according to the target download strategy.

[0040] In one alternative implementation, the diagnostic module is further configured to:

[0041] After downloading the target diagnostic tool from the tool server, obtain the verification code of the currently downloaded target diagnostic tool;

[0042] Based on the difference between the target checksum of the target diagnostic tool and the checksum of the currently downloaded target diagnostic tool, determine whether the currently downloaded target diagnostic tool is normal;

[0043] If the downloaded target diagnostic tool is confirmed to be working properly, proceed with the steps to invoke the target diagnostic tool in the target runtime environment.

[0044] In one alternative implementation, the diagnostic module is further configured to:

[0045] The diagnostic results of the server under test are uploaded to the diagnostic server.

[0046] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method described in the first aspect or any corresponding embodiment thereof.

[0047] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of the present invention, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0049] Figure 1 This is a schematic diagram of the structure of a traditional server diagnostic system;

[0050] Figure 2 This is a diagram of a traditional server diagnostic scenario;

[0051] Figure 3 This is a flowchart of a server diagnostic method according to an embodiment of the present invention;

[0052] Figure 4 This is a flowchart of an exemplary server diagnostic method according to an embodiment of the present invention;

[0053] Figure 5 This is a flowchart of another exemplary server diagnostic method according to an embodiment of the present invention;

[0054] Figure 6 This is a structural diagram of a server diagnostic device according to an embodiment of the present invention;

[0055] Figure 7 This is a structural diagram of a server diagnostic system according to an embodiment of the present invention;

[0056] Figure 8 This is a structural diagram of a computer device according to an embodiment of the present invention. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0058] like Figure 1 The diagram shows the structure of a traditional server diagnostic system. Traditional server system diagnostics uses a single-server model, where a single diagnostic server provides all necessary components and tools, including diagnostic program components and stress testing tools. The network layout of the diagnostic area is a tree structure, with multiple levels of network connected by switches from the diagnostic server to the entire server. During the diagnostic process, the entire server obtains the necessary diagnostic components and tools from the diagnostic server. Especially when performing stress tests on CPUs and memory, large tools in the gigabyte range are frequently used, some exceeding 30GB in size. Using large tools in server system diagnostics not only increases the network load in the diagnostic area but can also cause network congestion, affecting the entire system diagnostic process. Upgrading the network to solve these problems is not only expensive but also inevitably results in transmission bottlenecks and bandwidth limitations.

[0059] Among them, such as Figure 2 The diagram illustrates a traditional server diagnostic scenario. Servers assembled on the production line are transported to the diagnostic area, powered on, and connected to the diagnostic network via network cables. They then connect to the diagnostic server to begin the diagnostic process. During diagnostics, the necessary component programs and tools are retrieved from the diagnostic server; large tools are retrieved in the same way. Upon completion of the diagnostic process, diagnostic logs are transmitted to the diagnostic server. It's important to note that the number of servers involved in the diagnostic process varies depending on production capacity and order volume, ranging from a few hundred to over a thousand units. Due to factors such as varying server deployment times and the discovery of anomalies during server diagnostics, the number of servers simultaneously entering the diagnostic section for large tools may not be that high. However, there are scenarios where at least a hundred servers are simultaneously transmitting large tools, inevitably causing congestion on the diagnostic network.

[0060] According to an embodiment of the present invention, a server diagnostic method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0061] This embodiment provides a server diagnostic method applied to a server diagnostic system, which includes a diagnostic server and a tool server. This method is used to perform performance diagnostics on servers awaiting shipment. The executing entity in this embodiment is an electronic device, such as the server under test or other computer devices that can be used to diagnose the server under test. Figure 3 This is a flowchart of a server diagnostic method according to an embodiment of the present invention, such as... Figure 3 The process includes the following steps:

[0062] Step S301: Obtain the attribute information of the target diagnostic item.

[0063] Among them, the target diagnostic items are diagnostic items that require downloading large tools, and large tools specifically refer to diagnostic tools whose data volume reaches a preset threshold.

[0064] Specifically, during the diagnostic process on the server under test, the diagnostic progress information of the server under test can be monitored. When the diagnostic progress information indicates that the server under test has entered the target diagnostic item, the attribute information of the target diagnostic item can be obtained. The attribute information includes at least the configuration criteria of the target diagnostic item, such as the system configuration information required by the target diagnostic tool and the target diagnostic tool selection information.

[0065] Step S302: Determine the target configuration file and target diagnostic tool based on the attribute information of the target diagnostic items.

[0066] Specifically, the target configuration file can be determined based on the system configuration information required by the target diagnostic tool as represented by the attribute information of the target diagnostic item, and the target diagnostic tool can be determined based on the target diagnostic tool selection information represented by the attribute information.

[0067] Step S303: Download the target configuration file from the diagnostic server and configure the target runtime environment of the target diagnostic tool based on the target configuration file.

[0068] Specifically, a target configuration file download request can be sent to the diagnostic server to download the target configuration file. Based on the downloaded target configuration file, the server under test can be configured to configure the target runtime environment of the target diagnostic tool, ensuring that the target diagnostic tool can run normally on the server under test.

[0069] Step S304: Download the target diagnostic tool from the tool server, call the target diagnostic tool in the target runtime environment, and perform target diagnostic items based on the target diagnostic tool to obtain the diagnostic results of the server under test.

[0070] Specifically, a target diagnostic tool download request can be sent to the tool server to download the target diagnostic tool from the tool server and install the downloaded target diagnostic tool on the server under test. This allows the server under test to call the target diagnostic tool in the target runtime environment configured in step S303 above, so as to perform target diagnostic items based on the target diagnostic tool and obtain the diagnostic results of the server under test.

[0071] In some optional implementations, after obtaining the diagnostic results of the server under test, the diagnostic results of the server under test can be uploaded to the diagnostic server.

[0072] The diagnostic results include the runtime logs of the target diagnostic tool.

[0073] Specifically, the diagnostic results of the server under test can be uploaded to a specified path on the diagnostic server.

[0074] Based on the above embodiments, the target configuration file includes at least target diagnostic system files and runtime components of the target diagnostic tool. To ensure that the downloaded target diagnostic tool can run normally on the server under test, as an implementable approach, in one embodiment, after downloading the target configuration file from the diagnostic server, the method further includes:

[0075] Step S401: Perform a configuration check on the target diagnostic system files and the runtime components of the target diagnostic tools to verify the target runtime environment;

[0076] Step S402: If the target operating environment passes verification, perform the step of downloading the target diagnostic tool from the tool server.

[0077] The target diagnostic system file includes at least the system kernel and OS required by the target diagnostic tool. The runtime component integrates functions such as configuration checking, tool verification, automatic execution, and log collection for the target diagnostic tool to automate the diagnosis of target diagnostic items.

[0078] Conversely, if the target runtime environment fails verification, the process returns to the steps of downloading the target configuration file from the diagnostic server, configuring the target runtime environment of the target diagnostic tool based on the target configuration file, and verifying the target runtime environment again until the configured target runtime environment passes verification.

[0079] Specifically, configuration checks can be performed on the target diagnostic system files and the target diagnostic tool's runtime components based on the operating system information represented by the target diagnostic system files and the configuration information of the target diagnostic tool's runtime components, such as checking whether the kernel version is correct, to verify whether the configured target runtime environment meets the runtime requirements of the target diagnostic tool.

[0080] In some optional implementations, the target diagnostic system file includes order information and model information of the server under test. After downloading the target configuration file from the diagnostic server, it can be determined whether the server under test needs to run the target diagnostic tool, i.e., whether the target diagnostic item can be skipped, based on the order information and model information of the server under test. If it is determined that the server under test needs to run the target diagnostic tool, i.e., the target diagnostic item cannot be skipped, the step of downloading the target configuration file from the diagnostic server is executed; otherwise, the current diagnostic process is exited.

[0081] In some optional implementations, after downloading the target configuration file from the diagnostic server, the configuration information of the server under test can also be obtained; based on the configuration information, it can be determined whether the server under test meets the configuration requirements of the target diagnostic tool; if the server under test meets the configuration requirements of the target diagnostic tool, the step of downloading the target diagnostic tool from the tool server is executed.

[0082] The configuration information of the server under test includes at least the CPU model and memory capacity. Specifically, the configuration information of the server under test can be obtained through the lscpu and free -g commands. Then, based on the degree of matching between the configuration requirements of the target diagnostic tool and the configuration information of the server under test, it is determined whether the server under test meets the configuration requirements of the target diagnostic tool. If the server under test meets the configuration requirements of the target diagnostic tool, the step of downloading the target diagnostic tool from the tool server is executed.

[0083] Based on the above embodiments, to further avoid network congestion in the diagnostic area due to multiple servers under test simultaneously downloading the target diagnostic tool, as an implementable method, in one embodiment, downloading the target diagnostic tool from the tool server includes:

[0084] Step S3041: Obtain communication restriction information between the server under test and the tool server;

[0085] Step S3042: Determine the target download strategy for the target diagnostic tool based on the communication restriction information;

[0086] Step S3043: Download the target diagnostic tool from the tool server according to the target download strategy.

[0087] Specifically, the scp command can be used to obtain communication restriction information between the server under test and the tool server. The communication restriction information includes at least the network speed limit value. The network speed limit value can be determined based on the network bandwidth limit value of the production line between the server under test and the tool server, as well as the assembly efficiency of the production line.

[0088] Specifically, the target network speed for the target diagnostic tool can be determined based on the network speed limit value represented by the communication restriction information between the server under test and the tool server. The target download strategy includes the target network speed, and finally, the server under test downloads the target diagnostic tool from the tool server according to the target network speed.

[0089] In some optional implementations, to ensure the validity of the finally downloaded target diagnostic tool, after downloading the target diagnostic tool from the tool server, the verification code of the currently downloaded target diagnostic tool can be obtained; based on the difference between the target verification code of the target diagnostic tool and the verification code of the currently downloaded target diagnostic tool, it can be determined whether the currently downloaded target diagnostic tool is normal; if it is determined that the currently downloaded target diagnostic tool is normal, the step of calling the target diagnostic tool in the target runtime environment is executed.

[0090] Specifically, the checksum of the target diagnostic tool can be an MD5 value.

[0091] Specifically, the target checksum of the target diagnostic tool can be obtained in advance. Then, based on the degree of difference between the checksum of the target diagnostic tool currently downloaded to the server under test and the target checksum, it can be determined whether the currently downloaded target diagnostic tool is complete. If it is complete, it indicates that the currently downloaded target diagnostic tool is normal. If the currently downloaded target diagnostic tool is abnormal, the process returns to the tool server to download the target diagnostic tool again.

[0092] For example, Figure 4 This is a flowchart of an exemplary server diagnostic method according to an embodiment of the present invention. Figure 4 The entire server is the server under test; downloaded component programs and files are the target configuration files; the overall configuration check and OS kernel check verify the target's operating environment; the large tools are the target diagnostic tools; and the large tool verification determines whether the currently downloaded target diagnostic tools are functioning correctly. For example, Figure 4 The method shown is as follows Figure 3 The method shown is an exemplary implementation, and the two implementations are based on the same principle, so they will not be described again.

[0093] To enable those skilled in the art to more clearly understand the server diagnostic method provided in this embodiment, this embodiment uses the import of the Intel CPU diagnostic tool SHC as an example to introduce this server diagnostic method. Figure 5This is a flowchart of another exemplary server diagnostic method according to an embodiment of the present invention. The SHC tool is approximately 31GB in size. First, the system files required by SHC and diagnostic runtime components are transferred to the diagnostic server, and then the SHC tool is transferred to the tool server.

[0094] Select a server using a fourth-generation CPU SPR for SHC diagnostic import. Run the server on the rack and enter the SHC diagnostics section. The system will automatically boot and install, downloading components and related files from the diagnostic server.

[0095] (1) First, the system configuration will be checked. Information such as CPU MODEL will be captured by the lscpu command to determine whether it is a fourth-generation CPU SPR platform. If yes, continue; otherwise, skip.

[0096] (2) Use the free-g command to capture the memory capacity. If the capacity is less than 80G, the SHC tool will not run properly. If it is less than 80G, skip it. If it is greater than 80G, continue.

[0097] (3) Obtain the system kernel version using uname -a. Only kernel versions greater than 5.10 can run the SHC tool completely. If the requirement is met, continue; otherwise, switch the system and modify the boot file.

[0098] (4) Once the above conditions are met, the SHC tool will be downloaded from the tool server. Considering the production line's network bottleneck of approximately 1GB / s and the assembly line efficiency of approximately 40 units / hour, and taking into account the total SHC running time, a speed limit of 50MB / s and a limit value of 409600 bytes are selected. The command is `scp -o 'StrictHostKeyChecking no' -l409600 / filename / filepath`. After downloading, the `md5sum` command obtains the MD5 value of the downloaded SHC tool and compares it with the target MD5 value given by the standard SHC tool. If they match, the download continues; otherwise, it exits, checks the network, and restarts the download.

[0099] (5) If the SHC verification is successful, the component is called to execute the SHC tool. After the operation is completed, the log is packaged and transmitted to the diagnostic server. If the SHC is successful, the diagnostic process continues. Otherwise, the CPU is replaced and the SHC diagnosis is performed again. The steps are the same as above.

[0100] It should be noted that the server diagnostic method provided in this embodiment can be applied not only to server machines, but also to the diagnostic import of other machine products, such as storage products and computer products; at the same time, the automated process of configuration environment check and tool verification during large tool diagnosis can also be applied to the usage scenarios of other large diagnostic tools.

[0101] The server diagnostic method provided in this embodiment obtains the attribute information of the target diagnostic items; determines the target configuration file and target diagnostic tool based on the attribute information of the target diagnostic items; downloads the target configuration file from the diagnostic server; configures the target runtime environment of the target diagnostic tool based on the target configuration file; downloads the target diagnostic tool from the tool server; and calls the target diagnostic tool in the target runtime environment to perform diagnostics on the target diagnostic items based on the target diagnostic tool, thereby obtaining the diagnostic results of the server under test. The method provided above, by downloading the target configuration file from the diagnostic server and the target diagnostic tool from the tool server, effectively distributes the download task between two servers. The download of the target diagnostic tool does not consume the transmission bandwidth of the diagnostic server, thereby reducing the network burden on the server diagnostic area, avoiding network congestion, and ensuring the stability of the server diagnostic system. Furthermore, by automating the server-wide configuration environment check, large tool verification, and operation during large tool diagnostics, the efficiency and automation level of server-wide large tool diagnostics are improved, saving manpower and time costs.

[0102] This embodiment also provides a server diagnostic device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0103] This embodiment provides a server diagnostic device applied to a server diagnostic system, which includes a diagnostic server and a tool server. Figure 6 This is a structural diagram of a server diagnostic device according to an embodiment of the present invention, such as... Figure 6 As shown, the device includes:

[0104] The acquisition module 601 is used to acquire the attribute information of the target diagnostic item;

[0105] The determination module 602 is used to determine the target configuration file and target diagnostic tool based on the attribute information of the target diagnostic items;

[0106] Configuration module 603 is used to download the target configuration file from the diagnostic server and configure the target runtime environment of the target diagnostic tool based on the target configuration file.

[0107] The diagnostic module 604 is used to download the target diagnostic tool from the tool server, call the target diagnostic tool in the target runtime environment, perform the target diagnostic items based on the target diagnostic tool, and obtain the diagnostic results of the server under test.

[0108] In some optional implementations, the target configuration file includes at least the target diagnostic system file and the runtime components of the target diagnostic tool. The configuration module is also used for:

[0109] After downloading the target configuration file from the diagnostic server, the target diagnostic system files and the runtime components of the target diagnostic tools are configured to verify the target runtime environment.

[0110] If the target operating environment passes verification, proceed with the step of downloading the target diagnostic tool from the tool server.

[0111] In some alternative implementations, the configuration module is also used for:

[0112] After downloading the target configuration file from the diagnostic server, obtain the configuration information of the server under test;

[0113] Based on the configuration information, determine whether the server under test meets the configuration requirements of the target diagnostic tool;

[0114] If the server under test meets the configuration requirements of the target diagnostic tool, proceed with the step of downloading the target diagnostic tool from the tool server.

[0115] In some alternative implementations, the diagnostic module is specifically used for:

[0116] Obtain communication restriction information between the server under test and the tool server;

[0117] Based on communication restriction information, determine the target download strategy for the target diagnostic tool;

[0118] Download the target diagnostic tool from the tool server according to the target download strategy.

[0119] In some alternative implementations, the diagnostic module is also used for:

[0120] After downloading the target diagnostic tool from the tool server, obtain the verification code of the currently downloaded target diagnostic tool;

[0121] Based on the difference between the target checksum of the target diagnostic tool and the checksum of the currently downloaded target diagnostic tool, determine whether the currently downloaded target diagnostic tool is normal;

[0122] If the downloaded target diagnostic tool is confirmed to be working properly, proceed with the steps to invoke the target diagnostic tool in the target runtime environment.

[0123] In some alternative implementations, the diagnostic module is also used for:

[0124] The diagnostic results of the server under test are uploaded to the diagnostic server.

[0125] In this embodiment, the server diagnostic device is presented in the form of a functional unit. Here, a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0126] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0127] This invention also provides a server diagnostic system. Figure 7 This is a structural diagram of a server diagnostic system according to an embodiment of the present invention, such as... Figure 7 As shown, the system includes: at least one server under test 701, a diagnostic server 702, and a tool server 703.

[0128] The diagnostic server is used to manage the target configuration file tool server, which is used to manage the target diagnostic tools; the server under test is used to execute the method shown in the above embodiments.

[0129] The server diagnostic system provided in this embodiment is used to execute the server diagnostic method provided in the above embodiment. By enabling the server under test to download the target configuration file from the diagnostic server and the target diagnostic tool from the tool server, that is, based on the dual-server sharing of download tasks, the download of the target diagnostic tool does not occupy the transmission bandwidth of the diagnostic server, thereby reducing the network burden in the server diagnostic area, avoiding network congestion, and ensuring the stability of the server diagnostic system.

[0130] This invention also provides a computer device having the above-described features. Figure 6 The server diagnostic device shown.

[0131] Please see Figure 8 , Figure 8 This is a structural diagram of a computer device according to an embodiment of the present invention, such as... Figure 8 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 8Take a processor 10 as an example.

[0132] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0133] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.

[0134] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

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

[0136] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.

[0137] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

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

Claims

1. A server diagnostic method, applied to a server diagnostic system, characterized in that, The server diagnostic system includes a diagnostic server and a tool server, and the method includes: Obtain the attribute information of the target diagnostic item; Based on the attribute information of the target diagnostic items, determine the target configuration file and target diagnostic tools; Download the target configuration file from the diagnostic server, and configure the target runtime environment of the target diagnostic tool based on the target configuration file; Download the target diagnostic tool from the tool server, invoke the target diagnostic tool in the target runtime environment, perform target diagnostic item diagnosis based on the target diagnostic tool, and obtain the diagnostic results of the server under test; The step of downloading the target diagnostic tool from the tool server includes: Obtain communication restriction information between the server under test and the tool server; Based on the communication restriction information, determine the target download strategy for the target diagnostic tool; According to the target download strategy, the target diagnostic tool is downloaded from the tool server; The communication restriction information includes at least a network speed limit value, which is determined based on the network bandwidth limit value between the server under test and the tool server and the assembly efficiency of the production line.

2. The method according to claim 1, characterized in that, The target configuration file includes at least target diagnostic system files and runtime components of the target diagnostic tool. After downloading the target configuration file from the diagnostic server, the method further includes: The configuration of the target diagnostic system files and the runtime components of the target diagnostic tools is checked to verify the target runtime environment; If the target operating environment passes verification, the step of downloading the target diagnostic tool from the tool server is performed.

3. The method according to claim 1, characterized in that, After downloading the target configuration file from the diagnostic server, the method further includes: Obtain the configuration information of the server under test; Based on the configuration information, determine whether the server under test meets the configuration requirements of the target diagnostic tool; If the server under test meets the configuration requirements of the target diagnostic tool, the step of downloading the target diagnostic tool from the tool server is performed.

4. The method according to claim 1, characterized in that, After downloading the target diagnostic tool from the tool server, the method further includes: Obtain the verification code of the currently downloaded target diagnostic tool; Based on the difference between the target checksum of the target diagnostic tool and the checksum of the currently downloaded target diagnostic tool, determine whether the currently downloaded target diagnostic tool is normal; If it is determined that the currently downloaded target diagnostic tool is normal, then perform the step of calling the target diagnostic tool in the target operating environment.

5. The method according to claim 1, characterized in that, The method further includes: The diagnostic results of the server under test are uploaded to the diagnostic server.

6. A server diagnostic device, applied to a server diagnostic system, characterized in that, The server diagnostic system includes a diagnostic server and a tool server, and the device includes: The acquisition module is used to acquire attribute information of the target diagnostic items; The determination module is used to determine the target configuration file and the target diagnostic tool based on the attribute information of the target diagnostic item; The configuration module is used to download the target configuration file from the diagnostic server and configure the target runtime environment of the target diagnostic tool based on the target configuration file. The diagnostic module is used to download the target diagnostic tool from the tool server, call the target diagnostic tool in the target runtime environment, and perform diagnostics on the target diagnostic items based on the target diagnostic tool to obtain the diagnostic results of the server under test. The diagnostic module is specifically used for: Obtain communication restriction information between the server under test and the tool server; Based on the communication restriction information, determine the target download strategy for the target diagnostic tool; According to the target download strategy, the target diagnostic tool is downloaded from the tool server; The communication restriction information includes at least a network speed limit value, which is determined based on the network bandwidth limit value between the server under test and the tool server and the assembly efficiency of the production line.

7. A server diagnostic system, characterized in that, include: At least one server under test, a diagnostic server, and a tool server; The diagnostic server is used to manage target configuration files; The tool server is used to manage the target diagnostic tools; The server under test is used to execute the method according to any one of claims 1 to 5.

8. A computer device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Virtual system mirror image installation test system and method

    CN106776347A

  • Server diagnosis method and device, electronic equipment and storage medium

    CN115525491A