CN112269601B - BMC (baseboard management controller) and component asset information management method, device and storage medium thereof - Google Patents

BMC (baseboard management controller) and component asset information management method, device and storage medium thereof Download PDF

Info

Publication number
CN112269601B
CN112269601B CN202011141346.5A CN202011141346A CN112269601B CN 112269601 B CN112269601 B CN 112269601B CN 202011141346 A CN202011141346 A CN 202011141346A CN 112269601 B CN112269601 B CN 112269601B
Authority
CN
China
Prior art keywords
asset information
component asset
bmc
component
updating
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.)
Active
Application number
CN202011141346.5A
Other languages
Chinese (zh)
Other versions
CN112269601A (en
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 CN202011141346.5A priority Critical patent/CN112269601B/en
Publication of CN112269601A publication Critical patent/CN112269601A/en
Application granted granted Critical
Publication of CN112269601B publication Critical patent/CN112269601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a BMC (baseboard management controller) and a component asset information management method, a device and a computer readable storage medium thereof, wherein the method comprises the following steps: in the starting process of the BMC, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC; in the running process of the BMC, acquiring a component asset information searching instruction; analyzing and searching the component asset information corresponding to the component asset information searching instruction from the in-use component asset information base; according to the invention, through the default component asset information base corresponding to the original component asset information, the component asset information compression file corresponding to the current component asset information and the setting of the in-use component asset information base, the integrity of the asset information base can be ensured under the conditions of BMC in-band and out-band image updating, file partition damage and the like, the dynamic customization of the asset information is realized, and the information uniformity is ensured.

Description

BMC (baseboard management controller) and component asset information management method, device and storage medium thereof
Technical Field
The invention relates to the technical field of computers, in particular to a component asset information management method and device of BMC, the BMC and a computer readable storage medium.
Background
BMC (Baseboard Management Controller) is a special chip or Controller, and is a heart based on IPMI (Intelligent Platform Management Interface) system; in the IPMI management platform, the management of each managed device by the system management software is realized by communicating with the BMC.
The BMC may monitor and manage each component of the server, and the specific components include a GPU (Graphics Processing Unit), an FPGA (Field Programmable gate Array), each network card, a raid (disk Array) card, each disk system, and the like. The BIOS (basic input/output system) scans each part in the process of starting up and starting up, acquires asset information of the corresponding part, such as manufacturer ID, equipment ID, rise (expansion card) ID, silk screen ID and the like, and sends the ID information to the BMC in the form of IPMI command, after the BMC acquires the ID information of each part, the BMC can analyze plaintext content corresponding to the ID from a self-set part asset information analysis library and display the plaintext content on a web or transmit the plaintext content through interfaces such as redfish (a management standard based on HTTPs service), snmp (simple network management protocol) and the like.
In the prior art, the implementation modes of the asset information analysis library in the BMC mainly include the following: one is to deploy the component asset information analysis library in the interface implementation logics of web, snmp and redfish respectively, but when new equipment needs to be added, the dynamic customization can be realized only by updating the image file of BMC (baseboard management controller), and a version compatible with the added component needs to be issued when one component is added, so that the workload of developers is increased; when one newly added device information is expanded, a plurality of library information such as web, snmp and redfish needs to be updated simultaneously, the purpose of one library for multiple purposes cannot be achieved, the condition that conversion information of different interfaces is inconsistent easily occurs, and the maintenance workload is increased. The other is that when the BMC mirror image is compiled, the equipment asset information is compiled into a read-only file system of the BMC in the form of a configuration file; the method can ensure that the asset information acquired by each interface is converted from the same library, and the uniformity of the information is ensured, but when a file system is damaged or the BMC image is updated in band, the corresponding configuration file cannot be reserved, the defect that the asset information is lost after the image is updated exists, and the dynamic customization cannot be realized.
Therefore, how to dynamically customize the asset information of the BMC component can be achieved, the condition that the asset information is lost after the mirror image is updated is avoided, and the maintenance workload is reduced, which is a problem that needs to be solved urgently nowadays.
Disclosure of Invention
The invention aims to provide a component asset information management method and device of BMC, the BMC and a computer readable storage medium, so as to realize dynamic customization of component asset information of the BMC, avoid the condition of asset information loss after image updating and reduce maintenance workload.
In order to solve the above technical problem, the present invention provides a method for managing asset information of a BMC component, including:
in the starting process of the BMC, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC;
in the operation process of the BMC, acquiring a component asset information searching instruction;
and analyzing and searching the component asset information corresponding to the component asset information searching instruction from the in-use component asset information base.
Optionally, in the BMC starting process, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information includes:
in the process of restarting the BMC, judging whether the stored component asset information compressed file is legal or not;
if yes, decompressing the component asset information compressed file, and updating the in-use component asset information base by using a decompression result;
if not, judging whether the in-use component asset information base is stored or not;
if the in-use component asset information base is stored, updating the component asset information compressed file by using the in-use component asset information base;
and if the in-use component asset information base is not stored, updating the in-use component asset information base by using the default component asset information base, and executing the step of updating the component asset information compressed file by using the in-use component asset information base.
Optionally, the determining whether the stored compressed file of the component asset information is legal includes:
judging whether the component asset information compressed file is legal or not according to the CRC value of the last byte of the component asset information compressed file;
if yes, the step of decompressing the component asset information compressed file is executed, and the in-use component asset information base is updated by using a decompression result;
if not, executing the step of judging whether the in-use component asset information base is stored or not;
correspondingly, the updating the component asset information compressed file by using the in-use component asset information base comprises the following steps:
compressing the asset information base of the in-use component to obtain a temporary compressed file, and calculating a CRC (cyclic redundancy check) value corresponding to the temporary compressed file;
and updating the part asset information compressed file according to the temporary compressed file and the CRC value corresponding to the temporary compressed file.
Optionally, the component asset information compressed file is stored in a static random access memory.
Optionally, the method further includes:
in the running process of the BMC, acquiring a component asset information updating instruction;
and updating the component asset information compressed file and the in-use component asset information base according to the newly added component asset information in the component asset information updating instruction.
The present invention also provides a device for managing asset information of BMC, comprising:
the configuration module is used for configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information in the BMC starting process; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC;
the searching and obtaining module is used for obtaining a searching instruction of the asset information of the component in the running process of the BMC;
and the analysis searching module is used for analyzing and searching the part asset information corresponding to the part asset information searching instruction from the in-use part asset information base.
Optionally, the configuration module includes:
the first judgment submodule is used for judging whether the stored component asset information compressed file is legal or not in the BMC restarting process;
decompressing the module sub-block, if the module sub-block is legal, decompressing the component asset information compressed file, and updating the in-use component asset information base by using a decompression result;
the second judgment submodule is used for judging whether the in-use component asset information base is stored or not if the in-use component asset information base is illegal;
the compression updating submodule is used for updating the component asset information compression file by using the in-use component asset information base if the in-use component asset information base is stored;
and the in-use updating submodule is used for updating the in-use component asset information base by using the default component asset information base and sending a starting signal to the compression updating submodule if the in-use component asset information base is not stored.
Optionally, the apparatus further comprises:
the updating acquisition module is used for acquiring a component asset information updating instruction in the BMC running process;
and the updating module is used for updating the component asset information compressed file and the in-use component asset information base according to the newly added component asset information in the component asset information updating instruction.
The invention also provides a BMC comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for component asset information management of BMC as described above when executing the computer program.
Furthermore, the present invention also provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the component asset information management method of the BMC as described above.
The invention provides a component asset information management method of BMC, which comprises the following steps: in the starting process of the BMC, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC; in the operation process of the BMC, acquiring a component asset information searching instruction; and analyzing and searching the part asset information corresponding to the part asset information searching command from the in-use part asset information base.
Therefore, the invention can ensure the integrity of the asset information base under the conditions of BMC in-band and out-band mirror image updating, file partition damage and the like through the default component asset information base corresponding to the original component asset information, the component asset information compression file corresponding to the current component asset information and the setting of the in-use component asset information base; the dynamic customization of the asset information is realized by utilizing the component asset information compression file corresponding to the current component asset information and the in-use component asset information base; and the asset information obtained by each interface is converted from the same library by using the asset information library of the in-use component, so that the information uniformity is ensured. In addition, the invention also provides a component asset information management device of the BMC, the BMC and a computer readable storage medium, which also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, 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 a method for managing asset information of a BMC according to an embodiment of the invention;
fig. 2 is a flowchart of a method for rebooting a BMC according to an embodiment of the present invention;
fig. 3 is a block diagram of a component asset information management apparatus of a BMC according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for managing component asset information of a BMC according to an embodiment of the present invention. The method can comprise the following steps:
step 101: in the starting process of the BMC, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information; and a default component asset information base corresponding to the original component asset information is configured in the file system of the BMC.
It is understood that the default component asset information base in this embodiment may be a library file of the component asset information (i.e., original component asset information) that is currently supported by the BMC and compiled into a file system (e.g., a read-only file system) of the BMC in the form of a configuration file when the BMC image is compiled, such as being placed under the/etc/defconfig directory. The component asset information compression file in this embodiment may be a file obtained by compressing the component asset information (i.e., current component asset information) currently supported by the BMC. The in-use component asset information base in this embodiment may be a library file of the component asset information currently supported by the BMC (i.e., the current component asset information), such as the in-use component asset information base may be stored in the/conf directory.
Specifically, the specific storage location of the component asset information compressed file in this embodiment may be set by a designer according to a practical scenario and a user requirement, for example, the component asset information compressed file may be stored in a non-volatile temporary storage device such as an EEPROM (electrically erasable and programmable read only memory); in order to reduce the cost, the component asset information compression file may also be stored in an SRAM (static random access memory), that is, the embodiment may extend the SRAM beyond the BMC logic execution unit in the current server architecture, use the SRAM as a temporary storage area of a component asset information base (i.e., a component asset information parsing base) in the BMC, and reduce the use of the SRAM by using a compression technique; for example, in this embodiment, a region (i.e., a preset region) with a preset size may be opened up in the SRAM, the region is initialized to all 0 xffs, and the preset region is used to record the compressed data of the library file of the current component asset information.
Correspondingly, the component asset information compressed file can also comprise check bytes, so that the BMC can check the validity of the component asset information compressed file by using check values in the check bytes, namely, check whether compressed data in the component asset information compressed file is correct or not; that is, when storing compressed data (i.e., compressed data) of the library file of the current component asset information in the preset area of the SRAM, a check value corresponding to the compressed data, such as a CRC (cyclic redundancy check code) check value, may be stored in a check byte; for example, when the check byte is the last byte of the check component asset information compressed file, after the compressed data of the library file of the current component asset information is stored in the preset region of the SRAM, the CRC check values of all the previous bytes in the preset region are stored in the last byte.
It should be noted that, in the embodiment, the component asset information compression file and the in-use component asset information library may store the component asset information currently supported by the BMC (i.e., the current component asset information), and the default component asset information library may store the component asset information supported by the BMC when the BMC image is compiled; that is, during normal operation of the BMC, when the component asset information needs to be updated, i.e., when the current component asset information increases or decreases, the BMC may update the component asset information compression file and the in-use component asset information library with the related component asset information of the newly added or removed device.
Correspondingly, the method provided by the embodiment may further include acquiring a component asset information update instruction in the BMC operation process; and updating the component asset information compressed file and the in-use component asset information base according to the newly added component asset information in the component asset information updating instruction. For example, during normal operation of the BMC, the BMC may receive a component asset information update command (e.g., IPMI command) through an interface such as a web, a snmp, a redfish, and the like, so as to add the component asset information newly added in the component asset information update command (i.e., newly added component asset information) to the component asset information compressed file and the in-use component asset information base, thereby completing updating of the component asset information compressed file and the in-use component asset information base.
Specifically, in the step, the specific mode of configuring the component asset information compressed file corresponding to the current component asset information and the in-use component asset information base by the BMC in the starting process can be set by a designer according to a practical scene and user requirements, for example, when the component asset information compressed file is stored in the SRAM and the in-use component asset information base is stored in the file system of the BMC, the BMC can directly generate the component asset information compressed file and the in-use component asset information base according to the default component asset information base in the file system when the BMC is normally started. When the BMC is normally started, whether the component asset information compression file and the in-use component asset information base exist or not can be judged firstly; if the component asset information does not exist, generating a component asset information compression file and an in-use component asset information base by using a default component asset information base; if the information exists, the information base of the component in use is updated by using the legal component asset information compression file, or the information compression file of the illegal component asset is updated by using the existing information base of the component in use, or the default information base of the component asset is used to generate the information base of the component in use which does not exist and update the information compression file of the illegal component asset. During the restart process (for example, the restart may be caused by in-band and out-of-band image update, or may be caused by non-image update factors such as power failure and instruction, etc.), the BMC may include, as shown in fig. 2:
step 201: in the process of restarting the BMC, judging whether the stored component asset information compressed file is legal or not; if yes, go to step 202; if not, go to step 203.
It can be understood that the purpose of this step may be that, in the restart process, when it is determined that the component asset information compressed file is stored, the BMC determines whether the component asset information compressed file is available by judging whether the stored component asset information compressed file is legal, so that when the component asset information compressed file is legal, the in-use component asset information base is updated by using the component asset information compressed file.
Specifically, the specific way in which the BMC determines whether the stored component asset information compressed file is legal in this step may be set by a designer, for example, the BMC may determine whether the component asset information compressed file is legal according to a check value in a check byte in the component asset information compressed file; for example, when the component asset information compressed file is stored in the preset area of the SRAM, and the last byte of the component asset information compressed file is the CRC check value of all the preceding bytes, the BMC may determine whether the component asset information compressed file is legal according to the CRC check value of the last byte of the component asset information compressed file in the preset area of the SRAM, that is, whether the CRC check value is the CRC check value of all the preceding bytes; if yes, go to step 202; if not, go to step 203.
For example, in the process of restarting the BMC in this step, the BMC may read the component asset information compressed file (SramLib) into the BMC memory and write the component asset information compressed file (SramLib) into the temporary file (TmpFile), check the legitimacy of SramLib in the memory, go to step 202 if legal, and go to step 203 if illegal.
Step 202: and decompressing the component asset information compressed file, and updating the in-use component asset information base by using the decompression result.
It is understood that the purpose of this step may be that the BMC updates the in-use component asset information base with the component asset information compression file when determining that the component asset information compression file is legal, so as to ensure consistency between the component asset information compression file and the component asset information stored in the in-use component asset information base.
For example, in this step, when SramLib is validated, the BMC may decompress TmpFile corresponding to SramLib, and update the in-use component asset information base (UsedLib) with the decompressed file (i.e., the decompression result).
Step 203: judging whether an in-use component asset information base is stored or not; if yes, go to step 204; if not, go to step 205.
It is understood that the purpose of this step may be that the BMC determines whether the component asset information compression file can be updated by using the in-use component asset information base, i.e., whether the available current component asset information is stored, by determining whether the in-use component asset information base is stored when determining that the component asset information compression file is not legal.
For example, in this step, when SramLib is not verified, the BMC may delete TmpFile corresponding to SramLib, and verify whether UsedLib in the BMC file system exists, if yes, go to step 204, and if not, go to step 205.
Step 204: and updating the component asset information compression file by using the in-use component asset information base.
It is understood that the purpose of this step may be that the BMC updates the component asset information compression file with the in-use component asset information base when the in-use component asset information base exists, so as to ensure consistency of the component asset information compression file and the component asset information stored in the in-use component asset information base.
Specifically, when the check byte for verifying the validity in the component asset information compressed file is a CRC check value, the BMC in this step may compress the in-use component asset information base to obtain the temporary compressed file, and calculate a CRC check value corresponding to the temporary compressed file; and updating the part asset information compressed file according to the temporary compressed file and the CRC value corresponding to the temporary compressed file.
For example, when the check byte in the component asset information compressed file is the last byte, in this step, the BMC may compress UsedLib when the UsedLib exists, generate a temporary compressed file, write the data of the temporary compressed file into a corresponding region of the SRAM, update the SramLib, calculate the data check code, update the last byte of the SramLib, and delete the temporary compressed file.
Step 205: the in-use component asset information base is updated with the default component asset information base and step 204 is entered.
It is understood that the purpose of this step may be that when the in-use component asset information base does not exist, the BMC generates the in-use component asset information base using the default component asset information base, and proceeds to step 204 to update the illegal component asset information compression file. For example, in this step, the default component asset library (DefLib) is copied to create UsedLib, and step 204 is performed.
Step 102: and in the running process of the BMC, acquiring a component asset information searching instruction.
In this step, the component asset information search instruction may be an instruction, such as an IPMI command, sent by the terminal and acquired by the BMC during the operation process, for searching for the corresponding component asset information. The specific content of the component asset information search instruction is not limited in this embodiment, for example, the component asset information search instruction may include ID information of component asset information to be searched, so that the BMC may parse and search a corresponding description (i.e., component asset information) in the in-use component asset information base according to the ID information.
Similarly, the embodiment does not limit the specific manner in which the BMC obtains the component asset information search instruction during the operation process, for example, the BMC may receive the component asset information search instruction through interfaces such as a web, a snmp, and a redfish during the operation process.
Step 103: and analyzing and searching the part asset information corresponding to the part asset information searching command from the in-use part asset information base.
It can be understood that, in this embodiment, the BMC only uses the in-use component asset information base to parse and search the component asset information corresponding to the component asset information search instruction, and can ensure that the asset information acquired by each interface is converted by the same base, thereby ensuring the uniformity of the information.
Specifically, in this step, the BMC may search the ID information in the component asset information search instruction, and parse and search the description corresponding to the ID information from the component asset information library in use, that is, the component asset information corresponding to the component asset information search instruction.
Correspondingly, the step can also comprise the step that the BMC returns the component asset information corresponding to the component asset information searching instruction to the target terminal; the target terminal may be a terminal that sends a component asset information search instruction.
In the embodiment, through the default component asset information base corresponding to the original component asset information, the component asset information compression file corresponding to the current component asset information and the setting of the in-use component asset information base, the integrity of the asset information base can be ensured under the conditions of BMC in-band and out-band mirror image updating, file partition damage and the like; the dynamic customization of the asset information is realized by utilizing the component asset information compression file corresponding to the current component asset information and the in-use component asset information base; and the asset information obtained by each interface is converted from the same library by using the asset information library of the in-use component, so that the information uniformity is ensured.
Referring to fig. 3, fig. 3 is a block diagram illustrating a component asset information management apparatus of a BMC according to an embodiment of the present invention. The apparatus may include:
a configuration module 10, configured to configure a component asset information compressed file and an in-use component asset information library corresponding to current component asset information in the BMC starting process; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC;
the searching and obtaining module 20 is used for obtaining a component asset information searching instruction in the BMC operation process;
and the analysis searching module 30 is used for analyzing and searching the component asset information corresponding to the component asset information searching instruction from the in-use component asset information base.
Optionally, the configuration module 10 may include:
the first judgment submodule is used for judging whether the stored component asset information compressed file is legal or not in the BMC restarting process;
decompressing the sub-block of the component asset information if the sub-block is legal, and updating the asset information base of the component in use by using a decompression result;
the second judgment submodule is used for judging whether the asset information base of the in-use component is stored or not if the in-use component is illegal;
the compression updating submodule is used for updating the component asset information compression file by using the in-use component asset information base if the in-use component asset information base is stored;
and the in-use updating submodule is used for updating the in-use component asset information base by using the default component asset information base and sending a starting signal to the compression updating submodule if the in-use component asset information base is not stored.
Optionally, the first determining submodule may be specifically configured to determine whether the component asset information compressed file is legal or not according to a CRC check value of a last byte of the component asset information compressed file.
Correspondingly, the compression updating submodule can be specifically used for compressing the asset information base of the in-use component, acquiring a temporary compressed file and calculating a CRC (cyclic redundancy check) value corresponding to the temporary compressed file; and updating the part asset information compressed file according to the temporary compressed file and the CRC value corresponding to the temporary compressed file.
Optionally, the component asset information compressed file is stored in a Static Random Access Memory (SRAM).
Optionally, the apparatus may further include:
the updating acquisition module is used for acquiring a component asset information updating instruction in the BMC operation process;
and the updating module is used for updating the component asset information compressed file and the in-use component asset information base according to the newly added component asset information in the component asset information updating instruction.
In the embodiment, through the default component asset information base corresponding to the original component asset information, the component asset information compression file corresponding to the current component asset information and the setting of the in-use component asset information base, the integrity of the asset information base can be ensured under the conditions of BMC in-band and out-band mirror image updating, file partition damage and the like; the dynamic customization of the asset information is realized by utilizing the component asset information compression file corresponding to the current component asset information and the in-use component asset information base; and the asset information obtained by each interface is converted from the same library by using the asset information library of the in-use component, so that the uniformity of the information is ensured.
An embodiment of the present invention further provides a BMC, which may include: a memory for storing a computer program; a processor for implementing the steps of the component asset information management method of the BMC as provided in the above embodiments when executing the computer program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program can implement the steps of the component asset information management method of the BMC provided in the foregoing embodiment when executed. The storage medium may include: various media capable of storing program codes, such as a U disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the BMC, and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The method, the device, the BMC and the computer readable storage medium for managing the component asset information of the BMC according to the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (8)

1. A method for managing component asset information of a BMC, comprising:
in the starting process of the BMC, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC;
in the running process of the BMC, acquiring a component asset information searching instruction;
analyzing and searching the component asset information corresponding to the component asset information searching instruction from the in-use component asset information base;
in the BMC starting process, configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information, wherein the configuration comprises the following steps:
in the process of restarting the BMC, judging whether the stored component asset information compressed file is legal or not;
if yes, decompressing the component asset information compressed file, and updating the in-use component asset information base by using a decompression result;
if not, judging whether the in-use component asset information base is stored or not;
if the in-use component asset information base is stored, updating the component asset information compressed file by using the in-use component asset information base;
and if the in-use component asset information base is not stored, updating the in-use component asset information base by using the default component asset information base, and executing the step of updating the component asset information compressed file by using the in-use component asset information base.
2. The method of claim 1, wherein the determining whether the stored component asset information compressed file is valid comprises:
judging whether the component asset information compressed file is legal or not according to the CRC value of the last byte of the component asset information compressed file;
if yes, the step of decompressing the component asset information compressed file is executed, and the step of updating the in-use component asset information base by using a decompression result;
if not, executing the step of judging whether the in-use component asset information base is stored or not;
correspondingly, the updating the component asset information compressed file by using the in-use component asset information base comprises the following steps:
compressing the asset information base of the in-use component to obtain a temporary compressed file, and calculating a CRC (cyclic redundancy check) value corresponding to the temporary compressed file;
and updating the part asset information compressed file according to the temporary compressed file and the CRC value corresponding to the temporary compressed file.
3. The method of component asset information management of BMC of claim 1, wherein said component asset information compression file is stored in static random access memory.
4. The component asset information management method of the BMC of any of claims 1 to 3, further comprising:
in the running process of the BMC, acquiring a component asset information updating instruction;
and updating the component asset information compressed file and the in-use component asset information base according to the newly added component asset information in the component asset information updating instruction.
5. A component asset information management apparatus of a BMC, comprising:
the configuration module is used for configuring a component asset information compression file and an in-use component asset information base corresponding to the current component asset information in the BMC starting process; a default component asset information base corresponding to original component asset information is configured in a file system of the BMC;
the searching and obtaining module is used for obtaining a component asset information searching instruction in the operation process of the BMC;
the analysis searching module is used for analyzing and searching the part asset information corresponding to the part asset information searching instruction from the in-use part asset information base;
wherein the configuration module comprises:
the first judgment submodule is used for judging whether the stored component asset information compressed file is legal or not in the BMC restarting process;
the decompression module is used for decompressing the component asset information compressed file and updating the in-use component asset information base by using a decompression result if the component asset information compressed file is legal;
the second judgment submodule is used for judging whether the in-use component asset information base is stored or not if the in-use component asset information base is illegal;
the compression updating submodule is used for updating the component asset information compression file by using the in-use component asset information base if the in-use component asset information base is stored;
and the in-use updating submodule is used for updating the in-use component asset information base by using the default component asset information base and sending a starting signal to the compression updating submodule if the in-use component asset information base is not stored.
6. The component asset information management device of the BMC of claim 5, further comprising:
the updating acquisition module is used for acquiring a component asset information updating instruction in the BMC running process;
and the updating module is used for updating the component asset information compressed file and the in-use component asset information base according to the newly added component asset information in the component asset information updating instruction.
7. A BMC, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the component asset information management method of the BMC of any of claims 1 to 4 when executing said computer program.
8. A computer-readable storage medium, wherein a computer program is stored thereon, which, when being executed by a processor, implements the steps of the component asset information management method of the BMC according to any one of claims 1 to 4.
CN202011141346.5A 2020-10-22 2020-10-22 BMC (baseboard management controller) and component asset information management method, device and storage medium thereof Active CN112269601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011141346.5A CN112269601B (en) 2020-10-22 2020-10-22 BMC (baseboard management controller) and component asset information management method, device and storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011141346.5A CN112269601B (en) 2020-10-22 2020-10-22 BMC (baseboard management controller) and component asset information management method, device and storage medium thereof

Publications (2)

Publication Number Publication Date
CN112269601A CN112269601A (en) 2021-01-26
CN112269601B true CN112269601B (en) 2022-07-08

Family

ID=74341742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011141346.5A Active CN112269601B (en) 2020-10-22 2020-10-22 BMC (baseboard management controller) and component asset information management method, device and storage medium thereof

Country Status (1)

Country Link
CN (1) CN112269601B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835770B (en) * 2021-11-30 2022-02-18 四川华鲲振宇智能科技有限责任公司 Online replacement method and system for server management module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734887A (en) * 2015-03-25 2015-06-24 浪潮集团有限公司 Method for out-of-band management of server asset information
CN106874373A (en) * 2016-12-30 2017-06-20 江苏瑞中数据股份有限公司 A kind of implementation method of the electric network data asset management platform based on SOA
CN109583686A (en) * 2018-10-15 2019-04-05 平安科技(深圳)有限公司 Assets management method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734887A (en) * 2015-03-25 2015-06-24 浪潮集团有限公司 Method for out-of-band management of server asset information
CN106874373A (en) * 2016-12-30 2017-06-20 江苏瑞中数据股份有限公司 A kind of implementation method of the electric network data asset management platform based on SOA
CN109583686A (en) * 2018-10-15 2019-04-05 平安科技(深圳)有限公司 Assets management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112269601A (en) 2021-01-26

Similar Documents

Publication Publication Date Title
US8719810B2 (en) Program upgrade system and method for over the air-capable mobile terminal
KR101003888B1 (en) Tri-phase boot process in electronic devices
WO2017166446A1 (en) Vulnerability-fixing method and device
US20070294685A1 (en) Program upgrade system and method for ota-capable portable device
CN108650287B (en) Upgrading method and device for terminal device in Internet of things and computer readable medium
KR20080037450A (en) System and method for processing update software run on mobile terminal platform
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
WO2016202000A1 (en) Differential rollback upgrading method and apparatus
CN112363845A (en) Data synchronization method of system integration middling station and integration middling station system
CN105938436A (en) Startup control method of operation system and terminal
CN111290773B (en) System upgrade method, device and readable storage medium
CN115202686A (en) Virtualization system upgrading method and device, electronic equipment and storage medium
CN115098190A (en) Method, device, terminal and storage medium for improving starting speed of SSD (solid State disk) system
CN112434278A (en) Bare computer authentication method, apparatus, device and medium
CN112269601B (en) BMC (baseboard management controller) and component asset information management method, device and storage medium thereof
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN113741954A (en) System software generation method and device, electronic equipment and storage medium
CN113535214A (en) Algorithm file upgrading method and device, electronic device and storage medium
CN104104701A (en) Online service configuration updating method and system
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN114116544B (en) Slot information acquisition method, device, equipment and storage medium
CN114090070A (en) Application program installation package file processing method and electronic equipment
CN113656474A (en) Service data access method and device, electronic equipment and storage medium
CN113918423A (en) Cloud platform monitoring method and device and application thereof
CN110795113A (en) Redis cluster service installation method, server and medium

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
GR01 Patent grant
GR01 Patent grant