Server power information checking method and system, terminal and storage medium

By performing multi-level comparisons of server power information, the problem of missed or incorrect detections in the verification of servers with various power supplies has been solved, ensuring the consistency of power information and improving production quality and efficiency.

CN116719676BActive Publication Date: 2026-06-26INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-05-19
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing technologies are prone to missing or incorrect detections when verifying power information of servers equipped with multiple power supplies, which can affect production line operations.

Method used

Collect the actual power information of the target server, break it down into multiple levels of comparison items, compare the actual data with the standard data through multi-threading to ensure the consistency of data at each level, output the comparison results and terminate the verification if an anomaly is found.

Benefits of technology

It enables multi-faceted verification of server power information, ensuring no discrepancies before shipment, avoiding missed or incorrect inspections, improving product quality, and reducing losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116719676B_ABST
    Figure CN116719676B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of server, and specifically provides a kind of server power information verification method, system, terminal and storage medium, comprising: the actual power information of target server is collected;Decompose the parameter item of power information to generate multiple levels of comparison items;From the actual power information, sample data belonging to comparison item is collected, and the consistency comparison of the sample data and the pre-stored standard data is carried out;The data consistency comparison result of all comparison items is summarized and output.The present application can realize the multi-aspect verification of the power information of server, ensure that there is no difference between the actual power information of shipment server and the database maintenance power information, avoid the situation of missing detection and error detection, find and solve problems before shipment, improve product quality and avoid loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of server technology, specifically relating to a server power information verification method, system, terminal, and storage medium. Background Technology

[0002] During server diagnostics, a consistency check of power information is performed to ensure that the actual power supply information matches the maintenance information. Any discrepancies must be identified and addressed before shipment. Therefore, a method for server diagnostics involving multiple power supply types is proposed. This method performs consistency checks on servers equipped with different types of power supplies and feeds the results back to production line managers for timely intervention.

[0003] Currently, the power information consistency check performed during server diagnostics mainly targets single-type power modules. During production line testing, the relevant information of a single type of power module is compared with the database maintenance information to see if they match.

[0004] For servers that are equipped with multiple PN power supplies (N+N) instead of just one type, using the previous diagnostic methods may result in missed or incorrect detections, which could cause unnecessary disruptions to production. Summary of the Invention

[0005] To address the problem of missed or incorrect detections when verifying information for servers with various power supplies in existing technologies, this invention provides a server power information verification method, system, terminal, and storage medium to solve the aforementioned technical problems.

[0006] In a first aspect, the present invention provides a method for verifying server power information, comprising:

[0007] Collect the actual power information of the target server;

[0008] The parameters of the power information are decomposed to generate multiple levels of comparison items;

[0009] Collect sample data belonging to the comparison item from the actual power information, and compare the sample data with the pre-stored standard data for consistency.

[0010] Summarize and output the data consistency comparison results for all comparison items.

[0011] In one optional implementation, the actual power information of the target server is collected, including:

[0012] Log in to the target server's BMC;

[0013] The actual power information of the target server can be remotely obtained using the IPMI tool. The actual power information includes the name, model, power type, and attribute data of all power supplies installed on the target server.

[0014] In one optional implementation, the parameter items of the decomposed power information generate multiple levels of comparison items, including:

[0015] Set the total number of power supplies verification as the first-level item;

[0016] Set up the second-level items based on the model and power type of the target server's power information;

[0017] The third-level items are set according to the number of power supplies corresponding to different models and types, and the number of power supplies corresponding to different power types.

[0018] Set up fourth-level items based on the key attributes involved in the power information;

[0019] The comparison order priority is set from high to low as first-level items, second-level items, third-level items, and fourth-level items.

[0020] In an optional implementation, the method for obtaining the standard data includes:

[0021] Read the model information of the target server, and retrieve the matching standard power supply information from the production line database based on the model information;

[0022] The number of standard power supplies, the number of standard model types, and the number of standard power type types are extracted from the standard power supply information.

[0023] The quantity of power supplies belonging to various models and types is extracted from the standard power supply information and used as the first standard parameter;

[0024] The number of power supplies belonging to various power types is extracted from the standard power information and used as the second standard parameter;

[0025] The number of power supplies with key attributes is extracted from the standard power supply information and used as a third standard parameter.

[0026] In an optional implementation, sample data belonging to the comparison item is collected from the actual power information, and the sample data is compared with pre-stored standard data for consistency, including:

[0027] Create the first process, the second process, the third process, and the fourth process;

[0028] The first process parses the actual power supply quantity from the actual power supply information, compares the actual power supply quantity with the standard power supply quantity for consistency comparison, and outputs the comparison result.

[0029] After confirming that the consistency comparison of the first process is successful, a first-type parsing thread and a second-type parsing thread are created under the second process. The first-type parsing thread parses the number of model types in the actual power supply information and performs a consistency comparison with the standard number of types. The second-type parsing thread parses the number of power type types from the actual power supply information and performs a consistency comparison with the standard number of power type types. The comparison results are then output.

[0030] After confirming that the consistency comparison of the second process has passed, multiple threads corresponding to multiple model types are created under the third process. The multiple threads count the number of power supplies belonging to multiple model types and perform consistency comparison with the corresponding data in the first standard parameter, and output the comparison results.

[0031] In the third process, multiple threads are created that correspond one-to-one with multiple power types. Each thread counts the number of power supplies belonging to multiple power types and performs a consistency comparison with the corresponding data in the second standard parameters, and outputs the comparison results.

[0032] Once the consistency comparison of the third process is confirmed to be successful, multiple threads corresponding to multiple key parameters are created under the fourth process. Each thread counts the number of power supplies corresponding to the multiple key parameters and performs a consistency comparison with the corresponding data in the third standard parameters, and outputs the comparison results.

[0033] In an optional implementation, the data consistency comparison results of all comparison items are summarized and output, including:

[0034] Monitor the comparison results of each process to determine if there is any abnormal data with inconsistent comparison results:

[0035] If so, terminate the verification and output the abnormal data.

[0036] In an optional implementation, after summarizing and outputting the data consistency comparison results of all comparison items, the method further includes:

[0037] Obtain the model information of the target server, and filter out the matching maintenance terminal address from the production line management database based on the model information;

[0038] Based on the maintenance terminal address, abnormal data with inconsistent comparison results are sent to the maintenance terminal.

[0039] In a second aspect, the present invention provides a server power information verification system, comprising:

[0040] The information acquisition module is used to collect the actual power information of the target server;

[0041] The project generation module is used to decompose the parameter items of power information to generate comparison items at multiple levels;

[0042] The information comparison module is used to collect sample data belonging to the comparison item from the actual power information and compare the sample data with the pre-stored standard data for consistency.

[0043] The results summary module is used to summarize and output the data consistency comparison results of all comparison items.

[0044] In one optional implementation, the information acquisition module includes:

[0045] The target login unit is used to log in to the target server's BMC;

[0046] The remote acquisition unit is used to remotely acquire the actual power information of the target server using the IPMI tool. The actual power information includes the name, model, power type, and attribute data of all power supplies installed on the target server.

[0047] In one optional implementation, the project generation module includes:

[0048] The first item generation unit is used to set the verification of the total number of power supplies as the first-level item;

[0049] The second project generation unit is used to set up second-level projects based on the model and power type of the target server's power information.

[0050] The third project generation unit is used to set the third-level project according to the number of power supplies corresponding to different models and types and the number of power supplies corresponding to different power types.

[0051] The fourth project generation unit is used to set up fourth-level projects based on the key attributes involved in the power information;

[0052] The execution order setting unit is used to set the comparison order priority from high to low as first-level items, second-level items, third-level items, and fourth-level items.

[0053] In an optional implementation, the method for obtaining the standard data includes:

[0054] Read the model information of the target server, and retrieve the matching standard power supply information from the production line database based on the model information;

[0055] The number of standard power supplies, the number of standard model types, and the number of standard power type types are extracted from the standard power supply information.

[0056] The quantity of power supplies belonging to various models and types is extracted from the standard power supply information and used as the first standard parameter;

[0057] The number of power supplies belonging to various power types is extracted from the standard power information and used as the second standard parameter;

[0058] The number of power supplies with key attributes is extracted from the standard power supply information and used as a third standard parameter.

[0059] In one optional implementation, the information comparison module includes:

[0060] The process creation unit is used to create the first process, the second process, the third process, and the fourth process;

[0061] The total number comparison unit is used by the first process to parse the actual number of power supplies from the actual power supply information, compare the actual number of power supplies with the standard number of power supplies for consistency comparison, and output the comparison result.

[0062] The category comparison unit is used to confirm that the consistency comparison of the first process has passed. Under the second process, a first category parsing thread and a second category parsing thread are created. The first category parsing thread parses the number of model categories in the actual power supply information and performs a consistency comparison with the standard number of categories. The second category parsing thread parses the number of power type categories from the actual power supply information and performs a consistency comparison with the standard number of power type categories. The comparison result is then output.

[0063] The model comparison unit is used to confirm that the consistency comparison of the second process has passed. Under the third process, multiple threads are created that correspond one-to-one with multiple model types. The multiple threads count the number of power supplies belonging to multiple model types and perform consistency comparison with the corresponding data in the first standard parameters, and output the comparison results.

[0064] The power comparison unit is used to create multiple threads in the third process that correspond one-to-one with multiple power types. The multiple threads count the number of power supplies belonging to multiple power types and compare them with the corresponding data in the second standard parameters to output the comparison results.

[0065] The parameter comparison unit is used to confirm that the consistency comparison of the third process has passed. Under the fourth process, multiple threads are created that correspond one-to-one with multiple key parameters. The multiple threads count the number of power supplies corresponding to the multiple key parameters and perform consistency comparison with the corresponding data in the third standard parameters, and output the comparison results.

[0066] In an optional implementation, the results aggregation module includes:

[0067] The results monitoring unit is used to monitor the comparison results of each process and determine whether there is any abnormal data with inconsistent comparison results.

[0068] The program termination unit is used to terminate the verification and output the abnormal data if there is any abnormal data with inconsistent comparison results.

[0069] In an optional implementation, the system further includes:

[0070] The address filtering module is used to obtain the model information of the target server and filter out the matching maintenance terminal address from the production line management database based on the model information.

[0071] The data sending module is used to send abnormal data with inconsistent comparison results to the maintenance terminal based on the maintenance terminal address.

[0072] Thirdly, a terminal is provided, including:

[0073] Processor, memory, among which,

[0074] This memory is used to store computer programs.

[0075] The processor is used to retrieve and run the computer program from memory, causing the terminal to perform the terminal method described above.

[0076] Fourthly, a computer storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

[0077] The beneficial effects of this invention are that the server power information verification method, system, terminal and storage medium provided by this invention generate multiple levels of comparison items for the parameter items of the power information that need to be verified, and perform consistency comparison on the relevant data involved in each level of comparison items in turn, thereby realizing multi-faceted verification of the server's power information, ensuring that the actual power information of the shipped server is no different from the power information maintained in the database, avoiding missed detections and errors, discovering and solving problems before shipment, improving product quality and avoiding losses.

[0078] Furthermore, the design principle of this invention is reliable, the structure is simple, and it has a very wide range of application prospects. Attached Figure Description

[0079] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0080] Figure 1 This is a schematic flowchart of a method according to an embodiment of the present invention.

[0081] Figure 2 This is a schematic flowchart illustrating the consistency comparison of a method according to an embodiment of the present invention.

[0082] Figure 3 This is a schematic flowchart illustrating the error reporting function of a method according to an embodiment of the present invention.

[0083] Figure 4 This is a schematic block diagram of a system according to an embodiment of the present invention.

[0084] Figure 5 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation

[0085] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.

[0086] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0087] The key terms used in this invention will be explained below.

[0088] BMC, short for Baseboard Management Controller, is a remote server management controller. It allows for operations such as firmware upgrades and device monitoring even when the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller, RAM for data storage, flash memory for non-volatile data storage, and firmware. It provides basic remote manageability for secure remote reboots, secure power-on, LAN alerts, and system health monitoring. In addition to basic IPMI and system monitoring functions, the mBMC can also enable fast BIOS component selection and protection by utilizing one of the two flash memories to store the previous BIOS. For example, if the system fails to boot after a remote BIOS upgrade, remote administrators can switch back to the previous BIOS image to boot the system. Once the BIOS is upgraded, the BIOS image can also be locked to effectively prevent virus attacks.

[0089] The server power information verification method provided in this embodiment of the invention is executed by a computer device, and correspondingly, the server power information verification system runs in the computer device.

[0090] Figure 1 This is a schematic flowchart illustrating a method according to an embodiment of the present invention. Wherein, Figure 1 The executing entity can be a server power information verification system. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0091] like Figure 1 As shown, the method includes:

[0092] Step 110: Collect the actual power information of the target server;

[0093] Step 120: Decompose the parameter items of the power information to generate multiple levels of comparison items;

[0094] Step 130: Collect sample data belonging to the comparison item from the actual power information, and perform a consistency comparison between the sample data and the pre-stored standard data;

[0095] Step 140: Summarize and output the data consistency comparison results for all comparison items.

[0096] To facilitate understanding of the present invention, the following description further illustrates the server power information verification method provided by the present invention, based on the principle of the server power information verification method and the process of verifying server power information in the embodiments.

[0097] Specifically, the server power information verification method includes the following steps:

[0098] S1. Collect the actual power information of the target server.

[0099] Log in to the target server's BMC using the pre-stored target server login password; use the IPMI tool to remotely obtain the target server's actual power information, which includes the name, model, power type, and attribute data of all power supplies installed on the target server.

[0100] S2. Obtain standard power information.

[0101] S201. Read the model information of the target server and retrieve the matching standard power supply information from the production line database based on the model information.

[0102] S202, Perform data parsing on standard power information.

[0103] (1) Extract the number of standard power supplies, the number of standard model types, and the number of standard power type types from the standard power supply information. For example, if the standard power supply information contains power supplies belonging to model A and power supplies belonging to model B, then the number of standard model types is 2. Similarly, if the standard power supply information contains power supplies belonging to PN type 1 and power supplies belonging to PN type 2, then the number of standard power type types is 2.

[0104] (2) Extract the number of power supplies of various models and types from the standard power supply information and use it as the first standard parameter.

[0105] For example, if the standard power supply information shows that there are 5 power supplies belonging to model A and 10 power supplies belonging to model B, then the first standard parameters are saved as: model A--5, model B--10.

[0106] (3) Extract the number of power supplies belonging to various power types from the standard power information and use it as the second standard parameter.

[0107] For example, if the standard power supply information shows that there are 6 power supplies belonging to PN type 1 and 9 power supplies belonging to PN type 2, then the second standard parameters are saved as: PN type 1--6, PN type 2--9.

[0108] (4) Extract the number of power supplies with key attributes from the standard power supply information as the third standard parameter.

[0109] For example, if the key parameters set are parameter 1, parameter 2, and parameter 3, and the attribute data includes 3 power supplies containing parameter 1, 6 power supplies containing parameter 2, and 6 power supplies containing parameter 3, then the third standard parameters are saved as follows: parameter 1--3, parameter 2--6, and parameter 3--6.

[0110] S3. Decompose the power information parameter items to generate multiple levels of comparison items.

[0111] Set the total number of power supplies as the first-level item; set the second-level item according to the model and power type of the target server's power supply information; set the third-level item according to the number of power supplies corresponding to different model types and the number of power supplies corresponding to different power types; set the fourth-level item according to the key attributes of the power supply information; set the comparison order priority from high to low as the first-level item, the second-level item, the third-level item, and the fourth-level item.

[0112] By setting up four levels of items, the power information can be verified from four angles: first, the total number of power supplies is verified; then, the model and power type are verified; next, the number of power supplies under each category is verified; and finally, the number of power supplies corresponding to the key parameters is verified.

[0113] S4. Collect sample data belonging to the comparison item from the actual power information, and perform a consistency comparison between the sample data and the pre-stored standard data.

[0114] S401 creates the first process, the second process, the third process, and the fourth process.

[0115] The S402 first process parses the actual power supply quantity from the actual power supply information, compares the actual power supply quantity with the standard power supply quantity for consistency comparison, and outputs the comparison result.

[0116] S403 confirms that the consistency comparison of the first process is successful. Under the second process, a first type parsing thread and a second type parsing thread are created. The first type parsing thread parses the number of model types in the actual power supply information and performs a consistency comparison with the standard number of types. The second type parsing thread parses the number of power type types from the actual power supply information and performs a consistency comparison with the standard number of power type types. The comparison result is then output.

[0117] S404 confirms that the consistency comparison of the second process has passed. Under the third process, multiple threads are created that correspond one-to-one with multiple model types. The multiple threads count the number of power supplies belonging to multiple model types and perform consistency comparison with the corresponding data in the first standard parameter, and output the comparison results.

[0118] In the third process, multiple threads are created that correspond one-to-one with multiple power types. Each thread counts the number of power supplies belonging to each of the multiple power types and performs a consistency comparison with the corresponding data in the second standard parameters, outputting the comparison results.

[0119] S405 confirms that the consistency comparison of the third process has passed. Under the fourth process, multiple threads are created that correspond one-to-one with multiple key parameters. The multiple threads count the number of power supplies corresponding to the multiple key parameters and perform consistency comparison with the corresponding data in the third standard parameters, and output the comparison results.

[0120] Each step, S402-S405, requires confirmation that no inconsistent data was found in the previous step. For example, if step S402 finds a discrepancy between the actual number of power supplies and the standard number, step S403 will not be executed, and the abnormal data will be output directly. Other steps follow the same principle. Each level of the project is executed synchronously using multi-threading. This significantly improves data verification efficiency when there are many target servers and a large amount of data to be compared.

[0121] In actual consistency comparison, such as Figure 2 As shown, the comparison principle is as follows: First, compare the actual total number of server power supplies with the total number maintained in the database. If the totals match, then obtain the actual power supply type (model) and PN type number. Perform a loop comparison based on the actual power supply model and PN, first comparing whether the actual power supply model matches the model maintained in the database. If the models match, then compare whether the number of power supplies of different types matches; otherwise, report an error. Simultaneously, perform a consistency comparison on all other relevant power supply information. If all n actual power supply models are inconsistent with the corresponding models in the database, an error is reported. Finally, write the error information to the database table.

[0122] S5. Summarize and output the data consistency comparison results of all comparison items.

[0123] Monitor the comparison results of each process and determine if there is any abnormal data with inconsistent comparison results. If so, terminate the verification and output the abnormal data.

[0124] Upon detecting abnormal data, an error notification is issued, including: obtaining the model information of the target server and filtering out a matching maintenance terminal address from the production line management database based on the model information; and sending the abnormal data with inconsistent comparison results to the maintenance terminal based on the maintenance terminal address.

[0125] Specifically, such as Figure 3 As shown, after filtering the database tables, the error information is read and fed back to the corresponding production line management personnel, who then investigate the specific cause of the power consistency check and resolve the issue before shipment.

[0126] In some embodiments, the server power information verification system 400 may include multiple functional modules composed of computer program segments. The computer programs for each program segment in the server power information verification system 400 may be stored in the memory of a computer device and executed by at least one processor to perform (see details). Figure 1 (Description) Function for verifying server power information.

[0127] In this embodiment, the server power information verification system 400 can be divided into multiple functional modules according to its functions, such as... Figure 4As shown. The functional modules may include: an information acquisition module 410, a project generation module 420, an information comparison module 430, and a result summarization module 440. The module referred to in this invention is a series of computer program segments that can be executed by at least one processor and perform a fixed function, and are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0128] Information acquisition module 410 is used to collect the actual power information of the target server;

[0129] The project generation module 420 is used to decompose the parameter items of the power information to generate comparison items at multiple levels.

[0130] The information comparison module 430 is used to collect sample data belonging to the comparison item from the actual power information and compare the sample data with the pre-stored standard data for consistency.

[0131] The results summary module 440 is used to summarize and output the data consistency comparison results of all comparison items.

[0132] Optionally, as an embodiment of the present invention, the information collection module includes:

[0133] The target login unit is used to log in to the target server's BMC;

[0134] The remote acquisition unit is used to remotely acquire the actual power information of the target server using the IPMI tool. The actual power information includes the name, model, power type, and attribute data of all power supplies installed on the target server.

[0135] Optionally, as an embodiment of the present invention, the project generation module includes:

[0136] The first item generation unit is used to set the verification of the total number of power supplies as the first-level item;

[0137] The second project generation unit is used to set up second-level projects based on the model and power type of the target server's power information.

[0138] The third project generation unit is used to set the third-level project according to the number of power supplies corresponding to different models and types and the number of power supplies corresponding to different power types.

[0139] The fourth project generation unit is used to set up fourth-level projects based on the key attributes involved in the power information;

[0140] The execution order setting unit is used to set the comparison order priority from high to low as first-level items, second-level items, third-level items, and fourth-level items.

[0141] Optionally, as an embodiment of the present invention, the method for obtaining standard data includes:

[0142] Read the model information of the target server, and retrieve the matching standard power supply information from the production line database based on the model information;

[0143] The number of standard power supplies, the number of standard model types, and the number of standard power type types are extracted from the standard power supply information.

[0144] The quantity of power supplies belonging to various models and types is extracted from the standard power supply information and used as the first standard parameter;

[0145] The number of power supplies belonging to various power types is extracted from the standard power information and used as the second standard parameter;

[0146] The number of power supplies with key attributes is extracted from the standard power supply information and used as a third standard parameter.

[0147] Optionally, as an embodiment of the present invention, the information comparison module includes:

[0148] The process creation unit is used to create the first process, the second process, the third process, and the fourth process;

[0149] The total number comparison unit is used by the first process to parse the actual number of power supplies from the actual power supply information, compare the actual number of power supplies with the standard number of power supplies for consistency comparison, and output the comparison result.

[0150] The category comparison unit is used to confirm that the consistency comparison of the first process has passed. Under the second process, a first category parsing thread and a second category parsing thread are created. The first category parsing thread parses the number of model categories in the actual power supply information and performs a consistency comparison with the standard number of categories. The second category parsing thread parses the number of power type categories from the actual power supply information and performs a consistency comparison with the standard number of power type categories. The comparison result is then output.

[0151] The model comparison unit is used to confirm that the consistency comparison of the second process has passed. Under the third process, multiple threads are created that correspond one-to-one with multiple model types. The multiple threads count the number of power supplies belonging to multiple model types and perform consistency comparison with the corresponding data in the first standard parameters, and output the comparison results.

[0152] The power comparison unit is used to create multiple threads in the third process that correspond one-to-one with multiple power types. The multiple threads count the number of power supplies belonging to multiple power types and compare them with the corresponding data in the second standard parameters to output the comparison results.

[0153] The parameter comparison unit is used to confirm that the consistency comparison of the third process has passed. Under the fourth process, multiple threads are created that correspond one-to-one with multiple key parameters. The multiple threads count the number of power supplies corresponding to the multiple key parameters and perform consistency comparison with the corresponding data in the third standard parameters, and output the comparison results.

[0154] Optionally, as an embodiment of the present invention, the result summarization module includes:

[0155] The results monitoring unit is used to monitor the comparison results of each process and determine whether there is any abnormal data with inconsistent comparison results.

[0156] The program termination unit is used to terminate the verification and output the abnormal data if there is any abnormal data with inconsistent comparison results.

[0157] Optionally, as an embodiment of the present invention, the system further includes:

[0158] The address filtering module is used to obtain the model information of the target server and filter out the matching maintenance terminal address from the production line management database based on the model information.

[0159] The data sending module is used to send abnormal data with inconsistent comparison results to the maintenance terminal based on the maintenance terminal address.

[0160] Figure 5 This is a schematic diagram of the structure of a terminal 500 provided in an embodiment of the present invention. The terminal 500 can be used to execute the server power information verification method provided in the embodiment of the present invention.

[0161] The terminal 500 may include a processor 510, a memory 520, and a communication module 530. These components communicate via one or more buses. Those skilled in the art will understand that the server structure shown in the figure does not constitute a limitation of the present invention. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0162] The memory 520 can be used to store the execution instructions of the processor 510. The memory 520 can be implemented using any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. When the execution instructions in the memory 520 are executed by the processor 510, the terminal 500 is able to perform some or all of the steps in the above method embodiments.

[0163] The processor 510 serves as the control center of the storage terminal, connecting various parts of the electronic terminal via various interfaces and lines. It executes software programs and / or modules stored in the memory 520, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 510 may consist only of a central processing unit (CPU). In this embodiment of the invention, the CPU may have a single processing core or include multiple processing cores.

[0164] The communication module 530 is used to establish a communication channel, enabling the storage terminal to communicate with other terminals. It receives user data sent by other terminals or sends user data to other terminals.

[0165] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps provided in the embodiments of the present invention. The storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0166] Therefore, this invention generates multiple levels of comparison items for the power information parameters that need to be verified, and sequentially performs consistency comparison on the relevant data involved in each level of comparison items, thereby realizing multi-faceted verification of the server's power information, ensuring that the actual power information of the shipped server is consistent with the power information maintained in the database, avoiding missed detections and errors, discovering and solving problems before shipment, improving product quality and avoiding losses. The technical effects achieved by this embodiment can be seen in the description above, and will not be repeated here.

[0167] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other medium capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0168] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0169] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or modules may be electrical, mechanical, or other forms.

[0170] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0171] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0172] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the invention should also be covered within the protection scope of the invention. Therefore, the protection scope of the invention should be determined by the scope of the claims.

Claims

1. A method for verifying server power information, characterized in that, include: Collect the actual power information of the target server; The parameters of the power information are decomposed to generate multiple levels of comparison items; Collect sample data belonging to the comparison item from the actual power information, and compare the sample data with the pre-stored standard data for consistency. Summarize and output the data consistency comparison results for all comparison items; The method for obtaining the standard data includes: Read the model information of the target server, and retrieve the matching standard power supply information from the production line database based on the model information; The number of standard power supplies, the number of standard model types, and the number of standard power type types are extracted from the standard power supply information. The quantity of power supplies belonging to various models and types is extracted from the standard power supply information and used as the first standard parameter; The number of power supplies belonging to various power types is extracted from the standard power information and used as the second standard parameter; The number of power supplies with key attributes is extracted from the standard power supply information and used as the third standard parameter; Collect sample data belonging to the comparison item from the actual power information, and perform a consistency comparison between the sample data and the pre-stored standard data, including: Create the first process, the second process, the third process, and the fourth process; The first process parses the actual power supply quantity from the actual power supply information, compares the actual power supply quantity with the standard power supply quantity for consistency comparison, and outputs the comparison result. After confirming that the consistency comparison of the first process is successful, a first-type parsing thread and a second-type parsing thread are created under the second process. The first-type parsing thread parses the number of model types in the actual power supply information and performs a consistency comparison with the standard number of types. The second-type parsing thread parses the number of power type types from the actual power supply information and performs a consistency comparison with the standard number of power type types. The comparison results are then output. After confirming that the consistency comparison of the second process has passed, multiple threads corresponding to multiple model types are created under the third process. The multiple threads count the number of power supplies belonging to multiple model types and perform consistency comparison with the corresponding data in the first standard parameter, and output the comparison results. In the third process, multiple threads are created that correspond one-to-one with multiple power types. Each thread counts the number of power supplies belonging to multiple power types and performs a consistency comparison with the corresponding data in the second standard parameters, and outputs the comparison results. Once the consistency comparison of the third process is confirmed to be successful, multiple threads corresponding to multiple key parameters are created under the fourth process. Each thread counts the number of power supplies corresponding to the multiple key parameters and performs a consistency comparison with the corresponding data in the third standard parameters, and outputs the comparison results.

2. The method according to claim 1, characterized in that, Collect the actual power information of the target server, including: Log in to the target server's BMC; The actual power information of the target server can be remotely obtained using the IPMI tool. The actual power information includes the name, model, power type, and attribute data of all power supplies installed on the target server.

3. The method according to claim 1, characterized in that, The parameters of the decomposed power information are used to generate multiple levels of comparison items, including: Set the total number of power supplies verification as the first-level item; Set up the second-level items based on the model and power type of the target server's power information; The third-level items are set according to the number of power supplies corresponding to different models and types, and the number of power supplies corresponding to different power types. Set up fourth-level items based on the key attributes involved in the power information; The comparison order priority is set from high to low as first-level items, second-level items, third-level items, and fourth-level items.

4. The method according to claim 1, characterized in that, Summarize and output the data consistency comparison results for all comparison items, including: Monitor the comparison results of each process to determine if there is any abnormal data with inconsistent comparison results: If so, terminate the verification and output the abnormal data.

5. The method according to claim 1, characterized in that, After summarizing and outputting the data consistency comparison results of all comparison items, the method further includes: Obtain the model information of the target server, and filter out the matching maintenance terminal address from the production line management database based on the model information; Based on the maintenance terminal address, abnormal data with inconsistent comparison results are sent to the maintenance terminal.

6. A server power information verification system, characterized in that, include: The information acquisition module is used to collect the actual power information of the target server; The project generation module is used to decompose the parameter items of power information to generate comparison items at multiple levels; The information comparison module is used to collect sample data belonging to the comparison item from the actual power information and compare the sample data with the pre-stored standard data for consistency. The results summary module is used to summarize and output the data consistency comparison results of all comparison items; The method for obtaining the standard data includes: Read the model information of the target server, and retrieve the matching standard power supply information from the production line database based on the model information; The number of standard power supplies, the number of standard model types, and the number of standard power type types are extracted from the standard power supply information. The quantity of power supplies belonging to various models and types is extracted from the standard power supply information and used as the first standard parameter; The number of power supplies belonging to various power types is extracted from the standard power information and used as the second standard parameter; The number of power supplies with key attributes is extracted from the standard power supply information and used as the third standard parameter; Collect sample data belonging to the comparison item from the actual power information, and perform a consistency comparison between the sample data and the pre-stored standard data, including: Create the first process, the second process, the third process, and the fourth process; The first process parses the actual power supply quantity from the actual power supply information, compares the actual power supply quantity with the standard power supply quantity for consistency comparison, and outputs the comparison result. After confirming that the consistency comparison of the first process is successful, a first-type parsing thread and a second-type parsing thread are created under the second process. The first-type parsing thread parses the number of model types in the actual power supply information and performs a consistency comparison with the standard number of types. The second-type parsing thread parses the number of power type types from the actual power supply information and performs a consistency comparison with the standard number of power type types. The comparison results are then output. After confirming that the consistency comparison of the second process has passed, multiple threads corresponding to multiple model types are created under the third process. The multiple threads count the number of power supplies belonging to multiple model types and perform consistency comparison with the corresponding data in the first standard parameter, and output the comparison results. In the third process, multiple threads are created that correspond one-to-one with multiple power types. Each thread counts the number of power supplies belonging to multiple power types and performs a consistency comparison with the corresponding data in the second standard parameters, and outputs the comparison results. Once the consistency comparison of the third process is confirmed to be successful, multiple threads corresponding to multiple key parameters are created under the fourth process. Each thread counts the number of power supplies corresponding to the multiple key parameters and performs a consistency comparison with the corresponding data in the third standard parameters, and outputs the comparison results.

7. A terminal, characterized in that, include: Memory, used to store server power information verification programs; A processor is configured to implement the steps of the server power information verification method as described in any one of claims 1-5 when executing the server power information verification program.

8. A computer-readable storage medium storing a computer program, characterized in that, The readable storage medium stores a server power information verification program, which, when executed by a processor, implements the steps of the server power information verification method as described in any one of claims 1-5.