CN114968386A - Equipment information management method, device and equipment of electronic equipment - Google Patents

Equipment information management method, device and equipment of electronic equipment Download PDF

Info

Publication number
CN114968386A
CN114968386A CN202210619516.9A CN202210619516A CN114968386A CN 114968386 A CN114968386 A CN 114968386A CN 202210619516 A CN202210619516 A CN 202210619516A CN 114968386 A CN114968386 A CN 114968386A
Authority
CN
China
Prior art keywords
information
setting information
shared memory
electronic device
control unit
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.)
Granted
Application number
CN202210619516.9A
Other languages
Chinese (zh)
Other versions
CN114968386B (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.)
Lenovo Beijing Information Technology Ltd
Original Assignee
Lenovo Beijing Information Technology 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 Lenovo Beijing Information Technology Ltd filed Critical Lenovo Beijing Information Technology Ltd
Priority to CN202210619516.9A priority Critical patent/CN114968386B/en
Publication of CN114968386A publication Critical patent/CN114968386A/en
Application granted granted Critical
Publication of CN114968386B publication Critical patent/CN114968386B/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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a device information management method, a device and equipment of electronic equipment, wherein a main control unit of the electronic equipment obtains setting information of the electronic equipment from a shared memory area, then the electronic equipment is initialized according to the setting information to obtain asset information and current setting information of the electronic equipment, and the asset information and the current setting information of the electronic equipment are updated to the shared memory area in a set file format, wherein the shared memory area is configured in a substrate management control unit of the electronic equipment and can be accessed by the main control unit and the substrate management control unit. The problem that the boot time is too long due to the fact that the BIOS needs to wait for BMC initialization when being booted, and the problem that the asset information of the electronic equipment cannot be inquired and the BIOS option management cannot be achieved after the BMC is booted due to BMC exception are effectively solved.

Description

Equipment information management method, device and equipment of electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for managing device information of an electronic device.
Background
Server Management typically uses a BMC (Baseboard Management Controller) to query and manage the hardware of the server, such as: the user can check hardware information such as a CPU, a memory, a network card, a GPU, a hard disk, and the like configured by the server through the BMC, and can also change a Setup option of a BIOS (Basic Input and Output System) through the BMC. These configurations of the server can be exposed through an API interface of a RESTful (Representational State Transfer) of the BMC, and a user can conveniently query and modify data through a URL, where data transmission is based on json (javascript Object notification) language.
At present, when a BIOS is powered on, asset information and a current BIOS SETUP option value are mainly sent to a BMC through an IPMI (Intelligent Platform Management Interface) command, the asset information and the current BIOS SETUP option value are packaged into a JSON format inside the BMC for a user to query, and meanwhile, the option value sent by the BIOS is transferred into the JSON format and exposed to a RESTful Interface. Or when the BIOS is started, asset information in a JSON format and the current BIOS SETUP option value are sent to the BMC in a LAN OVERUSB mode, and the BMC exposes the asset information in the JSON format and the current BIOS SETUP option value to a RESTful API interface for a user to use. Therefore, IPMI command interaction of the BIOS and the BMC must be completely defined in advance, any newly added equipment and BIOS options need to be realized again by the BIOS and the BMC, versions of the BIOS and the BMC are in a strong coupling relation, and unpredictable results can occur when wrong version collocation is carried out. And the BIOS needs to wait for the BMC to boot and interact completely. In addition, for the accidental BMC exception, the next boot BMC cannot realize the inquiry of the asset information and the management of the BIOS option function.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for managing equipment information of electronic equipment.
According to a first aspect of the present invention, there is provided a device information management method for an electronic device, which is applied to a main control unit of the electronic device, the method including: obtaining setting information of the electronic device from a shared memory area, wherein the shared memory area is configured in a baseboard management control unit of the electronic device and can be accessed by the main control unit and the baseboard management control unit; initializing the electronic equipment according to the setting information to obtain asset information and current setting information of the electronic equipment; and updating the asset information and the current setting information of the electronic equipment to the shared memory area in a set file format.
According to an embodiment of the present invention, the obtaining the setting information of the electronic device from the shared memory area includes: reading first set field information of the shared memory area; and reading second set field information of the shared memory area under the condition that the first set field information is valid, wherein the second field information is used for representing the setting information and the asset information of the electronic equipment.
According to an embodiment of the present invention, initializing the electronic device according to the setting information to obtain asset information and current setting information of the electronic device includes: judging whether the setting information comprises a change request of the setting information sent by the baseboard management control unit or not to obtain a change judgment result; restarting a first system of the electronic device based on the changed setting information when the change judgment result shows that the electronic setting information is changed, wherein the first system is used for guiding the starting of an operating system of the electronic device; and initializing the electronic equipment to obtain the asset information and the current setting information of the electronic equipment under the condition that the change judgment result shows that the electronic setting information is not changed.
According to an embodiment of the present invention, the updating the asset information and the current setting information of the electronic device to the shared memory area in a set file format includes: converting the asset information and the current setting information of the electronic equipment into a first file in a JSON format; and writing the first file into the shared memory area.
According to an embodiment of the invention, the method further comprises: and under the condition that the collection of the asset information and the current setting information of the electronic equipment is finished, sending a collection finishing instruction to the baseboard management control unit, wherein the collection finishing instruction is used for representing that the collection of the asset information and the current setting information of the electronic equipment is finished.
According to the second aspect of the present invention, there is also provided an apparatus information management method for an electronic apparatus, which is applied to a baseboard management control unit of the electronic apparatus, the method including: acquiring asset information and current setting information of the electronic device from a shared memory area, wherein the shared memory area is configured in the baseboard management control unit and can be accessed by a main control unit and the baseboard management control unit of the electronic device; analyzing the asset information and the current setting information; monitoring a change operation for the current setting information; and sending a change request to the shared memory area under the condition that the change operation is monitored.
According to an embodiment of the present invention, before the asset information and the current setting information of the electronic device are obtained from the shared memory area, the method further includes: and monitoring a collection completion instruction sent by the main control unit, wherein the collection completion instruction is used for representing that the main control unit of the electronic equipment completes the collection of the asset information and the current setting information of the electronic equipment.
According to a third aspect of the present invention, there is provided an apparatus for managing device information of an electronic device, applied to a main control unit of the electronic device, the apparatus including: a first obtaining module, configured to obtain setting information of the electronic device from a shared memory area, where the shared memory area is configured in a baseboard management control unit of the electronic device, and the shared memory area can be accessed by the main control unit and the baseboard management control unit; the collection module is used for initializing the electronic equipment according to the setting information to obtain asset information and current setting information of the electronic equipment; and the first updating module is used for updating the asset information and the current setting information of the electronic equipment to the shared memory area in the set file format.
According to a fourth aspect of the present invention, there is also provided an apparatus information management device of an electronic device, applied to a baseboard management control unit of the electronic device, the device including: a second obtaining module, configured to obtain asset information and current setting information of the electronic device from a shared memory area, where the shared memory area is configured in the baseboard management control unit, and the shared memory area can be accessed by a main control unit of the electronic device and the baseboard management control unit; the analysis module is used for analyzing the asset information and the current setting information; the change monitoring module is used for monitoring change operation aiming at the current setting information; and the second updating module is used for sending a change request to the shared memory area under the condition that the change operation is monitored.
According to a fifth aspect of the present invention, there is also provided an apparatus comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory so as to execute the equipment information management method of the electronic equipment.
The method, the device and the equipment for managing the equipment information of the electronic equipment comprise the steps that firstly, a main control unit of the electronic equipment obtains the setting information of the electronic equipment from a shared memory area, then, the electronic equipment is initialized according to the setting information, the asset information and the current setting information of the electronic equipment are obtained, and the asset information and the current setting information of the electronic equipment are updated to the shared memory area in a set file format, wherein the shared memory area is configured in a substrate management control unit of the electronic equipment and can be accessed by the main control unit and the substrate management control unit. Therefore, the BIOS can be started normally only under the condition that the BMC UBOOT (boot loader system) is started without depending on a virtual USB device or (based on the management standard of the HTTPs service) service, and the problem that the BIOS needs to wait for the BMC initialization to cause overlong starting time when the BIOS is started is effectively solved. Furthermore, because the BIOS can write data into the shared memory area without waiting for the BMC to start the kernel, the problem that the asset information of the electronic equipment cannot be inquired and the BIOS options cannot be managed after the BMC is started due to BMC exception can be effectively solved.
It is to be understood that the teachings of the present invention need not achieve all of the above-described benefits, but rather that specific embodiments may achieve specific technical results, and that other embodiments of the present invention may achieve benefits not mentioned above.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a schematic view illustrating an application scenario of a device information management method of an electronic device according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an implementation flow of a device information management method of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an implementation flow of a device information management method of an electronic device according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating an implementation flow of a specific application example of the device information management method of the electronic device according to the embodiment of the present invention;
fig. 5 is a schematic diagram showing a component structure of an apparatus information management device of an electronic apparatus according to another embodiment of the present invention;
FIG. 6 is a schematic diagram showing a component structure of an apparatus information management device of an electronic apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram showing a composition structure of an apparatus according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The technical scheme of the invention is further elaborated by combining the attached drawings and specific embodiments.
Fig. 1 is a schematic view illustrating an application scenario of a device information management method of an electronic device according to an embodiment of the present invention.
Referring to fig. 1, the embodiment of the present invention may be improved based on PCIE physical links of the HOST end of the server and the BMC. And dividing a part of the video memory in the BMC of the server, and taking the divided part of the video memory as a shared memory area of the CPU and the BMC of the HOST. Therefore, all addresses of the shared Memory area can be accessed at the HOST end in a Memory-mapped I/O (Memory-mapped I/O) mode, and the BMC can also access all addresses of the shared Memory area in a Memory-mapped mode.
Therefore, in the process of designing the BMC and the BIOS based on the CPU operation, the embodiment of the invention can design the data interaction flow by taking the shared memory as the center. For example: the BIOS is responsible for collecting server SETUP option information and CPU supported by the BIOS, asset information of devices such as an external device and MEMORY connected through an interface conforming to PCIE (Peripheral component interconnect Express, high-speed serial computer extended bus standard), and sending the asset information to the BMC according to Redfish Schema (management standard mode based on HTTPs services) standard. The BIOS also receives a request from the BMC to modify the BIOS's SETUP option information. And the BMC is mainly responsible for analyzing the asset information sent by the BIOS and modifying the request data of the SETUP option information of the BIOS, and is exposed to a RESTful API user interface after processing. And the HOST terminal and the BMC adopt a mode of sharing a memory area, data transmission can be carried out through an interface conforming to PCIE, the transmission rate is greatly improved, the starting time of the BIOS is effectively shortened, and the starting time of the whole electronic equipment is further prompted. For example, through practice, the BIOS start time of the electronic device using the technical scheme of the present application can be shortened from 50 seconds to within 2 seconds, and the overall start time of the electronic device can be reduced by about 25%.
Fig. 2 is a schematic flow chart illustrating an implementation of a device information management method of an electronic device according to an embodiment of the present invention.
Referring to fig. 2, the device information management method of an electronic device according to an embodiment of the present invention is applied to a main control unit of the electronic device, and at least includes the following operation flows: operation 201, obtaining setting information of an electronic device from a shared memory area, where the shared memory area is configured in a baseboard management control unit of the electronic device, and the shared memory area can be accessed by a main control unit and the baseboard management control unit; operation 202, initializing the electronic device according to the setting information, and obtaining asset information and current setting information of the electronic device; in operation 203, the asset information and the current setting information of the electronic device are updated to the shared memory area in a set file format.
In operation 201, setting information of an electronic device is obtained from a shared memory area, the shared memory area is configured in a baseboard management control unit of the electronic device, and the shared memory area is accessible by a main control unit and the baseboard management control unit.
In this embodiment of the present invention, the main control unit may be a CPU, and the BIOS operates based on the CPU, and each operation step of this embodiment of the present invention may be written in the BIOS. The baseboard management control unit can be BMC.
In this embodiment of the present invention, the device information of the electronic device may include asset information and setting information of the electronic device. The setting information may be setting information of a SETUP option.
In this embodiment of the present invention, the BIOS may read the first setting field information from the shared memory area of the bmc disposed in the electronic device, and read the second setting field information from the shared memory area if the first setting field information is valid, thereby obtaining the setting information and the asset information from the shared memory area. Wherein the second field information is used for representing the setting information and the asset information of the electronic equipment.
In this embodiment of the present invention, when the first setting field information is invalid, the shared memory area is reset and it is determined that the electronic setting information is not changed.
Here, a start address may be set for the shared memory area in the video memory of the BMC, and the set number of bits from the start address may be set as a fixed character. And under the condition that the set digit number from the initial address is detected to be a preset fixed character, judging that the data of the shared memory area is valid. On the contrary, when the set number of bits from the start position is detected not to be the predetermined fixed character, it is determined that the data in the shared memory area is invalid. The condition that the data in the shared memory area is invalid can be the condition that a new electronic device is started for the first time or the electronic device is restored to factory settings, and the like, and the shared memory of the BMC does not have setting information and asset information of a user on a SETUP option.
In this embodiment of the present invention, after the initialization of the PCIE device of the electronic device is completed, all hardware devices such as the system display card, the network card, and the hard disk are in an available state. Therefore, the BIOS may perform read and write operations on the shared memory area after the PCIE device of the electronic device is initialized.
In this embodiment of the present invention, the setting information stored in the shared memory may include:
"Quiet Boot": "Enable" (quick start: enabled);
"TPM Security Device Support": "Enable" ("TPM security device support": enabled ");
"Pending Operation": "None" ("suspend operation": None ");
"TCM Security Device Support": "Enable" ("TCM security device support": enabled ");
"TCMState": "Enabled" ("TCM state": Enabled ");
"SHA-1 PCRBank": "Disabled" ("SHA-1 PCRBank": Disabled ");
"SHA 256 PCRBank": "Enabled" ("SHA 256 PCRBank": Enabled ");
"SM 3 _ 256 PCRBank": "Disabled" ("SM 3 _ 256 PCRBank": Disabled ");
"TPM 20 Pendingoperation": "None" ("TPM 20 suspend operation": None ");
"Platform Hierarchy": "Enabled" ("platform hierarchy": Enabled ");
"Storage Hierarchy": "Enabled" ("storage hierarchy": Enabled ");
"EndorsementHierarchy": "Enabled" ("endorsement hierarchy": Enabled ");
"Physical Presence Spec Version": "1.3" ("physical Presence Specification version": 1.3 ");
"TPM2.0 UEFIPecPersion": "TCG _ 2" ("TPM2.0UEFI Specification version": TCG _ 2 "); and
"Bootmodeselect": "LEAGACY" ("guided mode selection": LEAGACY "), etc.
In this embodiment of the present invention, the asset information stored in the shared memory may include information such as the number of cores, the maximum frequency, the manufacturer, and the maximum power consumption of a CPU of the electronic device, memory information such as the maximum frequency, the current frequency, the manufacturer, and the serial number of the memory, and external device information connected through an interface conforming to PCIE, such as the model, the manufacturer, the serial number, the Firmware version, the maximum supported bandwidth, and the current link speed of the network card.
In operation 202, the electronic device is initialized according to the setting information, and asset information and current setting information of the electronic device are obtained.
In this embodiment of the present invention, initializing the electronic device according to the setting information, and obtaining the asset information and the current setting information of the electronic device may be implemented by: judging whether the setting information comprises a change request of the setting information sent by a baseboard management control unit or not to obtain a change judgment result; if the change judgment result shows that the electronic setting information is changed, restarting a first system of the electronic equipment based on the changed setting information, wherein the first system is used for guiding the starting of an operating system of the electronic equipment; and if the change judgment result shows that the electronic setting information is not changed, initializing the electronic equipment to obtain the asset information and the current setting information of the electronic equipment.
In this embodiment of the present invention, valid data segments, current setting, user non-valid setting, asset information, and the like may be defined for data in the shared memory area. Therefore, in the process of reading the data in the shared memory area by the BIOS, under the condition that the valid data segment of the future setting is read according to the data definition, it can be determined that the user has modified the SETUP option of the electronic device, that is, it is determined that the setting information includes the change request of the setting information sent by the baseboard management control unit.
In operation 203, the asset information and the current setting information of the electronic device are updated to the shared memory area in a set file format.
In this embodiment of the present invention, the asset information of the electronic device and the current setting information may be converted into a first file in JSON format, and the first file may be written into the shared memory area.
In this embodiment of the present invention, in a case where the collection of the asset information and the current setting information of the electronic device is completed, a collection completion instruction for representing an instruction to complete the collection of the asset information and the current setting information of the electronic device is sent to the baseboard management control unit.
In this embodiment of the present invention, the collection completion instruction may be a hardware pin, and the BMC is notified in the form of a hardware pin that the collection of the asset information and the current setting information of the electronic device is completed. Specifically, the BIOS completes the SETUP information modification of the electronic device according to the SETUP information of the electronic device acquired from the shared memory area, and sends the current SETUP information to the shared memory area when the modification is valid. In addition, when the BIOS finishes reading the asset information of the electronic equipment from the shared memory area, the BIOS converts the asset information of the electronic equipment into a JSON format and sends the converted asset information to the shared memory area. Under the condition that the BIOS sends the current setting information and the asset information of the electronic equipment to the shared memory area, the hardware pin can be pulled to inform the BMC that the collection of the asset information and the current setting information of the electronic equipment is completed.
Fig. 3 is a schematic implementation flow diagram of a device information management method of an electronic device according to another embodiment of the present invention.
Referring to fig. 3, the device information management method of an electronic device according to an embodiment of the present invention is applied to a baseboard management control unit of the electronic device, and at least includes the following operation flows:
in operation 301, asset information and current setting information of an electronic device are obtained from a shared memory area, the shared memory area is configured in a baseboard management control unit, and the shared memory area can be accessed by a main control unit and the baseboard management control unit.
In this embodiment of the present invention, before the asset information and the current setting information of the electronic device are obtained from the shared memory area, a collection completion instruction sent by the main control unit of the electronic device is monitored, and the collection completion instruction is used to characterize that the main control unit of the electronic device completes collection of the asset information and the current setting information of the electronic device.
At operation 302, asset information and current settings information are parsed.
In the embodiment of the invention, the asset information obtained by analysis can be displayed in a set form, so that the user can conveniently check the asset information. Here, the display may be performed when the user views the asset information of the electronic device through a preset operation, or may be performed in a preset form by default on the asset information obtained through the analysis at a preset time.
In operation 303, a change operation for the current setting information is monitored.
At operation 304, a change request is sent to the shared memory area when a change operation is monitored.
The specific implementation processes of operations 301 to 304 are similar to the specific implementation processes of operations 201 to 203 in the embodiment shown in fig. 1, and are not described here again.
Fig. 4 is a flowchart illustrating an implementation flow of a specific application example of the device information management method of the electronic device according to the embodiment of the present invention.
Referring to fig. 4, a specific application example of the device information management method of the electronic device according to the embodiment of the present invention at least includes:
at operation 401, the BIOS starts. For example: and receiving a BIOS starting instruction.
At operation 402, the BIOS reads data from the shared memory region and determines whether the data in the shared memory region is valid. If so, operation 403 is performed, and if not, operation 404 is performed.
At operation 403, the BIOS continues to read data from the shared memory area and determines whether there is an option change request from the BMC. If so, then operation 405 is performed, and if not, then operations 406 and 407 are performed.
At operation 404, the shared memory region is reset.
In this embodiment of the present invention, resetting the shared memory region may be formatting the shared memory region. For example, the data format of the shared memory area may be initialized with the name of the data to be exchanged in a predefined format, and the start address and the length are predefined, for example: header file + string format of setting field + other setting contents.
At operation 405, the option change request is parsed and applied.
In this embodiment of the present invention, when an option change request of the SETUP option information is received from the BMC, the current SETUP option information may be read from the shared memory area, and the BIOS may be restarted to validate the modification of the SETUP option information by the user.
In operation 406, SETUP option information is collected and edited into JSON format.
At operation 407, asset information is collected and compiled into JSON format.
In this embodiment of the present invention, if the BIOS determines that the user has not made a change request to the SETUP option of the BMC according to the asset information and the SETUP information of the SETUP option information read from the shared memory area, it may be determined that the SETUP information and the asset information read by the BIOS are the latest SETUP information and the latest asset information of the electronic device at present. At this time, the SETUP option information and the asset information may be edited into JSON format and written into the shared memory area.
In the embodiment of the invention, the reason why the SETUP option information and the asset information are both edited into JSON to be stored in the shared memory area is that the JSON format is a data format defined by a redfish interface, and the format has high expandability and readability. In the practical application process, other data formats with strong expandability and readability can be adopted, and the technical scheme of the invention is not limited here.
In addition, the order of operation 406 and operation 407 may be set according to practical situations, and the present invention is not limited thereto.
At operation 408, it is determined whether the BMC has initialized.
In this embodiment of the present invention, operation 408 is used to determine whether the BMC has been initialized, for example, after the initialization of the PCIE device is completed, it may be determined that all hardware devices such as a video card, a network card, and a hard disk of the electronic device are available, and at this time, read/write operation may be performed on the shared memory. Here, if the BMC initialization is completed, operation 410 is executed, and if the BMC initialization is not completed, operation 408 is periodically and repeatedly executed to detect whether the BMC initialization is completed.
At operation 409, the BMC starts.
At operation 410, SETUP option information and asset information are parsed.
In this embodiment of the present invention, after the BMC starts the process, the SETUP option information and the asset information may be read from the shared memory area and analyzed.
Operation 411, SETUP option information.
Operation 412, asset information.
In operation 413, it is determined whether the user has modified the SETUP option information. If so, the modification of the SETUP option information by the user is written into the shared memory area, otherwise, operation 413 is performed again at set intervals.
At operation 414, the WEB displays and supports RESTful queries. Here, the display and viewing mode of the asset information may be set according to actual requirements, which is not limited in the present invention.
The device information management method of the electronic device includes the steps that firstly, a main control unit of the electronic device obtains setting information of the electronic device from a shared memory area, then, the electronic device is initialized according to the setting information, asset information and current setting information of the electronic device are obtained, the asset information and the current setting information of the electronic device are updated to the shared memory area in a set file format, and the shared memory area is configured on a substrate management control unit of the electronic device and can be accessed by the main control unit and the substrate management control unit. Therefore, the BIOS can be started normally only under the condition that the BMC UBOOT (boot loader system) is started without depending on a virtual USB device or (based on the management standard of the HTTPs service) service, and the problem that the BIOS needs to wait for the BMC initialization to cause overlong starting time when the BIOS is started is effectively solved. Furthermore, because the BIOS can write data in the shared memory area without waiting for the BMC to start the kernel, the problem that the asset information of the electronic device cannot be inquired and the BIOS options cannot be managed after the BMC is started due to an abnormal BMC can be effectively solved.
Similarly, based on the above device information management method of the electronic device, an embodiment of the present invention further provides a computer-readable storage medium, where a program is stored, and when the program is executed by a processor, the processor is enabled to perform at least the following operation steps: operation 201, obtaining setting information of an electronic device from a shared memory area, where the shared memory area is configured in a baseboard management control unit of the electronic device, and the shared memory area can be accessed by a main control unit and the baseboard management control unit; operation 202, initializing the electronic device according to the setting information, and obtaining asset information and current setting information of the electronic device; in operation 203, the asset information and the current setting information of the electronic device are updated to the shared memory area in a set file format.
Further, based on the above method for managing device information of an electronic device, an embodiment of the present invention further provides a device for managing device information of an electronic device, as shown in fig. 5, where the device 50 includes: a first obtaining module 501, configured to obtain setting information of an electronic device from a shared memory area, where the shared memory area is configured in a baseboard management control unit of the electronic device, and the shared memory area can be accessed by a main control unit and the baseboard management control unit; a collecting module 502, configured to initialize the electronic device according to the setting information, so as to obtain asset information and current setting information of the electronic device; the first updating module 503 is configured to update the asset information of the electronic device and the current setting information to the shared memory area in a set file format.
Still further, based on the above method for managing device information of an electronic device, an embodiment of the present invention further provides a device information management apparatus for an electronic device, which is applied to a substrate management control unit of an electronic device, as shown in fig. 6, where the apparatus 60 includes: a second obtaining module 601, configured to obtain asset information and current setting information of an electronic device from a shared memory area, where the shared memory area is configured in a baseboard management control unit, and the shared memory area can be accessed by a main control unit and the baseboard management control unit; the analysis module 602 analyzes the asset information and the current setting information; a change monitoring module 603 configured to monitor a change operation for the current setting information; the second updating module 604 is configured to send a change request to the shared memory area when a change operation is monitored.
Further, based on the above device information management method of the electronic device, an embodiment of the present invention further provides a device, as shown in fig. 7, where the device 70 includes at least one processor 701, at least one memory 702 connected to the processor 701, and a bus 703; the processor 701 and the memory 702 complete mutual communication through a bus 703; the processor 701 is configured to call the program instructions in the memory 702 to execute the device information management method of the electronic device.
Here, it should be noted that: the above description of the embodiments of the asset information management device and the equipment is similar to the description of the method embodiments shown in fig. 1 to 4, and has similar beneficial effects to the method embodiments shown in fig. 1 to 4, and therefore, the description is omitted. For technical details that are not disclosed in the embodiments of the asset information management device and apparatus of the present invention, please refer to the description of the method embodiments shown in fig. 1 to 4 of the present invention for understanding, and therefore, for brevity, will not be described again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A device information management method of an electronic device is applied to a main control unit of the electronic device, and comprises the following steps:
obtaining setting information of the electronic device from a shared memory area, wherein the shared memory area is configured in a baseboard management control unit of the electronic device and can be accessed by the main control unit and the baseboard management control unit;
initializing the electronic equipment according to the setting information to obtain asset information and current setting information of the electronic equipment;
and updating the asset information and the current setting information of the electronic equipment to the shared memory area in a set file format.
2. The method of claim 1, wherein the obtaining the setting information of the electronic device from the shared memory area comprises:
reading first set field information of the shared memory area;
and reading second set field information of the shared memory area under the condition that the first set field information is valid, wherein the second field information is used for representing the setting information and the asset information of the electronic equipment.
3. The method of claim 1, wherein initializing the electronic device according to the setting information to obtain asset information and current setting information of the electronic device comprises:
judging whether the setting information comprises a change request of the setting information sent by the baseboard management control unit or not to obtain a change judgment result;
restarting a first system of the electronic device based on the changed setting information when the change judgment result shows that the electronic setting information is changed, wherein the first system is used for guiding the starting of an operating system of the electronic device;
and initializing the electronic equipment to obtain the asset information and the current setting information of the electronic equipment under the condition that the change judgment result shows that the electronic setting information is not changed.
4. The method of claim 1, wherein updating the electronic device asset information and current settings information to the shared memory region in a set file format comprises:
converting the asset information and the current setting information of the electronic equipment into a first file in a JSON format;
and writing the first file into the shared memory area.
5. The method of claim 1, further comprising:
and under the condition that the collection of the asset information and the current setting information of the electronic equipment is finished, sending a collection finishing instruction to the baseboard management control unit, wherein the collection finishing instruction is used for representing that the collection of the asset information and the current setting information of the electronic equipment is finished.
6. An apparatus information management method of an electronic apparatus, applied to a baseboard management control unit of the electronic apparatus, the method comprising:
acquiring asset information and current setting information of the electronic device from a shared memory area, wherein the shared memory area is configured in the baseboard management control unit and can be accessed by a main control unit and the baseboard management control unit of the electronic device;
analyzing the asset information and the current setting information;
monitoring a change operation for the current setting information;
and sending a change request to the shared memory area under the condition that the change operation is monitored.
7. The method of claim 6, prior to obtaining asset information and current settings information for the electronic device from a shared memory region, the method further comprising:
and monitoring a collection completion instruction sent by the main control unit, wherein the collection completion instruction is used for representing that the main control unit of the electronic equipment completes the collection of the asset information and the current setting information of the electronic equipment.
8. An apparatus for managing device information of an electronic device, applied to a main control unit of the electronic device, the apparatus comprising:
a first obtaining module, configured to obtain setting information of the electronic device from a shared memory area, where the shared memory area is configured in a baseboard management control unit of the electronic device, and the shared memory area can be accessed by the main control unit and the baseboard management control unit;
the collection module is used for initializing the electronic equipment according to the setting information to obtain asset information and current setting information of the electronic equipment;
and the first updating module is used for updating the asset information and the current setting information of the electronic equipment to the shared memory area in the set file format.
9. An apparatus information management device of an electronic device, applied to a baseboard management control unit of the electronic device, the device comprising:
a second obtaining module, configured to obtain asset information and current setting information of the electronic device from a shared memory area, where the shared memory area is configured in the baseboard management control unit, and the shared memory area can be accessed by a main control unit of the electronic device and the baseboard management control unit;
the analysis module is used for analyzing the asset information and the current setting information;
the change monitoring module is used for monitoring change operation aiming at the current setting information;
and the second updating module is used for sending a change request to the shared memory area under the condition that the change operation is monitored.
10. A device comprising at least one processor, and at least one memory, bus connected with the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute the device information management method of the electronic device according to any one of claims 1 to 7.
CN202210619516.9A 2022-05-30 2022-05-30 Device information management method, device and equipment of electronic device Active CN114968386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210619516.9A CN114968386B (en) 2022-05-30 2022-05-30 Device information management method, device and equipment of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210619516.9A CN114968386B (en) 2022-05-30 2022-05-30 Device information management method, device and equipment of electronic device

Publications (2)

Publication Number Publication Date
CN114968386A true CN114968386A (en) 2022-08-30
CN114968386B CN114968386B (en) 2024-09-17

Family

ID=82960687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210619516.9A Active CN114968386B (en) 2022-05-30 2022-05-30 Device information management method, device and equipment of electronic device

Country Status (1)

Country Link
CN (1) CN114968386B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225541A (en) * 2022-12-08 2023-06-06 深圳市国鑫恒运信息安全有限公司 Method and system for communication between in-band CPU and out-of-band management BMC

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880519A (en) * 2012-08-24 2013-01-16 曙光信息产业(北京)有限公司 Basic input output system (BIOS) configuration batch modification method
CN105824648A (en) * 2016-04-19 2016-08-03 浪潮电子信息产业股份有限公司 Unattended BIOS configuration method
CN106445528A (en) * 2016-09-27 2017-02-22 郑州云海信息技术有限公司 Method and device for configuring SETUP options of BIOS quickly
CN108459918A (en) * 2018-03-26 2018-08-28 曙光信息产业(北京)有限公司 data sharing method and device
CN110633110A (en) * 2019-08-30 2019-12-31 苏州浪潮智能科技有限公司 Server starting method, equipment and storage medium
US20200104141A1 (en) * 2018-09-27 2020-04-02 American Megatrends, Inc. Techniques of retrieving bios data from bmc
CN111290802A (en) * 2020-02-13 2020-06-16 苏州浪潮智能科技有限公司 Information analysis method and device for BMC internal device and readable storage medium
CN111736906A (en) * 2020-06-12 2020-10-02 苏州浪潮智能科技有限公司 BIOS-based boot entry synchronous storage method, system, terminal and storage medium
CN113391845A (en) * 2021-06-25 2021-09-14 苏州浪潮智能科技有限公司 Data interaction method and device and related components
CN113961370A (en) * 2021-10-22 2022-01-21 苏州浪潮智能科技有限公司 Method, device, server and storage medium for communication between BMC and BIOS
CN114201234A (en) * 2021-12-13 2022-03-18 曙光信息产业股份有限公司 File processing method, device, system, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880519A (en) * 2012-08-24 2013-01-16 曙光信息产业(北京)有限公司 Basic input output system (BIOS) configuration batch modification method
CN105824648A (en) * 2016-04-19 2016-08-03 浪潮电子信息产业股份有限公司 Unattended BIOS configuration method
CN106445528A (en) * 2016-09-27 2017-02-22 郑州云海信息技术有限公司 Method and device for configuring SETUP options of BIOS quickly
CN108459918A (en) * 2018-03-26 2018-08-28 曙光信息产业(北京)有限公司 data sharing method and device
US20200104141A1 (en) * 2018-09-27 2020-04-02 American Megatrends, Inc. Techniques of retrieving bios data from bmc
CN110633110A (en) * 2019-08-30 2019-12-31 苏州浪潮智能科技有限公司 Server starting method, equipment and storage medium
CN111290802A (en) * 2020-02-13 2020-06-16 苏州浪潮智能科技有限公司 Information analysis method and device for BMC internal device and readable storage medium
CN111736906A (en) * 2020-06-12 2020-10-02 苏州浪潮智能科技有限公司 BIOS-based boot entry synchronous storage method, system, terminal and storage medium
CN113391845A (en) * 2021-06-25 2021-09-14 苏州浪潮智能科技有限公司 Data interaction method and device and related components
CN113961370A (en) * 2021-10-22 2022-01-21 苏州浪潮智能科技有限公司 Method, device, server and storage medium for communication between BMC and BIOS
CN114201234A (en) * 2021-12-13 2022-03-18 曙光信息产业股份有限公司 File processing method, device, system, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225541A (en) * 2022-12-08 2023-06-06 深圳市国鑫恒运信息安全有限公司 Method and system for communication between in-band CPU and out-of-band management BMC
CN116225541B (en) * 2022-12-08 2024-06-21 深圳市国鑫恒运信息安全有限公司 Method and system for communication between in-band CPU and out-of-band management BMC

Also Published As

Publication number Publication date
CN114968386B (en) 2024-09-17

Similar Documents

Publication Publication Date Title
US10019253B2 (en) Systems and methods of updating hot-pluggable devices
CN103412769B (en) External card parameter configuration, equipment and system
JP4411076B2 (en) Localized read-only storage for distributing files across a network
US6457099B1 (en) Programmable dedicated application card
US8949205B2 (en) Information processing apparatus for processing application software and a patch file
US20070011491A1 (en) Method for platform independent management of devices using option ROMs
KR100946395B1 (en) Microcomputer bridge architecture with an embedded microcontroller
JP5483116B2 (en) Maintenance system, maintenance method, and maintenance program
EP2477111A2 (en) Computer system and program restoring method thereof
TW498211B (en) Agent provided by USB device for executing USB device dependent program in USB host
CN115204423A (en) Equipment management method and management server
EP3614258B1 (en) Retrieving updated firmware code
US11861357B2 (en) Selecting and sending subset of components to computing device prior to operating system install
JP2014519658A (en) Operator message command to test the binding facility
JP2014524068A (en) Execute operator message start command
CN114968386B (en) Device information management method, device and equipment of electronic device
CN114020340B (en) Server system and data processing method thereof
CN113626276B (en) Method, system, terminal and storage medium for identifying type of server HBA card
US10628151B2 (en) Systems and methods for usage driven determination of update criticality
US9141321B1 (en) Configurable printer server device
CN118012523A (en) Default value configuration method, device, equipment and medium
JP2014524067A (en) Operator message command processing
CN117055923A (en) Firmware upgrading system, method and device, electronic equipment and storage medium
CN116627472A (en) Firmware program upgrading method and server of high-speed peripheral component equipment
US10140143B2 (en) Collection of guest status

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