CN114139743A - Server hardware information management method and device - Google Patents
Server hardware information management method and device Download PDFInfo
- Publication number
- CN114139743A CN114139743A CN202111434070.4A CN202111434070A CN114139743A CN 114139743 A CN114139743 A CN 114139743A CN 202111434070 A CN202111434070 A CN 202111434070A CN 114139743 A CN114139743 A CN 114139743A
- Authority
- CN
- China
- Prior art keywords
- silk
- information
- hardware information
- hardware
- screen image
- 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
Links
- 238000007726 management method Methods 0.000 title claims description 39
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000004891 communication Methods 0.000 claims abstract description 22
- 238000012545 processing Methods 0.000 claims description 27
- 230000004044 response Effects 0.000 claims description 10
- 238000001914 filtration Methods 0.000 claims description 8
- 239000000284 extract Substances 0.000 claims description 7
- 238000005260 corrosion Methods 0.000 claims description 6
- 230000007797 corrosion Effects 0.000 claims description 6
- 238000003708 edge detection Methods 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 230000003628 erosive effect Effects 0.000 claims description 4
- 239000003550 marker Substances 0.000 claims 2
- 230000008569 process Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000001915 proofreading effect Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000007650 screen-printing Methods 0.000 description 3
- 230000010339 dilation Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/20—Administration of product repair or maintenance
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Character Input (AREA)
Abstract
The invention provides a method and a device for managing server hardware information; the method comprises the following steps: the method comprises the steps that wireless communication is carried out to obtain first hardware information managed by a BMC controller and a BIOS controller of a target server; acquiring a silk-screen image of hardware of a target server, and extracting second hardware information in the silk-screen image; and comparing the first hardware information with the second hardware information, executing corresponding operation according to the comparison result, and uploading the silk-screen image. The method or the device avoids the problem that errors are easy to occur due to undersize silk-screen characters of hardware equipment in the process of manually correcting the silk-screen information, and uploads the silk-screen image of the hardware to store basic data of the hardware information after the silk-screen information is corrected, so that the problems can be further determined by uploading the silk-screen image when the uploaded hardware information is inconsistent with the hardware information stored in the system.
Description
Technical Field
The invention relates to the technical field of information acquisition and image processing, in particular to a server hardware information management device and method.
Background
In the field of servers, it is often necessary to perform a screen printing calibration on hardware information of a server, that is, to compare the hardware information of the server stored in the background with printing information (screen printing information) on actual hardware, for example, when performing compatibility or structural tests of components such as a CPU and a motherboard, or when repairing the server after sale and returning basic hardware configuration (including SN) and a problem list of the corresponding server to record, the screen printing calibration is indispensable. And the silk-screen proofreading determines the hardware information in the silk-screen, uploads the hardware information to the system and then compares the hardware information with the hardware information stored in the system.
At present, silk screen information uploading work is mostly finished manually, however, characters of silk screen information on hardware are mostly small, and silk screen information needing to be uploaded is more, so that the situation that the uploaded silk screen information is wrong due to errors is inevitable, and when errors occur in silk screen correction, more basic data are lacked to judge whether the problems are caused on stored hardware information or uploaded silk screen information.
Disclosure of Invention
In order to solve the above technical problem, in an aspect of the present invention, a server hardware information management method is provided, the method including: the method comprises the steps that wireless communication is carried out to obtain first hardware information managed by a BMC controller and a BIOS controller of a target server; acquiring a silk-screen image of the hardware of the target server, and extracting second hardware information in the silk-screen image; and comparing the first hardware information with the second hardware information, executing corresponding operation according to a comparison result, and uploading the silk-screen image.
In one or more embodiments, the performing the corresponding operation according to the comparison result and uploading the silk-screen image includes: and responding to the fact that the first hardware information is the same as the second hardware information, marking the silk-screen image with the first hardware information, and uploading the silk-screen image with the mark.
In one or more embodiments, the executing the corresponding operation according to the comparison result and uploading the silk-screen image includes, in response to that the first hardware information is different from the second hardware information, calling an information input module to obtain second input information, where the second input information is manually input hardware information; and marking the silk-screen image by the second input information, and uploading the silk-screen image with the mark.
In one or more embodiments, the server hardware information management method further includes: acquiring third input information, wherein the third input information comprises fault information of hardware; and marking the silk-screen image of the hardware by the third input information, and uploading the silk-screen image with the mark.
In one or more embodiments, the extracting second hardware information in the silk-screen image includes: acquiring a silk-screen image; carrying out gray level conversion on the silk-screen image to obtain a gray level image and obtain a gray level histogram; performing edge detection on the gray-scale image by using a roberts operator to determine an image adjustment range; carrying out image erosion and image expansion processing in the image adjustment range; carrying out equalization adjustment on the gray level image subjected to image corrosion and image expansion processing based on the gray level histogram; carrying out binarization on the gray level image after equalization adjustment, and carrying out median filtering processing; calling a preset script program, calculating the position of each character in the gray level image subjected to binarization and median filtering, and cutting one by one to obtain a gray level image only with a single character; and sequentially comparing the single character in each gray level image with the characters in a preset character template respectively, calculating errors, and identifying the character in the character template with the minimum single character error as the single character to obtain the second hardware information.
In a second aspect of the present invention, there is provided a server hardware information management apparatus including: the near field communication module is configured for wireless communication to acquire first hardware information managed by a BMC (baseboard management controller) and a BIOS (basic input output system) controller of a target server; the camera module is configured to acquire a silk-screen image of hardware of the target server; the processing module is configured to receive the silk-screen image from the camera module and extract second hardware information in the silk-screen image; and receiving the first hardware information from the near field communication module, comparing the first hardware information with the second hardware information, and executing corresponding operation according to the comparison result.
In one or more embodiments, the processing module is further configured to, in response to that the first hardware information is the same as the second hardware information, mark a silk-screen image corresponding to the second hardware information with the first hardware information, and upload the silk-screen image with the mark.
In one or more embodiments, the server hardware information management apparatus further includes an information input module and a display module, where the information input module is configured to edit the first input information to name the silk-screen image with the mark, and the display module is configured to display the silk-screen image with the mark.
In one or more embodiments, the processing module is further configured to, in response to the first hardware information being different from the second hardware information, invoke the information input module to obtain second input information, the second input information being manually input hardware information; and marking the silk-screen image corresponding to the second hardware information by using the second input information, and uploading the silk-screen image with the mark.
In one or more embodiments, the processing module is further configured to invoke the information input module to obtain third input information, where the third input information is fault information of the hardware; and marking the silk-screen image of the hardware by using third input information, and uploading the silk-screen image with the mark.
The beneficial effects of the invention include: on one hand, the stored hardware information is obtained from a BMC (baseboard management controller) or a BIOS (basic input/output system) controller of a target server in a wireless communication mode, on the other hand, a silk-screen image of corresponding hardware equipment in the server is obtained on site, the hardware information in the silk-screen image is extracted, the stored hardware information is compared with the hardware information in the silk-screen image obtained on site, corresponding operation is executed according to the comparison result, and the silk-screen image is uploaded for recording. By the hardware information management method provided by the embodiment, the problem that errors are easy to occur due to undersize silk-screen characters of hardware equipment in the process of manually correcting the silk-screen information is solved; and after the silk-screen information is corrected, uploading the silk-screen image of the hardware to store the basic data of the hardware information, and further determining the problem by uploading the silk-screen image when the uploaded hardware information is inconsistent with the hardware information stored in the system.
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 flowchart illustrating a method for managing server hardware information according to the present invention;
FIG. 2 is a flowchart illustrating a process of extracting hardware information from a silk-screen image according to the present invention;
FIG. 3 is a schematic diagram of a server hardware information management apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a readable storage medium according to 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.
Fig. 1 is a flowchart illustrating a method for managing server hardware information according to the present invention. As shown in fig. 1, the workflow of the server hardware information management method of the present invention includes: step S1, acquiring first hardware information managed by a BMC controller and a BIOS controller of a target server through wireless communication; step S2, acquiring a silk-screen image of the hardware of the target server, and extracting second hardware information in the silk-screen image; and step S3, comparing the first hardware information with the second hardware information, executing corresponding operation according to the comparison result, and uploading the silk-screen image.
As in the foregoing embodiment, the server hardware information management method of the present invention, on one hand, acquires each stored hardware information from the BMC controller or the BIOS controller of the target server in a wireless communication manner, and on the other hand, acquires the silk-screen image of the corresponding hardware device in the server on site, extracts the hardware information in the silk-screen image, compares the stored hardware information with the hardware information in the silk-screen image acquired on site, further executes a corresponding operation according to the comparison result, and uploads the silk-screen image for filing. By the hardware information management method provided by the embodiment, the problem that errors are prone to occur due to undersize silk-screen characters of hardware equipment in the process of manually uploading the silk-screen information is solved, the silk-screen image of the hardware is uploaded to store basic data of the hardware information after the silk-screen information is corrected, and then when the uploaded hardware information is inconsistent with the hardware information stored in the system, the problem can be further determined through the uploaded silk-screen image.
In one embodiment, the corresponding operation is executed according to the comparison result, and the silk-screen image is uploaded, wherein the step of marking the silk-screen image with the first hardware information and uploading the silk-screen image with the mark is carried out in response to the first hardware information and the second hardware information being the same. In this embodiment, since the hardware information obtained based on the silk-screen image is the same as the hardware information stored in the system, only one of the two is needed to mark the silk-screen image for filing.
In one embodiment, in response to the first hardware information being different from the second hardware information, the information input module is invoked to obtain second input information, the second input information being manually input hardware information; and marking the silk-screen image by using the second input information, and uploading the silk-screen image with the mark. In this embodiment, when the hardware information obtained based on the silk-screen image does not match the hardware information stored in the system, the hardware information needs to be manually input, and the silk-screen image is marked and uploaded by the manually input hardware information.
In one embodiment, the server hardware information management method of the present invention further includes: acquiring third input information, wherein the third input information comprises fault information of hardware; and marking the silk-screen image of the hardware by using third input information, and uploading the silk-screen image with the mark. The method in this embodiment may be combined with any of the above embodiments, for example, the silk-screen image is marked and uploaded by the first hardware information and the third input information; or marking the silk-screen image by using the second input information and the third input information and uploading. According to the embodiment, the accuracy of silk-screen proofreading can be better ensured, and the hardware equipment with the fault can be searched by inquiring the uploaded silk-screen image after the corresponding hardware fault occurs, so that the hardware fault can be quickly eliminated.
In an optional embodiment, the manner of marking the silk-screen image in each of the above embodiments is to mark the corresponding information in the silk-screen image in a watermark manner; or marking by naming the silk-screen image.
In an embodiment, a method for extracting second hardware information in a silk-screen image is shown in fig. 2, and fig. 2 is a flowchart illustrating a process of extracting hardware information in a silk-screen image according to the present invention. As shown in fig. 2, the extraction process includes: acquiring a silk-screen image; carrying out gray level conversion on the silk-screen image to obtain a gray level image and obtain a gray level histogram; using a roberts operator to carry out edge detection on the gray level image so as to determine an image adjustment range; carrying out image erosion and image expansion processing within an image adjustment range; carrying out equalization adjustment on the gray level image subjected to image corrosion and image expansion processing based on the gray level histogram; carrying out binarization on the gray level image after equalization adjustment, and carrying out median filtering processing; calling a preset script program, calculating the position of each character in the gray level image subjected to binarization and median filtering, and cutting one by one to obtain a gray level image only with a single character; sequentially comparing the single characters in each gray level image with characters in a preset character template respectively, calculating errors, and identifying the character in the character template with the minimum error with the single character as the single character to obtain second hardware information; and displaying the extracted second hardware information, and transmitting the second hardware information back to the background detection terminal for recording. In this embodiment, edge detection of a grayscale image using a roberts operator can be performed by a MATLAB call to an edge function. And the image corrosion treatment is used for removing the unnecessary edge information and only keeping the outline of the characters on the silk screen. The image dilation process is used to smooth the image contours. The preset script program can be myjimsplit.m and getword.m scripts written in advance.
The server hardware information management aims to prevent server silk-screen information uploading errors caused by human factors and assist in quickly and accurately positioning the fault. On the basis of the methods provided by the embodiments, the invention also provides a server hardware information management device, which can scan the silk screen of all hardware devices on the server, simultaneously acquire the relevant information in the BMC and BIOS chip of the server under the coordination of the NFC (near field communication) function, compare the acquired silk screen information with the BIOS and BMC information stored in the device, display the detection result on a display screen, and simultaneously transmit the relevant information back to the research and development department of the headquarter for filing processing. The server hardware information management apparatus of the present invention will be described in more detail below:
in a second aspect of the present invention, a server hardware information management apparatus is presented. FIG. 3 is a schematic structural diagram of a server hardware information management apparatus according to the present invention. As shown in fig. 3, the server hardware information management apparatus according to the present invention includes: the near field communication module 1 is configured for wireless communication to acquire first hardware information managed by a BMC (baseboard management controller) and a BIOS (basic input output system) controller of a target server; the camera module 2 is configured to acquire a silk-screen image of hardware of a target server; the processing module 3 is configured to receive the silk-screen image from the camera module and extract second hardware information in the silk-screen image; and receiving the first hardware information from the near field communication module, comparing the first hardware information with the second hardware information, and executing corresponding operation according to the comparison result. The NFC module may be the above-mentioned NFC module, or may also be a near field wireless communication module such as bluetooth.
In one embodiment, the processing module 3 is further configured to mark, in response to that the first hardware information is the same as the second hardware information, a silk-screen image corresponding to the second hardware information with the first hardware information, and upload the silk-screen image with the mark. In this embodiment, since the hardware information obtained based on the silk-screen image is the same as the hardware information stored in the system, only one of the two is needed to mark the silk-screen image for filing.
In an embodiment, the server hardware information management apparatus of the present invention further includes an information input module 3 and a display module 4, where the information input module 3 is configured to edit the first input information to name the silk-screen image with the mark, and the display module 4 is configured to display the silk-screen image with the mark. In this embodiment, when the hardware information obtained based on the silk-screen image does not match the hardware information stored in the system, the hardware information needs to be manually input, and the silk-screen image is marked and uploaded by the manually input hardware information.
In one embodiment, the processing module 3 is further configured to invoke the information input module to obtain third input information, where the third input information is fault information of the hardware; and marking the silk-screen image of the hardware by using third input information, and uploading the silk-screen image with the mark. The method in this embodiment may be combined with any of the above embodiments, for example, the silk-screen image is marked and uploaded by the first hardware information and the third input information; or marking the silk-screen image by using the second input information and the third input information and uploading. According to the embodiment, the accuracy of silk-screen proofreading can be better ensured, and the hardware equipment with the fault can be searched by inquiring the uploaded silk-screen image after the corresponding hardware fault occurs, so that the hardware fault can be quickly eliminated.
In an optional embodiment, the manner of marking the silk-screen image in each of the above embodiments is to mark the corresponding information in the silk-screen image in a watermark manner; or marking by naming the silk-screen image.
In one embodiment, an image recognition program is also preset in the processing module, and the image recognition program can recognize character information in the image; carrying out gray level conversion on the silk-screen image to obtain a gray level image and obtain a gray level histogram; using a roberts operator to carry out edge detection on the gray level image so as to determine an image adjustment range; carrying out image erosion and image expansion processing within an image adjustment range; carrying out equalization adjustment on the gray level image subjected to image corrosion and image expansion processing based on the gray level histogram; carrying out binarization on the gray level image after equalization adjustment, and carrying out median filtering processing; calling a preset script program, calculating the position of each character in the gray level image subjected to binarization and median filtering, and cutting one by one to obtain a gray level image only with a single character; sequentially comparing the single characters in each gray level image with characters in a preset character template respectively, calculating errors, and identifying the character in the character template with the minimum error with the single character as the single character to obtain second hardware information; and displaying the extracted second hardware information, and transmitting the second hardware information back to the background detection terminal for recording. In this embodiment, edge detection of a grayscale image using a roberts operator can be performed by a MATLAB call to an edge function. And the image corrosion treatment is used for removing the unnecessary edge information and only keeping the outline of the characters on the silk screen. The image dilation process is used to smooth the image contours. The preset script program can be myjimsplit.m and getword.m scripts written in advance.
As described in the foregoing embodiment, the server hardware information management apparatus of the present invention obtains each stored hardware information from the BMC controller or the BIOS controller of the target server in a wireless communication manner through the near field communication module, obtains the silk-screen image of the corresponding hardware device in the server on site through the camera, extracts the hardware information in the silk-screen image through the processing module, compares the stored hardware information with the hardware information in the silk-screen image obtained on site, performs a corresponding operation according to the comparison result, and uploads the silk-screen image for filing. By the hardware information management method provided by the embodiment, the problem that errors are easy to occur due to undersize silk-screen characters of hardware equipment in the process of manually correcting the silk-screen information is solved; and after the silk-screen information is corrected, uploading the silk-screen image of the hardware to store the basic data of the hardware information, and further determining the problem by uploading the silk-screen image when the uploaded hardware information is inconsistent with the hardware information stored in the system.
For the purpose of the application of the method of the invention in a third aspect of the invention, a readable storage medium is also disclosed. Fig. 4 is a schematic structural diagram of a readable storage medium according to the present invention. As shown in fig. 4, the readable storage medium 400 of the present invention comprises an executable computer program 401, the computer program 401 being configured to implement the steps of the method in the following embodiments when executed, the steps comprising:
step S1, acquiring first hardware information managed by a BMC controller and a BIOS controller of a target server through wireless communication; step S2, acquiring a silk-screen image of the hardware of the target server, and extracting second hardware information in the silk-screen image; and step S3, comparing the first hardware information with the second hardware information, executing corresponding operation according to the comparison result, and uploading the silk-screen image.
As in the foregoing embodiment, the server hardware information management method of the present invention, on one hand, acquires each stored hardware information from the BMC controller or the BIOS controller of the target server in a wireless communication manner, and on the other hand, acquires the silk-screen image of the corresponding hardware device in the server on site, extracts the hardware information in the silk-screen image, compares the stored hardware information with the hardware information in the silk-screen image acquired on site, further executes a corresponding operation according to the comparison result, and uploads the silk-screen image for filing. By the hardware information management method provided by the embodiment, the problem that errors are prone to occur due to undersize silk-screen characters of hardware equipment in the process of manually uploading the silk-screen information is solved, the silk-screen image of the hardware is uploaded to store basic data of the hardware information after the silk-screen information is corrected, and then when the uploaded hardware information is inconsistent with the hardware information stored in the system, the problem can be further determined through the uploaded silk-screen image.
In one embodiment, the corresponding operation is executed according to the comparison result, and the silk-screen image is uploaded, wherein the step of marking the silk-screen image with the first hardware information and uploading the silk-screen image with the mark is carried out in response to the first hardware information and the second hardware information being the same. In this embodiment, since the hardware information obtained based on the silk-screen image is the same as the hardware information stored in the system, only one of the two is needed to mark the silk-screen image for filing.
In one embodiment, in response to the first hardware information being different from the second hardware information, the information input module is invoked to obtain second input information, the second input information being manually input hardware information; and marking the silk-screen image by using the second input information, and uploading the silk-screen image with the mark. In this embodiment, when the hardware information obtained based on the silk-screen image does not match the hardware information stored in the system, the hardware information needs to be manually input, and the silk-screen image is marked and uploaded by the manually input hardware information.
In one embodiment, the server hardware information management method of the present invention further includes: acquiring third input information, wherein the third input information comprises fault information of hardware; and marking the silk-screen image of the hardware by using third input information, and uploading the silk-screen image with the mark. The method in this embodiment may be combined with any of the above embodiments, for example, the silk-screen image is marked and uploaded by the first hardware information and the third input information; or marking the silk-screen image by using the second input information and the third input information and uploading. According to the embodiment, the accuracy of silk-screen proofreading can be better ensured, and the hardware equipment with the fault can be searched by inquiring the uploaded silk-screen image after the corresponding hardware fault occurs, so that the hardware fault can be quickly eliminated.
In an optional embodiment, the manner of marking the silk-screen image in each of the above embodiments is to mark the corresponding information in the silk-screen image in a watermark manner; or marking by naming the silk-screen image.
As in the foregoing embodiment, the server hardware information management method of the present invention, on one hand, acquires each stored hardware information from the BMC controller or the BIOS controller of the target server in a wireless communication manner, and on the other hand, acquires the silk-screen image of the corresponding hardware device in the server on site, extracts the hardware information in the silk-screen image, compares the stored hardware information with the hardware information in the silk-screen image acquired on site, further executes a corresponding operation according to the comparison result, and uploads the silk-screen image for filing. By the hardware information management method provided by the embodiment, the problem that errors are prone to occur due to undersize silk-screen characters of hardware equipment in the process of manually uploading the silk-screen information is solved, the silk-screen image of the hardware is uploaded to store basic data of the hardware information after the silk-screen information is corrected, and then when the uploaded hardware information is inconsistent with the hardware information stored in the system, the problem can be further determined through the uploaded silk-screen image.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
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.
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 server hardware information management method, the method comprising:
the method comprises the steps that wireless communication is carried out to obtain first hardware information managed by a BMC controller and a BIOS controller of a target server;
acquiring a silk-screen image of the hardware of the target server, and extracting second hardware information in the silk-screen image;
and comparing the first hardware information with the second hardware information, executing corresponding operation according to a comparison result, and uploading the silk-screen image.
2. The server hardware information management method according to claim 1, wherein the executing the corresponding operation according to the comparison result and uploading the silk-screen image comprises:
and responding to the fact that the first hardware information is the same as the second hardware information, marking the silk-screen image with the first hardware information, and uploading the silk-screen image with the mark.
3. The method for managing the hardware information of the server according to claim 1, wherein the executing the corresponding operation according to the comparison result and uploading the silk-screen image comprises
Responding to the first hardware information and the second hardware information being different, calling an information input module to obtain second input information, wherein the second input information is manually input hardware information;
and marking the silk-screen image by the second input information, and uploading the silk-screen image with the mark.
4. The server hardware information management method according to claim 2 or 3, wherein the method further comprises:
acquiring third input information, wherein the third input information comprises fault information of hardware;
and marking the silk-screen image of the hardware by the third input information, and uploading the silk-screen image with the mark.
5. The method for verifying the hardware information of the server according to claim 1, wherein the extracting the second hardware information in the silk-screen image includes:
acquiring a silk-screen image;
carrying out gray level conversion on the silk-screen image to obtain a gray level image and obtain a gray level histogram;
performing edge detection on the gray-scale image by using a roberts operator to determine an image adjustment range;
carrying out image erosion and image expansion processing in the image adjustment range;
carrying out equalization adjustment on the gray level image subjected to image corrosion and image expansion processing based on the gray level histogram;
carrying out binarization on the gray level image after equalization adjustment, and carrying out median filtering processing;
calling a preset script program, calculating the position of each character in the gray level image subjected to binarization and median filtering, and cutting one by one to obtain a gray level image only with a single character;
and sequentially comparing the single character in each gray level image with the characters in a preset character template respectively, calculating errors, and identifying the character in the character template with the minimum single character error as the single character to obtain the second hardware information.
6. A server hardware information management apparatus, comprising:
the near field communication module is configured for wireless communication to acquire first hardware information managed by a BMC (baseboard management controller) and a BIOS (basic input output system) controller of a target server;
the camera module is configured to acquire a silk-screen image of hardware of the target server; and
the processing module is configured to receive a silk-screen image from the camera module and extract second hardware information in the silk-screen image; and
and receiving first hardware information from the near field communication module, comparing the first hardware information with the second hardware information, and executing corresponding operation according to a comparison result.
7. The server hardware information management apparatus of claim 6, wherein the processing module is further configured to
And in response to that the first hardware information is the same as the second hardware information, marking the silk-screen image corresponding to the second hardware information by the first hardware information, and uploading the silk-screen image with the mark.
8. The server hardware information management apparatus according to claim 7, further comprising an information input module configured to edit first input information to name the silk-screen image with the marker, and a display module configured to display the silk-screen image with the marker.
9. The server hardware information management apparatus of claim 8, wherein the processing module is further configured to
In response to that the first hardware information is different from the second hardware information, calling the information input module to obtain second input information, wherein the second input information is manually input hardware information;
and marking the silk-screen image corresponding to the second hardware information by the second input information, and uploading the silk-screen image with the mark.
10. The server hardware information management apparatus of claim 8, wherein the processing module is further configured to
Calling an information input module to obtain third input information, wherein the third input information is fault information of hardware;
and marking the silk-screen image of the hardware by the third input information, and uploading the silk-screen image with the mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111434070.4A CN114139743B (en) | 2021-11-29 | 2021-11-29 | Method and device for managing server hardware information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111434070.4A CN114139743B (en) | 2021-11-29 | 2021-11-29 | Method and device for managing server hardware information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114139743A true CN114139743A (en) | 2022-03-04 |
CN114139743B CN114139743B (en) | 2024-01-23 |
Family
ID=80388929
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111434070.4A Active CN114139743B (en) | 2021-11-29 | 2021-11-29 | Method and device for managing server hardware information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114139743B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086155A (en) * | 2018-07-27 | 2018-12-25 | 郑州云海信息技术有限公司 | Server failure localization method, device, equipment and computer readable storage medium |
CN111367764A (en) * | 2020-03-06 | 2020-07-03 | 苏州浪潮智能科技有限公司 | PCIE monitoring method, system, equipment and computer storage medium |
-
2021
- 2021-11-29 CN CN202111434070.4A patent/CN114139743B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086155A (en) * | 2018-07-27 | 2018-12-25 | 郑州云海信息技术有限公司 | Server failure localization method, device, equipment and computer readable storage medium |
CN111367764A (en) * | 2020-03-06 | 2020-07-03 | 苏州浪潮智能科技有限公司 | PCIE monitoring method, system, equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114139743B (en) | 2024-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11004234B2 (en) | Method and apparatus for annotating point cloud data | |
CN110363222B (en) | Picture labeling method and device for model training, computer equipment and storage medium | |
CN110134595B (en) | Analysis method, analysis device and computer equipment before SVN (scalable vector network) resource library test | |
CN113505781B (en) | Target detection method, target detection device, electronic equipment and readable storage medium | |
WO2021159736A1 (en) | Application compatibility test method and apparatus, and computer device | |
CN111862057A (en) | Picture labeling method and device, sensor quality detection method and electronic equipment | |
CN114386948A (en) | Recruitment information matching method, system and medium | |
CN114510536A (en) | Data verification method and device, computer equipment and storage medium | |
CN117152145B (en) | Board card process detection method and device based on image | |
CN114139743B (en) | Method and device for managing server hardware information | |
CN107844515B (en) | Data compliance checking method and device | |
CN108415886A (en) | A kind of data label error correction method and device based on production process | |
CN117115823A (en) | Tamper identification method and device, computer equipment and storage medium | |
CN110309057B (en) | Automatic script-based flow project testing method and related equipment | |
CN115564734A (en) | Product detection method, electronic equipment and storage medium | |
CN112214414B (en) | Coverage rate processing method, device, equipment and medium based on automatic test | |
CN115457585A (en) | Processing method and device for homework correction, computer equipment and readable storage medium | |
CN111310561B (en) | Vehicle configuration identification method and device | |
CN107085553B (en) | Input box testing method and device | |
CN112541910B (en) | End face gap detection method, device, equipment and medium based on deep learning | |
CN114049540B (en) | Method, device, equipment and medium for detecting annotation image based on artificial intelligence | |
CN113220488B (en) | Recording list pasting method and device based on mobile terminal | |
CN114459350B (en) | PCB board intellectual detection system | |
CN110727582B (en) | Program testing method and device, computer equipment and storage medium | |
CN114510416A (en) | Visual assertion testing method, device, system and medium |
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 | ||
GR01 | Patent grant |