CN111414178A - Equipment information updating method, device, equipment and medium - Google Patents

Equipment information updating method, device, equipment and medium Download PDF

Info

Publication number
CN111414178A
CN111414178A CN202010171648.0A CN202010171648A CN111414178A CN 111414178 A CN111414178 A CN 111414178A CN 202010171648 A CN202010171648 A CN 202010171648A CN 111414178 A CN111414178 A CN 111414178A
Authority
CN
China
Prior art keywords
target
identification code
equipment
file
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
Application number
CN202010171648.0A
Other languages
Chinese (zh)
Inventor
敖洵峰
候志立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010171648.0A priority Critical patent/CN111414178A/en
Publication of CN111414178A publication Critical patent/CN111414178A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Abstract

The application discloses a method, a device, equipment and a medium for updating equipment information, wherein the method comprises the following steps: acquiring target equipment information of target equipment; comparing the target equipment information with a locally stored target file; and updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally. Therefore, the target equipment information of the target equipment is obtained firstly, then the target equipment information is compared with the target file stored locally, then the target file is updated by utilizing the target equipment information according to the comparison result, so that the target equipment information and the target file are compared and updated according to the comparison result, the related codes do not need to be changed, recompiled and the like, the equipment information can be updated quickly, the time is saved, the operation is simple, and the efficiency is high.

Description

Equipment information updating method, device, equipment and medium
Technical Field
The present application relates to the field of device management and control technologies, and in particular, to a method, an apparatus, a device, and a medium for updating device information.
Background
At present, a Baseboard Management Controller (BMC) of a server needs to monitor each device connected to a motherboard, and before the BMC monitors the devices, related information of the devices needs to be acquired so as to monitor the devices.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a device, and a medium for updating device information, which can quickly complete updating of device information, save time, and have simple operation and high efficiency. The specific scheme is as follows:
in a first aspect, the present application discloses a device information updating method, applied to a BMC, including:
acquiring target equipment information of target equipment;
comparing the target equipment information with a locally stored target file;
and updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally.
Optionally, the obtaining target device information of the target device includes:
acquiring target equipment information of target equipment, wherein the target equipment information comprises a target manufacturer identification code, a target manufacturer name, a target equipment model identification code and a target equipment model name;
correspondingly, the updating the device information in the target file by using the target device information according to the comparison result includes:
if the target file has a manufacturer identification code which is the same as the target manufacturer identification code, the manufacturer name corresponding to the manufacturer identification code is the same as the target manufacturer name, and the target equipment model identification code is valid, adding a new group of data structures under the manufacturer identification code in the target file to store the target equipment model name and the target equipment model name;
and if the manufacturer identification code which is the same as the target manufacturer identification code does not exist in the target file and the target equipment model identification code is valid, adding a group of data structures in the target file to store the target manufacturer identification code, the target manufacturer name, the target equipment model identification code and the target equipment signal name.
Optionally, before the obtaining of the target device information of the target device, the method further includes:
and storing the pre-acquired equipment information in a preset file according to a tree-shaped data structure form to obtain the target file.
Optionally, the obtaining target device information of the target device includes:
acquiring target device information of a target GPU, wherein the target device information comprises: the method comprises the following steps that (1) an identification code of a target manufacturer, an identification code of a target device model, a target register address and a target temperature calculation formula serial number are obtained;
correspondingly, the updating the device information in the target file by using the target device information according to the comparison result includes:
if the manufacturer identification code identical to the target manufacturer identification code exists in the target file, and the equipment model identification code corresponding to the manufacturer identification code is identical to the target equipment model identification code, correspondingly updating the target register address and the target temperature calculation formula serial number by using the register address and the temperature calculation formula serial number corresponding to the equipment model identification code;
and if the manufacturer identification code identical to the target manufacturer identification code does not exist in the target file, or the equipment model identification code identical to the target equipment model identification code does not exist in the target file, storing the standard manufacturer identification code, the target equipment model identification code, the target register address and the target temperature calculation formula serial number into the target file.
Optionally, before obtaining the target device information of the target GPU, the method further includes:
acquiring a temperature calculation formula;
and storing the temperature calculation formula by using the switch conditional statement so as to obtain the GPU temperature by using the temperature calculation formula.
Optionally, before the obtaining of the target device information of the target device, the method further includes:
acquiring equipment information obtained in advance;
storing the equipment information into a preset JSON file;
and compiling the JSON file and storing the JSON file into a local file system to obtain the target file.
Optionally, the obtaining target device information of the target device includes:
and calling a preset IPMI command interface to acquire the target equipment information of the target equipment.
In a second aspect, the present application discloses a device information updating apparatus, applied to a BMC, including:
the information acquisition module is used for acquiring target equipment information of the target equipment;
the data comparison module is used for comparing the target equipment information with a locally stored target file;
and the data updating module is used for updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally.
In a third aspect, the present application discloses an apparatus information updating apparatus, including:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the device information updating method disclosed above.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the device information updating method disclosed in the foregoing.
Therefore, the target equipment information of the target equipment is firstly obtained, then the target equipment information is compared with the locally stored target file, and the equipment information in the target file is updated by using the target equipment information according to the comparison result, so that the target equipment is locally monitored. Therefore, the target equipment information of the target equipment is obtained firstly, then the target equipment information is compared with the target file stored locally, then the target file is updated by utilizing the target equipment information according to the comparison result, so that the target equipment information and the target file are compared and updated according to the comparison result, the related codes do not need to be changed, recompiled and the like, the equipment information can be updated quickly, the time is saved, the operation is simple, and the efficiency is high.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an apparatus information updating method disclosed in the present application;
fig. 2 is a flowchart of a specific device information updating method disclosed in the present application;
fig. 3 is a flowchart of a specific device information updating method disclosed in the present application;
FIG. 4 is a flowchart of a specific device information update method disclosed herein;
FIG. 5 is a flowchart of a specific device information update method disclosed herein;
fig. 6 is a schematic structural diagram of an apparatus information updating device disclosed in the present application;
fig. 7 is a block diagram of an apparatus information updating apparatus disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part 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.
Referring to fig. 1, an embodiment of the present application discloses a device information updating method, which is applied to a BMC, and the method includes:
step S11: target device information of a target device is acquired.
In a specific implementation process, target device information of a target device needs to be acquired first, where the device information includes, but is not limited to, a manufacturer identification code, a manufacturer name, a device model identification code, and the like.
Step S12: and comparing the target equipment information with a locally stored target file.
It can be understood that after the target device information is acquired, the target device information needs to be compared with a locally stored target file to determine whether the target device information exists in the target file, where the target file is a file generated according to pre-obtained device information.
Step S13: and updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally.
After the target device information is compared with the target file, the device information in the target file needs to be updated by using the target device information according to a comparison result, so that the target device can be monitored locally.
In a specific implementation process, the acquiring target device information of the target device includes: calling a preset IPMI (Intelligent Platform Management Interface) to obtain target device information of the target device. That is, the IPMI may be designed first, and then the designed IPMI is called, so as to transfer the target device information to the BMC through the IPMI command.
Before the obtaining of the target device information of the target device, the method further includes: acquiring equipment information obtained in advance; storing the equipment information into a preset JSON (JavaScript Object Notation) file; and compiling the JSON file and storing the JSON file into a local file system to obtain the target file.
Therefore, the target equipment information of the target equipment is firstly obtained, then the target equipment information is compared with the locally stored target file, and the equipment information in the target file is updated by using the target equipment information according to the comparison result, so that the target equipment is locally monitored. Therefore, the target equipment information of the target equipment is obtained firstly, then the target equipment information is compared with the target file stored locally, then the target file is updated by utilizing the target equipment information according to the comparison result, so that the target equipment information and the target file are compared and updated according to the comparison result, the related codes do not need to be changed, recompiled and the like, the equipment information can be updated quickly, the time is saved, the operation is simple, and the efficiency is high.
Referring to fig. 2, an embodiment of the present application discloses a specific device information updating method, which is applied to a BMC, and the method includes:
step S21: the method comprises the steps of obtaining target equipment information of target equipment, wherein the target equipment information comprises a target manufacturer identification code, a target manufacturer name, a target equipment model identification code and a target equipment model name.
In a specific implementation process, target information of a target device needs to be acquired first, where the target device information includes, but is not limited to, a target manufacturer identifier, a target manufacturer name, a target device model identifier, a target device model name, and the like. The identification Code may be represented by an ASCII (American Standard Code for information exchange) Code in hexadecimal format.
Step S22: and comparing the target equipment information with a locally stored target file.
It can be understood that after the target device information is acquired, the target device information needs to be compared with a locally stored target file. When the target equipment information comprises a target manufacturer identification code, a target manufacturer name, a target equipment model identification code and a target equipment model name, firstly comparing the target manufacturer identification code with the manufacturer identification code in the target file, judging whether the manufacturer identification code identical with the target manufacturer identification code exists, then judging whether the manufacturer name under the same manufacturer identification code is identical with the target manufacturer name, and judging whether the target equipment model identification code is valid or not to obtain a corresponding comparison result.
Step S23: if the target file has the manufacturer identification code which is the same as the target manufacturer identification code, the manufacturer name corresponding to the manufacturer identification code is the same as the target manufacturer name, and the target equipment model identification code is valid, a group of data structures are additionally arranged under the manufacturer identification code in the target file to store the target equipment model identification code and the target equipment model name.
Step S24: and if the manufacturer identification code which is the same as the target manufacturer identification code does not exist in the target file and the target equipment model identification code is valid, adding a group of data structures in the target file to store the target manufacturer identification code, the target manufacturer name, the target equipment model identification code and the target equipment signal name.
In a specific implementation process, if the manufacturer identification code identical to the target manufacturer identification code does not exist in the target file and the target device model identification code is invalid, a set of data structure is newly added in the target file to store the target manufacturer identification code and the target manufacturer name, but not store the target device model identification code and the target device signal name.
Referring to fig. 3, a flowchart of a method for updating device information is shown. Firstly, transmitting an identification code, a manufacturer name and a model name of equipment into BMC, wherein the identification code comprises a manufacturer identification code and a model identification code, then searching in an object file according to the identification code, judging whether the same manufacturer identification code exists in the object file, if the same manufacturer identification code exists, judging whether the manufacturer names under the same manufacturer identification code are the same, if not, finishing equipment information updating, if so, judging whether the transmitted model identification code is effective, if the model identification code is effective, adding a group of data structures under the manufacturer identification code in the object file to store the model identification code and the model name. If the same manufacturer identification code does not exist, directly judging whether the transmitted model identification code is valid, and if so, adding a group of data structures in the target file to store the manufacturer identification code, the manufacturer name, the model identification code and the model name. If the object file is invalid, adding a set of data structure in the object file to store the manufacturer identification code and the manufacturer name, but not store the model identification code and the model name.
In a specific implementation process, before the obtaining target device information of the target device, the method further includes: and storing the pre-acquired equipment information in a preset file according to a tree-shaped data structure form to obtain the target file. Specifically, the device information acquired in advance is stored in the JSON file according to a tree data structure form, so as to obtain the target file. For example, the data structure of the tree may be as follows:
Figure BDA0002409379800000071
referring to fig. 4, an embodiment of the present application discloses a specific device information updating method, which is applied to a BMC, and the method includes:
step S31: acquiring target device information of a target GPU, wherein the target device information comprises: the system comprises a target manufacturer identification code, a target equipment model identification code, a target register address and a target temperature calculation formula serial number.
In a specific implementation process, target device information of a target device needs to be obtained first, where the target device may be a GPU (Graphics Processing Unit), and the corresponding target device information may include a target vendor identification code, a target device model identification code, a target register address, and a target temperature calculation formula serial number. And the serial number of the target temperature calculation formula corresponds to a corresponding temperature calculation formula and is used for the temperature of the GPU.
Step S32: and comparing the target equipment information with a locally stored target file.
It can be understood that after the target device information is acquired, the target device information needs to be compared with a target file stored locally, specifically, the target manufacturer identification code is compared with the manufacturer identification code in the target file to determine whether the manufacturer identification code identical to the target manufacturer identification code exists in the target file, and if the manufacturer identification code identical to the target manufacturer identification code exists, it is determined whether the model identification code under the manufacturer identification code is identical to the model identification code of the target device to obtain a comparison result.
Step S33: and if the manufacturer identification code identical with the target manufacturer identification code exists in the target file, and the equipment model identification code corresponding to the manufacturer identification code is identical with the target equipment model identification code, correspondingly updating the target register address and the target temperature calculation formula serial number by using the register address and the temperature calculation formula serial number corresponding to the equipment model identification code.
Step S34: and if the manufacturer identification code identical to the target manufacturer identification code does not exist in the target file, or the equipment model identification code identical to the target equipment model identification code does not exist in the target file, storing the standard manufacturer identification code, the target equipment model identification code, the target register address and the target temperature calculation formula serial number into the target file.
Referring to fig. 5, a flowchart of a device information updating method is shown. The identification code, the register address and the used temperature formula serial number of the GPU are firstly transmitted to the BMC, wherein the identification code of the GPU comprises a manufacturer identification code and a model identification code, the identification code of the GPU is searched in an object file according to the identification code of the GPU, whether the same manufacturer identification code and model identification code exist is judged, if the same manufacturer identification code and model identification code exist, the register address and the used formula serial number of the GPU are updated according to the object file, and if the same manufacturer identification code and model identification code do not exist, the identification code, the register address and the used formula serial number of the GPU are stored in the object file.
Before the obtaining of the target device information of the target GPU, the method further includes: acquiring a temperature calculation formula; and storing the temperature calculation formula by using the switch conditional statement so as to obtain the GPU temperature by using the temperature calculation formula. For example, as follows:
Figure BDA0002409379800000081
further, before the obtaining the target device information of the target GPU, the method further includes: acquiring equipment information obtained in advance; storing the equipment information into a preset JSON file; and compiling the JSON file and storing the JSON file into a local file system to obtain the target file. Wherein the device information includes: the manufacturer identification code, the model identification code and the serial number of the used temperature calculation formula. For example, the data structure stored into a JSON file is as follows:
Figure BDA0002409379800000091
referring to fig. 6, an embodiment of the present application discloses an apparatus for updating device information, which is applied to a BMC, and includes:
an information obtaining module 11, configured to obtain target device information of a target device;
the data comparison module 12 is configured to compare the target device information with a locally stored target file;
and the data updating module 13 is configured to update the device information in the target file according to the comparison result, so as to locally monitor the target device.
Therefore, the target equipment information of the target equipment is firstly obtained, then the target equipment information is compared with the locally stored target file, and the equipment information in the target file is updated by using the target equipment information according to the comparison result, so that the target equipment is locally monitored. Therefore, the target equipment information of the target equipment is obtained firstly, then the target equipment information is compared with the target file stored locally, then the target file is updated by utilizing the target equipment information according to the comparison result, so that the target equipment information and the target file are compared and updated according to the comparison result, the related codes do not need to be changed, recompiled and the like, the equipment information can be updated quickly, the time is saved, the operation is simple, and the efficiency is high.
Further, referring to fig. 7, an embodiment of the present application further discloses an apparatus information updating apparatus, including: a processor 21 and a memory 22.
Wherein the memory 22 is used for storing a computer program; the processor 21 is configured to execute the computer program to implement the device information updating method disclosed in the foregoing embodiment.
For a specific process of the device information updating method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Further, an embodiment of the present application also discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the following steps:
acquiring target equipment information of target equipment; comparing the target equipment information with a locally stored target file; and updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally.
Therefore, the target equipment information of the target equipment is firstly obtained, then the target equipment information is compared with the locally stored target file, and the equipment information in the target file is updated by using the target equipment information according to the comparison result, so that the target equipment is locally monitored. Therefore, the target equipment information of the target equipment is obtained firstly, then the target equipment information is compared with the target file stored locally, then the target file is updated by utilizing the target equipment information according to the comparison result, so that the target equipment information and the target file are compared and updated according to the comparison result, the related codes do not need to be changed, recompiled and the like, the equipment information can be updated quickly, the time is saved, the operation is simple, and the efficiency is high.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: acquiring target equipment information of target equipment, wherein the target equipment information comprises a target manufacturer identification code, a target manufacturer name, a target equipment model identification code and a target equipment signal name; correspondingly, the updating the device information in the target file by using the target device information according to the comparison result includes: if the target file has a manufacturer identification code which is the same as the target manufacturer identification code, the manufacturer name corresponding to the manufacturer identification code is the same as the target manufacturer name, and the target equipment model identification code is valid, adding a new group of data structures under the manufacturer identification code in the target file to store the target equipment model name and the target equipment model name; and if the manufacturer identification code which is the same as the target manufacturer identification code does not exist in the target file and the target equipment model identification code is valid, adding a group of data structures in the target file to store the target manufacturer identification code, the target manufacturer name, the target equipment model identification code and the target equipment signal name.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and storing the pre-acquired equipment information in a preset file according to a tree-shaped data structure form to obtain the target file.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: acquiring target device information of a target GPU, wherein the target device information comprises: the method comprises the following steps that (1) an identification code of a target manufacturer, an identification code of a target device model, a target register address and a target temperature calculation formula serial number are obtained; correspondingly, the updating the device information in the target file by using the target device information according to the comparison result includes: if the manufacturer identification code identical to the target manufacturer identification code exists in the target file, and the equipment model identification code corresponding to the manufacturer identification code is identical to the target equipment model identification code, correspondingly updating the target register address and the target temperature calculation formula serial number by using the register address and the temperature calculation formula serial number corresponding to the equipment model identification code; and if the manufacturer identification code identical to the target manufacturer identification code does not exist in the target file, or the equipment model identification code identical to the target equipment model identification code does not exist in the target file, storing the standard manufacturer identification code, the target equipment model identification code, the target register address and the target temperature calculation formula serial number into the target file.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: acquiring a temperature calculation formula; and storing the temperature calculation formula by using the switch conditional statement so as to obtain the GPU temperature by using the temperature calculation formula.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: acquiring equipment information obtained in advance; storing the equipment information into a preset JSON file; and compiling the JSON file and storing the JSON file into a local file system to obtain the target file.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and calling a preset IPMI command interface to acquire the target equipment information of the target equipment.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 other 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 identical elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is given to a method, an apparatus, a device, and a medium for updating device information provided by the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. The equipment information updating method is applied to BMC and comprises the following steps:
acquiring target equipment information of target equipment;
comparing the target equipment information with a locally stored target file;
and updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally.
2. The device information updating method according to claim 1, wherein the acquiring target device information of the target device includes:
acquiring target equipment information of target equipment, wherein the target equipment information comprises a target manufacturer identification code, a target manufacturer name, a target equipment model identification code and a target equipment signal name;
correspondingly, the updating the device information in the target file by using the target device information according to the comparison result includes:
if the manufacturer identification code identical to the target manufacturer identification code exists in the target file, the manufacturer name corresponding to the manufacturer identification code is identical to the target manufacturer name, and the target equipment model identification code is valid, adding a new group of data structures under the manufacturer identification code in the target file to store the target equipment model identification code and the target equipment model name;
and if the manufacturer identification code which is the same as the target manufacturer identification code does not exist in the target file and the target equipment model identification code is valid, adding a group of data structures in the target file to store the target manufacturer identification code, the target manufacturer name, the target equipment model identification code and the target equipment signal name.
3. The device information updating method according to claim 2, wherein before the obtaining of the target device information of the target device, the method further comprises:
and storing the pre-acquired equipment information in a preset file according to a tree-shaped data structure form to obtain the target file.
4. The device information updating method according to claim 1, wherein the acquiring target device information of the target device includes:
acquiring target device information of a target GPU, wherein the target device information comprises: the method comprises the following steps that (1) an identification code of a target manufacturer, an identification code of a target device model, a target register address and a target temperature calculation formula serial number are obtained;
correspondingly, the updating the device information in the target file by using the target device information according to the comparison result includes:
if the manufacturer identification code identical to the target manufacturer identification code exists in the target file, and the equipment model identification code corresponding to the manufacturer identification code is identical to the target equipment model identification code, correspondingly updating the target register address and the target temperature calculation formula serial number by using the register address and the temperature calculation formula serial number corresponding to the equipment model identification code;
and if the manufacturer identification code identical to the target manufacturer identification code does not exist in the target file, or the equipment model identification code identical to the target model identification code does not exist in the target file, storing the standard manufacturer identification code, the target equipment model identification code, the target register address and the target temperature calculation formula serial number into the target file.
5. The device information updating method according to claim 4, wherein before the obtaining the target device information of the target GPU, the method further comprises:
acquiring a temperature calculation formula;
and storing the temperature calculation formula by using the switch conditional statement so as to obtain the GPU temperature by using the temperature calculation formula.
6. The device information updating method according to claim 1, wherein before the obtaining of the target device information of the target device, the method further comprises:
acquiring equipment information obtained in advance;
storing the equipment information into a preset JSON file;
and compiling the JSON file and storing the JSON file into a local file system to obtain the target file.
7. The device information updating method according to any one of claims 1 to 6, wherein the acquiring target device information of the target device includes:
and calling a preset IPMI command interface to acquire the target equipment information of the target equipment.
8. An apparatus for updating device information, applied to a BMC, includes:
the information acquisition module is used for acquiring target equipment information of the target equipment;
the data comparison module is used for comparing the target equipment information with a locally stored target file;
and the data updating module is used for updating the equipment information in the target file by using the target equipment information according to the comparison result so as to monitor the target equipment locally.
9. An apparatus information updating apparatus characterized by comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the device information updating method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the device information updating method according to any one of claims 1 to 7.
CN202010171648.0A 2020-03-12 2020-03-12 Equipment information updating method, device, equipment and medium Pending CN111414178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010171648.0A CN111414178A (en) 2020-03-12 2020-03-12 Equipment information updating method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010171648.0A CN111414178A (en) 2020-03-12 2020-03-12 Equipment information updating method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN111414178A true CN111414178A (en) 2020-07-14

Family

ID=71491068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010171648.0A Pending CN111414178A (en) 2020-03-12 2020-03-12 Equipment information updating method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111414178A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282530A (en) * 2021-07-20 2021-08-20 统信软件技术有限公司 Equipment information processing method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478424A (en) * 2008-12-18 2009-07-08 深圳华为通信技术有限公司 Distribution method, apparatus and system for local area network side equipment software upgrade data
CN101674590A (en) * 2009-09-29 2010-03-17 中兴通讯股份有限公司 Client device and remote updating method and remote updating service system thereof
US20150160960A1 (en) * 2013-12-06 2015-06-11 Vmware, Inc. Method and subsystem for data exchange between a guest operating system and a virtualization layer
US20180074828A1 (en) * 2015-04-29 2018-03-15 Hangzhou Queenhive Information Technologies Co., Ltd. Setting a startup parameter and controlling startup of a mainboard
CN108228888A (en) * 2018-01-31 2018-06-29 郑州云海信息技术有限公司 A kind of management method of assets information, system, device and readable storage medium storing program for executing
CN108769060A (en) * 2018-06-21 2018-11-06 曙光信息产业(北京)有限公司 The method, apparatus and cluster monitoring system of automatic addition server
CN109344027A (en) * 2018-09-04 2019-02-15 大唐高鸿信安(浙江)信息科技有限公司 A kind of method and device of monitoring device component states
CN110457076A (en) * 2019-09-10 2019-11-15 广州市金其利信息科技有限公司 A kind of peripheral equipment management method
CN110851206A (en) * 2019-11-12 2020-02-28 深圳市元征科技股份有限公司 Vehicle type configuration file expanding method, device, equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478424A (en) * 2008-12-18 2009-07-08 深圳华为通信技术有限公司 Distribution method, apparatus and system for local area network side equipment software upgrade data
CN101674590A (en) * 2009-09-29 2010-03-17 中兴通讯股份有限公司 Client device and remote updating method and remote updating service system thereof
US20150160960A1 (en) * 2013-12-06 2015-06-11 Vmware, Inc. Method and subsystem for data exchange between a guest operating system and a virtualization layer
US20180074828A1 (en) * 2015-04-29 2018-03-15 Hangzhou Queenhive Information Technologies Co., Ltd. Setting a startup parameter and controlling startup of a mainboard
CN108228888A (en) * 2018-01-31 2018-06-29 郑州云海信息技术有限公司 A kind of management method of assets information, system, device and readable storage medium storing program for executing
CN108769060A (en) * 2018-06-21 2018-11-06 曙光信息产业(北京)有限公司 The method, apparatus and cluster monitoring system of automatic addition server
CN109344027A (en) * 2018-09-04 2019-02-15 大唐高鸿信安(浙江)信息科技有限公司 A kind of method and device of monitoring device component states
CN110457076A (en) * 2019-09-10 2019-11-15 广州市金其利信息科技有限公司 A kind of peripheral equipment management method
CN110851206A (en) * 2019-11-12 2020-02-28 深圳市元征科技股份有限公司 Vehicle type configuration file expanding method, device, equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
施威铭研究室: "《Windows 98 系统秘笈》", 31 March 1999, 人民邮电出版社 *
鄂海红等: "《大数据技术基础》", 31 October 2019, 北京邮电大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282530A (en) * 2021-07-20 2021-08-20 统信软件技术有限公司 Equipment information processing method and system

Similar Documents

Publication Publication Date Title
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN109951435B (en) Equipment identifier providing method and device and risk control method and device
US10320919B2 (en) Method, device, apparatus, and storage medium for generating identification information
CN110399267B (en) PCIE (peripheral component interface express) equipment monitoring method, system and equipment of server and readable storage medium
CN110162976B (en) Risk assessment method and device and terminal
CN110334297B (en) Terminal page loading method, terminal, server and storage medium
CN103577407A (en) Query method and query device for distributed database
CN100461136C (en) Method and system for maintaining data coherency in multiprocessor system
CN111460474B (en) Method, device, memory and computer for implementing decentralization predictor
CN108259195B (en) Method and system for determining influence range of abnormal event
CN106843947B (en) Method and device for processing code defects
CN111414178A (en) Equipment information updating method, device, equipment and medium
CN111488546B (en) Page generation method and device and storage medium
CN110874365B (en) Information query method and related equipment thereof
CN105610596B (en) Resource directory management method and network terminal
JP2014524210A (en) Generate variable length nonce
CN113158177A (en) Dynamic measurement method, device, equipment and storage medium
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
CN114117181B (en) Website page turning logic acquisition method and device and website page turning control method and device
CN107679093B (en) Data query method and device
CN111538651A (en) Interface testing method, device, server and storage medium
JP5266997B2 (en) Network connection station information output device, network connection station information output method, and program
CN108958983B (en) Data difference-based restoration method and device, storage medium and user equipment
CN116186076A (en) Caching and inquiring method, storage medium and equipment for database inquiring result
JP2018160047A (en) Portable terminal, server device, information process system, control method, and program

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: 20200714

RJ01 Rejection of invention patent application after publication