CN107229545A - A kind of method of testing and system of linux system hardware detection - Google Patents
A kind of method of testing and system of linux system hardware detection Download PDFInfo
- Publication number
- CN107229545A CN107229545A CN201710494832.7A CN201710494832A CN107229545A CN 107229545 A CN107229545 A CN 107229545A CN 201710494832 A CN201710494832 A CN 201710494832A CN 107229545 A CN107229545 A CN 107229545A
- Authority
- CN
- China
- Prior art keywords
- server
- hardware information
- hardware
- information
- log
- 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/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2268—Logging of test results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to server hardware technical field of measurement and test there is provided a kind of method of testing and system of linux system hardware detection, method includes:During server test, server all hardware information described in timing acquisition;By timing acquisition to the server all hardware information be compared with the log documents that pre-save, judge timing acquisition to log document of the server all hardware information with pre-saving whether match;If fitting through, the server all hardware information that timing acquisition is arrived is deleted, and return to the step of performing server all hardware information described in the timing acquisition;If matching does not pass through, the server all hardware information and the comparison information of log documents are preserved, so as to realize the test to linux system hardware detection, testing efficiency is high, while also improving test quality.
Description
Technical field
The invention belongs to server hardware technical field of measurement and test, more particularly to a kind of test of linux system hardware detection
Method and system.
Background technology
Variation and Intel increasing for the support quantity of extrapolation equipment with server product, server is whole
Many external equipments are had in machine configuration.
Wherein, the related hardware device such as PCIE, IO, hard disk occurs the situation of loss, it is necessary to weight in test process
New detect external equipments, many extra check work, reduction server hardware test effect are come for the calibration tape of hardware
Rate.
The content of the invention
It is an object of the invention to provide a kind of method of testing of linux system hardware detection, it is intended to solves prior art
The situation of loss occurs, it is necessary to which detect is external again in the related hardware device such as middle PCIE, IO, hard disk in test process
Equipment, many extra check work, the problem of reducing server hardware testing efficiency are come for the calibration tape of hardware.
The present invention is achieved in that a kind of method of testing of linux system hardware detection, and methods described includes following steps
Suddenly:
During server test, server all hardware information described in timing acquisition;
By timing acquisition to the server all hardware information be compared with the log documents that pre-save, judge
Timing acquisition to the server all hardware information whether matched with the log documents pre-saved;
If fitting through, the server all hardware information that timing acquisition is arrived is deleted, and it is described fixed to return to execution
When the step of obtain the server all hardware information;
If matching does not pass through, the server all hardware information and the comparison information of log documents are preserved.
As an improvement scheme, described during server test, the server all hardware information is obtained
Also comprise the steps before step:
When server is started shooting and tested, the server all hardware information is obtained, and by the server all hardware
Information saves as log documents.
It is specially as an improvement scheme, the step of the acquisition server all hardware information:
Pass through linux system order lspci>1.txt、fdisk>2.txt is carried out to the server all hardware information
Crawl.
As an improvement scheme, the server all hardware information is compared dynamic with the log documents pre-saved
Make to realize by automatized script order diff.
Another object of the present invention is to provide a kind of test system of linux system hardware detection, the system includes:
Hardware information acquisition module, for during server test, server all hardware described in timing acquisition to be believed
Breath;
Contrast judgement module, for by timing acquisition to the server all hardware information and the log that pre-saves
Document is compared, judge timing acquisition to the server all hardware information and the log documents that pre-save whether
Match somebody with somebody;
Hardware information removing module, if for fitting through, deleting the server all hardware that timing acquisition is arrived
Information, and return to the step of hardware information acquisition module performs server all hardware information described in the timing acquisition;
Comparison information preserving module, if not passing through for matching, by the server all hardware information and log documents
Comparison information preserved.
As an improvement scheme, the system also includes:
Log document storing modules, for when server is started shooting and tested, obtaining the server all hardware information, and
The server all hardware information is saved as into log documents.
As an improvement scheme, the log document storings module specifically includes:
Hardware information handling module, for passing through linux system order lspci>1.txt、fdisk>2.txt is to the clothes
Business device all hardware information is captured.
As an improvement scheme, the contrast judgement module by automatized script order diff realize to server
Action is compared with the log documents pre-saved in all hardware information.
In embodiments of the present invention, during server test, server all hardware information described in timing acquisition;Will
Timing acquisition to the server all hardware information be compared with the log documents that pre-save, judge that timing acquisition is arrived
The server all hardware information whether matched with the log documents pre-saved;If fitting through, timing acquisition is deleted
The server all hardware information arrived, and return to the step for performing server all hardware information described in the timing acquisition
Suddenly;If matching does not pass through, the server all hardware information and the comparison information of log documents are preserved, so that real
Now to the test of linux system hardware detection, testing efficiency is high, while also improving test quality.
Brief description of the drawings
Fig. 1 is the implementation process figure of the method for testing for the linux system hardware detection that the present invention is provided;
Fig. 2 is the structured flowchart of the test system for the linux system hardware detection that the present invention is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the implementation process figure of the method for testing for the linux system hardware detection that the present invention is provided, its specific bag
Include following step:
In step S101, during server test, server all hardware information described in timing acquisition.
Wherein, to the acquisition of server all hardware information can timing, or in real time, or carry out stage by stage, herein no longer
Repeat.
In step s 102, by timing acquisition to the server all hardware information and the log documents that pre-save
It is compared.
Wherein, server all hardware information is compared to act with the log documents pre-saved passes through automatized script
Diff is ordered to realize.
In step s 103, judge timing acquisition to the server all hardware information and pre-save log text
Whether shelves match, and are then to perform step S104, otherwise perform step S105.
In step S104, if fitting through, the server all hardware information that timing acquisition is arrived is deleted, and return
Described in timing acquisition described in receipt row the step of server all hardware information.
In step S105, if matching does not pass through, the comparison of the server all hardware information and log documents is believed
Breath is preserved.
In this embodiment, mono- multi-user based on POSIX and UNIX of Linux, multitask, support multithreading and many
CPU operating system.It can run main unix tool software, application program and procotol.It supports 32 and 64
Hardware.Linux inherits design philosophys of the Unix using network as core, is the stable multiple-user network operation system of a performance
System.
Log documents are daily record, and typically system or some softwares are to the completed record that certain is handled, so as in the future
As reference, the form that it is not fixed, typically text can be opened to check content, certainly very with notepad
It is probably other forms, it is exactly mess code directly to open.Most log can find out its effect from filename, such as
Uninstall.log or error.log, the former is typically the record generated in software installation process certainly, to unload in the future
Uninstaller can be supplied to use when load, the latter is typically used for recording error message in some running softwares etc.
Deng.
Wherein, also need to perform following step before above-mentioned steps are performed:
When server is started shooting and tested, the server all hardware information is obtained, and by the server all hardware
Information saves as log documents.
In this embodiment, the step of acquisition server all hardware information is specially:
Pass through linux system order lspci>1.txt、fdisk>2.txt is carried out to the server all hardware information
Crawl.
Fig. 2 shows the structured flowchart of the test system for the linux system hardware detection that the present invention is provided, for the ease of saying
It is bright, the part related to the embodiment of the present invention is only gived in figure.The test system of linux system hardware detection includes:
Hardware information acquisition module 11, for during server test, server all hardware described in timing acquisition
Information;
Contrast judgement module 12, for by timing acquisition to the server all hardware information and pre-save
Log documents are compared, judge timing acquisition to the server all hardware information and the log documents that pre-save whether
Matching;
Hardware information removing module 13, if for fitting through, the server that deletion timing acquisition is arrived is all hard
Part information, and return to the step that the hardware information acquisition module 11 performs server all hardware information described in the timing acquisition
Suddenly;
Comparison information preserving module 14, if not passing through for matching, by the server all hardware information and log texts
The comparison information of shelves is preserved.
Wherein, log document storings module 15, for when server is started shooting and tested, obtaining the server all hardware
Information, and the server all hardware information is saved as into log documents.
In this embodiment, hardware information handling module 16, for passing through linux system order lspci>1.txt、
fdisk>2.txt is captured to the server all hardware information.
In embodiments of the present invention, during server test, server all hardware information described in timing acquisition;Will
Timing acquisition to the server all hardware information be compared with the log documents that pre-save, judge that timing acquisition is arrived
The server all hardware information whether matched with the log documents pre-saved;If fitting through, timing acquisition is deleted
The server all hardware information arrived, and return to the step for performing server all hardware information described in the timing acquisition
Suddenly;If matching does not pass through, the server all hardware information and the comparison information of log documents are preserved, so that real
Now to the test of linux system hardware detection, testing efficiency is high, while also improving test quality.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.
Claims (8)
1. a kind of method of testing of linux system hardware detection, it is characterised in that methods described comprises the steps:
During server test, server all hardware information described in timing acquisition;
By timing acquisition to the server all hardware information be compared with the log documents that pre-save, judge timing
Whether log document of the server all hardware information got with pre-saving matches;
If fitting through, the server all hardware information that timing acquisition is arrived is deleted, and returns to the execution timing and is obtained
The step of taking the server all hardware information;
If matching does not pass through, the server all hardware information and the comparison information of log documents are preserved.
2. the method for testing of linux system hardware detection according to claim 1, it is characterised in that described in server
In test process, also comprise the steps before the step of obtaining the server all hardware information:
When server is started shooting and tested, the server all hardware information is obtained, and by the server all hardware information
Save as log documents.
3. the method for testing of linux system hardware detection according to claim 2, it is characterised in that described in the acquisition
The step of server all hardware information is specially:
Pass through linux system order lspci>1.txt、fdisk>2.txt is captured to the server all hardware information.
4. the method for testing of linux system hardware detection according to claim 1, it is characterised in that the server institute
There is log document of the hardware information with pre-saving that action is compared to realize by automatized script order diff.
5. a kind of test system of linux system hardware detection, it is characterised in that the system includes:
Hardware information acquisition module, for during server test, server all hardware information described in timing acquisition;
Contrast judgement module, for by timing acquisition to the server all hardware information and the log documents that pre-save
Be compared, judge timing acquisition to log document of the server all hardware information with pre-saving whether match;
Hardware information removing module, if for fitting through, deleting the server all hardware information that timing acquisition is arrived,
And return to the step of hardware information acquisition module performs server all hardware information described in the timing acquisition;
Comparison information preserving module, if not passing through for matching, by the server all hardware information and the ratio of log documents
Information is preserved.
6. the test system of linux system hardware detection according to claim 5, it is characterised in that the system is also wrapped
Include:
Log document storing modules, for when server is started shooting and tested, obtaining the server all hardware information, and by institute
State server all hardware information and save as log documents.
7. the test system of linux system hardware detection according to claim 6, it is characterised in that the log documents are protected
Storing module is specifically included:
Hardware information handling module, for passing through linux system order lspci>1.txt、fdisk>2.txt is to the server
All hardware information is captured.
8. the test system of linux system hardware detection according to claim 5, it is characterised in that the contrast judgement
Module realizes that the log documents to server all hardware information with pre-saving are compared by automatized script order diff
Action.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710494832.7A CN107229545A (en) | 2017-06-26 | 2017-06-26 | A kind of method of testing and system of linux system hardware detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710494832.7A CN107229545A (en) | 2017-06-26 | 2017-06-26 | A kind of method of testing and system of linux system hardware detection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107229545A true CN107229545A (en) | 2017-10-03 |
Family
ID=59936533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710494832.7A Pending CN107229545A (en) | 2017-06-26 | 2017-06-26 | A kind of method of testing and system of linux system hardware detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107229545A (en) |
Cited By (1)
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 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375910A (en) * | 2014-11-24 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Automatic power-on and power-off test method |
CN104484253A (en) * | 2014-12-29 | 2015-04-01 | 浪潮电子信息产业股份有限公司 | Automatic testing method for human-computer interaction Intel MIC (Many Integrated Core) card |
CN104899139A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Automatic test method for server basic function test |
CN106598796A (en) * | 2016-12-16 | 2017-04-26 | 郑州云海信息技术有限公司 | Method for testing hardware information stability in reboot |
CN106776258A (en) * | 2016-12-29 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of Windows system servers Hardware Monitoring |
-
2017
- 2017-06-26 CN CN201710494832.7A patent/CN107229545A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375910A (en) * | 2014-11-24 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Automatic power-on and power-off test method |
CN104484253A (en) * | 2014-12-29 | 2015-04-01 | 浪潮电子信息产业股份有限公司 | Automatic testing method for human-computer interaction Intel MIC (Many Integrated Core) card |
CN104899139A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Automatic test method for server basic function test |
CN106598796A (en) * | 2016-12-16 | 2017-04-26 | 郑州云海信息技术有限公司 | Method for testing hardware information stability in reboot |
CN106776258A (en) * | 2016-12-29 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of Windows system servers Hardware Monitoring |
Cited By (1)
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8561193B1 (en) | Systems and methods for analyzing malware | |
US7272748B1 (en) | Method and apparatus to detect and recover from a stack frame corruption | |
CN102662667B (en) | A kind of software uninstalling method and device | |
US9177155B2 (en) | Hybrid analysis of vulnerable information flows | |
US20130205399A1 (en) | Automatic synthesis of unit tests for security testing | |
CN104536875A (en) | IPMI-based method for carrying out automatic restart test on server | |
CN103678096B (en) | The adaptation method of testing and device of client application | |
CN103176775B (en) | A kind of method and apparatus realizing Web page application program localization | |
CN108459850B (en) | Method, device and system for generating test script | |
CN103268448B (en) | The method and system of the security of detection of dynamic Mobile solution | |
CN110908837B (en) | Application program exception handling method and device, electronic equipment and storage medium | |
CN103617396B (en) | The detection method of a kind of vulnerability exploit and system | |
EP3340097B1 (en) | Analysis device, analysis method, and analysis program | |
CN111191243A (en) | Vulnerability detection method and device and storage medium | |
CN107798064A (en) | Page processing method, electronic equipment and computer-readable recording medium | |
CN103092718A (en) | Test data backup system and method | |
US9811447B2 (en) | Generating a fingerprint representing a response of an application to a simulation of a fault of an external service | |
CN110929110B (en) | Electronic document detection method, device, equipment and storage medium | |
US10275595B2 (en) | System and method for characterizing malware | |
CN107229545A (en) | A kind of method of testing and system of linux system hardware detection | |
CN103514402A (en) | Intrusion detection method and device | |
US20200334353A1 (en) | Method and system for detecting and classifying malware based on families | |
US7979238B2 (en) | System, method and computer program product for evaluating a test of an alternative system | |
CN116225622A (en) | Docker-based PaaS application parameter template testing method | |
CN112257106B (en) | Data detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171003 |
|
RJ01 | Rejection of invention patent application after publication |