CN114116336A - Method, system, device and medium for checking hardware consistency of server - Google Patents

Method, system, device and medium for checking hardware consistency of server Download PDF

Info

Publication number
CN114116336A
CN114116336A CN202111309739.7A CN202111309739A CN114116336A CN 114116336 A CN114116336 A CN 114116336A CN 202111309739 A CN202111309739 A CN 202111309739A CN 114116336 A CN114116336 A CN 114116336A
Authority
CN
China
Prior art keywords
server
check
hardware
inspection
checked
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111309739.7A
Other languages
Chinese (zh)
Other versions
CN114116336B (en
Inventor
陈远喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202111309739.7A priority Critical patent/CN114116336B/en
Publication of CN114116336A publication Critical patent/CN114116336A/en
Application granted granted Critical
Publication of CN114116336B publication Critical patent/CN114116336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a system, equipment and a medium for checking hardware consistency of a server, wherein the method comprises the following steps: configuring a hardware configuration list of a server; acquiring a server to be checked, setting a network environment of the server to be checked, and generating a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked; and sequentially carrying out hardware consistency check on the servers on the node list according to a preset check file, recording a check log and generating a check result. By the scheme of the invention, the hardware consistency of the server can be automatically checked in a network environment, repeated work can be obviously reduced, the labor workload input is reduced, and the checking efficiency of the hardware consistency of the server is improved.

Description

Method, system, device and medium for checking hardware consistency of server
Technical Field
The present invention relates to the field of computer information technologies, and in particular, to a method, a system, a device, and a medium for checking hardware consistency of a server.
Background
With the rise of new technologies such as 5G, cloud computing, internet of things, and the like, global IP traffic is increasing at a considerable speed. Traffic bursts mean bursts of data volume that require a large number of servers to support, and the demand for servers continues to increase. The explosion of data and traffic is a definite result of the current information change, and the construction of 5G will continue to drive the data volume and thus the increase of server demand. The basic performance of a server is determined by the hardware, and the large demand for the server is also a demand for the server hardware.
The hardware of the server is composed of a power supply, a CPU, a memory, a hard disk, a fan, a network card and the like. The hard disk can be divided into SAS hard disk, SATA hard disk, solid state hard disk, etc., and the network card can be divided into RJ-45 interface network card, FDDI interface network card, etc. according to the interface, which is the difference of the server in the classification of hardware devices. A server may have 2 or more CPUs, one or more tens of memories, ten or more hard disks, and so on. The hardware of the server is a very complex hardware system, however, the hardware consistency of the server includes not only these hardware devices but also several pieces of firmware on the hardware and information such as actual state, link, bandwidth, etc. in operation. Therefore, it is necessary and tedious to check the hardware consistency before the servers leave the factory or are deployed in large quantities, the existing checking method for the hardware consistency of the servers is to manually check the consistency of each server, and the checking work is repeated in large quantities and is tedious.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a computer device, and a computer readable storage medium for checking hardware consistency of servers, which are used to automatically check hardware consistency of different hardware configurations of multiple servers in the same network environment, and can significantly reduce repetitive work, reduce labor workload input, and improve checking efficiency of server hardware consistency.
Based on the above object, an aspect of the embodiments of the present invention provides a method for checking hardware consistency of a server, which specifically includes the following steps:
configuring a hardware configuration list of a server;
acquiring a server to be checked, setting a network environment of the server to be checked, and generating a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked;
and sequentially carrying out hardware consistency check on the servers on the node list according to a preset check file, recording a check log and generating a check result.
In some embodiments, sequentially performing a hardware consistency check on the servers on the node list according to a pre-configured check file, and recording a check log and generating a check result includes:
reading the node list, and logging in a first server on the node list;
creating a new folder in the server, and generating a compressed package of the pre-configured check file and uploading the compressed package to the folder;
decompressing the compressed packet, and executing the pre-configured check file to perform hardware consistency check on the server;
responding to the end of the server check, acquiring a check log and a check result of the server, and generating a compressed packet by the check log and the check result and transmitting the compressed packet back to a remote server;
and reading the node list, logging in the next server to carry out consistency check, and returning to the step of newly building a folder in the server until all servers in the node list are checked.
In some embodiments, the node manifest includes: server IP, user name, login password and corresponding hardware configuration list.
In some embodiments, logging into a first server on the list of nodes comprises:
and linking a first server IP on the node list, and remotely logging in the server through the user name and the password.
In some embodiments, the hardware configuration manifest includes an expected result of the check;
after decompressing the compressed packet, executing the preconfigured check file to perform hardware consistency check on the server includes:
reading a hardware configuration list of the server, and checking each hardware of the server according to the hardware configuration list;
comparing the inspection result with an expected inspection result, if the comparison result is consistent, passing the inspection item, otherwise, failing to pass the inspection item;
and summarizing the detection results of the hardware to generate a final inspection result of the server.
In some embodiments, the hardware configuration manifest further includes a hardware check item name, a check command;
the method further comprises the following steps:
recording the hardware inspection item name, the inspection command, the inspection expected result, the inspection result and the information of whether the hardware inspection item name, the inspection command, the inspection expected result and the hardware inspection item name pass or not in the inspection log.
In some embodiments, the method further comprises:
and screening the information of the failed inspection items from the inspection log, and recording the information of the failed inspection items in the log of the server.
In another aspect of the embodiments of the present invention, a system for checking hardware consistency of a server is further provided, where the system includes:
a configuration module configured to configure a hardware configuration manifest of a server;
the system comprises a generating module, a checking module and a processing module, wherein the generating module is configured to obtain a server to be checked, set the network environment of the server to be checked and generate a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked;
and the checking module is configured to sequentially perform hardware consistency check on the servers on the node list according to a pre-configured check file, record a check log and generate a check result.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing a computer program executable on the processor, the computer program when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the hardware list is configured for the server, the node list of the server to be checked is generated based on the server to be checked and the corresponding hardware list, and hardware consistency check is automatically carried out on a plurality of servers with different configurations based on the pre-configured check files, so that repeated work can be obviously reduced, the labor workload input is reduced, and the check efficiency of the hardware consistency of the server is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a block diagram of an embodiment of a method for checking hardware consistency of a server according to the present invention;
FIG. 2 is a diagram illustrating an embodiment of a system for checking hardware consistency of a server according to the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a computer device provided in the present invention;
fig. 4 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for checking hardware consistency of a server. As shown in fig. 1, it includes the following steps:
s101, configuring a hardware configuration list of a server;
step S103, acquiring a server to be inspected, setting the network environment of the server to be inspected, and generating a node list according to the server to be inspected and a hardware configuration list corresponding to the server to be inspected;
and step S105, sequentially carrying out hardware consistency check on the servers on the node list according to a preset check file, recording a check log and generating a check result.
The server is different according to different use environments, the type of the loaded hardware and the quantity of each hardware, a plurality of hardware configuration lists are configured according to the type of the hardware loaded by the server, the specific content of the hardware configuration lists can comprise hardware inspection item names, inspection commands and inspection expected results, and the hardware configuration lists are stored according to a designed format.
All the servers to be checked are obtained, all the servers to be checked are added into the same network, the network environment of the servers is set, a node list is generated according to all the servers to be checked and the corresponding hardware configuration lists, and the node list is stored according to a preset format.
According to a preset check file, such as a check script or a batch file, reading each server on a node list in sequence, performing consistency check on hardware of each server, mainly checking whether hardware information of the server is consistent with preset check information in the check script or the batch file, if the hardware information is consistent with the preset check information, the check is passed, if the hardware information is inconsistent with the preset check information, the check is not passed, recording the check process and the check result of each hardware through logs, generating the check result of each server, and summarizing the check result of each server to a remote server.
Optionally, the auxiliary device such as a computer that is checked by the auxiliary server may be added to the same segment of the network, a network environment of the auxiliary device is set, a hardware configuration list of the auxiliary device is configured in advance, and the auxiliary device is checked for consistency by executing a check file in the auxiliary device.
The hardware list is configured for the server, the node list of the server to be checked is generated based on the server to be checked and the corresponding hardware list, and hardware consistency check is automatically carried out on a plurality of servers with different configurations based on the pre-configured check files, so that repeated work can be obviously reduced, the labor workload input is reduced, and the check efficiency of the hardware consistency of the server is improved.
In some embodiments, sequentially performing a hardware consistency check on the servers on the node list according to a pre-configured check file, and recording a check log and generating a check result includes:
reading the node list, and logging in a first server on the node list;
creating a new folder in the server, and generating a compressed package of the pre-configured check file and uploading the compressed package to the folder;
decompressing the compressed packet, and executing the pre-configured check file to perform hardware consistency check on the server;
responding to the end of the server check, acquiring a check log and a check result of the server, and generating a compressed packet by the check log and the check result and transmitting the compressed packet back to a remote server;
and reading the node list, logging in the next server to carry out consistency check, and returning to the step of newly building a folder in the server until all servers in the node list are checked.
The first server on the node list is read, and the first server on the node list is remotely logged in, for example, the servers on the node list can be sequentially checked through an SSH mode, and the checking is stopped after the first server starts to check to the last server.
The specific checking process is that the preset checking files are packaged into a compressed packet at the remote server side and transmitted to a designated folder of the checked server, and the compressed packet is decompressed in the designated folder to execute the checking files; and after the inspection is finished, the inspection result is compressed and transmitted back to the remote server from the inspected server.
By reading the node list, the hardware consistency of the plurality of servers on the node list is automatically checked based on the pre-configured check file, and the check efficiency of the hardware consistency of the servers is improved.
In some embodiments, the node manifest includes: server IP, user name, login password and corresponding hardware configuration list.
In some embodiments, logging into a first server on the list of nodes comprises:
and linking a first server IP on the node list, and remotely logging in the server through the user name and the password.
In some embodiments, the hardware configuration manifest includes an expected result of the check;
after decompressing the compressed packet, executing the preconfigured check file to perform hardware consistency check on the server includes:
reading a hardware configuration list of the server, and checking each hardware of the server according to the hardware configuration list;
comparing the inspection result with an expected inspection result, if the comparison result is consistent, passing the inspection item, otherwise, failing to pass the inspection item;
and summarizing the detection results of the hardware to generate a final inspection result of the server.
Specifically, a hardware configuration list corresponding to the server to be checked is read, and each hardware of the server to be checked is checked according to the hardware configuration list, wherein the hardware configuration list comprises a plurality of check items of all hardware of the service; each item of inspection compares the inspection result with the expected inspection result, if the comparison result is consistent, the item of inspection is passed, otherwise, the item of inspection is not passed; recording the checking process and the checking result of each hardware through the log, and generating a final output result after all the hardware of the server are checked, wherein optionally, the final output result comprises information whether each hardware passes or not; and summarizing the detection results of the hardware to generate a final inspection result of the server.
Optionally, the check item may be whether the server lacks a certain hardware, for example, the hard disk is not plugged, so that the hard disk information cannot be detected; the checking item can also be used for checking whether the model of the mainboard is consistent with a preset parameter, and the preset parameter is the preset mainboard model in the checking file; the checking item can also check whether the number of the memory banks is correct or not and whether the model of the memory banks is consistent with the preset parameters or not; the checking item can also check CPU information such as the model of the CPU, the number of actual physical CPUs in the system, the number of cores (namely the number of cores) in each physical CPU and the like; the corresponding check items can also check hardware information of the server, such as related information of a hard disk, related information of a network card, information of all PCI devices and the like.
The hardware configuration list corresponding to the checked server is read, and each hardware of the checked server is checked according to the hardware configuration list, so that the checking efficiency of the hardware consistency of the server is improved.
In some embodiments, the hardware configuration manifest further includes a hardware check item name, a check command;
the method further comprises the following steps:
recording the hardware inspection item name, the inspection command, the inspection expected result, the inspection result and the information of whether the hardware inspection item name, the inspection command, the inspection expected result and the hardware inspection item name pass or not in the inspection log.
In some embodiments, the method further comprises:
and screening the information of the failed inspection items from the inspection log, and recording the information of the failed inspection items in the log of the server.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 2, an embodiment of the present invention further provides a hardware consistency checking system of a server, where the checking system includes:
a configuration module 110, wherein the configuration module 110 is configured to configure a hardware configuration list of a server;
a generating module 120, where the generating module 120 is configured to obtain a server to be inspected, set a network environment of the server to be inspected, and generate a node list according to the server to be inspected and a hardware configuration list corresponding to the server to be inspected;
a checking module 130, wherein the checking module 130 is configured to sequentially perform hardware consistency checking on the servers on the node list according to a pre-configured checking file, record a checking log, and generate a checking result.
The hardware list is configured for the server, the node list of the server to be checked is generated based on the server to be checked and the corresponding hardware list, and hardware consistency check is automatically carried out on a plurality of servers with different configurations based on the pre-configured check files, so that repeated work can be obviously reduced, the labor workload input is reduced, and the check efficiency of the hardware consistency of the server is improved.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a computer device 20, in which the computer device 20 includes a processor 210 and a memory 220, the memory 220 stores a computer program 221 executable on the processor, and the processor 210 executes the program to perform the following method steps:
configuring a hardware configuration list of a server;
acquiring a server to be checked, setting a network environment of the server to be checked, and generating a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked;
and sequentially carrying out hardware consistency check on the servers on the node list according to a preset check file, recording a check log and generating a check result.
The hardware list is configured for the server, the node list of the server to be checked is generated based on the server to be checked and the corresponding hardware list, and hardware consistency check is automatically carried out on a plurality of servers with different configurations based on the pre-configured check files, so that repeated work can be obviously reduced, the labor workload input is reduced, and the check efficiency of the hardware consistency of the server is improved.
In some embodiments, sequentially performing a hardware consistency check on the servers on the node list according to a pre-configured check file, and recording a check log and generating a check result includes:
reading the node list, and logging in a first server on the node list;
creating a new folder in the server, and generating a compressed package of the pre-configured check file and uploading the compressed package to the folder;
decompressing the compressed packet, and executing the pre-configured check file to perform hardware consistency check on the server;
responding to the end of the server check, acquiring a check log and a check result of the server, and generating a compressed packet by the check log and the check result and transmitting the compressed packet back to a remote server;
and reading the node list, logging in the next server to carry out consistency check, and returning to the step of newly building a folder in the server until all servers in the node list are checked.
In some embodiments, the node manifest includes: server IP, user name, login password and corresponding hardware configuration list.
In some embodiments, logging into a first server on the list of nodes comprises:
and linking a first server IP on the node list, and remotely logging in the server through the user name and the password.
In some embodiments, the hardware configuration manifest includes an expected result of the check;
after decompressing the compressed packet, executing the preconfigured check file to perform hardware consistency check on the server includes:
reading a hardware configuration list of the server, and checking each hardware of the server according to the hardware configuration list;
comparing the inspection result with an expected inspection result, if the comparison result is consistent, passing the inspection item, otherwise, failing to pass the inspection item;
and summarizing the detection results of the hardware to generate a final inspection result of the server.
In some embodiments, the hardware configuration manifest further includes a hardware check item name, a check command;
the method further comprises the following steps:
recording the hardware inspection item name, the inspection command, the inspection expected result, the inspection result and the information of whether the hardware inspection item name, the inspection command, the inspection expected result and the hardware inspection item name pass or not in the inspection log.
In some embodiments, the method further comprises:
and screening the information of the failed inspection items from the inspection log, and recording the information of the failed inspection items in the log of the server.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer-readable storage medium 30, where the computer-readable storage medium 30 stores a computer program 310 that, when executed by a processor, performs a hardware consistency checking method of a server as described in the embodiment of the present application.
The memory, as a non-volatile computer-readable storage medium, may be used to store a non-volatile software program, a non-volatile computer-executable program, and modules, such as program instructions/modules corresponding to the hardware consistency checking method of the server described in the embodiments of the present application. The processor executes various functional applications and data processing of the device by executing nonvolatile software programs, instructions, and modules stored in the memory, that is, the hardware consistency checking method of the server as described in the embodiments of the present application.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The specific steps of the computer program for executing the method for checking the hardware consistency of the server in the embodiment are as follows:
configuring a hardware configuration list of a server;
acquiring a server to be checked, setting a network environment of the server to be checked, and generating a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked;
and sequentially carrying out hardware consistency check on the servers on the node list according to a preset check file, recording a check log and generating a check result.
In some embodiments, sequentially performing a hardware consistency check on the servers on the node list according to a pre-configured check file, and recording a check log and generating a check result includes:
reading the node list, and logging in a first server on the node list;
creating a new folder in the server, and generating a compressed package of the pre-configured check file and uploading the compressed package to the folder;
decompressing the compressed packet, and executing the pre-configured check file to perform hardware consistency check on the server;
responding to the end of the server check, acquiring a check log and a check result of the server, and generating a compressed packet by the check log and the check result and transmitting the compressed packet back to a remote server;
and reading the node list, logging in the next server to carry out consistency check, and returning to the step of newly building a folder in the server until all servers in the node list are checked.
In some embodiments, the node manifest includes: server IP, user name, login password and corresponding hardware configuration list.
In some embodiments, logging into a first server on the list of nodes comprises:
and linking a first server IP on the node list, and remotely logging in the server through the user name and the password.
In some embodiments, the hardware configuration manifest includes an expected result of the check;
after decompressing the compressed packet, executing the preconfigured check file to perform hardware consistency check on the server includes:
reading a hardware configuration list of the server, and checking each hardware of the server according to the hardware configuration list;
comparing the inspection result with an expected inspection result, if the comparison result is consistent, passing the inspection item, otherwise, failing to pass the inspection item;
and summarizing the detection results of the hardware to generate a final inspection result of the server.
In some embodiments, the hardware configuration manifest further includes a hardware check item name, a check command;
the method further comprises the following steps:
recording the hardware inspection item name, the inspection command, the inspection expected result, the inspection result and the information of whether the hardware inspection item name, the inspection command, the inspection expected result and the hardware inspection item name pass or not in the inspection log.
In some embodiments, the method further comprises:
and screening the information of the failed inspection items from the inspection log, and recording the information of the failed inspection items in the log of the server.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for checking hardware consistency of a server is characterized by comprising the following steps:
configuring a hardware configuration list of a server;
acquiring a server to be checked, setting a network environment of the server to be checked, and generating a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked;
and sequentially carrying out hardware consistency check on the servers on the node list according to a preset check file, recording a check log and generating a check result.
2. The method of claim 1, wherein sequentially performing hardware consistency checks on the servers on the node list according to a pre-configured check file, recording a check log, and generating a check result comprises:
reading the node list, and logging in a first server on the node list;
creating a new folder in the server, and generating a compressed package of the pre-configured check file and uploading the compressed package to the folder;
decompressing the compressed packet, and executing the pre-configured check file to perform hardware consistency check on the server;
responding to the end of the server check, acquiring a check log and a check result of the server, and generating a compressed packet by the check log and the check result and transmitting the compressed packet back to a remote server;
and reading the node list, logging in the next server to carry out consistency check, and returning to the step of newly building a folder in the server until all servers in the node list are checked.
3. The method of claim 2, wherein the node list comprises: server IP, user name, login password and corresponding hardware configuration list.
4. The method of claim 3, wherein registering with the first server on the list of nodes comprises:
and linking a first server IP on the node list, and remotely logging in the server through the user name and the password.
5. The method of claim 3, wherein the hardware configuration manifest includes checking for expected results;
after decompressing the compressed packet, executing the preconfigured check file to perform hardware consistency check on the server includes:
reading a hardware configuration list of the server, and checking each hardware of the server according to the hardware configuration list;
comparing the inspection result with an expected inspection result, if the comparison result is consistent, passing the inspection item, otherwise, failing to pass the inspection item;
and summarizing the detection results of the hardware to generate a final inspection result of the server.
6. The method of claim 5, wherein the hardware configuration manifest further comprises a hardware check item name, a check command;
the method further comprises the following steps:
recording the hardware inspection item name, the inspection command, the inspection expected result, the inspection result and the information of whether the hardware inspection item name, the inspection command, the inspection expected result and the hardware inspection item name pass or not in the inspection log.
7. The method of claim 6, further comprising:
and screening the information of the failed inspection items from the inspection log, and recording the information of the failed inspection items in the log of the server.
8. A system for checking hardware consistency of a server, comprising:
a configuration module configured to configure a hardware configuration manifest of a server;
the system comprises a generating module, a checking module and a processing module, wherein the generating module is configured to obtain a server to be checked, set the network environment of the server to be checked and generate a node list according to the server to be checked and a hardware configuration list corresponding to the server to be checked;
and the checking module is configured to sequentially perform hardware consistency check on the servers on the node list according to a pre-configured check file, record a check log and generate a check result.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202111309739.7A 2021-11-07 2021-11-07 A method, system, device, and medium for checking server hardware consistency. Active CN114116336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111309739.7A CN114116336B (en) 2021-11-07 2021-11-07 A method, system, device, and medium for checking server hardware consistency.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111309739.7A CN114116336B (en) 2021-11-07 2021-11-07 A method, system, device, and medium for checking server hardware consistency.

Publications (2)

Publication Number Publication Date
CN114116336A true CN114116336A (en) 2022-03-01
CN114116336B CN114116336B (en) 2026-04-21

Family

ID=80381248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111309739.7A Active CN114116336B (en) 2021-11-07 2021-11-07 A method, system, device, and medium for checking server hardware consistency.

Country Status (1)

Country Link
CN (1) CN114116336B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119071150A (en) * 2024-09-26 2024-12-03 新华三信息技术有限公司 A hardware configuration checking method, device, equipment and readable storage medium
CN119814619A (en) * 2024-12-06 2025-04-11 天翼云科技有限公司 A server initialization inspection method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002049419A (en) * 2000-08-02 2002-02-15 Yamatake Sangyo Systems Co Ltd Facility management supporting system
US20140222778A1 (en) * 2012-03-20 2014-08-07 Guangdong Electronics Industry Institute Ltd. Data Storage and Query Method
CN105577799A (en) * 2015-12-25 2016-05-11 北京奇虎科技有限公司 Method and device for fault detection of database cluster
CN111176914A (en) * 2019-12-17 2020-05-19 苏州浪潮智能科技有限公司 Hardware configuration detection method and device
CN112565358A (en) * 2020-11-25 2021-03-26 武汉联影医疗科技有限公司 File uploading method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002049419A (en) * 2000-08-02 2002-02-15 Yamatake Sangyo Systems Co Ltd Facility management supporting system
US20140222778A1 (en) * 2012-03-20 2014-08-07 Guangdong Electronics Industry Institute Ltd. Data Storage and Query Method
CN105577799A (en) * 2015-12-25 2016-05-11 北京奇虎科技有限公司 Method and device for fault detection of database cluster
CN111176914A (en) * 2019-12-17 2020-05-19 苏州浪潮智能科技有限公司 Hardware configuration detection method and device
CN112565358A (en) * 2020-11-25 2021-03-26 武汉联影医疗科技有限公司 File uploading method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YILDIRAN YILMAZ ETAL.: "ASSURE: A Hardware-Based Security Protocol for Resource-Constrained IoT Systems", 《 JOURNAL OF HARDWARE AND SYSTEMS SECURITY 》, 4 September 2020 (2020-09-04) *
雷宝龙;: "适用于电网调度的一种基于日志的高可靠文件服务", 江苏科技信息, no. 19, 15 October 2013 (2013-10-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119071150A (en) * 2024-09-26 2024-12-03 新华三信息技术有限公司 A hardware configuration checking method, device, equipment and readable storage medium
CN119814619A (en) * 2024-12-06 2025-04-11 天翼云科技有限公司 A server initialization inspection method, device and electronic equipment

Also Published As

Publication number Publication date
CN114116336B (en) 2026-04-21

Similar Documents

Publication Publication Date Title
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
KR102156439B1 (en) Cloud-edge system and method for processing data thereof
JP6823785B2 (en) Node configuration management in the network
CN110557299A (en) Method, system, terminal and storage medium for batch testing of network transmission function
CN110196804B (en) Service testing method and device, storage medium and electronic device
US20180357143A1 (en) Testing computing devices
CN113282347B (en) Plug-in operation method, device, equipment and storage medium
CN114581241B (en) Intelligent contract processing method and device, processor and electronic equipment
CN110046091A (en) A kind of automatic test approach and device
CN114116336A (en) Method, system, device and medium for checking hardware consistency of server
CN111651352B (en) Warehouse code merging method and device
CN114143235A (en) NFV automatic test method, device, equipment and storage medium
CN113961198A (en) Micro-service automatic deployment method, device and storage medium
CN113133039A (en) Method and device for testing performance of gateway system
CN109101242B (en) Database automatic deployment method and device
US20250138801A1 (en) Method and Apparatus for Automatically Configuring and Deploying Containerized Application
CN116166525A (en) Method and device for generating test script
CN111404780B (en) Function test method and device for remote direct memory access network cluster
KR20220000880A (en) Systems and methods for centralization of server initialization information
CN112738157A (en) File uploading method, system and equipment
CN109491880A (en) A kind of method and apparatus optimizing log analysis
CN116743619A (en) Test methods, devices, equipment and storage media for network services
CN110968504A (en) Test method, test platform, electronic device and computer storage medium
CN119520260B (en) Cluster deployment method, device, computer equipment, readable storage medium and program product
CN116401107A (en) Server testing method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant