Information management method and device for server

By calculating and reserving sufficient resources to support dynamic updates of the SMBIOS protocol specification table when the server is powered on or restarted, system downtime problems caused by insufficient resources are solved and system stability is improved.

CN118377513BActive Publication Date: 2024-09-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410835940.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-27
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Insufficient resources for dynamically updating the SMBIOS protocol specification table cause the server system to crash. Existing technologies cannot effectively solve this problem.

Method used

By determining the set of types that need to be dynamically updated when the server is powered on or restarted, and calculating the total reserved resources based on the preset resources of these types, it ensures that the management information updates in the protocol specification table can adapt to changes in hardware configuration and avoid resource shortages. 's system is down.

Benefits of technology

By calculating the actual number of words required for each SMBIOS protocol specification table type, sufficient resources are ensured, which solves the problem of system downtime caused by insufficient resources and improves the stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377513B
    Figure CN118377513B
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for information management of a server, wherein the method comprises: when the server is powered on or restarted, determining the type that needs to be dynamically updated in the protocol specification table as the target type, obtaining a target type set, wherein the type in the protocol specification table is used to record the management information of the server; determining the total reserved resources according to the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded by the target type; updating the management information of each target type in the protocol specification table through the total reserved resources. Through the present application, the problem of system downtime caused by insufficient resources for dynamically updating the SMBIOS protocol specification table in the related art is solved, thereby achieving the effect of improving system stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and in particular, to a method and device for managing information of a server. Background Art

[0002] Electronic products such as servers, desktops, notebooks and mobile phones all need to view system management information under the operating system. By uniformly collecting and summarizing all the information on the motherboard and updating it to the SMBIOS protocol specification table of the BIOS for recording, it is convenient for users or operation and maintenance personnel to quickly and in real time view the configuration information of the server system, and they can know the configuration of the entire machine without physical contact with the server equipment.

[0003] The SMBIOS protocol specification table has two update modes: dynamic and static. The data in the static update mode will not change dynamically with the change of server configuration, and the real-time and accuracy of the information cannot be guaranteed. Although the dynamic update mode can ensure that the information in the system is updated in time with the change of hardware configuration, the length of each type of byte data is not fixed. If the number or length of reserved bytes is insufficient and data exceeding the reserved bytes cannot be supported, the system will have serious and fatal problems such as error reporting and downtime.

[0004] There is currently no effective solution to the above problems. Summary of the invention

[0005] The embodiments of the present application provide a server information management method and device to at least solve the problem of system downtime caused by insufficient resources for dynamically updating the SMBIOS protocol specification table in the related art.

[0006] According to one embodiment of the present application, a server information management method is provided, comprising: when the server is powered on or restarted, determining the type that needs to be dynamically updated in the protocol specification table as a target type, and obtaining a target type set, wherein the type in the protocol specification table is used to record the management information of the server; determining the total reserved resources according to the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded by the target type; and updating the management information of each target type in the protocol specification table through the total reserved resources.

[0007] In an exemplary embodiment, the total reserved resources are determined based on the preset resources of each target type in the target type set, including: determining the type of management information recorded in the target type set that is related to the number of hardware as a first target type, to obtain a first target type set; determining the type of management information recorded in the target type set that is independent of the number of hardware as a second target type, to obtain a second target type set; determining the sum of the preset resources of each type in the first target type set as the sum of the first preset resources, and determining the sum of the preset resources of each type in the second target type set as the sum of the second preset resources; and determining the sum of the first sum of preset resources and the second sum of preset resources as the total reserved resources.

[0008] In an exemplary embodiment, determining the sum of the reserved resources of the first target type set and the reserved resources of the second target as the total reserved resources includes: obtaining the total reserved resources by the following formula:

[0009]

[0010] Where T is the total reserved resources, α i is the number of hardware of the i-th target type in the first target type set, N, M are integers greater than or equal to 1, S i is the preset resource of the i-th target type, β j It is the preset resource of the jth target type in the second target type set.

[0011] In an exemplary embodiment, the type of management information recorded in the target type set and related to the hardware quantity is determined as a first target type to obtain a first target type set, including: determining type 4, type 9, type 17, type 18, type 19, and type 39 in the protocol specification table as the first target type, wherein type 4 is used to record the central processing unit CPU information of the server, the management information includes the CPU information, the hardware quantity includes the number of CPUs in the server, the type 9 is used to record the peripheral component interconnect PCI interface information of the server, the hardware quantity includes the number of PCIs in the server, the types 17, 18, and 19 are used to record the memory information of the server, the hardware quantity includes the amount of memory in the server, and the type 39 is used to record the power supply information of the server, and the hardware quantity includes the number of power supplies in the server.

[0012] In an exemplary embodiment, the type of management information recorded in the target type set that is independent of the amount of hardware is determined as a second target type, and a second target type set is obtained, including: type 0, type 1, type 2, type 3, type 12, type 20, and type 41 in the protocol specification table are determined as second target types, wherein type 0, type 1, type 2, and type 3 are used to record the field replaceable unit FRU information of the server, type 12 is used to record physical silk screen information, type 20 is used to record the communication protocol of the basic input and output system and the baseboard management controller of the server, and type 41 is used to record the onboard device information of the server.

[0013] In an exemplary embodiment, after determining the total reserved resources according to the preset resources of each target type in the target type set, the method further comprises: updating the total reserved resources into a basic input and output system BIOS image and restarting the server.

[0014] In an exemplary embodiment, after restarting the server, the management information of each target type in the protocol specification table is updated, including: after entering the driver execution environment DXE stage and before the end of the DXE stage, obtaining the current latest FRU information through the basic input and output system BIOS; updating the current latest FRU information to type 0, type 1, type 2, and type 3 in the protocol specification table.

[0015] In an exemplary embodiment, after determining that the types 0, 1, 2, and 3 have been updated, the method further includes: obtaining the latest central processing unit CPU information, and updating the latest central processing unit CPU information to type 4, wherein the CPU information includes: CPU manufacturer, CPU model, CPU speed, and number of CPU cores; after determining that the update to type 4 has been completed, obtaining the latest physical silk screen information, and updating the latest physical silk screen information to type 12; after determining that the type 12 has been updated, obtaining the latest memory information, and updating the memory information to types 17, 18, and 19, wherein the memory information includes the number of memories, memory slot silk screen information, memory capacity, memory manufacturer, and functional characteristics supported by the memory; after determining that the types 17, 18, and 19 have been updated, obtaining the latest basic input and output system and baseboard management controller communication protocol, and updating the latest basic input and output system and baseboard management controller communication protocol to type 20.

[0016] In an exemplary embodiment, after determining that the update of type 20 is complete, the method further includes: obtaining the latest power supply information, and updating the latest power supply information to type 39, wherein the power supply information includes: power supply manufacturer, power supply factory date, power supply presence information, power supply location information; after determining that the update of type 39 is complete, obtaining the latest onboard device information, and updating the latest onboard device information to type 41, wherein the onboard device information includes the location information of the onboard storage medium.

[0017] In an exemplary embodiment, after determining that the type 41 is updated, the method further includes: obtaining the latest peripheral component interconnect (PCI) interface information after the DXE phase ends and before entering the operating system; and updating the PCI interface information to type 9.

[0018] In an exemplary embodiment, after updating the management information of each target type in the protocol specification table through the total reserved resources, the method further includes: after determining that the protocol specification table is updated, determining the total resource requirement of the protocol specification table and applying for corresponding memory space.

[0019] According to another embodiment of the present application, a server information management device is provided, including: an acquisition module, used to determine the type that needs to be dynamically updated in the protocol specification table as a target type when the server is powered on or restarted, and obtain a target type set, wherein the type in the protocol specification table is used to record the management information of the server; a determination module, used to determine the total reserved resources according to the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded by the target type; an update module, used to update the management information of each target type in the protocol specification table through the total reserved resources.

[0020] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0021] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0022] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0023] Through the present application, when the server is powered on or restarted, the types that need to be dynamically updated in the protocol specification table are determined as target types, and a target type set is obtained, wherein the types in the protocol specification table are used to record the management information of the server; the total reserved resources are determined based on the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured based on the management information recorded by the target type; the management information of each target type in the protocol specification table is updated through the total reserved resources.

[0024] Since the total number of reserved bytes required is calculated by calculating the actual number of words required for the type in each SMBIOS protocol specification table, the problem of system crash caused by insufficient resources for dynamically updating the SMBIOS protocol specification table in the related technology can be solved, thereby achieving the effect of improving the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a hardware structure block diagram of a server device of a server information management method according to an embodiment of the present application;

[0026] Figure 2 is a flow chart of an information management method for a server according to an embodiment of the present application;

[0027] Figure 3 is a physical connection diagram of a server motherboard according to an embodiment of the present application;

[0028] Figure 4 is a specific flow chart of updating the SMBIOS protocol specification table according to an embodiment of the present application;

[0029] Figure 5 is a swim lane diagram of an updated SMBIOS protocol specification table according to an embodiment of the present application;

[0030] Figure 6 It is a structural block diagram of an information management device of a server according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to help better understand the embodiments of the present application, some terms in the present application are explained below:

[0032] SMBIOS: System Management BIOS, a unified specification that motherboard or system manufacturers must follow to display product management information in a standard format. The SMBIOS (System Management BIOS) protocol specification table is a standard format for describing computer hardware configuration information. This table contains various information about the computer system, such as detailed information on hardware components such as the processor, memory, motherboard, and graphics card. The SMBIOS protocol specification table can be read by the operating system or software program to identify, configure, and manage the system. By reading the SMBIOS protocol specification table, users can understand the specific configuration information of the computer hardware, thereby better understanding the performance and functions of the computer system.

[0033] BIOS: Basic Input Output System, basic input output system.

[0034] BMC: Baseboard Management Controller, baseboard management controller.

[0035] TYPE: One of the type information of the SMBIOS table.

[0036] Type39: A power information display type of the SMBIOS protocol.

[0037] PSU: Power supply unit, power supply.

[0038] I2C: Inter-Integrated Circuit, two-wire serial bus.

[0039] IPMI: Intelligent Platform Management Interface, intelligent platform management interface.

[0040] Runtime: The stage of running code under the BIOS system.

[0041] PCI: Peripheral Component Interconnect, a standard interface for connecting components inside a computer. It is a bus technology for high-speed data transmission, used to connect various peripheral devices, such as graphics cards, network cards, sound cards, etc. The PCI interface usually exists in the form of a slot on the computer motherboard, and various different PCI cards can be inserted to expand the computer's functions. There are also many different versions of the PCI interface, such as PCI Express (PCIe), which is an upgraded version of PCI with higher transmission speeds and better performance.

[0042] FRU: Field Replacement Units. In a baseboard management controller, FRU usually refers to components or modules that can be replaced by users or technicians, such as batteries, fans, power supplies, etc. The replacement of these FRUs can help maintenance personnel quickly repair faults or upgrade the system.

[0043] DXE: Driver Execution Environment, which refers to the operating environment and resources required by the driver when it is executed in the operating system. In this environment, the driver can interact with the hardware device and perform various operations to control and manage the device. The driver execution environment usually includes the relevant API interface provided by the operating system, the device driver framework, the device manager and other components.

[0044] BDS: Boot Dev Select, boot device selection.

[0045] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0047] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a server information management method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0048] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the information management method of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0049] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0050] In this embodiment, a method for managing information of a server is provided. Figure 2 is a flow chart of the information management method of the server according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0051] Step S202, when the server is powered on or restarted, the type that needs to be dynamically updated in the protocol specification table is determined as a target type to obtain a target type set, wherein the type in the protocol specification table is used to record the management information of the server;

[0052] The above-mentioned type can be a type in the protocol specification table, such as type 0, type 1, type 2, type 3, etc., which is used to record the configuration information of the motherboard, such as the number of CPU processors, CPU speed, CPU core, memory quantity, memory core, memory manufacturer, PCI slot device quantity, motherboard onboard device quantity, system manufacturer, system model, motherboard model, etc.; the above-mentioned protocol specification table can be an SMBIOS protocol specification table, and the type update method of the protocol specification table can be a static update method or a dynamic update method, wherein the static update method is that the BIOS will pre-fill all the information of the motherboard in the system at startup, and the BIOS will fill in and update this information to each type of the SMBIOS protocol at startup, but these data are static and will not change dynamically with the change of the server configuration; the dynamic update method is that when the BIOS is started, the BIOS will actively identify the number of CPU processors, CPU speed, CPU core, memory quantity, memory core, memory manufacturer, PCI slot device quantity, motherboard onboard device quantity, system manufacturer, system model, motherboard model, etc. that are started this time, and dynamically update them to maintain the real-time and accuracy of the information, and improve the efficiency and accuracy of system management. It should be noted that the dynamic update method is adopted by default in the embodiment of the present application.

[0053] When the server is powered on or restarted, after the SMBIOS protocol specification table is updated, it starts to enter the shell environment or operating system; after entering the operating system, the type of the SMBIOS protocol specification table is parsed using the SMBIOS parsing command provided by the system, and the types that need to be dynamically updated in the protocol specification table are obtained, including motherboard information, CPU information, memory information, PCI slot device information, power supply information, motherboard onboard information and other information, and the types that need to be dynamically updated in the protocol specification table are determined as target types to obtain a target type set.

[0054] Step S204, determining the total reserved resources according to the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded in the target type;

[0055] The above target type can be a type of dynamically updating the SMBIOS table before the end of the DXE boot phase of the BIOS, or a type of updating the SMBIOS table after the end of the DXE boot phase of the BIOS and before entering the operating system; the above reserved resources can be the number of bytes or length required for each type in the protocol specification table, wherein the type of dynamically updating the SMBIOS protocol specification table before the end of the DXE boot phase of the BIOS, the number of reserved bytes is calculated by adding the number of bytes of the current SMBIOS protocol specification table plus the number of reserved bytes and the number of bytes of the current SMBIOS protocol specification table type; the above total reserved resources can be a server; if after the end of the DXE boot phase of the BIOS, the number of bytes updated in the type of the SMBIOS protocol specification table will occupy the previously reserved number of bytes, including the length of the updated FRU information will also occupy the reserved number of bytes. In addition, after the end of DXE and before entering the operating system (OS), the PCI slot information update of type 9 in the SMBIOS protocol specification table will also occupy the previously reserved number of bytes.

[0056] The above preset resources can be the size of the byte resources that need to be reserved for each type. For example, the length of type 0 is 100 bytes, the length of type 1 is 110 bytes; the length of type 2 is 120 bytes; the length of type 3 is 200 bytes; the length of type 4 is 200 bytes when there is 1 CPU, but it needs to be 400 bytes when there are 2 CPUs, and 800 bytes or 1600 bytes when there are 4 CPUs or 8 CPUs; the length of type 12 is 100 bytes; the length of type 17 is 100 bytes when there is 1 memory. The length of type 18 is 200 bytes, and the length of type 19 is 200 bytes; when there are 32 memories, types 17, 18, 19, etc. need to be multiplied by a multiple of 32; the length of type 20 is 100 bytes; when there is 1 power supply, the length of type 39 is 100 bytes, and when there are 2 power supplies, it is 200 bytes; the length of type 41 is 100 bytes; when there is 1 PCI device, the length of type 9 is 100 bytes, and when there are 32 PCI devices, 32 times the number of bytes is required, etc.

[0057] Specifically, the type of management information recorded in the target type set that is related to the number of hardware is determined as the first target type to obtain a first target type set; the type of management information recorded in the target type set that is independent of the number of hardware is determined as the second target type to obtain a second target type set; the sum of the preset resources of each type in the first target type set is determined as the first sum of preset resources, and the sum of the preset resources of each type in the second target type set is determined as the second sum of preset resources; the sum of the first sum of preset resources and the second sum of preset resources is determined as the total reserved resources.

[0058] The above-mentioned first target type can be type 17, 18, 19, etc., for example, when there is 1 memory, the length of type 17 is 200 bytes, the length of type 18 is 200 bytes, and the length of type 19 is 200 bytes; when there are 32 memories, types 17, 18, 19, etc. need to be multiplied by a multiple of 32; the above-mentioned second target type can be type 0, 1, 2, 4, etc., for example, the length of type 0 is 100 bytes, the length of type 1 is 110 bytes; the length of type 2 is 120 bytes; the length of type 3 is 200 bytes; respectively obtain the first target type set and the second target type set, and determine the preset resources and the sum of preset resources of each type in the first target type set and the second target type set, and determine the total reserved resources according to the sum of preset resources of the first target type set and the sum of preset resources combined with the second target type.

[0059] By classifying the types in the SMBIOS protocol specification table and calculating the reserved resources respectively, the reserved bytes of the SMBIOS protocol specification table type required for the maximum configuration of the server can be obtained, which can help system administrators and engineers better plan and manage server configurations, ensure stable system operation and meet performance requirements. At the same time, by understanding the reserved bytes of the SMBIOS protocol specification table type required for server configuration, system resource allocation can be better optimized to improve system performance and efficiency.

[0060] Step S206: Update the management information of each target type in the protocol specification table by using the total reserved resources.

[0061] Through the above steps, when the server is powered on or restarted, the type that needs to be dynamically updated in the protocol specification table is determined as the target type, and a target type set is obtained, wherein the type in the protocol specification table is used to record the management information of the server; the total reserved resources are determined according to the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded by the target type; the management information of each target type in the protocol specification table is updated through the total reserved resources.

[0062] After entering the operating system, the maximum number of bytes that actually need to be reserved is calculated through server configuration information and used after the DXE stage ends and before entering the system. This solves the problem of system crashes caused by insufficient resources for dynamically updating the SMBIOS protocol specification table in related technologies and improves system stability.

[0063] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0064] As an optional embodiment, determining the sum of the reserved resources of the first target type set and the reserved resources of the second target as the total reserved resources includes: obtaining the total reserved resources by the following formula:

[0065]

[0066] Where T is the total reserved resources, α i is the number of hardware of the i-th target type in the first target type set, N, M are integers greater than or equal to 1, S i is the preset resource of the i-th target type, β j It is the preset resource of the jth target type in the second target type set.

[0067] By calculating the actual number of words required for each type of the SMBIOS protocol specification table, the total number of reserved bytes required is calculated, ensuring that the reserved bytes do not occupy too many memory resources and that the system will not experience startup downtime due to system or server configuration changes.

[0068] As an optional implementation, the type of management information recorded in the target type set and related to the hardware quantity is determined as a first target type to obtain a first target type set, including: determining type 4, type 9, type 17, type 18, type 19, and type 39 in the protocol specification table as the first target type, wherein type 4 is used to record the central processing unit CPU information of the server, and the management information includes the CPU information; the hardware quantity includes the number of CPUs in the server; type 9 is used to record the peripheral component interconnect PCI interface information of the server, and the hardware quantity includes the number of PCIs in the server; types 17, type 18, and type 19 are used to record the memory information of the server, and the hardware quantity includes the amount of memory in the server; type 39 is used to record the power supply information of the server, and the hardware quantity includes the number of power supplies in the server.

[0069] As an optional implementation, the type of management information recorded in the target type set that is independent of the hardware quantity is determined as a second target type, and a second target type set is obtained, including: type 0, type 1, type 2, type 3, type 12, type 20, and type 41 in the protocol specification table are determined as second target types, wherein type 0, type 1, type 2, and type 3 are used to record the field replaceable unit FRU information of the server, type 12 is used to record physical silk screen information, type 20 is used to record the communication protocol between the basic input and output system of the server and the baseboard management controller, and type 41 is used to record the onboard device information of the server.

[0070] As an optional implementation, after determining the total reserved resources according to the preset resources of each target type in the target type set, the method further includes: updating the total reserved resources into a basic input and output system BIOS image and restarting the server.

[0071] By updating the total reserved resources to the BIOS image, it can be ensured that these resources are correctly configured and allocated when the system starts, optimizing the utilization of system resources, thereby improving system stability and reliability, improving system performance and reducing resource waste. At the same time, it reduces the resource configuration and allocation issues that managers need to pay attention to, simplifying system management and maintenance.

[0072] As an optional embodiment, after restarting the server, the management information of each target type in the protocol specification table is updated, including: after entering the driver execution environment DXE stage and before the end of the DXE stage, obtaining the current latest FRU information through the basic input and output system BIOS; updating the current latest FRU information to type 0, type 1, type 2, and type 3 in the protocol specification table.

[0073] As an optional embodiment, after determining that the types 0, 1, 2, and 3 have been updated, the method further includes: obtaining the current latest central processing unit CPU information, and updating the latest central processing unit CPU information to type 4, wherein the CPU information includes: CPU manufacturer, CPU model, CPU speed, and number of CPU cores; after determining that the update to type 4 has been completed, obtaining the current latest physical silk screen information, and updating the current latest physical silk screen information to type 12; after determining that the type 12 has been updated, obtaining the current latest memory information, and updating the memory information to types 17, 18, and 19, wherein the memory information includes the number of memories, memory slot silk screen information, memory capacity, memory manufacturer, and functional characteristics supported by the memory; after determining that the types 17, 18, and 19 have been updated, obtaining the latest basic input / output system and baseboard management controller communication protocol, and updating the latest basic input / output system and baseboard management controller communication protocol to type 20.

[0074] As an optional embodiment, after determining that the update of type 20 is completed, the method also includes: obtaining the latest power supply information, and updating the latest power supply information to type 39, wherein the power supply information includes: power supply manufacturer, power supply factory date, power supply presence information, power supply location information; after determining that the update of type 39 is completed, obtaining the latest onboard device information, and updating the latest onboard device information to type 41, wherein the onboard device information includes the location information of the onboard storage medium.

[0075] As an optional embodiment, after determining that the type 41 is updated, the method further includes: obtaining the latest peripheral component interconnect (PCI) interface information after the end of the DXE stage and before entering the operating system; and updating the PCI interface information to type 9.

[0076] As an optional implementation, after updating the management information of each target type in the protocol specification table through the total reserved resources, the method further includes: after determining that the protocol specification table is updated, determining the total resource requirement of the protocol specification table and applying for corresponding memory space.

[0077] As an optional implementation method, before the server is started, the BIOS is set to static update, and the SMBIOS protocol specification table is not changed according to the original design. When the server is started, the BIOS updates the data of the types in the SMBIOS protocol update table in a dynamic update manner, wherein the types of some SMBIOS protocol specification tables will be updated before the end of the DXE stage, and the type data of some SMBIOS protocol specification tables will be updated after the DXE startup ends and before entering the operating system. By adopting a dynamic method to keep the stage data of the original update of the SMBIOS protocol specification table unchanged, after entering the operating system, the maximum number of bytes actually required to be reserved is calculated to the maximum through the server configuration information, and used before entering the system after the DXE stage ends, it can ensure that the operating status of the system is accurate at different stages, avoid system errors or crashes caused by inconsistent data, ensure the compatibility of the system with external devices or software, and avoid mismatches or unsupported situations; at the same time, optimize the system configuration and resource allocation, provide more accurate and detailed system information, help system administrators to manage and maintain, improve the performance of the system, make the system more stable, reliable, compatible and efficient, and improve the user experience and the overall performance of the system.

[0078] As an optional implementation, Figure 3 is a physical connection diagram of a server motherboard according to an embodiment of the present application, such as Figure 3As shown, the configuration information of the server is transmitted to the central processing unit (CPU) of the server through the double-sided memory module (DIMM) via the PCI bus or the I2C bus, the two central processing units (CPU0 and CPU1) are connected through a new efficient interconnection protocol (UPI / CCIX / GMIX), the BIOS is connected to the central processing unit (CPU0) through the serial peripheral interface (SPI / QSPI / ESPI), the BMC is connected to the power supply (PSU), the graphic display interface (VGA) and the central processing unit (CPU0) respectively, the built-in device (OnboardDevice) is connected to the central processing unit (CPU0) through the PCI bus, and the CPU and BIOS are connected to each other, so as to update the SMBIOS protocol specification table.

[0079] As an optional implementation, Figure 4 is a specific flow chart of updating the SMBIOS protocol specification table according to an embodiment of the present application, such as Figure 4 As shown, applied to Figure 3 For the server motherboard shown, the specific process is as follows:

[0080] Step S1, when the server starts, the BIOS updates the data of the type in the SMBIOS protocol update table in a dynamic update manner, and does not support a static update manner, because the static update manner requires various configuration information and PCI slot information in type 9 and other character information to be fixed in advance;

[0081] Step S2, after the BIOS settings are statically updated, the SMBIOS is designed according to the original scheme without any changes, the types of some SMBIOS protocol specification tables will be updated before the end of the DXE stage, and the type data of some SMBIOS protocol specification tables will be updated after the DXE startup ends and before entering the operating system;

[0082] Step S3, after the SMBIOS protocol specification table is updated, the shell environment or operating system is started; after entering the operating system, the type of the SMBIOS protocol specification table is parsed using the SMBIOS parsing command provided by the system;

[0083] Step S4, after obtaining the parsed data, respectively calculate the size of the reserved byte resources required for types 0, 1, 2, 3, 4, 12, 17, 18, 19, 20, 39, 41, 9, etc.; for example, the length of type 0 is 100 bytes, the length of type 1 is 110 bytes, the length of type 2 is 120 bytes, the length of type 3 is 200 bytes, the length of type 4 is 200 bytes for 1 CPU, but 400 bytes for 2 CPUs, 800 bytes or 1600 bytes for 4 CPUs or 8 CPUs, and the length of type 12 is 200 bytes for 1 CPU. The length of type 20 is 100 bytes. When there is 1 memory, the length of type 17 is 200 bytes, the length of type 18 is 200 bytes, and the length of type 19 is 200 bytes. When there are 32 memories, types 17, 18, 19, etc. need to be multiplied by a multiple of 32. The length of type 20 is 100 bytes. When there is 1 power supply, the length of type 39 is 100 bytes, and when there are 2 power supplies, it is 200 bytes. The length of type 41 is 100 bytes. When there is 1 PCI device, the length of type 9 is 100 bytes. When there are 32 PCI devices, 32 times the number of bytes is required.

[0084] Step S5, after the above bytes are calculated, the accumulated bytes are added up to calculate the reserved bytes of the SMBIOS protocol specification table type required for the maximum configuration of the server, and the data is updated to the BIOS image and the server is restarted;

[0085] Step S6, after restarting the server, before the DXE stage ends, first update the table types 0, 1, 2, and 3 in the SMBIOS protocol. Some character strings of data of types 0, 1, 2, and 3 are obtained by updating FRU information under the system. At the same time, some information is reserved in advance in types 0, 1, 2, and 3 of the SMBIOS protocol specification table;

[0086] Step S7, after types 0, 1, 2, and 3 are updated, we continue to update type 4 in the SMBIOS protocol specification table. Type 4 records the current CPU information, including but not limited to CPU manufacturer, CPU model, CPU speed, CPU core number, etc.;

[0087] Step S8, after type 4 is updated, type 12 of the SMBIOS protocol is updated. Type 12 mainly involves the physical silk screen information of the connection between the motherboard and the peripherals. After the update is completed, the memory related information, i.e., Type 17, 18, 19, etc., is updated;

[0088] Step S9, updating types 17, 18, and 19 of the SMBIOS protocol specification table, where types 17, 18, and 19 mainly involve the memory quantity, memory slot silkscreen information, memory capacity, memory manufacturer, and memory supported functional characteristics of the current server;

[0089] Step S10, after the memory information of types 17, 18, and 19 is updated, type 20 of the SMBIOS protocol specification table is updated in sequence, and type 20 mainly records the communication protocol between BIOS and BMC;

[0090] Step S11, after updating the type 20 of the SMIOS, update the type 39 of the SMBIOS protocol, which mainly involves the power supply information of the server, namely, the PSU, including the power supply manufacturer, the power supply production date, the power supply in place information, the power supply location information and other power supply related information;

[0091] Step S12, after type 39 is updated, type 41 is updated, and type 41 mainly involves the onboard devices of the mainboard, including the location information of the onboard storage medium, etc.;

[0092] Step S13, after the DXE phase ends and before entering the operating system, the type 9 information of the SMBIOS protocol is updated. Type 9 mainly includes PCI slot information, including but not limited to core information such as slot information, bandwidth information, and device location information of the PCI device. The byte space occupied by the type data update of the SMBIOS protocol specification table after the DXE startup ends is calculated and reserved in advance.

[0093] Step S14, when all the information in the SMBIOS protocol specification table is updated, the total resource requirement of the SMBIOS protocol specification table is calculated and the corresponding memory space is applied.

[0094] When the BIOS starts, the BIOS updates the type data of the SMBIOS protocol specification table in a dynamic manner, rather than a static manner. At the same time, in the DXE stage, the data of the table types 0, 1, 2, 3, 4, 12, 17, 18, 19, 20, 39, 41, etc. of the SMBIOS protocol are updated to the above types through the IPMI protocol or the method obtained by the BIOS itself. If it is not updated in the DXE stage, the number of bytes reserved is calculated by the sum of the maximum number of bytes required for each type in the system before, and is used after the DXE ends and before entering the operating system. Before entering the operating system, it is updated to the SMBIOS protocol, and the data occupied at this time is the maximum number of bytes of the SMBIOS previously reserved. By using a dynamic method to keep the stage data of the original update of the SMBIOS protocol specification table unchanged, after entering the operating system, the maximum number of bytes actually required to be reserved is calculated by maximizing the server configuration information and used before entering the system after the DXE stage ends, the downtime problem caused by any update of the type data of the SMBIOS protocol specification table can be solved, and the stability of the system can be improved.

[0095] As an optional implementation, Figure 5is a swim lane diagram of the updated SMBIOS protocol specification table according to an embodiment of the present application, such as Figure 5 As shown, in the DEX stage, the FRU information is updated to types 0, 1, 2, and 3, the CPU manufacturer, CPU model, CPU speed, CPU core number and other information are updated to type 4, the physical silk screen information (physical silk screen information and interface information of the motherboard) is updated to type 12, the memory information (memory quantity, memory slot silk screen information, memory capacity, memory manufacturer, memory supported functional characteristics information) is updated to types 17, 18, and 19, the basic input and output system and baseboard management controller communication protocol (BIOS and BMC communication protocol) is updated to type 20, the power supply information (power supply manufacturer, power supply factory date, power supply in place information, power supply location information and other information) is updated to type 39, the onboard device information (onboard devices and onboard storage media of the motherboard) is updated to type 41, and the PCI interface information (PCI device slot information, bandwidth information, device location information and other information) is updated to type 9; and in the OS stage, the total reserved resources of the above types are calculated.

[0096] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0097] In the present embodiment, a device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0098] Figure 6 is a structural block diagram of an information management device for a server according to an embodiment of the present application, such as Figure 6As shown, the device includes: an acquisition module 602, which is used to determine the type that needs to be dynamically updated in the protocol specification table as a target type when the server is powered on or restarted, and obtain a target type set, wherein the type in the protocol specification table is used to record the management information of the server; a determination module 604, which is used to determine the total reserved resources based on the preset resources of each target type in the target type set, wherein the preset resources are resources pre-configured based on the management information recorded by the target type; an update module 606, which is used to update the management information of each target type in the protocol specification table through the total reserved resources.

[0099] In an exemplary embodiment, the device is also used to determine the type of management information recorded in the target type set that is related to the hardware quantity as a first target type, to obtain a first target type set; determine the type of management information recorded in the target type set that is independent of the hardware quantity as a second target type, to obtain a second target type set; determine the sum of the preset resources of each type in the first target type set as the first preset resource sum, and determine the sum of the preset resources of each type in the second target type set as the second preset resource sum; determine the sum of the first preset resource sum and the second preset resource sum as the total reserved resources.

[0100] In an exemplary embodiment, the apparatus is further configured to obtain the total reserved resources by using the following formula:

[0101]

[0102] Where T is the total reserved resources, α i is the number of hardware of the i-th target type in the first target type set, N, M are integers greater than or equal to 1, S i is the preset resource of the i-th target type, β j It is the preset resource of the jth target type in the second target type set.

[0103] In an exemplary embodiment, the device is also used to determine type 4, type 9, type 17, type 18, type 19, and type 39 in the protocol specification table as the first target type, wherein type 4 is used to record the central processing unit CPU information of the server, the management information includes the CPU information, the hardware quantity includes the number of CPUs in the server, the type 9 is used to record the peripheral component interconnect PCI interface information of the server, the hardware quantity includes the number of PCIs in the server, the types 17, 18, and 19 are used to record the memory information of the server, the hardware quantity includes the amount of memory in the server, and the type 39 is used to record the power supply information of the server, and the hardware quantity includes the number of power supplies in the server.

[0104] In an exemplary embodiment, the device is also used to determine type 0, type 1, type 2, type 3, type 12, type 20, and type 41 in the protocol specification table as the second target type, wherein type 0, type 1, type 2, and type 3 are used to record the field replaceable unit FRU information of the server, type 12 is used to record physical silk screen information, type 20 is used to record the communication protocol of the basic input and output system and baseboard management controller of the server, and type 41 is used to record the onboard device information of the server.

[0105] In an exemplary embodiment, the apparatus is further configured to update the total reserved resources into a basic input / output system BIOS image and restart the server.

[0106] In an exemplary embodiment, the device is also used to obtain the current latest FRU information through the basic input and output system BIOS after entering the driver execution environment DXE stage and before the end of the DXE stage; and update the current latest FRU information to type 0, type 1, type 2, and type 3 in the protocol specification table.

[0107] In an exemplary embodiment, the device is also used to obtain the current latest central processing unit CPU information, and update the latest central processing unit CPU information to type 4, wherein the CPU information includes: CPU manufacturer, CPU model, CPU speed, and number of CPU cores; after determining that the update to type 4 is completed, obtain the current latest physical silk screen information, and update the current latest physical silk screen information to type 12; after determining that the update to type 12 is completed, obtain the current latest memory information, and update the memory information to type 17, type 18, and type 19, wherein the memory information includes the number of memories, memory slot silk screen information, memory capacity, memory manufacturer, and functional characteristics supported by the memory; after determining that the updates to types 17, 18, and 19 are completed, obtain the latest basic input and output system and baseboard management controller communication protocol, and update the latest basic input and output system and baseboard management controller communication protocol to type 20.

[0108] In an exemplary embodiment, the device is also used to obtain the latest power supply information and update the latest power supply information to type 39, wherein the power supply information includes: power supply manufacturer, power supply factory date, power supply presence information, and power supply location information; after determining that type 39 has been updated, the latest onboard device information is obtained and the latest onboard device information is updated to type 41, wherein the onboard device information includes location information of the onboard storage medium.

[0109] In an exemplary embodiment, the device is further configured to obtain the latest Peripheral Component Interconnect (PCI) interface information after the DXE phase ends and before entering the operating system; and update the PCI interface information to type 9.

[0110] In an exemplary embodiment, the apparatus is further configured to determine a total resource requirement of the protocol specification table and apply for corresponding memory space after determining that the protocol specification table has been updated.

[0111] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0112] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0113] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0114] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0115] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0116] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0117] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0118] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0119] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A server information management method, characterized in that: include: When the server is powered on or restarted, the type that needs to be dynamically updated in the protocol specification table is determined as a target type to obtain a target type set, wherein the type in the protocol specification table is used to record the management information of the server; Determining the total reserved resources according to the preset resources of each of the target types in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded by the target type; Updating the management information of each of the target types in the protocol specification table by using the total reserved resources; Wherein, determining the total reserved resources according to the preset resources of each target type in the target type set includes: Determine the type of management information recorded in the target type set that is related to the hardware quantity as a first target type, to obtain a first target type set; Determine the type of management information recorded in the target type set that is independent of the hardware quantity as a second target type, to obtain a second target type set; Determine the sum of preset resources of each type in the first target type set as a first preset resource sum, and determine the sum of preset resources of each type in the second target type set as a second preset resource sum; The sum of the first preset resources and the second preset resources is determined as the total reserved resources.

2. The method according to claim 1, characterized in that Determining the sum of the reserved resources of the first target type set and the reserved resources of the second target as the total reserved resources includes: The total reserved resources are obtained by the following formula: , Wherein, T is the total reserved resources, is the number of hardware of the i-th target type in the first target type set, N and M are integers greater than or equal to 1, is the preset resource of the i-th target type, It is the preset resource of the jth target type in the second target type set.

3. The method according to claim 1, characterized in that The type of management information recorded in the target type set and related to the hardware quantity is determined as a first target type, and a first target type set is obtained, including: Type 4, type 9, type 17, type 18, type 19, and type 39 in the protocol specification table are determined as the first target type, wherein type 4 is used to record the central processing unit CPU information of the server, the management information includes the CPU information, the hardware quantity includes the number of CPUs in the server, type 9 is used to record the peripheral component interconnect PCI interface information of the server, the hardware quantity includes the number of PCIs in the server, types 17, type 18, and type 19 are used to record the memory information of the server, the hardware quantity includes the number of memories in the server, and type 39 is used to record the power supply information of the server, and the hardware quantity includes the number of power supplies in the server.

4. The method according to claim 1, characterized in that The type of management information recorded in the target type set that is independent of the hardware quantity is determined as a second target type, and a second target type set is obtained, including: Type 0, type 1, type 2, type 3, type 12, type 20, and type 41 in the protocol specification table are determined as the second target type, wherein type 0, type 1, type 2, and type 3 are used to record the field replaceable unit FRU information of the server, type 12 is used to record physical silk screen information, type 20 is used to record the communication protocol of the basic input and output system and the baseboard management controller of the server, and type 41 is used to record the onboard device information of the server.

5. The method according to any one of claims 1 to 4, characterized in that After determining the total reserved resources according to the preset resources of each target type in the target type set, the method further includes: The total reserved resources are updated into a basic input / output system BIOS image and the server is restarted.

6. The method according to claim 5, characterized in that After restarting the server, updating the management information of each target type in the protocol specification table includes: After entering the driver execution environment DXE phase and before the DXE phase ends, the latest FRU information is obtained through the basic input and output system BIOS; The current latest FRU information is updated to type 0, type 1, type 2, and type 3 in the protocol specification table.

7. The method according to claim 6, characterized in that After determining that the type 0, type 1, type 2, and type 3 are updated, the method further includes: Obtain the latest central processing unit (CPU) information, and update the latest central processing unit (CPU) information to type 4, wherein the CPU information includes: CPU manufacturer, CPU model, CPU speed, and CPU core number; After determining that the update to type 4 is completed, obtaining the latest physical silk screen information, and updating the latest physical silk screen information to type 12; After determining that the update of type 12 is completed, obtain the latest memory information, and update the memory information to type 17, type 18, and type 19, wherein the memory information includes the memory quantity, memory slot silkscreen information, memory capacity, memory manufacturer, and functional characteristics supported by the memory; After it is determined that the update of type 17, type 18, and type 19 is completed, the latest communication protocol of the basic input / output system and the baseboard management controller is obtained, and the latest communication protocol of the basic input / output system and the baseboard management controller is updated to type 20.

8. The method according to claim 7, characterized in that After determining that the type 20 is updated, the method further includes: Acquire the latest power supply information, and update the latest power supply information to type 39, wherein the power supply information includes: power supply manufacturer, power supply production date, power supply location information, and power supply location information; After determining that the type 39 is updated, the latest onboard device information is obtained, and the latest onboard device information is updated to type 41, wherein the onboard device information includes location information of the onboard storage medium.

9. The method according to claim 8, characterized in that After determining that the type 41 is updated, the method further includes: After the DXE phase ends and before entering the operating system, obtaining the latest peripheral component interconnect (PCI) interface information; Update the PCI interface information to type 9.

10. The method according to claim 1, characterized in that After updating the management information of each of the target types in the protocol specification table by using the total reserved resources, the method further includes: After it is determined that the protocol specification table is updated, the total resource requirement of the protocol specification table is determined and corresponding memory space is applied for.

11. An information management device for a server, characterized in that: include: An acquisition module, used for determining the type that needs to be dynamically updated in the protocol specification table as a target type when the server is powered on or restarted, and obtaining a target type set, wherein the type in the protocol specification table is used to record the management information of the server; A determination module, configured to determine the total reserved resources according to the preset resources of each of the target types in the target type set, wherein the preset resources are resources pre-configured according to the management information recorded by the target type; An updating module, configured to update the management information of each of the target types in the protocol specification table by using the total reserved resources; The device is also used to determine the type of management information recorded in the target type set that is related to the number of hardware as a first target type, to obtain a first target type set; determine the type of management information recorded in the target type set that is independent of the number of hardware as a second target type, to obtain a second target type set; determine the sum of the preset resources of each type in the first target type set as the first preset resource sum, and determine the sum of the preset resources of each type in the second target type set as the second preset resource sum; determine the sum of the first preset resource sum and the second preset resource sum as the total reserved resources.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 10 when executed by a processor.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 10 are implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.