Method, device, medium and computer program product for dynamically displaying management information
By reading and updating or uninstalling the type table of the core device during the driver configuration environment stage, memory waste and server downtime caused by excessive protocol table types are solved, and efficient information display and server stability are achieved.
Patent Information
- Application Number
- CN202411188538.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-08-28
AI Technical Summary
In the prior art, when displaying management information, too many protocol table types lead to waste of memory resources, and filling in characters too long during the driver configuration environment stage may cause the server to go down, and the number of bytes reserved at the system startup is insufficient, affecting the server. stability and information viewing efficiency.
During the execution driver configuration environment stage, the in-place information of different core devices in electronic products is read, and the corresponding type table is updated or uninstalled according to whether the in-place is in-place, only the actual existing device information is displayed to reduce the unused memory resource usage.
Through dynamic management information display, unused memory resources of the protocol table are released, information viewing efficiency is improved, operation and maintenance costs are reduced, and server operation security and information accuracy are ensured.
Smart Images

Figure CN118689660B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, medium and computer program product for dynamically displaying management information. Background Art
[0002] Current electronic products need to view management information under the operating system. In short, all the information on the electronic product motherboard is collected and updated to the Basic Input Output System (BIOS) of the motherboard or system manufacturer in a unified format to display product management information in a standard format (System Management BIOS, SMBIOS) protocol table for recording.
[0003] However, since the specific actual configuration of each electronic product is not necessarily the same, such as server configuration, which is divided into single-channel, dual-channel, quad-channel, eight-channel and other servers. If the server system involves multiple configurations but the specific equipment is not actually installed, filling in such information will result in more types of protocol tables and will be inconvenient to view and find specific and actual equipment information. At the same time, when the server is started, the protocol table will be affected by the length of the characters filled in the type when it is loaded in the Driver Execution Environment (DXE) stage. If the number of characters filled in is large and updated after the DXE stage and the reserved bytes are insufficient, the server system will crash. In addition, the maximum number of bytes required for the type of the protocol table will be reserved but not used when the system starts, which will cause a waste of memory resources. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, medium and computer program product for dynamically displaying management information, which can release the amount of memory resources occupied by unused types in the protocol table, reduce the usage of the limited number of reserved bytes in the protocol table, and improve the efficiency of viewing effective information.
[0005] In order to solve the above technical problems, the present invention provides a method for dynamically displaying management information, which is applied to a basic input and output system, comprising:
[0006] In the execution driver configuration environment phase, the presence information of different core devices in the electronic product is read, and whether each of the core devices is in place is confirmed;
[0007] If the core device is in place, the corresponding in-place device information is updated or filled in the type table of the protocol table for displaying part of the core device information; if the core device is not in place, the corresponding type table is uninstalled;
[0008] After updating or filling in the in-place device information, and / or after uninstalling the corresponding type table, the management information in the protocol table is displayed using the interactive interface.
[0009] In a first aspect, in the above-mentioned method for dynamically displaying management information provided by the present invention, the presence information of different core devices in the electronic product is read, and whether each of the core devices is in place is confirmed, including:
[0010] Sequentially read the information of each processor in the electronic product, the memory of each memory slot in each processor, each peripheral component interconnection device and each power supply in place;
[0011] According to the read information of each processor in place, confirm whether each processor is in place;
[0012] According to the read memory location information of each memory slot, confirm whether each memory is in place;
[0013] According to the read presence information of each peripheral component interconnect device, confirm whether there is a peripheral component interconnect device in the slot corresponding to each peripheral component interconnect device;
[0014] According to the read information of each power supply being in place, confirm whether each power supply is in place.
[0015] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, if the core device is in place, the corresponding in-place device information is updated or filled in the type table of the protocol table for displaying part of the core device information; if the core device is not in place, the corresponding type table is uninstalled, including:
[0016] If the processor is in place, the relevant information of the in-place processor is updated in the processor type table of the protocol table; if the processor is not in place, the processor type table corresponding to the information of the processor not in place is uninstalled;
[0017] If the memory is in place, fill in the relevant information of the in-place memory into the memory type table of the protocol table; if the memory is not in place, uninstall the memory type table corresponding to the in-place memory information;
[0018] If there is a peripheral component interconnect device in the slot, fill the relevant information of the existing peripheral component interconnect device into the slot type table of the protocol table; if there is no peripheral component interconnect device in the slot, uninstall the slot type table corresponding to the slot information without the peripheral component interconnect device;
[0019] If the power supply is in place, the relevant information of the in-place power supply is updated to the power supply type table of the protocol table; if the power supply is not in place, the power supply type table corresponding to the in-place power supply information is uninstalled.
[0020] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, if the processor is in place, the relevant information of the in-place processor is updated in the processor type table of the protocol table; if the processor is not in place, the type table corresponding to the information of the processor not in place is unloaded, including:
[0021] If the processor is in place, then read the relevant registers of the in-place processor to obtain parameter information of the in-place processor;
[0022] Update the parameter information of the in-place processor in the first processor type table and the second processor type table of the protocol table; the first processor type table is used to display some key information of the processor; the second processor type table is used to display some cache information of the processor;
[0023] If the processor is not in place, the first processor type table and the second processor type table corresponding to the processor not in place are uninstalled.
[0024] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, updating the parameter information of the in-place processor in the first processor type table and the second processor type table of the protocol table includes:
[0025] Update the slot information, type, architecture, manufacturer, version, voltage, external clock, maximum speed, current speed, status, serial number, model, number of cores, number of enabled cores, number of threads and core type of the in-place processor in the first processor type table of the protocol table;
[0026] The cache name, L1 cache operation mode, L1 cache location information, L1 cache installation capacity, L1 cache maximum capacity, L1 cache type, L1 cache error type of the L1 cache in the processor in place, the cache name, L2 cache operation mode, L2 cache location information, L2 cache installation capacity, L2 cache maximum capacity, L2 cache type, L2 cache error type of the L2 cache, the cache name, L3 cache operation mode, L3 cache location information, L3 cache installation capacity, L3 cache maximum capacity, L3 cache type and L3 cache error type of the L3 cache in the second processor type table of the protocol table.
[0027] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, if the memory is in place, the relevant information of the in-place memory is filled in the memory type table of the protocol table; if the memory is not in place, the memory type table corresponding to the in-place memory information is unloaded, including:
[0028] If the memory is in place, obtain the relevant information of the memory in place;
[0029] Fill in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table of the protocol table; the first memory type table is used to display the type information of the memory part; the second memory type table is used to display the parameter information of the memory part; the third memory type table is used to display the address information of the memory part;
[0030] If the memory is not in place, the first memory type table, the second memory type table and the third memory type table corresponding to the memory not in place are unloaded.
[0031] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, filling in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table of the protocol table includes:
[0032] Fill in the memory link mode, memory error type, maximum memory capacity and memory quantity of the in-place memory in the first memory type table of the protocol table;
[0033] Fill in the total memory width, memory data width, memory capacity, memory type, memory location information, memory internal partition information, memory generation, memory speed, memory manufacturer, memory serial number, memory block quantity, memory setting speed, memory maximum voltage, memory minimum voltage and memory current voltage of the in-place memory in the second memory type table of the protocol table;
[0034] Fill in the memory start address and memory end address of the in-place memory in the third memory type table of the protocol table.
[0035] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, if there is a peripheral component interconnect device in the slot, the relevant information of the existing peripheral component interconnect device is filled in the slot type table of the protocol table, including:
[0036] If there is a peripheral component interconnect device in the slot, the location information, bandwidth, protocol number, current status, device type, device identification information, power supply voltage and unique identifier of the existing peripheral component interconnect device are filled in the slot type table of the protocol table for displaying key information of the slot device.
[0037] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, if the power supply is in place, the relevant information of the in-place power supply is updated to the power type table of the protocol table, including:
[0038] If the power supply is in place, the power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply serial number, power supply maximum power, power supply status, power supply version, power supply type, power supply input voltage switching status and power supply hot plug status are updated to the power supply type table in the protocol table for displaying key information of the power supply.
[0039] On the other hand, in the method for dynamically displaying management information provided by the present invention, confirming whether each processor is in place includes:
[0040] Determine the number of processors actually used by the electronic product and the first processor during the startup of the electronic product;
[0041] confirming whether the first processor is in place;
[0042] If the first processor is not in place, it is directly determined that the electronic product cannot be started;
[0043] If the first processor is in place, updating the relevant information of the first processor in the processor type table of the protocol table;
[0044] After updating the relevant information of the first processor, confirm whether the next processor is in place.
[0045] On the other hand, in the method for dynamically displaying management information provided by the present invention, confirming whether each memory is in place includes:
[0046] If the first processor is in place, confirm whether the memory of the first memory slot of the first processor is in place;
[0047] If the memory in the first memory slot of the first processor is not in place, it is directly determined that the electronic product cannot be started;
[0048] If the memory of the first memory slot of the first processor is in place, fill in the relevant information of the memory of the first memory slot of the first processor into the memory type table of the protocol table;
[0049] After filling in the relevant information of the memory of the first memory slot of the first processor, confirm whether the memory of the next memory slot of the first processor is in place.
[0050] On the other hand, in the above-mentioned method for dynamically displaying management information provided by the present invention, confirming whether the power supply is in place includes:
[0051] Check whether at least one power supply is in place;
[0052] If all power sources are not in place, it is directly determined that the electronic product cannot be started;
[0053] If at least one power supply is in place, the relevant information of the power supply in place is updated to the power type table of the protocol table.
[0054] In order to solve the above technical problems, the present invention also provides a device for dynamically displaying management information, comprising:
[0055] Memory for storing computer programs;
[0056] A processor is used to implement the steps of the above-mentioned method for dynamically displaying management information when executing the computer program.
[0057] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method for dynamically displaying management information are implemented.
[0058] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above method for dynamically displaying management information when executed by a processor.
[0059] It can be seen from the above technical scheme that a method for dynamically displaying management information provided by the present invention is applied to a basic input and output system, including: in the execution driver configuration environment stage, reading the in-place information of different core devices in the electronic product, and confirming whether each core device is in place; if the core device is in place, updating or filling in the corresponding in-place device information in the type table of the protocol table used to display part of the core device information; if the core device is not in place, uninstalling the corresponding type table; after updating or filling in the in-place device information, and / or after uninstalling the corresponding type table, using the interactive interface to display the management information in the protocol table.
[0060] The beneficial effect of the present invention lies in that the above-mentioned method for dynamically displaying management information provided by the present invention dynamically designs the protocol table corresponding to different core devices in the electronic product. In the execution drive configuration environment stage, by confirming whether each core device is in place, it is determined whether to update the corresponding device information or fill in the type table of the protocol, or uninstall the corresponding type table, so that the actually existing and installed device management information can be clearly and clearly displayed on the interactive interface. In this way, the actual in-place device information of the electronic product is configured and displayed using the protocol table, and there is no need to display the non-in-place device information. The type table corresponding to the non-in-place device information is uninstalled to realize the function of displaying the protocol table data in one-to-one correspondence with each in-place device, releasing the amount of memory resources occupied by the unused types of the protocol table, reducing the use of the limited number of reserved bytes occupied by the protocol table, and improving the efficiency of viewing effective information, so that users and operation and maintenance personnel can conveniently and quickly view and accurately locate the information of electronic products in real time under the system, saving the operation and maintenance manpower cost, and there is no need to physically view each device, thereby ensuring the operation safety of electronic products.
[0061] In addition, the present invention also provides corresponding dynamic display management information equipment, non-volatile storage medium and computer program product for the method of dynamically displaying management information, which have the same or corresponding technical features as the above-mentioned method of dynamically displaying management information and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1 A flowchart of a method for dynamically displaying management information provided by an embodiment of the present invention;
[0064] Figure 2 A schematic diagram of the structure of a device for dynamically displaying management information provided by an embodiment of the present invention;
[0065] Figure 3 A schematic diagram of the structure of a device for dynamically displaying management information provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a method for dynamically displaying management information provided by an embodiment of the present invention, such as Figure 1 As shown, the method is applied to BIOS, comprising:
[0068] S1. In the stage of executing the driver configuration environment, the in-situ information of different core devices in the electronic product is read.
[0069] In practice, different core devices in electronic products may include: processor, memory, peripheral component interconnect (PCI), power supply unit (PSU). After the electronic product is powered on, it enters the execution driver configuration environment stage of BIOS, and can read the information of each processor in the electronic product, the memory of each memory slot in each processor, each PCI device and each power supply in place in turn.
[0070] S2. Confirm whether all core devices are in place.
[0071] In a specific implementation, confirming whether each core device is in place may specifically include: confirming whether each processor is in place based on the read information about each processor being in place; confirming whether each memory is in place based on the read information about the memory being in place of each memory slot; confirming whether there is a peripheral component interconnect device in the slot corresponding to each peripheral component interconnect device based on the read information about the peripheral component interconnect device being in place; and confirming whether each power supply is in place based on the read information about the power supply being in place.
[0072] If the core device is in place, execute step S3; if the core device is not in place, execute step S4.
[0073] S3. Update or fill in the corresponding in-place device information in the type table of the protocol table used to display the core device part information.
[0074] S4. Unload the corresponding type table.
[0075] S5. Use the interactive interface to display the management information in the protocol table.
[0076] In implementation, the management information displayed may include, but is not limited to, processor, memory manufacturer, memory model, memory location information, memory speed, Peripheral Component Interconnect (PCI) slot device information, power information, Universally Unique Identifier (UUID) information, system manufacturer, manufacturer, motherboard silk screen information, motherboard onboard device information, etc.
[0077] In actual applications, electronic products take servers as an example. When the server starts, the BIOS will pass the server's PCI devices and collected processor information, memory information, etc. to the Baseboard Management Controller (BMC) for display during the PCI enumeration phase. This method has some disadvantages: the server must start up and enter the operating system before the BMC receives and parses the data on the server BIOS and displays it on the BMC web page interface. At the same time, the information passed from the BIOS to the BMC is the server device information identified by the BIOS during the startup process. Unidentified server configuration information is not collected and transmitted, because the type of SMBIOS protocol requires memory resources and reserved bytes. Once the reserved bytes are insufficient or the memory resources are insufficient, the server will crash. At the same time, if you want to view this information in time, you must wait until the server enters the operating system. If the server does not enter the operating system, the BMC displays the configuration information of the last server startup, which is inaccurate. Therefore, the present invention can configure and display the core information of the server by using the SMBIOS protocol, and view it through commands in the BIOS interface shell (essentially a program that provides a line-oriented interactive interface between the user and the operating system) environment without entering the operating system, or through commands under the system when the server enters the operating system. In the SMBIOS protocol, the present invention can collect and store the core configuration of the server such as the processor, memory, power supply, PCI device, etc., and unload the SMBIOS protocol table corresponding to the device information that is not in place.
[0078] In the above-mentioned method for dynamically displaying management information provided by an embodiment of the present invention, the protocol table corresponding to different core devices in the electronic product is dynamically designed. In the execution driver configuration environment stage, by confirming whether each core device is in place, it is determined whether to update or fill in the corresponding device information in the type table of the protocol, or to uninstall the corresponding type table, so that the actually existing and installed device management information can be clearly and clearly displayed on the interactive interface. In this way, the actual in-place device information of the electronic product is configured and displayed using the protocol table, and there is no need to display the non-in-place device information. The type table corresponding to the non-in-place device information is uninstalled to realize the function of displaying the protocol table data in a one-to-one correspondence with each in-place device, releasing the amount of memory resources occupied by the unused types of the protocol table, reducing the use of the limited number of reserved bytes occupied by the protocol table, and improving the efficiency of viewing effective information, so that users and operation and maintenance personnel can conveniently and quickly view and accurately locate the information of electronic products in real time under the system, saving the operation and maintenance manpower cost, and there is no need to physically view each device, thereby ensuring the operation safety of electronic products.
[0079] Furthermore, in a specific implementation, in the above-mentioned method for dynamically displaying management information provided in an embodiment of the present invention, confirming whether each processor is in place may specifically include: determining the number of processors actually used by the electronic product, and the first processor in the startup process of the electronic product; confirming whether the first processor is in place; if the first processor is not in place, directly determining that the electronic product cannot be started; if the first processor is in place, updating the relevant information of the first processor in the processor type table of the protocol table; after updating the relevant information of the first processor, confirming whether the next processor is in place.
[0080] In practice, since electronic products involve different numbers of processors, in the present invention, the BIOS can first confirm the number of processors actually used by the electronic product, if it is a 2-way system, then it is 2 processors, and if it is a 4-way system, then it is 4 processors.
[0081] The following takes the electronic product as a server and the processor as a central processing unit (CPU) as an example. It can be set up according to two CPUs in two ways. At the same time, the two-way CPU server defaults to 32 memory slots, 6 x16 bandwidth PCI devices and other basic physical information.
[0082] When the server starts, during the BIOS execution driver configuration environment phase, the BIOS confirms whether the CPU is in place by reading the CPU's in-place information, that is, reading whether the CPU0 (i.e., the first processor) is in place. At this time, if CPU0 is not in place, the server cannot start normally. Currently, CPU0 must be in place. When CPU0 is in place, the relevant information of CPU0 is updated in the processor type table of the SMBIOS protocol table. After updating the relevant information of CPU0, confirm whether CPU1 is in place.
[0083] Further, in the specific implementation, in the above-mentioned method for dynamically displaying management information provided by the embodiment of the present invention, if the core device is in place, the corresponding in-place device information is updated or filled in the type table of the protocol table for displaying part of the core device information; if the core device is not in place, the corresponding type table is uninstalled, which may specifically include the following steps:
[0084] If the processor is in place, the relevant information of the in-place processor is updated in the processor type table of the protocol table; if the processor is not in place, the processor type table corresponding to the information of the processor not in place is uninstalled;
[0085] If the memory is in place, fill in the relevant information of the in-place memory into the memory type table of the protocol table; if the memory is not in place, uninstall the memory type table corresponding to the in-place memory information;
[0086] If there is a peripheral component interconnect device in the slot, fill the relevant information of the existing peripheral component interconnect device into the slot type table of the protocol table; if there is no peripheral component interconnect device in the slot, uninstall the slot type table corresponding to the slot information without the peripheral component interconnect device;
[0087] If the power supply is in place, the relevant information of the in-place power supply is updated to the power supply type table of the protocol table; if the power supply is not in place, the power supply type table corresponding to the in-place power supply information is uninstalled.
[0088] Furthermore, in a specific implementation, in the above steps, if the processor is in place, relevant information of the in-place processor is updated in the processor type table of the protocol table; if the processor is not in place, the type table corresponding to the information of the processor not in place is unloaded, which may specifically include: if the processor is in place, reading relevant registers of the in-place processor to obtain parameter information of the in-place processor; updating the parameter information of the in-place processor in the first processor type table and the second processor type table of the protocol table; the first processor type table is used to display some key information of the processor; the second processor type table is used to display some cache information of the processor; if the processor is not in place, the first processor type table and the second processor type table corresponding to the processor not in place are unloaded.
[0089] Among them, updating the parameter information of the in-place processor in the first processor type table and the second processor type table of the protocol table can specifically include: updating the slot information, type, architecture, manufacturer, version, voltage, external clock, maximum rate, current rate, status, serial number, model, number of cores, number of enabled cores, number of threads and core type of the in-place processor in the first processor type table of the protocol table; updating the cache name, L1 cache operation mode, L1 cache location information, L1 cache installation capacity, L1 cache maximum capacity, L1 cache type, L1 cache error type of the L1 cache in the in-place processor, the cache name, L2 cache operation mode, L2 cache location information, L2 cache installation capacity, L2 cache maximum capacity, L2 cache type, L2 cache error type, the cache name, L3 cache operation mode, L3 cache location information, L3 cache installation capacity, L3 cache maximum capacity, L3 cache type and L3 cache error type of the L1 cache in the in-place processor in the second processor type table of the protocol table.
[0090] In implementation, if CPU0 is in place, the parameter settings of CPU0 will be obtained by reading the relevant registers of CPU0, and updated to the Type4 type (i.e., the first processor type table, used to display the key information of the processor part) and Type7 type (i.e., the second processor type table, used to display the cache information of the processor part) of the CPU0 part of the SMBIOS protocol. Type4 type involves CPU0 slot information, CPU0 type, CPU0 architecture, CPU0 manufacturer, CPU0 version, CPU0 voltage, CPU0 external clock, CPU0 maximum speed, CPU0 current speed, CPU0 status, CPU0 serial number, CPU0 model, CPU0 core number, CPU0 enabled core number, CPU0 thread number, CPU0 core number type and other information; Type7 type involves the cache name, cache operation mode, cache location information, cache installation capacity, cache maximum capacity, cache type, cache error type and other basic information of the L1 / L2 / L3 cache corresponding to CPU0. After the CPU0 information is updated, the CPU1 presence information is judged after Type4 and Type7. If it is not in place, the Type4 and corresponding Type7 tables are uninstalled to implement the update of Type4 and Type7 corresponding to the SMBIOS protocol table of the CPU1 information in place.
[0091] Furthermore, in a specific implementation, in the above steps, if the memory is in place, relevant information of the in-place memory is filled into the memory type table of the protocol table; if the memory is not in place, the memory type table corresponding to the memory information not in place is unloaded, which may specifically include: if the memory is in place, obtaining relevant information of the in-place memory; filling relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table of the protocol table; the first memory type table is used to display part type information of the memory; the second memory type table is used to display part parameter information of the memory; the third memory type table is used to display part address information of the memory; if the memory is not in place, the first memory type table, the second memory type table and the third memory type table corresponding to the memory not in place are unloaded.
[0092] Among them, filling in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table of the protocol table, specifically may include: filling in the memory link mode, memory error type, maximum memory capacity and memory quantity of the in-place memory in the first memory type table of the protocol table; filling in the total memory width, memory data width, memory capacity, memory type, memory location information, memory internal partition information, memory generation, memory speed, memory manufacturer, memory serial number, number of memory blocks, memory setting speed, maximum memory voltage, minimum memory voltage and current memory voltage of the in-place memory in the second memory type table of the protocol table; filling in the memory start address and memory end address of the in-place memory in the third memory type table of the protocol table.
[0093] During implementation, after all CPU information is updated, the memory slot information and memory parameters are confirmed. If CPU1 is not installed, the memory related to CPU1 is installed in CPU0's memory information Type16 (i.e., the first memory type table, used to display part of the memory type information), Type17 (i.e., the second memory type table, used to display part of the memory parameter information), and Type19 (i.e., the third memory type table, used to display part of the memory address information). Then, the memory information of CPU1 is uninstalled to dynamically install the memory information of CPU1. If CPU1 is installed, fill it in according to the memory filling rules of CPU0. If CPU0 is installed, confirm whether the memory is in place for the memory slot information under CPU0. If the memory is not in place, the non-in-place memory information is uninstalled after the in-place memory information is installed. When the memory slots of CPU0 are detected in sequence, the obtained memory related information is filled into Type 16, Type 17, and Type 19 of the SMBIOS protocol. Type 16 involves memory link mode, memory error type, maximum memory capacity, memory quantity, etc. Type 17 involves total memory width, memory data width, memory capacity, memory type, memory location information, memory internal partition (RANK) location information, memory detailed type, memory generation, memory speed, memory manufacturer, memory serial number (SN), memory part number (PN), memory RANK quantity, memory setting speed, memory maximum voltage, memory minimum voltage, memory current voltage, memory technology, etc. Type 19 involves memory start address, memory end address, memory capacity, etc. Other undetected memory in-place information is uniformly uninstalled without identification, which can reduce the number of bytes in the memory part of the SMBIOS protocol table, reduce the occupation of the reserved bytes, and release memory resources.
[0094] Furthermore, in the specific implementation, in the above steps, if there is a peripheral component interconnect device in the slot, the relevant information of the existing peripheral component interconnect device is filled in the slot type table of the protocol table, which may specifically include: if there is a peripheral component interconnect device in the slot, the location information, bandwidth, protocol number, current status, device type, device identity information, power supply voltage and unique identifier of the existing peripheral component interconnect device are filled in the slot type table of the protocol table for displaying key information of the slot device.
[0095] In implementation, after the memory information is filled in the SMBIOS protocol type, the PCI device information will be filled in. The Type9 type (i.e., slot type table, used to display key information of slot devices) involves PCI device location information, PCI device bandwidth and PCI protocol number, PCI device current status, PCI device type, PCI device identity (Identity document, ID) number information, PCI device power supply voltage, PCI device unique identifier (Bus Device Function, BDF) and other information. If there is a device in the slot corresponding to the PCI device, the above information will be filled in with actual information. If the PCI device corresponding to the PCI slot is not in place, the corresponding Type9 information will be uninstalled to reduce the memory resources or the number of bytes occupied by the Type9 type in the SMBIOS protocol table.
[0096] Furthermore, in the specific implementation, in the above steps, if the power supply is in place, the relevant information of the in-place power supply is updated to the power type table of the protocol table, which may specifically include: if the power supply is in place, the power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply serial number, power supply maximum power, power supply status, power supply version, power supply type, power supply input voltage switching status and power supply hot plug status are updated to the power type table in the protocol table for displaying key information of the power supply part.
[0097] In implementation, after the PCI device information is filled in the SMBIOS protocol type, the power supply PSU device information will be filled in. Type39 (i.e., power type table, used to display key information of the power supply) type involves power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply SN serial number, power supply PN serial number, power supply maximum power, power supply status, power supply FW version, power supply type, power supply input voltage switching status, power supply hot plug status and other information.
[0098] The above process can update the server CPU, memory, PCI device, power supply and other information to the fixed Type type of the SMBIOS protocol, which is convenient for real-time viewing in the Shell environment of the BIOS interface.
[0099] Furthermore, in a specific implementation, in the above-mentioned method for dynamically displaying management information provided in an embodiment of the present invention, confirming whether each memory is in place may specifically include: if the first processor is in place, confirming whether the memory of the first memory slot of the first processor is in place; if the memory of the first memory slot of the first processor is not in place, directly determining that the electronic product cannot be started; if the memory of the first memory slot of the first processor is in place, filling in the relevant information of the memory of the first memory slot of the first processor into the memory type table of the protocol table; after filling in the relevant information of the memory of the first memory slot of the first processor, confirming whether the memory of the next memory slot of the first processor is in place.
[0100] In practice, if the memory in the first slot of CPU0 is not in place, it means that the server cannot be started. In other words, in order to ensure the server is powered on, the memory in the first slot of CPU0 must be in place. The presence information of CPU0 and the first memory of CPU0 is judged. If any one of them is not in place, the server cannot be started and the SMBIOS protocol cannot be updated.
[0101] Furthermore, in a specific implementation, in the above-mentioned method for dynamically displaying management information provided in an embodiment of the present invention, confirming whether the power supply is in place may specifically include: confirming whether at least one power supply is in place; if all power supplies are not in place, directly determining that the electronic product cannot be started; if at least one power supply is in place, updating the relevant information of the in-place power supply to the power type table of the protocol table.
[0102] In implementation, in order to ensure that the server is powered on and used, at least one of the PSU0 and PSU1 power supplies must exist. If neither power supply exists, the server cannot start. The above information is filled in for the existing power supplies. If the power supply is not in place, the Type 39 type information is uninstalled through the SMBIOS protocol.
[0103] In summary, the present invention can determine whether the server can be started normally by judging whether CPU0 is in place. If not, the server cannot be started, and the remaining SMBIOS information cannot be updated. When CPU0 is in place, various parameter information of CPU0 is updated to Type4 and Type7, and then confirm whether CPU1 is in place. If CPU1 is in place, it is synchronously updated in the manner of CPU0. If not, the information in Type4 and Type7 is unloaded through the SMBIOS protocol to release memory resources and the use of the reserved bytes of the SMBIOS protocol; at the same time, confirm whether the first memory slot of CPU0 is in place. If not, the server cannot be started because there is no memory available. If in place, the parameter information of the memory is updated to Type16, Type17, and Type19, and then other memory information is executed. The approach here is similar to the solution of CPU1.
[0104] When the memory has been filled and the unused memory information has been uninstalled, the PCI device information is identified. Whether the PCI device information can be identified or not, it does not affect the server startup, that is, the startup of the electronic product has no direct connection with whether the PCI device part is in place; if the PCI device information is identified, the corresponding parameter information is filled in Type9, if the PCI device information is not identified, the Type9 type of the unused PCI device is uninstalled through the SMBIOS protocol. At the same time, the power supply information, whether it is PSU0 or PSU1, as long as any one of them is in place, the server startup can be guaranteed and only the identified PSU power supply information needs to be updated to Type39. If it is not identified, it is uninstalled through the SMBIOS protocol to release memory resources or the number of bytes reserved by the SMBIOS protocol. The above method can ensure that the server configuration is viewed in detail when viewing the SMBIOS protocol under the system. The present invention updates or fills in the relevant information of the in-place CPU, memory, power supply, PCI device, etc. into Type4, Type7, Type16, Type17, Type19, Type9, and Type39, and the in-place device uninstalls the corresponding Type4, Type7, Type16, Type17, Type19, Type9, Type39, etc. through the SMBIOS protocol, so as to achieve the purposes of releasing the amount of memory resources occupied by the SMBIOS protocol and reducing the usage of the amount of bytes reserved by the SMBIOS protocol, etc., provides the utilization efficiency of memory resources and SMBIOS protocol reserved bytes, ensures that the physical CPU, power supply, PCI device, memory, and other peripherals are viewed in real time through commands when entering the operating system, ensures the consistency of the SMBIOS protocol with the server configuration information, conveniently, quickly, and efficiently views the physical information of the core components of the server, improves the stability and reliability of the server, and ensures the operation safety of the server.
[0105] In the above embodiments, the method for dynamically displaying management information is described in detail, and the present invention also provides embodiments corresponding to the apparatus for dynamically displaying management information and the device for dynamically displaying management information. It should be noted that the present invention describes the embodiments of the apparatus part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.
[0106] Figure 2 Schematic diagram of the structure of the device for dynamically displaying management information provided by an embodiment of the present invention. This embodiment is based on the perspective of functional modules, such as Figure 2 As shown, the device comprises:
[0107] The information reading module 10 is used to read the in-situ information of different core devices in the electronic product during the execution of the driver configuration environment stage;
[0108] A presence determination module 11 is used to confirm whether each core device is in place;
[0109] The update filling module 12 is used to update or fill in the corresponding in-place device information in the type table used to display part of the core device information in the protocol table when the core device is in place;
[0110] The table unloading module 13 is used to unload the corresponding type table when the core device is not in place;
[0111] The information display module 14 is used to display the management information in the protocol table using an interactive interface after the in-place device information is updated or filled in and / or after the corresponding type table is uninstalled.
[0112] In the above-mentioned device for dynamically displaying management information provided by an embodiment of the present invention, the protocol table corresponding to different core devices in the electronic product can be dynamically designed through the interaction of the above-mentioned five modules, and the actual in-place device information of the electronic product can be configured and displayed using the protocol table, without displaying the in-place device information. The type table corresponding to the in-place device information is unloaded to realize the function of displaying the protocol table data in a one-to-one correspondence with each in-place device, thereby releasing the amount of memory resources occupied by unused types in the protocol table, reducing the usage of the limited number of reserved bytes in the protocol table, and improving the efficiency of viewing effective information, so that users and operation and maintenance personnel can conveniently and quickly view and accurately locate the information of electronic products in real time under the system, saving the operation and maintenance manpower cost, and eliminating the need for physical viewing of each device, thereby ensuring the operational safety of electronic products.
[0113] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. And it has the same beneficial effects as the above-mentioned method for dynamically displaying management information.
[0114] Figure 3 The schematic diagram of the structure of the device for dynamically displaying management information provided by the embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 3 As shown, the device for dynamically displaying management information includes:
[0115] A memory 20, used for storing computer programs;
[0116] The processor 21 is used to implement the steps of the method for dynamically displaying management information mentioned in the above embodiment when executing the computer program.
[0117] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0118] The memory 20 may include one or more non-volatile storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the method for dynamically displaying management information disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the method for dynamically displaying management information mentioned above, etc.
[0119] In some embodiments, the device for dynamically displaying management information may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26. Those skilled in the art will appreciate that Figure 3 The structure shown in does not constitute a limitation on the device for dynamically displaying management information, and may include more or fewer components than shown in the figure. The device for dynamically displaying management information provided by an embodiment of the present invention includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a method for dynamically displaying management information, with the same effect as above.
[0120] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0121] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code. The non-volatile storage medium provided by the present invention can implement the above-mentioned method of dynamically displaying management information, and the effect is the same as above.
[0122] Finally, the present invention also provides an embodiment corresponding to a computer program product. The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps described in the above-mentioned method embodiment for dynamically displaying management information are implemented. The computer program product provided by the present invention can implement the above-mentioned method for dynamically displaying management information, and the effect is the same as above.
[0123] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0124] The above is a detailed introduction to the method, device, medium and computer program product for dynamically displaying management information provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A method for dynamically displaying management information, characterized in that: Applied to a basic input and output system, the method comprises: In the execution driver configuration environment stage of the basic input and output system, the in-place information of different core devices in the electronic product is read, and it is confirmed whether each of the core devices is in place; when the different core devices in the electronic product include processors and memory, the in-place information of each processor is read, and the number of processors actually used by the electronic product and the first processor in the startup process of the electronic product are determined according to the in-place information of each processor read; whether the first processor is in place is confirmed; if the first processor is not in place, it is directly determined that the electronic product cannot be started; if the first processor is in place, the relevant information of the first processor is updated in the processor type table of the protocol table; after the relevant information of the first processor is updated, confirm the next Whether a processor is in place; reading the memory in-place information of each memory slot in each processor; based on the read memory in-place information of each memory slot, if the first processor is in place, confirming whether the memory of the first memory slot of the first processor is in place; if the memory of the first memory slot of the first processor is not in place, directly determining that the electronic product cannot be started; if the memory of the first memory slot of the first processor is in place, filling in the relevant information of the memory of the first memory slot of the first processor into the memory type table of the protocol table; after filling in the relevant information of the memory of the first memory slot of the first processor, confirming whether the memory of the next memory slot of the first processor is in place; If the core device is in place, the corresponding in-place device information is updated or filled in the type table of the protocol table used to display part of the core device information; if the core device is not in place, the corresponding type table is unloaded; wherein, if the processor is in place, the relevant registers of the in-place processor are read to obtain the parameter information of the in-place processor; the parameter information of the in-place processor is updated in the first processor type table and the second processor type table of the protocol table; the first processor type table is used to display some key information of the processor; the second processor type table is used to display some cache information of the processor; if the processor is not in place, the first processor type table and the second processor type table corresponding to the processor not in place are unloaded; if the memory is in place, the relevant information of the in-place memory is obtained; the relevant information of the in-place memory is filled in the first memory type table, the second memory type table and the third memory type table of the protocol table; the first memory type table is used to display some type information of the memory; the second memory type table is used to display some parameter information of the memory; the third memory type table is used to display some address information of the memory; if the memory is not in place, the first memory type table, the second memory type table and the third memory type table corresponding to the memory not in place are unloaded; After updating or filling in the in-place device information, and / or after uninstalling the corresponding type table, the management information in the protocol table is displayed using the interactive interface; when the electronic product is a server, the core information of the server is configured and displayed by utilizing the SMBIOS protocol, and can be viewed through commands in the BIOS interface shell environment without entering the operating system, or through system commands when the server enters the operating system.
2. The method for dynamically displaying management information according to claim 1, characterized in that: Read the presence information of different core devices in the electronic product and confirm whether each of the core devices is in place, including: Sequentially read the information of each processor in the electronic product, the memory of each memory slot in each processor, each peripheral component interconnection device and each power supply in place; According to the read information of each processor in place, confirm whether each processor is in place; According to the read memory location information of each memory slot, confirm whether each memory is in place; According to the read presence information of each peripheral component interconnect device, confirm whether there is a peripheral component interconnect device in the slot corresponding to each peripheral component interconnect device; According to the read information of each power supply being in place, confirm whether each power supply is in place.
3. The method for dynamically displaying management information according to claim 2, characterized in that: If the core device is in place, the corresponding in-place device information is updated or filled in the type table in the protocol table for displaying part of the core device information; If the core device is not in place, the corresponding type table is uninstalled, including: If the processor is in place, the relevant information of the in-place processor is updated in the processor type table of the protocol table; if the processor is not in place, the processor type table corresponding to the information of the processor not in place is uninstalled; If the memory is in place, fill in the relevant information of the in-place memory into the memory type table of the protocol table; if the memory is not in place, uninstall the memory type table corresponding to the in-place memory information; If there is a peripheral component interconnect device in the slot, fill the relevant information of the existing peripheral component interconnect device into the slot type table of the protocol table; if there is no peripheral component interconnect device in the slot, uninstall the slot type table corresponding to the slot information without the peripheral component interconnect device; If the power supply is in place, the relevant information of the in-place power supply is updated to the power supply type table of the protocol table; if the power supply is not in place, the power supply type table corresponding to the in-place power supply information is uninstalled.
4. The method for dynamically displaying management information according to claim 3, characterized in that: Updating parameter information of the in-place processor in the first processor type table and the second processor type table of the protocol table includes: Update the slot information, type, architecture, manufacturer, version, voltage, external clock, maximum speed, current speed, status, serial number, model, number of cores, number of enabled cores, number of threads and core type of the in-place processor in the first processor type table of the protocol table; The cache name, L1 cache operation mode, L1 cache location information, L1 cache installation capacity, L1 cache maximum capacity, L1 cache type, L1 cache error type of the L1 cache in the processor in place, the cache name, L2 cache operation mode, L2 cache location information, L2 cache installation capacity, L2 cache maximum capacity, L2 cache type, L2 cache error type of the L2 cache, the cache name, L3 cache operation mode, L3 cache location information, L3 cache installation capacity, L3 cache maximum capacity, L3 cache type and L3 cache error type of the L3 cache in the second processor type table of the protocol table.
5. The method for dynamically displaying management information according to claim 3, characterized in that: Fill in the relevant information of the in-place memory in the first memory type table, the second memory type table and the third memory type table of the protocol table, including: Fill in the memory link mode, memory error type, maximum memory capacity and memory quantity of the in-place memory in the first memory type table of the protocol table; Fill in the total memory width, memory data width, memory capacity, memory type, memory location information, memory internal partition information, memory generation, memory speed, memory manufacturer, memory serial number, memory block quantity, memory setting speed, memory maximum voltage, memory minimum voltage and memory current voltage of the in-place memory in the second memory type table of the protocol table; Fill in the memory start address and memory end address of the in-place memory in the third memory type table of the protocol table.
6. The method for dynamically displaying management information according to claim 3, characterized in that: If there is a peripheral component interconnect device in the slot, fill in the relevant information of the existing peripheral component interconnect device in the slot type table of the protocol table, including: If there is a peripheral component interconnect device in the slot, the location information, bandwidth, protocol number, current status, device type, device identification information, power supply voltage and unique identifier of the existing peripheral component interconnect device are filled in the slot type table of the protocol table for displaying key information of the slot device.
7. The method for dynamically displaying management information according to claim 3, characterized in that: If the power supply is in place, the relevant information of the power supply in place is updated to the power type table of the protocol table, including: If the power supply is in place, the power supply serial number, power supply location information, power supply name, power supply manufacturer, power supply serial number, power supply maximum power, power supply status, power supply version, power supply type, power supply input voltage switching status and power supply hot plug status are updated to the power supply type table in the protocol table for displaying key information of the power supply.
8. The method for dynamically displaying management information according to claim 2, characterized in that: Confirm that the power supply is in place, including: Check whether at least one power supply is in place; If all power sources are not in place, it is directly determined that the electronic product cannot be started; If at least one power supply is in place, the relevant information of the power supply in place is updated to the power type table of the protocol table.
9. A device for dynamically displaying management information, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the method for dynamically displaying management information as claimed in any one of claims 1 to 8 when executing the computer program.
10. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for dynamically displaying management information according to any one of claims 1 to 8 are implemented.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for dynamically displaying management information according to any one of claims 1 to 8 are implemented.
