Verification method, device and equipment of server

Through the automated server verification method, the first electronic device acquires and batch sends hard disk parameters to the second electronic device for verification, solving the problem of low manual operation efficiency in the prior art, and achieving efficient and accurate hard disk data processing .

CN119226060APending Publication Date: 2024-12-31SUGON INFORMATION IND +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411266852.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, the collection and verification of server hard disk data mainly relies on manual operations, resulting in inefficiency and inability to efficiently process a large amount of hard disk parameter data.

Method used

By designing an automated server verification method, the first electronic device obtains hard disk parameters and sends them in batches to the second electronic device for verification, and comprehensive verification is carried out using parameters such as hard disk serial number and material number to ensure the accuracy of the verification Sex and efficiency.

Benefits of technology

It realizes hard disk parameter upload and verification without manual intervention, significantly improves server verification efficiency, saves time and manpower, and ensures the accuracy and completeness of hard disk data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226060A_ABST
    Figure CN119226060A_ABST
Patent Text Reader

Abstract

The invention relates to a verification method, device and equipment for a server. The verification method, device and equipment are used for automatically uploading hard disk parameters in the server and automatically collecting and verifying the hard disk parameters in the server. And manual processing is not needed, so that the verification efficiency of the server is improved. The method comprises the steps that for any to-be-detected server, hard disk parameters of all hard disks in the to-be-detected server are obtained, the hard disk parameters comprise hard disk serial numbers and hard disk material numbers corresponding to the hard disk serial numbers, the hard disk material numbers are used for representing the types of the hard disks, and the hard disk serial numbers are unique identification codes of the hard disks; the hard disk parameters of all the hard disks are sent to the second electronic equipment, so that the second electronic equipment verifies the to-be-detected server based on the hard disk parameters of all the hard disks; and if it is determined that the verification is passed, correspondingly storing the identifier of the to-be-detected server and the hard disk parameters of the hard disks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a verification method, device and equipment for a server. Background Art

[0002] In the server industry, a large amount of server data needs to be collected and processed, including but not limited to hard disk serial number, hard disk status, and server performance data. In the server manufacturing industry, a server usually has a large number of hard disks installed, and a large amount of hard disk parameter data is collected. Then the collected hard disk parameter data needs to be verified. Only after verification can the hard disk data corresponding to the server be uploaded to the corresponding system for storage, so that the performance of the server can be processed and analyzed based on the saved data.

[0003] At present, the collection and uploading of hard disk data in the server and the verification of hard disk data are all done manually, which takes a lot of time and results in low verification efficiency of the server. Summary of the invention

[0004] The present invention provides a server verification method for automatically uploading hard disk parameters in the server and automatically verifying the hard disk parameters in the server, which does not require manual processing and improves the verification efficiency of the server.

[0005] In a first aspect, the present application provides a verification method of a server, which is applied to a first electronic device, and the method includes:

[0006] For any server to be detected, obtain the hard disk parameters of each hard disk in the server to be detected, wherein the hard disk parameters include the hard disk serial number and the hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0007] The hard disk parameters of each hard disk are sent to a second electronic device so that the second electronic device can verify the server to be detected based on the hard disk parameters of each hard disk; if it is determined that the verification passes, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

[0008] In the above method, after the first electronic device automatically obtains the hard disk parameters in the server to be detected, the hard disk parameters of each hard disk are automatically sent to the second electronic device, so that the second electronic device verifies the hard disk parameters of each hard disk. The uploading of the hard disk parameters and the verification of the hard disk parameters in the embodiment of the present application do not need to be processed manually. Therefore, a lot of time and manpower are saved, and the verification efficiency of the server is improved.

[0009] In a possible implementation manner, sending the hard disk parameters of each hard disk to the second electronic device includes:

[0010] The hard disk parameters of the hard disks are sent in batches to the second electronic device.

[0011] In the above method, the hard disk parameters of each hard disk are sent to the second electronic device in batches, and do not need to be sent one by one, so the efficiency of verification is improved.

[0012] In a second aspect, the present application provides a verification method of a server, which is applied to a second electronic device, and the method includes:

[0013] Receiving hard disk parameters of each hard disk sent by the server to be detected and sent by the first electronic device, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0014] Based on the hard disk parameters of each hard disk, the server to be detected is verified to obtain a verification result;

[0015] If the verification result is that the verification is passed, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

[0016] In the above method, the first electronic device automatically sends the hard disk parameters of each hard disk in the server to be detected to the second electronic device, and the second electronic device automatically verifies the hard disk parameters after receiving the hard disk parameters of each hard disk. The uploading of the hard disk parameters and the verification of the hard disk parameters in the embodiment of the present application do not need to be processed manually. Therefore, a lot of time and manpower are saved, and the verification efficiency of the server is improved.

[0017] In a possible implementation manner, the verifying the server to be detected based on the hard disk parameters of each hard disk to obtain a verification result includes:

[0018] Obtaining a first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device;

[0019] Obtaining a second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected, wherein the production order of the server to be detected is used to represent the configuration of the server to be detected;

[0020] Classify the hard disk serial numbers in the server to be tested according to the material numbers of the hard disks in the server to be tested, and obtain the actual hard disk serial numbers corresponding to the hard disk material numbers; obtain a third test result based on the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested;

[0021] The verification result of the server to be detected is obtained by using the first detection result, the second detection result and the third detection result.

[0022] The above method verifies the server to be tested through three aspects: hard disk serial number repeatability detection, hard disk quantity compliance detection and hard disk material number compliance detection, so as to ensure that the verification of the server to be tested is more comprehensive and improve the accuracy of the verification of the server to be tested.

[0023] In a possible implementation, obtaining the first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device includes:

[0024] For the hard disk serial number of any hard disk in the server to be detected, the hard disk serial number is compared with the hard disk serial numbers stored in the second electronic device to determine whether there is a hard disk serial number identical to the hard disk serial number among the hard disk serial numbers stored in the second electronic device;

[0025] If yes, determining that the first test result is a test failure;

[0026] If not, it is determined that the first detection result is a passed detection.

[0027] The above method compares any hard disk serial number with each hard disk serial number stored in the second electronic device, and determines whether there is a hard disk serial number identical to any hard disk serial number among the hard disk serial numbers stored in the second electronic device, so as to determine the first detection result, thereby ensuring that the hard disk serial number in the server to be detected is unique and avoiding duplicate hard disk serial numbers. The accuracy of the produced server to be detected is guaranteed.

[0028] In a possible implementation manner, the production order of the server to be tested includes the target hard disk material number corresponding to each hard disk serial number in the server to be tested and the total quantity of the target hard disk serial numbers corresponding to each hard disk material number;

[0029] The obtaining of the second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected includes:

[0030] For any hard disk serial number among the hard disk serial numbers in the server to be detected, if the hard disk material number corresponding to the any hard disk serial number is the same as the target hard disk material number corresponding to the any hard disk serial number in the production order, it is determined that the any hard disk serial number meets the first specified condition; otherwise, it is determined that the any hard disk serial number does not meet the first specified condition;

[0031] If all the hard disk serial numbers satisfy the first specified condition, the second test result is determined to be a pass; or, if there is a hard disk serial number that does not satisfy the first specified condition among the hard disk serial numbers, the second test result is determined to be a fail;

[0032] The obtaining of a third test result according to the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested comprises:

[0033] For any hard disk material number in the server to be detected, if the total number of actual hard disk serial numbers corresponding to the any hard disk material number is the same as the total number of target hard disk serial numbers corresponding to the any hard disk material number, it is determined that the any hard disk material number meets the second specified condition; otherwise, it is determined that the any hard disk material number does not meet the second specified condition;

[0034] If all the hard disk material numbers satisfy the second specified condition, the third test result is determined to be a passed test; or, if there is a hard disk material number among the hard disk material numbers that does not satisfy the second specified condition, the third test result is determined to be a failed test.

[0035] The above method checks the hard disk material number and hard disk serial number of the server to be tested through the production order of the server to be tested to check whether it meets the requirements in the production order to ensure the accuracy of the produced server to be tested.

[0036] In a possible implementation, obtaining the verification result of the server to be detected by using at least one of the first detection result, the second detection result, and the third detection result includes:

[0037] If all the detection results of the server to be detected are detected as passed, then the verification result of the server to be detected is determined to be verified passed; wherein the detection results include the first detection result, the second detection result and the third detection result; or,

[0038] If there is a test result that fails the test among the test results of the server to be tested, it is determined that the verification result of the server to be tested is that the verification fails.

[0039] In the above method, the first test result is determined as passed only when all the test results of the server to be tested are passed, otherwise, the test is failed, thereby ensuring the quality of the produced server to be tested.

[0040] In a third aspect, the present application provides a verification device for a server, the device comprising:

[0041] An acquisition module, used for acquiring hard disk parameters of each hard disk in any server to be detected, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0042] A sending module is used to send the hard disk parameters of each hard disk to a second electronic device, so that the second electronic device can verify the server to be detected based on the hard disk parameters of each hard disk; if it is determined that the verification is passed, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

[0043] In a possible implementation manner, the sending module is specifically configured to:

[0044] The hard disk parameters of the hard disks are sent in batches to the second electronic device.

[0045] In a fourth aspect, the present application provides a verification device for a server, the device comprising:

[0046] A receiving module, used to receive hard disk parameters of each hard disk in the server to be detected sent by the first electronic device, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0047] A verification module, used for verifying the server to be detected based on the hard disk parameters of each hard disk to obtain a verification result;

[0048] The storage module is used for storing the identifier of the server to be detected and the hard disk parameters of each hard disk in correspondence if the verification result is that the verification is passed.

[0049] In a possible implementation manner, the verification module is specifically used to:

[0050] Obtaining a first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device;

[0051] Obtaining a second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected, wherein the production order of the server to be detected is used to represent the configuration of the server to be detected;

[0052] Classify the hard disk serial numbers in the server to be tested according to the material numbers of the hard disks in the server to be tested, and obtain the actual hard disk serial numbers corresponding to the hard disk material numbers; obtain a third test result based on the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested;

[0053] The verification result of the server to be detected is obtained by using the first detection result, the second detection result and the third detection result.

[0054] In a possible implementation manner, the verification module is further used to:

[0055] For the hard disk serial number of any hard disk in the server to be detected, the hard disk serial number is compared with the hard disk serial numbers stored in the second electronic device to determine whether there is a hard disk serial number identical to the hard disk serial number among the hard disk serial numbers stored in the second electronic device;

[0056] If yes, determining that the first test result is a test failure;

[0057] If not, it is determined that the first detection result is a passed detection.

[0058] In a possible implementation manner, the production order of the server to be tested includes the target hard disk material number corresponding to each hard disk serial number in the server to be tested and the total quantity of the target hard disk serial numbers corresponding to each hard disk material number;

[0059] The verification module is further used for:

[0060] For any hard disk serial number among the hard disk serial numbers in the server to be detected, if the hard disk material number corresponding to the any hard disk serial number is the same as the target hard disk material number corresponding to the any hard disk serial number in the production order, it is determined that the any hard disk serial number meets the first specified condition; otherwise, it is determined that the any hard disk serial number does not meet the first specified condition;

[0061] If all the hard disk serial numbers satisfy the first specified condition, the second test result is determined to be a pass; or, if there is a hard disk serial number that does not satisfy the first specified condition among the hard disk serial numbers, the second test result is determined to be a fail;

[0062] The verification module is further used for:

[0063] For any hard disk material number in the server to be detected, if the total number of actual hard disk serial numbers corresponding to the any hard disk material number is the same as the total number of target hard disk serial numbers corresponding to the any hard disk material number, it is determined that the any hard disk material number meets the second specified condition; otherwise, it is determined that the any hard disk material number does not meet the second specified condition;

[0064] If all the hard disk material numbers satisfy the second specified condition, the third test result is determined to be a passed test; or, if there is a hard disk material number among the hard disk material numbers that does not satisfy the second specified condition, the third test result is determined to be a failed test.

[0065] In a possible implementation manner, the verification module is further used to:

[0066] If all the detection results of the server to be detected are detected as passed, then the verification result of the server to be detected is determined to be verified passed; wherein the detection results include the first detection result, the second detection result and the third detection result; or,

[0067] If there is a test result that fails the test among the test results of the server to be tested, it is determined that the verification result of the server to be tested is that the verification fails.

[0068] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the verification method of the server when executing the computer program.

[0069] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps in the server verification method described above in the present application are implemented.

[0070] In the seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which is stored in a computer-readable storage medium; when the processor of the memory access device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the memory access device executes the steps in the verification method of the above-mentioned server of the present application.

[0071] For each aspect from the third to seventh aspects and the technical effects that may be achieved by each aspect, please refer to the technical effects that can be achieved by various possible solutions in the first aspect or the second aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0073] Figure 1 One of the flow diagrams of a server verification method provided in an embodiment of the present application;

[0074] Figure 2 A schematic diagram of a flow chart of a second electronic device verifying a server to be detected provided in an embodiment of the present application;

[0075] Figure 3 A schematic diagram of generating an order for a server provided in an embodiment of the present application;

[0076] Figure 4 A second flow chart of a verification method for a server provided in an embodiment of the present application;

[0077] Figure 5 One of the schematic diagrams of a verification device of a server provided in an embodiment of the present application;

[0078] Figure 6 A second schematic diagram of a verification device for a server provided in an embodiment of the present application;

[0079] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solution and advantages of the present application more clear, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment.

[0081] In the description of this application, "multiple" is understood to be "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent two situations: A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0082] In the server industry, a large amount of server data needs to be collected and processed, including but not limited to hard disk serial number, hard disk status, and server performance data. In the server manufacturing industry, a server usually has a large number of hard disks installed, and a large amount of hard disk parameter data is collected. Then the collected hard disk parameter data needs to be verified. Only after verification can the hard disk data corresponding to the server be uploaded to the corresponding system for storage, so that the performance of the server can be processed and analyzed based on the saved data.

[0083] In the related art, the collection and uploading of hard disk data in the server and the verification of the hard disk data are all done manually, but since they are all done manually, it takes a lot of time, resulting in low verification efficiency of the server.

[0084] In this regard, the embodiment of the present application provides a server verification method, which automatically uploads hard disk parameters in the server and automatically verifies the hard disk parameters in the server, and does not require manual processing, thereby improving the verification efficiency of the server.

[0085] The present application is further described in detail below in conjunction with the accompanying drawings. Figure 1 As shown, it is a flow chart of a verification method of a server provided in an embodiment of the present application, and the specific implementation process of the method is as follows:

[0086] Step 101: For any server to be detected, the first electronic device obtains hard disk parameters of each hard disk in the server to be detected;

[0087] The hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk.

[0088] In the embodiment of the present application, a smartctl tool is set in the first electronic device, and the hard disk parameters in the server to be detected are obtained by the smartctl tool. However, in the embodiment of the present application, only an example is given to illustrate the method of obtaining the hard disk parameters, and the method of obtaining the hard disk parameters is not limited. The method of obtaining the hard disk parameters in the embodiment of the present application can be set according to actual conditions.

[0089] Step 102: The first electronic device sends the hard disk parameters of each hard disk to the second electronic device;

[0090] In order to further improve the verification efficiency of the server, in a possible implementation, step 102 may be specifically implemented as follows:

[0091] The hard disk parameters of the hard disks are sent in batches to the second electronic device.

[0092] In another possible implementation, step 102 can also be implemented as follows: based on the total number of the hard disks, creating a target number of upload tasks, wherein the target number is the same as the total number of hard disks, and any one of the upload tasks includes the hard disk parameters of any one of the hard disks; selecting the target number of sub-threads in the thread pool, and assigning the upload tasks to the sub-threads accordingly, so that the sub-threads can send the hard disk parameters in the corresponding upload tasks to the second electronic device in parallel, wherein any one sub-thread corresponds to one upload task.

[0093] For example, if the total number of hard disks in the server to be detected is A, then A upload tasks need to be created, and A subthreads need to be selected from the thread pool. The A upload tasks are assigned to A subthreads, and each subthread corresponds to an upload task. The parameters of each hard disk are sent to the second electronic device in parallel through the A subthreads.

[0094] In another possible implementation, a target number of upload tasks are created based on the total number of the hard disks, and multiple task threads are generated based on the upload tasks, wherein the multiple task threads can be processed in parallel; and the hard disk parameters of each hard disk are sent by respectively assigning the upload tasks to the multiple task threads.

[0095] Step 103: After receiving the hard disk parameters of each hard disk in the server to be detected sent by the first electronic device, the second electronic device verifies the server to be detected based on the hard disk parameters of each hard disk to obtain a verification result;

[0096] Next, the method of verifying the server to be detected in step 103 is described in detail. Figure 2 FIG. 1 is a schematic diagram of a process of the second electronic device verifying the server to be detected, which may specifically include the following steps:

[0097] Step 201: obtaining a first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device;

[0098] In a possible implementation, step 201 may be specifically implemented as follows: for the hard disk serial number of any hard disk in the server to be detected, the any hard disk serial number is compared with the hard disk serial numbers stored in the second electronic device, to determine whether there is a hard disk serial number identical to the any hard disk serial number among the hard disk serial numbers stored in the second electronic device; if so, determining that the first test result is a test failure; if not, determining that the first test result is a test pass.

[0099] For example, the hard disk serial number of hard disk 1 in the server to be tested is aaaa, and the hard disk serial numbers stored in the second electronic device are zbcc, bbba, ddcc, and nnpp. Therefore, it can be determined that there is no hard disk serial number stored in the second electronic device that is the same as the hard disk serial number of the hard disk, and the first test result is determined to be a pass.

[0100] It should be noted that the format of the hard disk serial number described above is only used as an example, but does not limit the format of the hard disk serial number in the embodiments of the present application.

[0101] Step 202: Obtain a second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected, wherein the production order of the server to be detected is used to represent the configuration of the server to be detected;

[0102] The production order in the embodiment of the present application includes the target hard disk material number corresponding to each hard disk serial number in the server to be tested and the total number of target hard disk serial numbers corresponding to each hard disk material number.

[0103] It should be noted that: in the embodiment of the present application, the hard disk material numbers corresponding to different hard disk serial numbers may be the same or different. The hard disk material numbers of target hard disk serial numbers corresponding to the same hard disk material number are the same.

[0104] In one possible implementation, step 202 may be specifically implemented as follows: for any hard disk serial number among the hard disk serial numbers in the server to be tested, if the hard disk material number corresponding to the any hard disk serial number is the same as the target hard disk material number corresponding to the any hard disk serial number in the production order, then it is determined that the any hard disk serial number satisfies the first specified condition; otherwise, it is determined that the any hard disk serial number does not satisfy the first specified condition; if the hard disk serial numbers all satisfy the first specified condition, then it is determined that the second test result is a passed test; or, if there is a hard disk serial number among the hard disk serial numbers that does not satisfy the first specified condition, then it is determined that the second test result is a failed test.

[0105] like Figure 3 As shown in FIG. 1 , it is a schematic diagram of the production order corresponding to server 1. Taking the hard disk serial number aaaa in server 1 as an example, if the hard disk material number corresponding to the hard disk serial number aaaa in server 1 is 123, Figure 3 It can be seen that the hard disk material number corresponding to the hard disk serial number aaaa in the production order of server 1 is 111, so it is determined that the hard disk serial number aaaa does not meet the first specified condition. At the same time, it can also be determined that the second test result of server 1 is that the test fails.

[0106] It should be noted that the format of the hard disk material number described above is only used as an example, and the embodiment of the present application does not limit the format of the hard disk material number.

[0107] Step 203: Classify the hard disk serial numbers in the server to be tested according to the material numbers of the hard disks in the server to be tested, and obtain the actual hard disk serial numbers corresponding to the hard disk material numbers; obtain a third test result according to the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested;

[0108] In the embodiment of the present application, the hard disk serial numbers of the same hard disk material number are determined as the same category. That is, for any hard disk material number, the hard disk serial number of the hard disk material number of each hard disk serial number is determined as the actual hard disk serial number corresponding to the any hard disk material number.

[0109] For example, the servers to be tested include {aaaa, 111}, {abaa, 111}, {tama, 122}, and {cbbd, 112}. The value in front of {} represents the hard disk serial number, and the value in the back represents the hard disk material number. Therefore, it can be seen that the actual hard disk serial numbers corresponding to hard disk material number 111 are aaaa and abaa. The actual hard disk serial number corresponding to hard disk material number 122 is tama. The actual hard disk serial number corresponding to hard disk material number 112 is cbbd.

[0110] In a possible implementation, step 203 may be specifically implemented as follows: for any hard disk material number in the server to be tested, if the total number of actual hard disk serial numbers corresponding to any hard disk material number is the same as the total number of target hard disk serial numbers corresponding to any hard disk material number, then it is determined that any hard disk material number satisfies the second specified condition; otherwise, it is determined that any hard disk material number does not satisfy the second specified condition; if all the hard disk material numbers satisfy the second specified condition, then it is determined that the third test result is a passed test; or, if there is a hard disk material number among the hard disk material numbers that does not satisfy the second specified condition, then it is determined that the third test result is a failed test.

[0111] It should be noted that the execution sequence of step 201, step 202 and step 203 in the embodiment of the present application is not limited in the embodiment of the present application and can be set according to specific actual conditions.

[0112] Step 204: Obtain a verification result of the server to be detected by using the first detection result, the second detection result, and the third detection result.

[0113] In a possible implementation, step 204 may be specifically implemented as follows: if all test results of the server to be tested are passed, then the test result of the server to be tested is determined to be passed; wherein the test results include the first test result, the second test result, and the third test result; or, if there is a test result that fails the test among the test results of the server to be tested, then the verification result of the server to be tested is determined to be failed.

[0114] Step 104: If the second electronic device determines that the verification result is passed, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

[0115] Each server to be detected in the embodiment of the present application has a corresponding identifier, which is a unique identification code of the server to be detected.

[0116] In a possible implementation, if the second electronic device determines that the verification result is a verification failure, it prompts the user that the verification of the server to be detected has failed, so that the staff can reassemble the server to be detected.

[0117] Next, combine Figure 4 The verification method of the server in the embodiment of the present application is described, which may specifically include the following steps:

[0118] Step 401: For any server to be detected, the first electronic device obtains hard disk parameters of each hard disk in the server to be detected, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0119] Step 402: the first electronic device sends the hard disk parameters of the hard disks in batches to the second electronic device.

[0120] Step 403: After receiving the hard disk parameters of each hard disk in the server to be detected sent by the first electronic device, the second electronic device obtains a first detection result according to the hard disk serial numbers of each hard disk in the server to be detected and the hard disk serial numbers stored in the second electronic device;

[0121] Step 404: The second electronic device obtains a second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected, wherein the production order of the server to be detected is used to represent the configuration of the server to be detected;

[0122] Step 405: The second electronic device classifies the hard disk serial numbers in the server to be detected according to the material numbers of the hard disks in the server to be detected, and obtains the actual hard disk serial numbers corresponding to the hard disk material numbers; and obtains the third detection result according to the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be detected;

[0123] Step 406: The second electronic device obtains a verification result of the to-be-detected server by using the first detection result, the second detection result, and the third detection result;

[0124] Step 407: If the second electronic device determines that the verification results are all passed, the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

[0125] The verification result includes the first detection result, the second detection result and the third detection result.

[0126] Based on the same inventive concept, the present application also provides a server verification device 500, see Figure 5 , the device comprises:

[0127] The acquisition module 501 is used to acquire hard disk parameters of each hard disk in any server to be detected, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0128] The sending module 502 is used to send the hard disk parameters of each hard disk to the second electronic device, so that the second electronic device can verify the server to be detected based on the hard disk parameters of each hard disk; if it is determined that the verification is passed, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

[0129] In a possible implementation manner, the sending module 502 is specifically configured to:

[0130] The hard disk parameters of the hard disks are sent in batches to the second electronic device.

[0131] Based on the same inventive concept, the present application also provides another server verification device 600, see Figure 6 , the device comprises:

[0132] The receiving module 601 is used to receive hard disk parameters of each hard disk in the server to be detected sent by the first electronic device, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk;

[0133] A verification module 602 is used to verify the server to be detected based on the hard disk parameters of each hard disk to obtain a verification result;

[0134] The storage module 603 is used to store the identifier of the server to be detected and the hard disk parameters of each hard disk in correspondence if the verification result is verification passed.

[0135] In a possible implementation, in a possible implementation, the verification module 602 is specifically used to:

[0136] Obtaining a first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device;

[0137] Obtaining a second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected, wherein the production order of the server to be detected is used to represent the configuration of the server to be detected;

[0138] Classify the hard disk serial numbers in the server to be tested according to the material numbers of the hard disks in the server to be tested, and obtain the actual hard disk serial numbers corresponding to the hard disk material numbers; obtain a third test result based on the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested;

[0139] The verification result of the server to be detected is obtained by using the first detection result, the second detection result and the third detection result.

[0140] In a possible implementation manner, the verification module 602 is further configured to:

[0141] For the hard disk serial number of any hard disk in the server to be detected, the hard disk serial number is compared with the hard disk serial numbers stored in the second electronic device to determine whether there is a hard disk serial number identical to the hard disk serial number among the hard disk serial numbers stored in the second electronic device;

[0142] If yes, determining that the first test result is a test failure;

[0143] If not, it is determined that the first detection result is a passed detection.

[0144] In a possible implementation manner, the production order of the server to be tested includes the target hard disk material number corresponding to each hard disk serial number in the server to be tested and the total quantity of the target hard disk serial numbers corresponding to each hard disk material number;

[0145] The verification module 602 is further used for:

[0146] For any hard disk serial number among the hard disk serial numbers in the server to be detected, if the hard disk material number corresponding to the any hard disk serial number is the same as the target hard disk material number corresponding to the any hard disk serial number in the production order, it is determined that the any hard disk serial number meets the first specified condition; otherwise, it is determined that the any hard disk serial number does not meet the first specified condition;

[0147] If all the hard disk serial numbers satisfy the first specified condition, the second test result is determined to be a pass; or, if there is a hard disk serial number that does not satisfy the first specified condition among the hard disk serial numbers, the second test result is determined to be a fail;

[0148] The verification module 602 is further used for:

[0149] For any hard disk material number in the server to be detected, if the total number of actual hard disk serial numbers corresponding to the any hard disk material number is the same as the total number of target hard disk serial numbers corresponding to the any hard disk material number, it is determined that the any hard disk material number meets the second specified condition; otherwise, it is determined that the any hard disk material number does not meet the second specified condition;

[0150] If all the hard disk material numbers satisfy the second specified condition, the third test result is determined to be a passed test; or, if there is a hard disk material number among the hard disk material numbers that does not satisfy the second specified condition, the third test result is determined to be a failed test.

[0151] In a possible implementation manner, the verification module 602 is further configured to:

[0152] If all the detection results of the server to be detected are detected as passed, then the verification result of the server to be detected is determined to be verified passed; wherein the detection results include the first detection result, the second detection result and the third detection result; or,

[0153] If there is a test result that fails the test among the test results of the server to be tested, it is determined that the verification result of the server to be tested is that the verification fails.

[0154] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the function of the verification device of the aforementioned server, referring to Figure 7 , the electronic device comprises:

[0155] At least one processor 701, and a memory 702 connected to the at least one processor 701. The specific connection medium between the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 In the example, the processor 701 and the memory 702 are connected via a bus 700. Figure 7 The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 700 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 7 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 701 can also be called a controller, and there is no limitation on the name.

[0156] In the embodiment of the present application, the memory 702 stores instructions that can be executed by at least one processor 701. The at least one processor 701 can execute the server heat dissipation method discussed above by executing the instructions stored in the memory 702. The processor 701 can implement Figure 5 and / or Figure 6 The functions of each module in the device shown.

[0157] Among them, the processor 701 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 702 and calling data stored in the memory 702, the various functions of the device and process data, the device can be monitored as a whole.

[0158] In one possible design, the processor 701 may include one or more processing units, and the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0159] Processor 701 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the verification method of the server disclosed in the embodiments of the present application can be directly embodied as a hardware processor execution, or a combination of hardware and software modules in the processor.

[0160] The memory 702 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 702 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 702 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0161] By programming the processor 701, the code corresponding to the verification method of the server described in the above embodiment can be fixed into the chip, so that the chip can execute the verification method when running. Figure 1 The steps of the verification method of the server in the embodiment shown are as follows: How to design and program the processor 701 is a technology well known to those skilled in the art and will not be described in detail here.

[0162] An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions required to execute the above-mentioned processor, which includes a program required to execute the above-mentioned processor.

[0163] In some possible implementations, various aspects of the server verification method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the above-mentioned program product is run on an electronic device, the above-mentioned program code is used to enable the above-mentioned electronic device to execute the steps of the server verification method according to various exemplary embodiments of the present application described above in this specification.

[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0168] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0169] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A server verification method, characterized in that: Applied to a first electronic device, the method includes: For any server to be detected, obtain the hard disk parameters of each hard disk in the server to be detected, wherein the hard disk parameters include the hard disk serial number and the hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk; The hard disk parameters of each hard disk are sent to a second electronic device so that the second electronic device can verify the server to be detected based on the hard disk parameters of each hard disk; if it is determined that the verification passes, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

2. The method according to claim 1, characterized in that The sending the hard disk parameters of each hard disk to the second electronic device includes: The hard disk parameters of the hard disks are sent in batches to the second electronic device.

3. A server verification method, characterized in that: Applied in a second electronic device, the method includes: Receive hard disk parameters of each hard disk in the server to be detected sent by the first electronic device, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk; Based on the hard disk parameters of each hard disk, the server to be detected is verified to obtain a verification result; If the verification result is that the verification is passed, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

4. The method according to claim 3, characterized in that The verifying the server to be detected based on the hard disk parameters of each hard disk to obtain a verification result includes: Obtaining a first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device; Obtaining a second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected, wherein the production order of the server to be detected is used to represent the configuration of the server to be detected; Classify the hard disk serial numbers in the server to be tested according to the material numbers of the hard disks in the server to be tested, and obtain the actual hard disk serial numbers corresponding to the hard disk material numbers; obtain a third test result based on the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested; The verification result of the server to be detected is obtained by using the first detection result, the second detection result and the third detection result.

5. The method according to claim 4, characterized in that The obtaining of a first detection result according to the hard disk serial number of each hard disk in the server to be detected and the hard disk serial number stored in the second electronic device includes: For the hard disk serial number of any hard disk in the server to be detected, the hard disk serial number is compared with the hard disk serial numbers stored in the second electronic device to determine whether there is a hard disk serial number identical to the hard disk serial number among the hard disk serial numbers stored in the second electronic device; If yes, determining that the first test result is a test failure; If not, it is determined that the first detection result is a passed detection.

6. The method according to claim 4, characterized in that The production order of the server to be tested includes the target hard disk material number corresponding to each hard disk serial number in the server to be tested and the total quantity of the target hard disk serial numbers corresponding to each hard disk material number; The obtaining of the second detection result according to the hard disk material numbers corresponding to the hard disk serial numbers in the server to be detected and the production order of the server to be detected includes: For any hard disk serial number among the hard disk serial numbers in the server to be detected, if the hard disk material number corresponding to the any hard disk serial number is the same as the target hard disk material number corresponding to the any hard disk serial number in the production order, it is determined that the any hard disk serial number meets the first specified condition; otherwise, it is determined that the any hard disk serial number does not meet the first specified condition; If all the hard disk serial numbers satisfy the first specified condition, the second test result is determined to be a pass; or, if there is a hard disk serial number that does not satisfy the first specified condition among the hard disk serial numbers, the second test result is determined to be a fail; The obtaining of a third test result according to the actual hard disk serial numbers corresponding to the hard disk material numbers and the production order corresponding to the server to be tested comprises: For any hard disk material number in the server to be detected, if the total number of actual hard disk serial numbers corresponding to the any hard disk material number is the same as the total number of target hard disk serial numbers corresponding to the any hard disk material number, it is determined that the any hard disk material number meets the second specified condition; otherwise, it is determined that the any hard disk material number does not meet the second specified condition; If all the hard disk material numbers satisfy the second specified condition, the third test result is determined to be a passed test; or, if there is a hard disk material number among the hard disk material numbers that does not satisfy the second specified condition, the third test result is determined to be a failed test.

7. The method according to claim 4, characterized in that The obtaining a verification result of the server to be detected by using at least one of the first detection result, the second detection result, and the third detection result includes: If all the detection results of the server to be detected are detected as passed, then the verification result of the server to be detected is determined to be verified passed; wherein the detection results include the first detection result, the second detection result and the third detection result; or, If there is a test result that fails the test among the test results of the server to be tested, it is determined that the verification result of the server to be tested is that the verification fails.

8. A verification device for a server, characterized in that: The device comprises: An acquisition module, used for acquiring hard disk parameters of each hard disk in any server to be detected, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk; A sending module is used to send the hard disk parameters of each hard disk to a second electronic device, so that the second electronic device can verify the server to be detected based on the hard disk parameters of each hard disk; if it is determined that the verification is passed, the identifier of the server to be detected and the hard disk parameters of each hard disk are stored in correspondence.

9. A verification device for a server, characterized in that: The device comprises: A receiving module, used to receive hard disk parameters of each hard disk in the server to be detected sent by the first device, wherein the hard disk parameters include a hard disk serial number and a hard disk material number corresponding to the hard disk serial number, and the hard disk material number is used to indicate the type of the hard disk, and the hard disk serial number is a unique identification code of the hard disk; A verification module, used for verifying the server to be detected based on the hard disk parameters of each hard disk to obtain a verification result; The storage module is used for storing the identifier of the server to be detected and the hard disk parameters of each hard disk in correspondence if the verification result is that the verification is passed.

10. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method according to any one of claims 1 to 7 when executing a computer program stored in the memory.