CN109656542B - Smbios information checking method and system - Google Patents
Smbios information checking method and system Download PDFInfo
- Publication number
- CN109656542B CN109656542B CN201811504234.4A CN201811504234A CN109656542B CN 109656542 B CN109656542 B CN 109656542B CN 201811504234 A CN201811504234 A CN 201811504234A CN 109656542 B CN109656542 B CN 109656542B
- Authority
- CN
- China
- Prior art keywords
- smbios
- information
- checking
- module
- txt
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a Smbios information checking method and a system, wherein the method comprises the steps of establishing an excel form according to a preset mode, wherein Smbios fields needing to be compared are filled in the excel form; executing a Smbios. Executing a preset command in a Uefi Shell environment, and checking a Smbios field in the Smbios. txt text file with Smbios information of a target machine to obtain a checking result; compared with the prior art, the verification result is output, the Smbios field and the Smbios information of the target machine can be verified more conveniently and quickly, information omission and errors are reduced, and the technical problem that information omission or errors are easily caused by manual information verification in the prior art is solved.
Description
Technical Field
The invention relates to the technical field of servers, in particular to a method and a system for Smbios information checking under Uefi Shell.
Background
At present, after writing Smbios information of different customers, an OEM/ODM manufacturer cannot automatically check the correctness of the written information by a tool program, the checking of the written result needs to be carried out manually, and when the written customer information is too much or the information written by the same customer to a plurality of models is not very different, the comparison is easy to miss and make mistakes by naked eyes.
Therefore, a simple and convenient solution for solving the problem that information omission or errors are easily caused by manually checking information is needed.
Disclosure of Invention
The invention mainly aims to provide a Smbios information checking method and a Smbios information checking system, and aims to solve the technical problem that information omission or errors are easily caused by manual information checking.
In order to achieve the above object, the present invention provides a method for collating Smbios information, the method including the steps of:
establishing an excel form according to a preset mode, wherein Smbios fields needing comparison are filled in the excel form;
executing a Smbios.
Executing a preset command in a Uefi Shell environment, and checking a Smbios field in the Smbios. txt text file with Smbios information of a target machine to obtain a checking result;
and outputting the checking result.
A further technical solution of the present invention is that the verification result at least includes the Smbios field and summary information of the entire verification result.
A further technical solution of the present invention is that the step of executing a preset command in a Uefi Shell environment, and checking a Smbios field in the Smbios.
Placing the CmpSab.efi and Smbios.txt text files into the same directory under the USB flash disk, starting the USB flash disk to enter a Uefi Shell, and entering the USB flash disk under the Uefi Shell;
the step of executing a preset command in a Uefi Shell environment, checking a Smbios field in the Smbios. txt text file with Smbios information of a target machine, and obtaining a checking result comprises the following steps:
and executing a CmpSb \ Efi \ Smbios.txt command in a Uefi Shell environment, and checking a Smbios field in the Smbios.txt text file with Smbios information of a target machine.
A further technical solution of the present invention is that the step of establishing an excel table according to a preset manner further comprises:
install python.
In order to achieve the above object, the present invention further provides a Smbios information checking system, which includes a table creating module, a table converting module, an information checking module, and a storing module.
The table establishing module is used for establishing an excel table according to a preset mode, wherein Smbios fields needing to be compared are filled in the excel table;
the form conversion module executes a Smbios.
The information checking module is used for executing a preset command by the information checking module in a Uefi Shell environment, checking a Smbios field in the Smbios.
The storage module is used for outputting the checking result by the storage module.
A further technical solution of the present invention is that the verification result at least includes the Smbios field and summary information of the entire verification result.
The file loading module is used for loading CmpSab.efi and Smbios.txt text files into the same directory under the USB flash disk, starting the USB flash disk, entering the Uefi Shell, and entering the USB flash disk under the Uefi Shell.
The invention further adopts the technical scheme that the installation module is used for installing python.
The invention has the beneficial effects that: according to the Smbios information checking method and the system, an excel form is established according to a preset mode through the technical scheme, wherein Smbios fields needing to be compared are filled in the excel form; executing a Smbios. Executing a preset command in a Uefi Shell environment, and checking a Smbios field in the Smbios. txt text file with Smbios information of a target machine to obtain a checking result; compared with the prior art, the verification result is output, the Smbios field and the Smbios information of the target machine can be verified more conveniently and quickly, information omission and errors are reduced, and the technical problem that information omission or errors are easily caused by manual information verification in the prior art is solved.
Drawings
FIG. 1 is a schematic flow chart of a Smbios information checking method according to the present invention;
fig. 2 is a schematic diagram of filling out an excel form with reference to the format of rweverting software.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are only some examples of the invention and are not intended to limit the invention. All other embodiments derived from the embodiments of the present invention without inventive design fall within the scope of protection of the present invention.
Considering that at present, after writing Smbios information of different customers, a tool program of an OEM/ODM manufacturer cannot automatically check the correctness of the written information, the checking of the written result needs to be performed manually, and when the written customer information is too much or the information written by the same customer to a plurality of models is not very different, the comparison is easy to miss and make mistakes by naked eyes, so that the invention provides a solution.
The Smbios field needing to be checked can be freely selected through the technical scheme mainly adopted by the invention, the Smbios information contained in the text is automatically checked with the target machine by the tool program, and the detailed checking result is output and stored, so that the information omission and errors are greatly reduced.
Specifically, referring to fig. 1 to 2, fig. 1 is a schematic flow chart of the Smbios information checking method of the present invention; fig. 2 is a schematic diagram of filling out an excel form with reference to the format of rweverting software.
As shown in fig. 1, the method for collating Smbios information according to the present invention includes the steps of:
step S10, establishing an excel form according to a preset mode, wherein Smbios fields needing to be compared are filled in the excel form.
In specific implementation, the excel table can be established by referring to table 1.
TABLE 1
It should be noted that the last column in table 1 is the Smbios field that needs to be checked, the column of match type (y/n) in the first column indicates whether all the entries in the row need to be compared, and handle is a mandatory entry. The following match (y/n) column indicates whether the item immediately following it is compared, e.g., the match (y/n) preceding the Vendor item is y, indicating that the item needs to be compared. compare type (Y/n) and all compare (Y/n) fields perform comparisons if and only if 'Y' or 'Y' is filled in, otherwise they are considered not to be needed.
In addition, in table 1, except for the items that need to be filled in the character string, the other items are all filled in 16-system numerical values, which may be filled in by referring to the format of rweverting software (as shown in fig. 2).
As shown in FIG. 2, where the entries are numeric values that all fill the 16-ary value of the entry, for example, the Bios Rom Size shall be written in the format of Rweverthing as 0x1F or 1F, and not in 2048 KB. If the character string type item is the correct filling, redundant characters (blank space, tab characters and the like) cannot exist.
In addition, the UUID entry of type1 and the Boot Status entry of type32 in table 1 should be filled in with reference to rweverting, but the 16-ary prompt "0 x" needs to be removed and no space between the numbers is available.
Note that the filling of type11 and type12 in Table 1 requires:
a. these two types can only be compared for the entire type or not;
b. the individual strings need to be filled in sequentially next to the Count entry as shown in table 2.
compare type(y/n) | type | Handle | count | ||
11 | 2 | Default string1 | Default string2 |
TABLE 2
For the case of multiple handles for a type, it is necessary to add itself after the table:
the row corresponding to type (two rows, one being the identity and one being the value) is copied and added at the end of the table.
And step S20, executing a Smbios. py script and converting the excel form into a Smbios. txt text file.
It should be noted that, as an embodiment, the python2.7.13 operating environment may be installed on the system in advance before the step S10. In particular, the corresponding version can be downloaded in python (https:// www.python.org/downloads/release/python-2713 /).
After the Python2.7.13 is installed, the xlrd-1.0.0.tar.gz is required to be decompressed to the Lib directory under the Python installation directory, such as Python27\ Lib \ xlrd-1.0.0, the Lib \ xlrd-1.0.0 directory is entered from the command interface, the xlrd module is installed by itself when the setup.
And step S30, executing a preset command in a Uefi Shell environment, and checking the Smbios field in the Smbios.
Wherein the collation result includes at least the Smbios field and summary information of the entire collation result.
Step S40, outputting the result of the check.
It is understood that, as an embodiment, before the step S30, the cmpsmb.efi and the smbios.txt text file may be put into the same directory under the usb disk, the usb disk is booted into the Uefi Shell, the usb disk is booted under the Uefi Shell, then the cmpsmb.efi \ smbios.txt command is executed under the Uefi Shell environment, the Smbios field in the smbios.txt text file is checked with the Smbios information of the target machine, and the check result is output on the screen.
As another embodiment, before the step S30, the cmpsmb.efi and the smbios.txt text files may be put into the same directory under the usb disk, the usb disk is booted into the Uefi Shell, the usb disk is booted under the Uefi Shell, then the cmpsmb.efi \ smbios.txt > xxx.txt command is executed under the Uefi Shell environment, the Smbios field in the smbios.txt text file is checked with the Smbios information of the target machine, and the check result is output on the screen and stored in xxx.txt.
Wherein the checking result is as follows:
Compare Type=0Handle=0start!!!
Offset=4Name=Vendor:the same
Offset=5Name=BIOS Version:the same
Offset=8Name=BIOS Release Date:the same
Offset=6Name=BIOS Starting Address Segment:the same
Offset=9Name=BIOS ROM Size:the same
Offset=a Name=BIOS Characteristics:User Skip
Offset=12Name=BIOS Characteristics Extension Bytes:User Skip
Offset=14Name=System BIOS Major Release:the same
Offset=15Name=System BIOS Minor Release:the same
Offset=16Name=Embedded Controller Firmware Major Release:the same
Offset=17Name=Embedded Controller Firmware Minor Release:the same
Type=0Handle=0has 9same items,0different items,2skip items
The file has 1same structures,0different structures,0skip structures
All structures are equal,no error happen
wherein, the same indicates that the check results are consistent, the differential indicates that they are inconsistent, and the user skip indicates that the item is skipped over (i.e. the component (Y/n) before the item is not 'Y' or 'Y'.
Type=0Handle=0has 9same items,0different items,2skip items
The results of all type handles checks will also end up as above:
The file has 1same structures,0different structures,0skip structures
if all checked terms are equal, the following output is finally output:
All structures are equal,no error happen
in summary, according to the Smbios information checking method, an excel form is established according to the above technical scheme in a preset manner, wherein the excel form is filled with Smbios fields to be compared; executing a Smbios. Executing a preset command in a Uefi Shell environment, and checking a Smbios field in the Smbios. txt text file with Smbios information of a target machine to obtain a checking result; compared with the prior art, the verification result is output, the Smbios field and the Smbios information of the target machine can be verified more conveniently and quickly, information omission and errors are reduced, and the technical problem that information omission or errors are easily caused by manual information verification in the prior art is solved.
In order to achieve the purpose, the invention also provides a Smbios information checking system.
The Smbios information checking system provided by the invention comprises a form establishing module, a form converting module, an information checking module and a storing module, wherein,
the table establishing module is used for establishing an excel table according to a preset mode, wherein Smbios fields needing to be compared are filled in the excel table;
the form conversion module executes a Smbios.
The information checking module is used for executing a preset command by the information checking module in a Uefi Shell environment, checking a Smbios field in the Smbios.
The storage module is used for outputting the checking result by the storage module.
Wherein the collation result includes at least the Smbios field and summary information of the entire collation result.
Furthermore, the Smbios information checking system further comprises a file putting module, wherein the file putting module is used for putting the CmpSab.
Further, the Smbios information verification system of the present invention further includes an installation module for installing python.
The Smbios information checking system establishes an excel form according to a preset mode through the technical scheme, wherein Smbios fields needing to be compared are filled in the excel form; executing a Smbios. Executing a preset command in a Uefi Shell environment, and checking a Smbios field in the Smbios. txt text file with Smbios information of a target machine to obtain a checking result; compared with the prior art, the verification result is output, the Smbios field and the Smbios information of the target machine can be verified more conveniently and quickly, information omission and errors are reduced, and the technical problem that information omission or errors are easily caused by manual information verification in the prior art is solved.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.
Claims (6)
1. A method for collating Smbios information, comprising the steps of:
establishing an excel form according to a preset mode, wherein Smbios fields needing comparison are filled in the excel form;
executing a Smbios.
Putting the CmpSab.efi and the Smbios.txt text file into the same directory under the USB flash disk, starting the USB flash disk, entering a Uefi Shell, and entering the USB flash disk under the Uefi Shell;
executing a preset command in the Uefi Shell environment, and checking a Smbios field in the Smbios text file with Smbios information of a target machine to obtain a checking result, wherein the preset command comprises a CmpSki.
And outputting the checking result.
2. The Smbios information collation method according to claim 1, wherein the collation result includes at least the Smbios field and summary information of the entire collation result.
3. A Smbios information verification method according to claim 1, wherein said step of establishing an excel table in a preset manner further comprises:
install python.
4. A Smbios information checking system, characterized in that the system comprises a form establishing module, a form converting module, a file putting module, an information checking module, and a storing module, wherein,
the table establishing module is used for establishing an excel table according to a preset mode, wherein Smbios fields needing to be compared are filled in the excel table;
the form conversion module executes a Smbios.
The file putting module is used for putting CmpSab.efi and the Smbios.txt text file into the same directory under a USB flash disk, starting the USB flash disk to enter a Uefi Shell, and entering the USB flash disk under the Uefi Shell;
the information checking module is used for the information checking module to execute a preset command in a Uefi Shell environment, checking a Smbios field in the Smbios.txt text file with Smbios information of a target machine to obtain a checking result, wherein the preset command comprises a Cmpmb.efi \ Smbios.txt command or the Cmpmb.efi \ Smbios.txt > xxx.txt command;
the storage module is used for outputting the checking result by the storage module.
5. The Smbios information collation system according to claim 4, wherein the collation result includes at least the Smbios field and summary information of the entire collation result.
6. The Smbios information collation system according to claim 4, further comprising an installation module for installing python.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811504234.4A CN109656542B (en) | 2018-12-10 | 2018-12-10 | Smbios information checking method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811504234.4A CN109656542B (en) | 2018-12-10 | 2018-12-10 | Smbios information checking method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109656542A CN109656542A (en) | 2019-04-19 |
CN109656542B true CN109656542B (en) | 2022-01-14 |
Family
ID=66113569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811504234.4A Active CN109656542B (en) | 2018-12-10 | 2018-12-10 | Smbios information checking method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109656542B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143434A (en) * | 2019-12-19 | 2020-05-12 | 深圳壹账通智能科技有限公司 | Intelligent data checking method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992645A (en) * | 2005-12-30 | 2007-07-04 | 华为技术有限公司 | Edition matching inspection method and apparatus thereof |
CN101655810A (en) * | 2008-08-19 | 2010-02-24 | 英业达股份有限公司 | Method for verifying data |
CN107133145A (en) * | 2017-05-02 | 2017-09-05 | 郑州云海信息技术有限公司 | A kind of DMI information test script programs based under linux |
CN108572895A (en) * | 2018-04-02 | 2018-09-25 | 郑州云海信息技术有限公司 | Automatically the stability test method of software and hardware configuration is checked under a kind of Linux |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI520066B (en) * | 2014-03-12 | 2016-02-01 | 緯創資通股份有限公司 | Basic input/output system updating method and computer readable storage medium |
-
2018
- 2018-12-10 CN CN201811504234.4A patent/CN109656542B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992645A (en) * | 2005-12-30 | 2007-07-04 | 华为技术有限公司 | Edition matching inspection method and apparatus thereof |
CN101655810A (en) * | 2008-08-19 | 2010-02-24 | 英业达股份有限公司 | Method for verifying data |
CN107133145A (en) * | 2017-05-02 | 2017-09-05 | 郑州云海信息技术有限公司 | A kind of DMI information test script programs based under linux |
CN108572895A (en) * | 2018-04-02 | 2018-09-25 | 郑州云海信息技术有限公司 | Automatically the stability test method of software and hardware configuration is checked under a kind of Linux |
Also Published As
Publication number | Publication date |
---|---|
CN109656542A (en) | 2019-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103677947B (en) | Equipment dual system based on linux protection and upgrade method | |
US8423991B2 (en) | Embedded network device and firmware upgrading method | |
CN105760200A (en) | Terminal device and system updating method thereof | |
US20110320794A1 (en) | Flash System And Method For Updating The Flash System | |
CN106775610B (en) | Electronic equipment starting method and electronic equipment | |
CN107301070A (en) | A kind of upgrade method and terminal | |
CN102520948A (en) | Application program maintenance and update method and device | |
US20160170735A1 (en) | Operating system updating method by using a checklist | |
CN111475192B (en) | Method, device, storage medium and system for performing thermal augmentation on game server | |
CN109977008B (en) | Method and terminal for making JS code depended on by application program compatible with native library | |
CN109656542B (en) | Smbios information checking method and system | |
WO2016062146A1 (en) | Serial number information update method, device and terminal | |
CN106776105B (en) | System startup file checking and compiling method | |
CN111104155A (en) | Database script management platform and method, electronic equipment and storage medium | |
CN106874195A (en) | A kind of bug for android applications repairs and continues delivery scheme | |
CN115098139A (en) | Firmware updating method and system, lower computer and storage medium | |
CN107729043B (en) | Method and device for checking increment upgrade package and computer readable storage medium | |
CN105677409A (en) | System upgrading method and device | |
CN106445737B (en) | Multi-backup starting method | |
CN113064646A (en) | BIOS starting method, system and related device | |
CN114625399A (en) | System upgrading method and related device, equipment and storage medium | |
CN116028084A (en) | Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform | |
US20170003958A1 (en) | Non-transitory computer-readable recording medium, information processing device, and information processing method | |
CN103685471A (en) | Method and system for updating software client sides in monopoly mode | |
US9891903B2 (en) | Software verification system and methods |
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 | ||
CB02 | Change of applicant information |
Address after: 901, building 1, No. 9, Jinxiu Middle Road, Laokeng community, Longtian street, Pingshan District, Shenzhen City, Guangdong Province Applicant after: EMDOOR DIGITAL TECHNOLOGY Co.,Ltd. Address before: 518000 6fc, 402, 4th floor, 816, 8th floor, No. 49-1, Dabao Road, Baocheng 28, Xin'an street, Bao'an District, Shenzhen, Guangdong Applicant before: EMDOOR DIGITAL TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |