CN109656542A - Smbios information checking method and system - Google Patents

Smbios information checking method and system Download PDF

Info

Publication number
CN109656542A
CN109656542A CN201811504234.4A CN201811504234A CN109656542A CN 109656542 A CN109656542 A CN 109656542A CN 201811504234 A CN201811504234 A CN 201811504234A CN 109656542 A CN109656542 A CN 109656542A
Authority
CN
China
Prior art keywords
smbios
information
field
checked
module
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
CN201811504234.4A
Other languages
Chinese (zh)
Other versions
CN109656542B (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.)
SHENZHEN YIDAO DIGITAL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN YIDAO DIGITAL 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 SHENZHEN YIDAO DIGITAL TECHNOLOGY CO LTD filed Critical SHENZHEN YIDAO DIGITAL TECHNOLOGY CO LTD
Priority to CN201811504234.4A priority Critical patent/CN109656542B/en
Publication of CN109656542A publication Critical patent/CN109656542A/en
Application granted granted Critical
Publication of CN109656542B publication Critical patent/CN109656542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

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 present invention relates to a kind of Smbios information checking methods and system, this method to include, and establishes excel table according to predetermined manner, wherein the Smbios field for needing to compare is filled in the excel table;Smbios.py script is executed, the excel table is converted into Smbios.txt text file;Pre-set commands are executed under Uefi Shell environment, the Smbios information of Smbios field and target machine in the smbios.txt text file is checked, obtain checked result;Export the checked result, compared with the existing technology, can the more simple, fast Smbios information by Smbios field and target machine check, reduce information omit and mistake, solve artificial cross-check information in the prior art be easy to cause information omit or mistake technical problem.

Description

Smbios information checking method and system
Technical field
The present invention relates to Smbios information checking method under server technology field more particularly to a kind of Uefi Shell and System.
Background technique
Currently, OEM/ODM manufacturer is after the Smbios information of write-in different clients, implementing procedure is unable to automatic checking and writes The correctness for entering information needs manually to carry out to be written the verification of result, when the customer information of write-in is excessive or same client Need to multiple types be written information difference it is little when, depend alone naked eyes compare be easy omit and it is error-prone.
It is necessary to propose that one kind is simple, easily solves artificial cross-check information to be easy to cause information omission or mistake as a result, Solution.
Summary of the invention
It is a primary object of the present invention to propose a kind of Smbios information checking method and system, it is intended to solve artificial nucleus couple Information be easy to cause the technical problem of information omission or mistake.
To achieve the above object, the present invention proposes a kind of Smbios information checking method, the described method comprises the following steps:
Excel table is established according to predetermined manner, wherein the Smbios word for needing to compare is filled in the excel table Section;
Smbios.py script is executed, the excel table is converted into Smbios.txt text file;
Pre-set commands are executed under Uefi Shell environment, by the Smbios field in the smbios.txt text file It is checked with the Smbios information of target machine, obtains checked result;
Export the checked result.
Further technical solution of the invention is, the checked result includes at least the Smbios field and whole The summary information of a checked result.
Further technical solution of the invention is, described to execute pre-set commands under Uefi Shell environment, will be described The Smbios information of Smbios field and target machine in Smbios.txt text file is checked, and checked result is obtained Include: before step
CmpSmb.efi and Smbios.txt text file is put into same catalogue under USB flash disk, booting enters Uefi Shell, Enter USB flash disk at Uefi Shell;
It is described to execute pre-set commands under Uefi Shell environment, by the Smbios in the Smbios.txt text file Field and the Smbios information of target machine are checked, obtain checked result the step of include:
Under Uefi Shell environment execute CmpSmb.efi Smbios.txt order, by the Smbios.txt text The Smbios information of Smbios field and target machine in file is checked.
Further technical solution of the invention was gone back before described the step of establishing excel table according to predetermined manner Include:
Python is installed.
To achieve the above object, the present invention also proposes a kind of Smbios information check system, and the system comprises tables to build Formwork erection block, table conversion module, information checking module and preserving module.
Wherein, the table establishes module for establishing excel table according to predetermined manner, wherein the excel table In fill in and need the Smbios field that compares;
The table conversion module executes Smbios.py script, and the excel table is converted into Smbios.txt text File;
The information checking module executes pre-set commands under Uefi Shell environment for information checking module, will be described The Smbios information of Smbios field and target machine in smbios.txt text file is checked, and checked result is obtained;
The preserving module exports the checked result for preserving module.
Further technical solution of the invention is, the checked result includes at least the Smbios field and whole The summary information of a checked result.
Further technical solution of the invention be further include that file is put into module, the file be put into module for will CmpSmb.efi and Smbios.txt text file is put into same catalogue under USB flash disk, and booting enters Uefi Shell, in Uefi Enter USB flash disk under Shell.
Further technical solution of the invention be further include installation module for installing python.
The beneficial effects of the present invention are: Smbios information checking method of the present invention and system are through the above technical solutions, press Excel table is established according to predetermined manner, wherein the Smbios field for needing to compare is filled in the excel table;It executes The excel table is converted into Smbios.txt text file by Smbios.py script;It is executed under Uefi Shell environment The Smbios information of Smbios field and target machine in the smbios.txt text file is carried out core by pre-set commands It is right, obtain checked result;The checked result is exported, it compared with the existing technology, can be more simple, fast by Smbios field It is checked with the Smbios information of target machine, reduces information omission and mistake, solve artificial nucleus couple in the prior art Information be easy to cause the technical problem of information omission or mistake.
Detailed description of the invention
Fig. 1 is the flow diagram of Smbios information checking method of the present invention;
Fig. 2 is the schematic diagram that excel table is filled in reference to the format of Rweverthing software.
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.
Specific embodiment
It should be appreciated that specific embodiment described herein is only a part of the embodiment of the present invention, it is not used to limit The present invention.Based on the embodiments of the present invention, the derivative every other embodiment without Creative Design, belongs to this hair The range of bright protection.
In view of currently, OEM/ODM manufacturer is after the Smbios information of write-in different clients, implementing procedure cannot be automatic The correctness of verification write-in information, needs manually to carry out to be written the verification of result, when the customer information of write-in is excessive or same A client need to multiple types be written information difference it is little when, depend alone naked eyes compare be easy omit and it is error-prone, as a result, this Invention proposes a solution.
The Smbios field that the technical solution mainly used through the invention can need to check with unrestricted choice, implementing procedure Automatically the Smbios information for including in text is checked with target machine, and exports and saves detailed checked result, thus Information omission and mistake is greatly decreased.
Specifically, please referring to Fig. 1 to Fig. 2, Fig. 1 is the flow diagram of Smbios information checking method of the present invention;Fig. 2 is The schematic diagram of excel table is filled in reference to the format of Rweverthing software.
As shown in Figure 1, Smbios information checking method of the present invention the following steps are included:
Step S10 establishes excel table according to predetermined manner, wherein fills in what needs compared in the excel table Smbios field.
When it is implemented, being referred to table 1 establishes excel table.
Table 1
It should be noted that last in table 1 arranges the Smbios field for as needing to check, first row compare type (y/n) field represents whether all items for comparing the row, and handle is required item.Compare (y/n), which arranges expression, below is No comparison is y immediately following item behind, such as compare (y/n) of Vendor fronts, and expression needs to compare this.compare It can just execute and compare when type (y/n) and all compare (y/n) field are and if only if filling in ' Y ' or ' y ', otherwise without exception It is considered as and is not required to compare.
In addition, going out to need to fill in outside the item of character string in table 1, remaining fills in 16 binary values, can specifically refer to The format of Rweverthing software fills in (as shown in Figure 2).
As shown in Fig. 2, the Xiang Jun of all numerical value fills out 16 binary values of this, as Bios Rom Size should refer to The format of Rweverthing fills out 0x1F or 1F, can not fill out 2048KB.If the item of character string type, is accurately filled in, can not have Redundant character (space, tab etc.).
In addition, the UUID item of type1 and Boot Status of type32 should refer to Rweverthing and fill in table 1, But need 16 system prompts " 0x " removes, and can not have space between number.
Filling in for type11 and type12 should be noted in table 1:
A. the two type entirely type can only compare or not compare;
B. each character string needs in order and then to insert after Count, as shown in table 2.
compare type(y/n) type Handle count
11 2 Default string1 Default string2
Table 2
There is the case where multiple handle for a type, need voluntarily to add behind table:
The row (two rows, behavior mark, a behavior value) for replicating corresponding type, is added last in table.
Step S20 executes Smbios.py script, the excel table is converted into Smbios.txt text file.
It should be noted that as an implementation, the present invention can be in advance in system before above-mentioned steps S10 Python2.7.13 running environment is installed.When it is implemented, can be in the official website python (https: //www.python.org/ Downloads/release/python-2713/ corresponding version) is downloaded.
Python2.7.13 is installed, needs to decompress the Lib mesh under xlrd-1.0.0.tar.gz to python installation directory Under record, as Python27 Lib xlrd-1.0.0 executes setup.py from command interface Jin Ru Lib xlrd-1.0.0 catalogue Install can voluntarily install xlrd module, i.e. executable python script after being installed.
Step S30 executes pre-set commands under Uefi Shell environment, will be in the Smbios.txt text file Smbios field and the Smbios information of target machine are checked, and checked result is obtained.
Wherein, the checked result includes at least the summary information of the Smbios field and entire checked result.
Step S40 exports the checked result.
It is understood that as an implementation, before above-mentioned steps S30 can by CmpSmb.efi and Smbios.txt text file is put into same catalogue under USB flash disk, and booting enters Uefi Shell, and USB flash disk is entered at Uefi Shell, Then under Uefi Shell environment execute CmpSmb.efi Smbios.txt order, by the Smbios.txt text file In Smbios field and the Smbios information of target machine checked, then on the screen by checked result output.
It as another embodiment, can be by CmpSmb.efi and Smbios.txt text before above-mentioned steps S30 File is put into same catalogue under USB flash disk, and booting enters Uefi Shell, USB flash disk is entered at Uefi Shell, then in Uefi Under Shell environment execute CmpSmb.efi Smbios.txt > xxx.txt order, will be in the Smbios.txt text file Smbios field and the Smbios information of target machine are checked, then on the screen by checked result output, and are saved In xxx.txt.
Wherein, the checked 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 checked result is consistent, and different indicates inconsistent, and user skip indicates this summary Cross (compare (y/n) i.e. before this is not ' Y ' or ' y '.Remaining mistake can all have corresponding output information, each The checked result of type handle has a summarized results, such as above:
Type=0Handle=0has 9same items, 0different items, 2skip items
The checked result of all type handle, which finally also has, to summarize, such as above:
The file has 1same structures, 0different structures, 0skip structures
If all items by verification are all equal, can finally export:
All structures are equal, no error happen
In conclusion Smbios information checking method of the present invention according to predetermined manner through the above technical solutions, establish Excel table, wherein the Smbios field for needing to compare is filled in the excel table;Smbios.py script is executed, by institute It states excel table and is converted into Smbios.txt text file;Pre-set commands are executed under Uefi Shell environment, it will be described The Smbios information of Smbios field and target machine in smbios.txt text file is checked, and checked result is obtained; The checked result is exported, it compared with the existing technology, can be more simple, fast by Smbios field and target machine Smbios information is checked, and reduces information omission and mistake, solves artificial cross-check information in the prior art and be easy to cause Information is omitted or the technical problem of mistake.
To achieve the above object, the present invention also proposes a kind of Smbios information check system.
Smbios information check system proposed by the present invention includes that table establishes module, table conversion module, information verification Module and preserving module, wherein
The table establishes module for establishing excel table according to predetermined manner, wherein fills out in the excel table Write the Smbios field for needing to compare;
The table conversion module executes Smbios.py script, and the excel table is converted into Smbios.txt text File;
The information checking module executes pre-set commands under Uefi Shell environment for information checking module, will be described The Smbios information of Smbios field and target machine in smbios.txt text file is checked, and checked result is obtained;
The preserving module exports the checked result for preserving module.
Wherein, the checked result includes at least the summary information of the Smbios field and entire checked result.
Further, Smbios information check system of the present invention further includes that file is put into module, and the file is put into module For CmpSmb.efi and Smbios.txt text file to be put into same catalogue under USB flash disk, booting enters Uefi Shell, Enter USB flash disk under Uefi Shell.
Further, Smbios information check system of the present invention further includes the installation module for installing python.
Smbios information check system of the present invention through the above technical solutions, establish excel table according to predetermined manner, In, the Smbios field for needing to compare is filled in the excel table;Smbios.py script is executed, by the excel table It is converted into Smbios.txt text file;Pre-set commands are executed under Uefi Shell environment, by the smbios.txt text The Smbios information of Smbios field and target machine in file is checked, and checked result is obtained;Export the verification knot Smbios field and the Smbios information of target machine more simple, fast can be carried out core compared with the existing technology by fruit It is right, reduce information omit and mistake, solve artificial cross-check information in the prior art be easy to cause information omit or mistake Technical problem.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure made by description of the invention and accompanying drawing content or process transformation, are applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of Smbios information checking method, which is characterized in that the described method comprises the following steps:
Excel table is established according to predetermined manner, wherein the Smbios field for needing to compare is filled in the excel table;
Smbios.py script is executed, the excel table is converted into Smbios.txt text file;
Pre-set commands are executed under Uefi Shell environment, by the Smbios field and mesh in the smbios.txt text file The Smbios information of mark machine is checked, and checked result is obtained;
Export the checked result.
2. Smbios information checking method according to claim 1, which is characterized in that the checked result includes at least institute State the summary information of Smbios field and entire checked result.
3. Smbios information checking method according to claim 2, which is characterized in that described under Uefi Shell environment Pre-set commands are executed, the Smbios information of Smbios field and target machine in the Smbios.txt text file is carried out Include: before the step of verification, acquisition checked result
CmpSmb.efi and Smbios.txt text file is put into same catalogue under USB flash disk, booting enters Uefi Shell, Enter USB flash disk under Uefi Shell;
It is described to execute pre-set commands under Uefi Shell environment, by the Smbios field in the Smbios.txt text file Checked with the Smbios information of target machine, obtain checked result the step of include:
Under Uefi Shell environment execute CmpSmb.efi Smbios.txt order, by the Smbios.txt text file In Smbios field and the Smbios information of target machine checked.
4. Smbios information checking method according to claim 1, which is characterized in that described to be established according to predetermined manner Before the step of excel table further include:
Python is installed.
5. a kind of Smbios information check system, which is characterized in that the system comprises tables to establish module, table modulus of conversion Block, information checking module and preserving module, wherein
The table establishes module for establishing excel table according to predetermined manner, wherein filling in the excel table needs The Smbios field to be compared;
The table conversion module executes Smbios.py script, and the excel table is converted into Smbios.txt text text Part;
The information checking module executes pre-set commands under Uefi Shell environment for information checking module, will be described The Smbios information of Smbios field and target machine in smbios.txt text file is checked, and checked result is obtained;
The preserving module exports the checked result for preserving module.
6. Smbios information check system according to claim 5, which is characterized in that the checked result includes at least institute State the summary information of Smbios field and entire checked result.
7. Smbios information check system according to claim 6, which is characterized in that it further include that file is put into module, institute It states file and is put into module for CmpSmb.efi and Smbios.txt text file to be put into same catalogue under USB flash disk, booting enters Uefi Shell enters USB flash disk at Uefi Shell.
8. Smbios information check system according to claim 5, which is characterized in that further include the peace for installing python Die-filling piece.
CN201811504234.4A 2018-12-10 2018-12-10 Smbios information checking method and system Active CN109656542B (en)

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 true CN109656542A (en) 2019-04-19
CN109656542B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
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 (5)

* Cited by examiner, † Cited by third party
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
US20150261520A1 (en) * 2014-03-12 2015-09-17 Wistron Corporation Basic input/output system updating method and computer readable storage medium
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20150261520A1 (en) * 2014-03-12 2015-09-17 Wistron Corporation Basic input/output system updating method and computer readable storage medium
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

Cited By (1)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN109656542B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN107171833B (en) Method for realizing batch upgrading of BMC and BIOS of server through BMC
US9507604B2 (en) Boot method and boot system
CN103746833B (en) PXE-based RAID automatic configuration method and system
CN112256558B (en) Test case generation method and device, computer equipment and storage medium
US8489922B2 (en) Networked recovery system
US9880862B2 (en) Method and system for verifying proper operation of a computing device after a system change
CN106415480B (en) High-speed application for installation on a mobile device for enabling remote configuration of the mobile device
US9858067B2 (en) Electronic system with update control mechanism and method of operation thereof
US20180121339A1 (en) System and Method for Testing Behavior of Web Application Software
CN107526593B (en) BMC function customizing method based on dynamic link library
CN113434202B (en) Device starting method and device, electronic device and computer storage medium
TW202030602A (en) The method and system of bios recovery and update
CN107301070A (en) A kind of upgrade method and terminal
CN105487859A (en) Template based WEB deployment method for big data components
CN105677409B (en) A kind of method for upgrading system and device
CN111176665B (en) High-capacity emmc mirror image manufacturing method and device
CN109656542A (en) Smbios information checking method and system
US9778936B1 (en) Booting a computing system into a manufacturing mode
CN116028084A (en) Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform
US20240045733A1 (en) Method and apparatus for deploying deep learning system
US20190095219A1 (en) Method for intel platform detection of parameters in flash rom
CN110990260B (en) Automatic verification method and system for Extended APIC option function
WO2016127587A1 (en) Software version updating method and apparatus
CN112667444A (en) System upgrading method, storage medium and terminal equipment
US11231940B2 (en) System and method for automatic recovery of information handling systems

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