CN107133145A - A kind of DMI information test script programs based under linux - Google Patents
A kind of DMI information test script programs based under linux Download PDFInfo
- Publication number
- CN107133145A CN107133145A CN201710301674.9A CN201710301674A CN107133145A CN 107133145 A CN107133145 A CN 107133145A CN 201710301674 A CN201710301674 A CN 201710301674A CN 107133145 A CN107133145 A CN 107133145A
- Authority
- CN
- China
- Prior art keywords
- information
- dmi
- consistent
- check
- fru
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The present invention relates to a kind of DMI information test script programs based under linux, it is characterised in that:Comprise the following steps:Step 1:Definition statement variable, deposits three kinds of information respectively;Step 2:File is set up, and DMI and FRU information is printed under this document folder respectively;Step 3:FRU and DMI information is respectively defined in the variable of step 1 and is easy to call;Step 4:According to incoming parameter, judge whether the information of the parameter is correct;Step 5:Information system information is read at FRU and DMI two respectively, and is printed upon screen respectively, whether test process is directly viewable context information consistent, continues to check other specification information or release program if consistent, otherwise goes to step 6;Step 6:The parameter information for not meeting program is reported an error.
Description
Technical field
The invention belongs to computerized information detection technique field, and in particular to a kind of DMI information test based under linux
Shell script.
Background technology
DMI (Desktop Management Interface) is just to aid in collecting the management system of computer system information,
The collection of DMI information must strictly in accordance with SMBIOS (System Management BIOS) specification on the premise of carry out.
SMBIOS is that mainboard or system manufacturer show the unified standard followed needed for management of product information in a standard format.SMBIOS and
DMI is the open technical bid drafted by industry Steering Body Desktop Management Task Force (DMTF)
The design of standard, wherein DMI is applied to any platform and operating system.
DMI act as the role of the interface of management tool and system layer, it establish standard can management system more
Facilitate the understanding of manufacturer computer and user to system.DMI chief component is Management Information
Format (MIF) database, this database includes all about computer system and the information of accessory.Pass through DMI, user
Sequence number, manufacturer computer, Serial Port Information and other system accessories information can be obtained.
Dmidecode effect is, by the information decoding in DMI databases, to be shown with readable text mode.Due to DMI
Information can be taking human as modification, therefore the information of the inside is not necessarily the accurate information of system;Therefore needed in test process strict
Compare DMI type informations.
All information are printed in the prior art(Information much needs to browse)And compared one by one according to TYPE types,
Part needs and FRU information contrasts, and manual test process is very cumbersome, and time-consuming easily error occurs.This is prior art
Weak point.
Therefore, pin is tested there is provided a kind of DMI information based under linux is designed for drawbacks described above of the prior art
This program.
The content of the invention
It is an object of the present invention in view of the above-mentioned drawbacks of the prior art, provide design based on the DMI under linux
Information test script program, to solve above-mentioned technical problem.
To achieve the above object, the present invention provides following technical scheme:
A kind of DMI information test script programs based under linux, it is characterised in that:Comprise the following steps:
Step 1:Definition statement variable, be respectively:
SMBIOS catalogues
FRU catalogues
TYPE type of directory
Three kinds of information are deposited respectively;
Step 2:File is set up, and DMI and FRU information is printed under this document folder respectively;
Step 3:FRU and DMI information is respectively defined in the variable of step 1 and is easy to call;
Step 4:According to incoming parameter, judge whether the information of the parameter is correct;
Step 5:Information system information is read at FRU and DMI two respectively, and is printed upon screen respectively, test process is directly looked into
See whether context information is consistent, continue to check other specification information or release program if consistent, otherwise go to step 6;
Step 6:The parameter information for not meeting program is reported an error.
Preferably, after described step 5, comprising the following steps:
Step 5.1:Check version information and date created.
Step 5.2:Mainboard information being read from two documents respectively and being printed respectively, test process is directly viewable to be believed up and down
Whether breath is consistent, continues to check other specification information or release program if consistent, otherwise goes to step 6.
Step 5.3:Chassis informations are obtained from two documents respectively, and are printed upon screen, above and below test process is directly viewable
Whether information is consistent, continues to check other specification information or release program if consistent, otherwise goes to step 6.
Step 5.4:CPU information is extracted, cache size is checked, checks that internal memory supports quantity;The CPU information of extraction can be wrapped
Include but be not limited to kernel, version, information of voltage.
Step 5.5:Check the information of memory information, including but not limited to capacity, frequency, type and actual storage amount.
The beneficial effects of the present invention are tested by being integrated in extraction useful information in script, save manpower thing
Power.In addition, design principle of the present invention is reliable, and it is simple in construction, with application prospect widely.
As can be seen here, the present invention compared with prior art, improves with prominent substantive distinguishing features and significantly, and it is implemented
Beneficial effect be also obvious.
Embodiment
Below by specific embodiment, the present invention will be described in detail, and following examples are explanation of the invention, and
The invention is not limited in implementation below.
The present invention provides a kind of DMI information test script programs based under linux, it is characterised in that:Including following step
Suddenly:
Step 1:Definition statement variable, be respectively:
SMBIOS catalogues
FRU catalogues
TYPE type of directory
Three kinds of information are deposited respectively;
Step 2:File is set up, and DMI and FRU information is printed under this document folder respectively;
Step 3:FRU and DMI information is respectively defined in the variable of step 1 and is easy to call;
Step 4:According to incoming parameter, judge whether the information of the parameter is correct;
Step 5:Information system information is read at FRU and DMI two respectively, and is printed upon screen respectively, test process is directly looked into
See whether context information is consistent, continue to check other specification information or release program if consistent, otherwise go to step 6;
Step 6:The parameter information for not meeting program is reported an error.
In the present embodiment, after described step 5, comprise the following steps:
Step 5.1:Check version information and date created.
Step 5.2:Mainboard information being read from two documents respectively and being printed respectively, test process is directly viewable to be believed up and down
Whether breath is consistent, continues to check other specification information or release program if consistent, otherwise goes to step 6.
Step 5.3:Chassis informations are obtained from two documents respectively, and are printed upon screen, above and below test process is directly viewable
Whether information is consistent, continues to check other specification information or release program if consistent, otherwise goes to step 6.
Step 5.4:CPU information is extracted, cache size is checked, checks that internal memory supports quantity;The CPU information of extraction can be wrapped
Include but be not limited to kernel, version, information of voltage;Whether test process is directly viewable context information consistent, continues if consistent
Other specification information or release program are checked, step 6 is otherwise gone to.
Step 5.5:Check the information of memory information, including but not limited to capacity, frequency, type and actual storage amount;
Whether test process is directly viewable context information consistent, continues to check other specification information or release program if consistent,
Otherwise step 6 is gone to.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this area
What technical staff can think does not have a creative change, and some improvement made without departing from the principles of the present invention and
Retouching, should all be within the scope of the present invention.
Claims (6)
1. a kind of DMI information test script programs based under linux, it is characterised in that:Comprise the following steps:
Step 1:Definition statement variable, be respectively:
SMBIOS catalogues
FRU catalogues
TYPE type of directory
Three kinds of information are deposited respectively;
Step 2:File is set up, and DMI and FRU information is printed under this document folder respectively;
Step 3:FRU and DMI information is respectively defined in the variable of step 1 and is easy to call;
Step 4:According to incoming parameter, judge whether the information of the parameter is correct;
Step 5:Information system information is read at FRU and DMI two respectively, and is printed upon screen respectively, test process is directly looked into
See whether context information is consistent, continue to check other specification information or release program if consistent, otherwise go to step 6;
Step 6:The parameter information for not meeting program is reported an error.
2. a kind of DMI information test script programs based under linux according to claim 1, it is characterised in that:It is described
Step 5 after, comprise the following steps:
Step 5.1:Check version information and date created.
3. a kind of DMI information test script programs based under linux according to claim 1 or 2, it is characterised in that:
After described step 5, comprise the following steps:
Step 5.2:Mainboard information being read from two documents respectively and being printed respectively, test process, which is directly viewable context information, is
It is no consistent, continue to check other specification information or release program if consistent, otherwise go to step 6.
4. a kind of DMI information test script programs based under linux according to claim 3, it is characterised in that:It is described
Step 5 after, comprise the following steps:
Step 5.3:Chassis information is obtained from two documents respectively, and is printed upon screen, test process is directly viewable context information
It is whether consistent, continue to check other specification information or release program if consistent, otherwise go to step 6.
5. a kind of DMI information test script programs based under linux according to claim 4, it is characterised in that:It is described
Step 5 after, comprise the following steps:
Step 5.4:CPU information is extracted, cache size is checked, checks that internal memory supports quantity;Test process is directly viewable to be believed up and down
Whether breath is consistent, continues to check other specification information or release program if consistent, otherwise goes to step 6.
6. a kind of DMI information test script programs based under linux according to claim 5, it is characterised in that:It is described
Step 5 after, comprise the following steps:
Step 5.5:Check memory information, it is whether consistent that test process is directly viewable context information, continues to check if consistent
Other specification information releases program, otherwise goes to step 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710301674.9A CN107133145A (en) | 2017-05-02 | 2017-05-02 | A kind of DMI information test script programs based under linux |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710301674.9A CN107133145A (en) | 2017-05-02 | 2017-05-02 | A kind of DMI information test script programs based under linux |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107133145A true CN107133145A (en) | 2017-09-05 |
Family
ID=59716441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710301674.9A Pending CN107133145A (en) | 2017-05-02 | 2017-05-02 | A kind of DMI information test script programs based under linux |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133145A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943698A (en) * | 2017-11-23 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of DMI information and FRU synchronizing informations automated testing method and system |
CN109656542A (en) * | 2018-12-10 | 2019-04-19 | 深圳市亿道数码技术有限公司 | Smbios information checking method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055846A1 (en) * | 2001-09-20 | 2003-03-20 | International Business Machines Corporation | Method and system for providing field replaceable units in a personal computer |
CN104317667A (en) * | 2014-10-27 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for synchronizing DMI (desktop management interface) and FRU (field replace unit) |
CN105068920A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Shell based method for testing stability of rack asset information |
CN106919407A (en) * | 2015-12-26 | 2017-07-04 | 昆达电脑科技(昆山)有限公司 | The method of the embedded product information synchronized update of computer |
-
2017
- 2017-05-02 CN CN201710301674.9A patent/CN107133145A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055846A1 (en) * | 2001-09-20 | 2003-03-20 | International Business Machines Corporation | Method and system for providing field replaceable units in a personal computer |
CN104317667A (en) * | 2014-10-27 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for synchronizing DMI (desktop management interface) and FRU (field replace unit) |
CN105068920A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Shell based method for testing stability of rack asset information |
CN106919407A (en) * | 2015-12-26 | 2017-07-04 | 昆达电脑科技(昆山)有限公司 | The method of the embedded product information synchronized update of computer |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943698A (en) * | 2017-11-23 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of DMI information and FRU synchronizing informations automated testing method and system |
CN109656542A (en) * | 2018-12-10 | 2019-04-19 | 深圳市亿道数码技术有限公司 | Smbios information checking method and system |
CN109656542B (en) * | 2018-12-10 | 2022-01-14 | 深圳市亿道数码技术有限公司 | Smbios information checking method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9256697B2 (en) | Bidirectional mapping between applications and network content | |
CN103517141B (en) | Based on IP Set Top Box segmented data upgrade methods | |
CN102243699A (en) | Malicious code detection method and system | |
CN106302747A (en) | A kind of business cloud platform of Internet WEB front-end exploitation | |
WO2017185272A1 (en) | Man-machine interaction method and device therefor | |
WO2017219524A1 (en) | Page saving method and electronic device | |
CN107133145A (en) | A kind of DMI information test script programs based under linux | |
CN104765849A (en) | Method and system for acquiring copied data source information | |
CN105740112A (en) | Method for automatically detecting hardware information in Linux when boot is carried out | |
CN103353842A (en) | Webpage loading method and device | |
CN104735041B (en) | Offline resources acquisition methods and device | |
CN103064934B (en) | Android file management method and device | |
CN110032513B (en) | Data verification method and device and electronic equipment | |
CN107273401A (en) | Management method, mobile device and the storage device of application data file | |
CN106296131A (en) | The document approval system of What You See Is What You Get and the document measures and procedures for the examination and approval | |
CN105574164A (en) | Excel document data analysis method and device | |
CN109614084A (en) | Web program and its Quick Development Framework, development approach and relevant device | |
CN104850561A (en) | Adaptive compression method for Android APK file | |
TW201248430A (en) | Remote sharing system and method | |
US20160196423A1 (en) | Smart device and method for dynamically detecting applications | |
CN107301037A (en) | The loading method and device of operating system nucleus | |
CN106209724A (en) | A kind of invalid addresses of items of mail filter method and device | |
CN104536733B (en) | The method and mobile terminal of plug-in unit installation kit are described | |
CN108984727A (en) | A kind of Database Automatic Backup method, apparatus, equipment and storage medium | |
CN109375927A (en) | Method, system, server and the storage medium of window application starting are realized using Qt |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170905 |