CN105389234A - Hardware detection method and apparatus - Google Patents
Hardware detection method and apparatus Download PDFInfo
- Publication number
- CN105389234A CN105389234A CN201510698422.5A CN201510698422A CN105389234A CN 105389234 A CN105389234 A CN 105389234A CN 201510698422 A CN201510698422 A CN 201510698422A CN 105389234 A CN105389234 A CN 105389234A
- Authority
- CN
- China
- Prior art keywords
- hardware
- information
- failure message
- fault
- parameter information
- 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/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/004—Error avoidance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a hardware detection method and apparatus. The method comprises: detecting at least one piece of hardware of a computer, and acquiring a detection result; and according to the detection result, determining fault information of the at least one piece of hardware, wherein the fault information comprises parameter information of a fault. The fault information can be obtained before a hardware fault actually occurs, so that occurrence of the hardware fault can be prevented, thereby avoiding data loss caused by the hardware fault.
Description
Technical field
The present invention relates to computer realm, particularly relate to a kind of hardware detection method and device.
Background technology
Along with the development of science and technology, computing machine has become a part indispensable in people's daily life and work.
Can installing operating system in computing machine, and can mounting software under an operating system.In the process of operating software, in computer system during hardware failure, the loss of data of computing machine may be caused.
Summary of the invention
The invention provides a kind of hardware detection method and device, in order to solve the problem of the loss of data of computing machine.
First aspect of the present invention is to provide a kind of hardware detection method, comprising:
At least one hardware of detection computations machine, obtains testing result;
According to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.
Further, described according to described testing result, after determining the failure message of at least one hardware described, also comprise:
According to described failure message, send information to user, described information is in order to point out the parameter information of hardware fault.
Further, described according to described failure message, before sending information to user, also comprise:
Arrange the send mode of described information, described send mode at least comprises mail sending mode or short message sending mode;
Describedly send information according to described failure message to user, comprising:
According to described failure message, send information by described send mode to user.
Further, described hardware comprises: any one in disk, central processor CPU or internal memory or its combination.
Further, described parameter information comprises hardware information and fault parameter information.
Second aspect of the present invention is to provide a kind of hardware detection device, comprising:
Detection module, at least one hardware of detection computations machine, obtains testing result;
Determination module, for according to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.
Further, also comprise: sending module,
Described sending module, for according to described failure message, sends information to user, and described information is in order to point out the parameter information of hardware fault.
Further, also comprise: arrange module, describedly arrange module, for arranging the send mode of described information, described send mode at least comprises mail sending mode or short message sending mode;
Described sending module, specifically for according to described failure message, sends information by described send mode to user.
Further, described hardware comprises: any one in disk, central processor CPU or internal memory or its combination.
Further, described parameter information comprises hardware information and fault parameter information.
In the present embodiment, at least one hardware of detection computations machine, obtains testing result; According to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.Achieve and obtained failure message before hardware fault really occurs, thus the generation of hardware fault can be prevented, and then avoid the loss of data because hardware fault causes.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of hardware detection method one embodiment of the present invention;
Fig. 2 is the structural representation of hardware detection device one embodiment of the present invention;
Fig. 3 is the structural representation of hardware detection device two embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of hardware detection method one embodiment of the present invention, and hardware detection method as shown in Figure 1, comprising:
At least one hardware of step 101, detection computations machine, obtains testing result.
For example, do in system in the operation of linux, by hardware failure detection instrument mcelog, detect at least one hardware of computing machine, this hardware can comprise: any one in disk, central processor CPU or internal memory or its combination.
Step 102, according to described testing result, determine the failure message of at least one hardware described.
In the present embodiment, described failure message comprises the parameter information of fault.For example, this parameter information can comprise hardware information and fault parameter information, and the parameter information in the present embodiment not only comprises above-mentioned information, can also comprise other information, not limit at this.
Concrete, if when the parameter information of testing result exceedes preset range, this abnormal parameters can be determined, thus be recorded in failure message.For example, testing result comprises temperature parameter or the read or write speed parameter of disk, can determine that read or write speed parameter is lower than preset range by those parameters, thus determine this abnormal parameters, and then can by this reference record in failure message, such as, failure message is stored in/var/log/mcelog file in.After several days or several weeks determining this failure message, the generation that hardware fault may be just real, therefore can be processed the fault of hardware in advance by this failure message.
In the present embodiment, by least one hardware of detection computations machine, obtain testing result; According to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.Achieve and obtained failure message before hardware fault really occurs, thus the generation of hardware fault can be prevented, and then avoid the loss of data because hardware fault causes.
On the basis of above-described embodiment, described according to described testing result, after determining the failure message of at least one hardware described, also comprise:
According to described failure message, send information to user, described information is in order to point out the parameter information of hardware fault.
Further, on the basis of above-described embodiment, described according to described failure message, before sending information to user, also comprise:
Arrange the send mode of described information, described send mode at least comprises mail sending mode or short message sending mode;
Describedly send information according to described failure message to user, comprising:
According to described failure message, send information by described send mode to user.
Fig. 2 is the structural representation of hardware detection device one embodiment of the present invention, and hardware detection device as shown in Figure 2, comprising: detection module 21 and determination module 22.Wherein,
Detection module 21, at least one hardware of detection computations machine, obtains testing result;
Determination module 22, for according to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.
In the present embodiment, by least one hardware of detection computations machine, obtain testing result; According to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.Achieve and obtained failure message before hardware fault really occurs, thus the generation of hardware fault can be prevented, and then avoid the loss of data because hardware fault causes.
Fig. 3 is the structural representation of hardware detection device two embodiment of the present invention, and hardware detection device as shown in Figure 3, on the basis of above-described embodiment, can also comprise: sending module 23,
Described sending module 23, for according to described failure message, sends information to user, and described information is in order to point out the parameter information of hardware fault.
Further, on the basis of above-described embodiment, also comprise: arrange module 24, describedly arrange module 24, for arranging the send mode of described information, described send mode at least comprises mail sending mode or short message sending mode;
Described sending module 23, specifically for according to described failure message, sends information by described send mode to user.
Further, on the basis of above-described embodiment, described hardware comprises: any one in disk, central processor CPU or internal memory or its combination.
Further, on the basis of above-described embodiment, described parameter information comprises hardware information and fault parameter information.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a hardware detection method, is characterized in that, comprising:
At least one hardware of detection computations machine, obtains testing result;
According to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.
2. method according to claim 1, is characterized in that, described according to described testing result, after determining the failure message of at least one hardware described, also comprises:
According to described failure message, send information to user, described information is in order to point out the described parameter information of hardware fault.
3. method according to claim 2, is characterized in that, described according to described failure message, before sending information, also comprises to user:
Arrange the send mode of described information, described send mode at least comprises mail sending mode or short message sending mode;
Describedly send information according to described failure message to user, comprising:
According to described failure message, send information by described send mode to user.
4. the method according to any one of claim 1-3, is characterized in that, described hardware comprises: any one in disk, central processor CPU or internal memory or its combination.
5. method according to claim 4, is characterized in that, described parameter information comprises hardware information and fault parameter information.
6. a hardware detection device, is characterized in that, comprising:
Detection module, at least one hardware of detection computations machine, obtains testing result;
Determination module, for according to described testing result, determine the failure message of at least one hardware described, described failure message comprises the parameter information of fault.
7. device according to claim 6, is characterized in that, also comprises: sending module,
Described sending module, for according to described failure message, sends information to user, and described information is in order to point out the described parameter information of hardware fault.
8. device according to claim 7, is characterized in that, also comprises: arrange module, describedly arranges module, and for arranging the send mode of described information, described send mode at least comprises mail sending mode or short message sending mode;
Described sending module, specifically for according to described failure message, sends information by described send mode to user.
9. the device according to any one of claim 6-8, is characterized in that, described hardware comprises: any one in disk, central processor CPU or internal memory or its combination.
10. device according to claim 9, is characterized in that, described parameter information comprises hardware information and fault parameter information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698422.5A CN105389234A (en) | 2015-10-23 | 2015-10-23 | Hardware detection method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698422.5A CN105389234A (en) | 2015-10-23 | 2015-10-23 | Hardware detection method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105389234A true CN105389234A (en) | 2016-03-09 |
Family
ID=55421541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510698422.5A Pending CN105389234A (en) | 2015-10-23 | 2015-10-23 | Hardware detection method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105389234A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153644A (en) * | 2017-12-22 | 2018-06-12 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1648870A (en) * | 2005-03-09 | 2005-08-03 | 北京软通科技有限责任公司 | Automatic detesting method for computer system hardware device |
CN102521115A (en) * | 2011-12-19 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Data resource pre-warning method based on hard disk performances |
CN103019913A (en) * | 2012-11-21 | 2013-04-03 | 广东欧珀移动通信有限公司 | Abnormal prompting method and system for mobile terminals and hardware thereof |
US20140006603A1 (en) * | 2012-06-28 | 2014-01-02 | Meng-Liang Yang | System for monitoring hard disk drive |
-
2015
- 2015-10-23 CN CN201510698422.5A patent/CN105389234A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1648870A (en) * | 2005-03-09 | 2005-08-03 | 北京软通科技有限责任公司 | Automatic detesting method for computer system hardware device |
CN102521115A (en) * | 2011-12-19 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Data resource pre-warning method based on hard disk performances |
US20140006603A1 (en) * | 2012-06-28 | 2014-01-02 | Meng-Liang Yang | System for monitoring hard disk drive |
CN103019913A (en) * | 2012-11-21 | 2013-04-03 | 广东欧珀移动通信有限公司 | Abnormal prompting method and system for mobile terminals and hardware thereof |
Non-Patent Citations (3)
Title |
---|
(英)帕克(PARKER,S.)著: "《Shell脚本编程诀窍——适用于Linux、Bash等》", 30 September 2012 * |
宋玉霞 和 牟俊 编著: "《Windows 8 从入门到精通》", 31 January 2014 * |
陈志民 编著: "《电脑故障排除 完美互动手册》", 31 March 2014 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153644A (en) * | 2017-12-22 | 2018-06-12 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102135925B (en) | Method and device for detecting error check and correcting memory | |
CN103440175A (en) | Method and device for handling exception of intelligent card | |
CN105183669A (en) | Data storage method and device | |
CN105302714A (en) | Method and apparatus for monitoring memory leak in test process | |
CN112416670A (en) | Hard disk test method, device, server and storage medium | |
CN111124818B (en) | Monitoring method, device and equipment for Expander | |
CN105260140A (en) | Disk size monitoring method and apparatus | |
CN105389234A (en) | Hardware detection method and apparatus | |
CN113010341A (en) | Method and equipment for positioning fault memory | |
CN112668727A (en) | Method and device for detecting equipment fault | |
CN110688268A (en) | Fault positioning method, device, equipment and medium for NVME SSD | |
CN106095631B (en) | Multi-cycle non-pipeline CPU dynamic debugging method based on finite state machine | |
CN110750375B (en) | Embedded equipment and abnormal information processing method thereof | |
CN112463503B (en) | ARM architecture complete machine server heat dissipation capacity testing method and system | |
KR101735652B1 (en) | Terminal apparatus and method for detecting cyber attack application thereby | |
CN114706719A (en) | Disk testing method and device based on FIO testing tool | |
CN114218001A (en) | Fault repairing method and device, electronic equipment and readable storage medium | |
CN114328158A (en) | Abnormity monitoring method and device, electronic equipment and storage medium | |
CN110532142A (en) | A kind of computer system hard disk switching controller | |
CN107908516B (en) | Data display method and device | |
CN105242880A (en) | Method for automatically creating Raid and executing pressure testing | |
CN110717131B (en) | Page revising monitoring method and related system | |
CN111338956A (en) | Automatic pressure measurement method, device, equipment and storage medium | |
CN107797915B (en) | Fault repairing method, device and system | |
CN111813748A (en) | File system mounting method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160309 |
|
RJ01 | Rejection of invention patent application after publication |