CN114416442A - Hardware change detection method and device, electronic equipment and readable storage medium - Google Patents
Hardware change detection method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN114416442A CN114416442A CN202111538727.1A CN202111538727A CN114416442A CN 114416442 A CN114416442 A CN 114416442A CN 202111538727 A CN202111538727 A CN 202111538727A CN 114416442 A CN114416442 A CN 114416442A
- Authority
- CN
- China
- Prior art keywords
- hardware
- detected
- information
- hard disk
- determining
- 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
Images
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
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/73—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a hardware change detection method, a hardware change detection device, an electronic device and a readable storage medium, wherein the method comprises the following steps: acquiring hardware information of hardware to be detected; and determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule. The hardware monitoring system can automatically detect the change condition of hardware, has accurate detection result and high detection efficiency, obviously improves the supervision strength of the hardware compared with a manual method in the prior art, greatly saves manpower and time cost, obviously improves the working efficiency, has wide application range, is especially suitable for monitoring large-scale electronic equipment of large enterprises, and provides great convenience for enterprise management.
Description
Technical Field
The application relates to the technical field of asset safety management, in particular to a hardware change detection method and device, electronic equipment and a readable storage medium.
Background
In the fixed asset security management of an enterprise, especially a large enterprise, due to the large amount and complexity of hardware of electronic equipment, great challenges are brought to the management of the electronic equipment.
In the prior art, hardware of an electronic device is often managed in a manual mode, for example, a standing book mode is adopted, information is manually entered, and when the electronic device is maintained or updated, management needs to be performed in the standing book mode through manual entry of change information.
The method has serious management loopholes, such as the problems of hardware stealing, hardware loss and the like which are difficult to prevent from being caused by human; moreover, the management efficiency is low, and a large amount of labor cost and time cost are consumed.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting hardware change, an electronic device and a readable storage medium, which can automatically detect the change condition of hardware so as to overcome or partially overcome the problems.
In a first aspect, an embodiment of the present application provides a method for detecting a hardware change, including:
acquiring hardware information of hardware to be detected;
and determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
In a second aspect, an embodiment of the present application provides an apparatus for detecting a hardware change, including:
the acquisition unit is used for acquiring hardware information of the hardware to be detected;
and the judging unit is used for determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform any of the methods described above.
In a fourth aspect, this application embodiment also provides a computer-readable storage medium storing one or more programs which, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform any of the methods described above.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
according to the method and the device, the hardware information of the hardware to be detected is obtained, and the hardware information is compared with the initial hardware information of the hardware to be detected, so that the change condition of the hardware to be detected is determined. The hardware monitoring system can automatically detect the change condition of hardware, has accurate detection result and high detection efficiency, obviously improves the supervision strength of the hardware compared with a manual method in the prior art, greatly saves manpower and time cost, obviously improves the working efficiency, has wide application range, is especially suitable for monitoring large-scale electronic equipment of large enterprises, and provides great convenience for enterprise management.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 shows a flow diagram of a method of detection of a hardware change according to an embodiment of the present application;
FIG. 2 shows a flow diagram of a method of detection of a hardware change according to another embodiment of the present application;
fig. 3 shows a schematic configuration of a hardware change detection apparatus according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
In the prior art, a manual method is generally adopted for managing electronic equipment such as a desktop computer, a notebook computer, a server and the like, which brings great challenges to the management of fixed assets of an enterprise. Aiming at the situation, the application provides a detection method of hardware change, which can automatically detect the situation that the hardware of the electronic equipment is changed, and make up for the defects in the prior art.
Fig. 1 is a schematic flow chart of a method for detecting a hardware change according to an embodiment of the present application, and as can be seen from fig. 1, the method at least includes steps S110 to S120:
step S110: and acquiring hardware information of the hardware to be detected.
In some embodiments of the present application, the method of the present application may be formed as a detection tool, and installed on the electronic device at the user end in the form of software, which is referred to as a client end herein, and steps S110 to S120 may be directly executed locally by the detection tool at the client end; in other embodiments of the present application, the client may be connected to the server, the method of the present application forms a detection tool deployed at the server, and the steps S110 to S120 are executed by the server, which is not limited in the present application and can be selected as needed.
Firstly, hardware information of hardware to be detected is obtained, and the hardware to be detected can be any one or more of electronic devices such as a display, a memory, a display card, a CPU and the like to which the hardware to be detected belongs.
Hardware information includes, but is not limited to, the name, serial number, code, vendor, time of delivery, etc. of the hardware.
It should be noted that, when the electronic device is put into use for the first time or a detection tool formed according to the method of the present application is installed, initial hardware information of each hardware of the electronic device to be detected is recorded or automatically identified into the detection tool formed according to the method of the present application, and recorded, for example, the initial hardware information may be stored in a memory locally applied when the method of the present application is executed, or the initial hardware information may be packaged in a log folder form and uploaded to a designated storage area of a server for use in hardware detection.
Step S120: and determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset change detection rule.
For one piece of hardware, determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule corresponding to the hardware. The simple understanding is that if the hardware information of one hardware meets the changed rule in the hardware change rule, the hardware is determined to be changed; if not, determining that the hardware is not changed.
For example, for a piece of hardware to be detected, the acquired hardware information of the piece of hardware is compared with the initial hardware information of the piece of hardware recorded in the memory, and if the hardware information changes, the change of the piece of hardware can be determined, specifically, what kind of change occurs can be determined according to the hardware change rule.
For different hardware, the preset change detection rules are different, and matching can be performed according to the acquired hardware information of the hardware to be detected and the type of the hardware to be detected in the change detection rules, so as to find the corresponding change detection rules for detection.
It should be noted that, for a piece of hardware to be detected, it is not necessary to acquire information of the piece of hardware every time, and if a memory is manually removed, the piece of hardware information returned by the memory is "empty" or another default specific value, and it is determined that the memory is changed, and the specific change is hardware removal.
In some embodiments of the present application, when it is detected that the hardware to be detected is changed, the client may be notified, or even send an alarm to the client, so that the client makes a response, for example, a log scanned by the hardware is separately stored and named according to a timestamp for subsequent searching.
As can be seen from the method shown in fig. 1, the change condition of the hardware to be detected is determined by acquiring the hardware information of the hardware to be detected and comparing the hardware information with the initial hardware information of the hardware to be detected. The hardware monitoring system can automatically detect the change condition of hardware, has accurate detection result and high detection efficiency, obviously improves the supervision strength of the hardware compared with a manual method in the prior art, greatly saves manpower and time cost, obviously improves the working efficiency, has wide application range, is especially suitable for monitoring large-scale electronic equipment of large enterprises, and provides great convenience for enterprise management.
In some embodiments of the present application, the acquiring hardware information of the hardware to be detected includes: and after the electronic equipment where the hardware to be detected is located is started, or in response to a detection instruction submitted through a front-end interface, receiving the hardware information of the hardware to be detected uploaded by the electronic equipment.
That is, the method and the device are suitable for detecting electronic equipment, such as a notebook computer, a desktop computer, a server and the like, when the electronic equipment is started up every time, and a user can submit a detection instruction through a front-end interface to detect at any time.
The acquiring of the hardware information of the hardware to be detected may be actively uploaded by the electronic device to be detected, or may be actively read or pulled by a detection tool formed according to the method of the present application.
Taking the detection of the electronic equipment to be detected every time the electronic equipment is started as an example, the electronic equipment can upload the hardware information of the hardware to be detected per se when the electronic equipment is started every time, so as to trigger the subsequent detection step.
In addition, the method also supports a periodic detection mode, namely, a user can start detection when the starting time or the ending time of a period is reached by setting a timing task, for example, taking 24h as the period, so that the hardware change condition can be found more timely.
In some embodiments of the present application, the hardware to be detected is any one of a hard disk, a CPU, an internal memory, a main board, and a display, and the hardware information includes: identity identification marks; the identity identification mark of the hard disk is a hardware serial number, the identity identification mark of the memory is a memory serial number, the identity identification mark of the mainboard is a mainboard name, and the identity of the display is a display name; the determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule includes: if the identity identification mark of the hardware to be detected is determined to be inconsistent with the initial identity identification mark of the hardware to be detected, determining that the hardware to be detected is changed; otherwise, determining that the hardware to be detected is not changed.
The hardware of the electronic equipment mainly comprises a hard disk, a CPU, a memory, a mainboard, a display and the like, and the hardware is usually attached with an identification mark when being delivered from a factory, and the uniqueness of the identity of the hardware can be determined according to the identification mark. The hardware information of various hardware in the electronic device is recorded or recognized in the detection tool formed by the method of the present application or in the detection server, and when necessary, the hardware information is read to a designated storage area.
And the identification mark of the CPU is a complete CPU model, such as Intel Core i5-9400F @2.90GHz, comparing the obtained complete model of the CPU with the initial model of the CPU, if the obtained complete model of the CPU is consistent with the initial model of the CPU, determining that the CPU is not changed, and if the obtained complete model of the CPU is inconsistent with the initial model of the CPU, determining that the CPU is changed.
In some embodiments of the present application, when detecting a CPU, the CPU dominant frequency may also be detected to more accurately obtain a change detection result of the CPU, specifically, compare the obtained CPU dominant frequency with the initial dominant frequency of the CPU, and if the obtained CPU dominant frequency is not the same as the initial dominant frequency of the CPU, determine that the CPU changes; if yes, determining that the CPU is not changed.
The identification identifier of the memory is a memory serial number, and it can be determined whether the memory has changed through the memory serial number, specifically, the obtained memory serial number can be compared with the initial memory serial number of the memory, if the two are consistent, it is determined that the memory has not changed, and if the two are inconsistent, it is determined that the memory has changed.
The identification mark of the mainboard is a complete mainboard name, such as technically B150M-D2V-CF, the obtained complete mainboard name is compared with the initial name of the CPU, if the complete mainboard name is consistent with the initial name of the CPU, the mainboard is determined to be not changed, and if the complete mainboard name is inconsistent with the initial name of the CPU, the mainboard is determined to be changed.
The identity of the display is identified as the full display name, such as DELA07A DELL U2412M, and the obtained full name of the display is compared with the initial name of the display, and if the obtained full name of the display is consistent with the initial name of the display, no change is determined to be made to the display, and if the obtained full name of the display is inconsistent with the initial name of the display, a change is determined to be made to the display.
The hard disk serial number is identified by the identity of the hard disk, whether the hard disk is changed or not can be determined through the hard disk serial number, specifically, the obtained hard disk serial number can be compared with the initial hard disk serial number of the hard disk, if the obtained hard disk serial number is consistent with the initial hard disk serial number of the hard disk, the hard disk is determined to be not changed, and if the obtained hard disk serial number is inconsistent with the initial hard disk serial number of the hard disk, the hard disk is determined to be changed.
In some embodiments of the application, hardware information of some hardware may not be read out, that is, the hardware information of the hardware to be detected is not obtained, taking a hard disk as an example, if the serial number of the hard disk of the hardware is found to be empty when the hardware information of the hard disk to be detected is obtained, the hard disk model and the hard disk capacity of the hard disk to be detected are obtained. Comparing the obtained hard disk model with the initial hard disk model of the hard disk to be detected, comparing the obtained hard disk capacity with the initial hard disk capacity of the hard disk to be detected, and if the obtained hard disk model and the initial hard disk capacity are consistent, determining that the hardware to be detected is not changed; and if the hardware to be detected is not consistent with the hardware to be detected or one of the hardware to be detected is inconsistent with the hardware to be detected, determining that the hardware to be detected is changed.
The detection of the hard disk type and the hard disk capacity can be executed in series or in parallel, one item can be compared firstly and then the other item can be compared in series, if the obtained hard disk type is compared with the initial hard disk type of the hard disk to be detected firstly, and if the obtained hard disk type and the initial hard disk type of the hard disk to be detected are consistent, the obtained hard disk capacity is continuously compared with the initial hard disk capacity of the hard disk to be detected; if the two are not consistent, the hard disk is directly judged to be changed. When the operation is parallel, the comparison of the obtained hard disk model and the initial hard disk model of the hard disk to be detected and the comparison of the obtained hard disk capacity and the initial hard disk capacity of the hard disk to be detected can be carried out simultaneously, so that the time is saved.
In some embodiments of the present application, the hardware to be detected is a graphics card, and the hardware information includes: manufacturer information, equipment number, version, bus number; the determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule includes: if the manufacturer information, the equipment number, the version and the bus number are determined to be respectively consistent with the initial manufacturer information, the initial equipment number, the initial version and the initial bus number of the display card, determining that the display card is not changed; otherwise, determining that the display card is changed.
For one display card, the manufacturer, the equipment number, the version and the bus number of the display card can determine the unique display card, so that when the display card is detected, the display card can be determined to be unchanged if the parameters are consistent with the initial values; and if one or more of the items are inconsistent, determining that the display card is changed. The comparison of the 4 parameters of the display card may be performed in series or in parallel, and the process is the aforementioned process for detecting the hard disk, which is not described herein again.
In some embodiments of the present application, in the above method, the altering the detection result includes: hardware addition, hardware modification, and hardware removal.
Depending on the specific detection result, the alteration detection result may include, but is not limited to, no alteration of hardware, addition of hardware, change of hardware, and removal of hardware. If one piece of hardware is judged not to be changed, the change detection result is that the hardware is not changed; if an electronic device originally has one hard disk, and when the hardware information of the hardware to be detected is read, two hard disks are obtained, the detection result is changed into hardware addition; if a hardware change is found through detection, for example, the mainboard 1 is changed into the mainboard 2, the change detection result is a hardware change; if an electronic device originally has a hard disk and the hardware information of the hard disk is not read when the hardware information of the hardware to be detected is read, changing the detection result into hardware removal.
The scenario of the present application includes not only the above-mentioned embodiments, but also the above-mentioned examples are merely illustrative and do not limit the present application in any way.
Fig. 2 is a schematic flow chart illustrating a method for detecting a hardware change according to another embodiment of the present application, and as can be seen from fig. 2, the present embodiment includes:
in response to the detection instruction, hardware information of a plurality of items of hardware to be detected of one electronic device is acquired, where the hardware information includes a hard disk, a memory, a main board, a display, a CPU, and a graphics card, and the hard disk is taken as an example for description below.
In response to the detection instruction, hardware information of a plurality of items of hardware to be detected of one electronic device is acquired, including a hard disk, a memory, a main board, a display, a CPU, and a graphics card, and the hard disk is taken as an example below.
Judging whether the hardware information of the hard disk is acquired or not, if not, returning a change detection result to be hard disk removal; if yes, judging whether the obtained hard disk number is in the relation with the initial value of the hard disk number.
If the detection result is smaller than the preset detection value, returning the change detection result to be the hard disk removal; if so, returning a change detection result to be the addition of the hard disk; and if so, judging whether the obtained hard disk serial number is consistent with the initial serial number.
If yes, returning a change detection result as that the hard disk is not changed; if not, the change detection result is returned as the hard disk change.
Fig. 3 is a schematic structural diagram of a hardware change detection apparatus according to another embodiment of the present application; as can be seen from fig. 3, the apparatus 300 comprises:
an obtaining unit 310, configured to obtain hardware information of the hardware to be detected;
the determining unit 320 is configured to determine a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
In some embodiments of the present application, in the apparatus, the obtaining unit 310 is configured to receive, after an electronic device where the hardware to be detected is located is started, or in response to a detection instruction submitted through a front-end interface, hardware information of the hardware to be detected uploaded by the electronic device.
In some embodiments of the present application, in the above apparatus, the hardware to be detected is any one of a hard disk, a CPU, a memory, a motherboard, and a display, and the hardware information includes: identity identification marks; the identity identification mark of the hard disk is a hardware serial number, the identity identification mark of the memory is a memory serial number, the identity identification mark of the mainboard is a mainboard name, and the identity of the display is a display name; the determining unit 320 is configured to determine that the hardware to be detected is changed if it is determined that the identification identifier of the hardware to be detected is inconsistent with the initial identification identifier of the hardware to be detected; otherwise, determining that the hardware to be detected is not changed.
In some embodiments of the present application, in the apparatus, the hardware to be detected is a hard disk, and the hardware information further includes: hard disk model and hard disk capacity; the determining unit 320 is further configured to determine whether the model and the capacity of the hard disk are consistent with the initial model and the initial capacity of the hard disk, respectively, if the serial number of the hard disk is null; if the hardware to be detected is consistent with the hardware to be detected, determining that the hardware to be detected is not changed; otherwise, determining that the hardware to be detected is changed.
In some embodiments of the present application, in the above apparatus, the hardware to be detected is a CPU, and the hardware information further includes: CPU master frequency; the determining unit 320 is further configured to determine that the hardware to be detected is changed if it is determined that the main frequency of the CPU is inconsistent with the initial main frequency of the CPU.
In some embodiments of the present application, in the above apparatus, the hardware to be detected is a graphics card, and the hardware information includes: manufacturer information, equipment number, version, bus number; a determining unit 320, configured to determine that the graphics card is not changed if it is determined that the vendor information, the device number, the version, and the bus number are respectively consistent with the initial vendor information, the initial device number, the initial version, and the initial bus number of the graphics card; otherwise, determining that the display card is changed.
In some embodiments of the present application, in the above apparatus, the alteration detection result includes: hardware addition, hardware modification, and hardware removal.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 3, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and the hardware change detection device is formed on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
acquiring hardware information of hardware to be detected;
and determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
The method executed by the hardware change detection device according to the embodiment shown in fig. 3 of the present application may be applied to a processor, or may be implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed by the detection apparatus for hardware change in fig. 3, and implement the functions of the detection apparatus for hardware change in the embodiment shown in fig. 3, which are not described herein again in this embodiment of the present application.
An embodiment of the present application further provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to perform a method performed by the apparatus for detecting a hardware change in the embodiment shown in fig. 3, and are specifically configured to perform:
acquiring hardware information of hardware to be detected;
and determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for detecting a hardware change, comprising:
acquiring hardware information of hardware to be detected;
and determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
2. The method according to claim 1, wherein the acquiring hardware information of the hardware to be detected comprises:
and after the electronic equipment where the hardware to be detected is located is started, or in response to a detection instruction submitted through a front-end interface, receiving the hardware information of the hardware to be detected uploaded by the electronic equipment.
3. The method according to claim 2, wherein the hardware to be detected is any one of a hard disk, a CPU, a memory, a motherboard, and a display, and the hardware information includes: identity identification marks; the identity identification mark of the hard disk is a hardware serial number, the identity identification mark of the memory is a memory serial number, the identity identification mark of the mainboard is a mainboard name, and the identity of the display is a display name;
the determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule includes:
if the identity identification mark of the hardware to be detected is determined to be inconsistent with the initial identity identification mark of the hardware to be detected, determining that the hardware to be detected is changed; otherwise, determining that the hardware to be detected is not changed.
4. The method according to claim 3, wherein the hardware to be detected is a hard disk, and the hardware information further includes: hard disk model and hard disk capacity;
the determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule further includes:
if the serial number of the hard disk is empty, respectively determining whether the model number and the capacity of the hard disk are consistent with the initial model number and the initial capacity of the hard disk; if the hardware to be detected is consistent with the hardware to be detected, determining that the hardware to be detected is not changed; otherwise, determining that the hardware to be detected is changed.
5. The method according to claim 3, wherein the hardware to be detected is a CPU, and the hardware information further includes: CPU master frequency;
the determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule further includes:
and if the main frequency of the CPU is determined to be inconsistent with the initial main frequency of the CPU, determining that the hardware to be detected is changed.
6. The method according to claim 2, wherein the hardware to be detected is a graphics card, and the hardware information comprises: manufacturer information, equipment number, version, bus number;
the determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule includes:
if the manufacturer information, the equipment number, the version and the bus number are determined to be respectively consistent with the initial manufacturer information, the initial equipment number, the initial version and the initial bus number of the display card, determining that the display card is not changed;
otherwise, determining that the display card is changed.
7. The method according to any one of claims 1 to 6, wherein the alteration detection result comprises: hardware addition, hardware modification, and hardware removal.
8. An apparatus for detecting a hardware change, comprising:
the acquisition unit is used for acquiring hardware information of the hardware to be detected;
and the judging unit is used for determining a change detection result of the hardware to be detected according to the acquired hardware information and a preset hardware change rule.
9. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of claims 1 to 7.
10. A computer readable storage medium storing one or more programs which, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the method of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111538727.1A CN114416442A (en) | 2021-12-15 | 2021-12-15 | Hardware change detection method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111538727.1A CN114416442A (en) | 2021-12-15 | 2021-12-15 | Hardware change detection method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114416442A true CN114416442A (en) | 2022-04-29 |
Family
ID=81268458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111538727.1A Pending CN114416442A (en) | 2021-12-15 | 2021-12-15 | Hardware change detection method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114416442A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114780159A (en) * | 2022-05-07 | 2022-07-22 | 紫光计算机科技有限公司 | System configuration detection method and device and electronic equipment |
-
2021
- 2021-12-15 CN CN202111538727.1A patent/CN114416442A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114780159A (en) * | 2022-05-07 | 2022-07-22 | 紫光计算机科技有限公司 | System configuration detection method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107193750B (en) | Script recording method and device | |
CN110515795B (en) | Big data component monitoring method and device and electronic equipment | |
CN106897342B (en) | Data verification method and equipment | |
CN113448862B (en) | Software version testing method and device and computer equipment | |
CN110647463B (en) | Method and device for restoring test breakpoint and electronic equipment | |
CN114416442A (en) | Hardware change detection method and device, electronic equipment and readable storage medium | |
CN110580220A (en) | method for measuring execution time of code segment and terminal equipment | |
CN108268369B (en) | Test data acquisition method and device | |
CN112181479A (en) | Method and device for determining difference between code file versions and electronic equipment | |
CN111949467A (en) | Server hardware verification method and system | |
CN106611118B (en) | Method and device for applying login credentials | |
CN116756037A (en) | Abnormal code positioning system, method, equipment and computer readable storage medium | |
CN114070737B (en) | Method and device for checking configuration data of equipment, storage medium and electronic equipment | |
CN106990998B (en) | Virtual machine monitoring method and device | |
CN115409537A (en) | Method and equipment for determining subsidies of users | |
CN113987378A (en) | Page rendering time duration monitoring method and device, electronic equipment and storage medium | |
CN110908876B (en) | Method and device for acquiring hardware performance data | |
CN114817010A (en) | Python-based Redfish automatic testing method and device | |
CN112667463A (en) | Application system baseline state monitoring method and device | |
CN110909071A (en) | Data synchronization method, device and system | |
CN110968754A (en) | Detection method and device for crawler page turning strategy | |
CN112905602B (en) | Data comparison method, computing device and computer storage medium | |
CN109446100B (en) | Method and device for managing script file of equipment | |
CN116795656B (en) | Early warning prompting method, device, equipment and storage medium for buried point error | |
CN112306771B (en) | Method for detecting system file damage rule and related equipment |
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 |