Information management method and computing device
By acquiring and outputting the boot partition information of the computing device through the baseboard management controller, the problem of needing to restart the operating system to view the boot partition information is solved, achieving seamless information management and configuration and improving the user experience.
Patent Information
- Application Number
- CN202510727983.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-10-31
AI Technical Summary
In existing technologies, viewing the boot partition information of a computing device requires restarting the operating system, resulting in a poor user experience.
The system obtains operating system information, including boot partition information, through the baseboard management controller and outputs this information without restarting the operating system. By utilizing the collaborative work between the baseboard management controller and the central processing unit, real-time information acquisition and management can be achieved.
It improves the user experience, avoids business interruptions caused by operating system restarts, and facilitates the management and configuration of the operating system's boot partition information.
Smart Images

Figure CN120872425A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computing device technology, and in particular to an information management method and computing device. Background Technology
[0002] A single computing device can install multiple operating systems, each with different purposes. Each operating system has its own independent boot partition, which stores the operating system's boot files. In different application scenarios, the computing device boots the operating system according to the boot order of the boot partitions and the boot files stored in those partitions.
[0003] When a user wants to view the boot partition information on a computing device (such as the boot order of the boot partition), they need to restart the operating system. This allows them to access the Basic Input / Output System (BIOS) menu before the operating system starts, and only then can they view the operating system's boot partition information in the menu.
[0004] However, when the operating system restarts, the services running on the operating system will be interrupted, affecting the user experience. Summary of the Invention
[0005] This application provides an information management method and computing device for viewing the boot partition information of each operating system without restarting the operating system.
[0006] In a first aspect, embodiments of this application provide an information management method, the method comprising:
[0007] Obtain the operating system information of the computing device. The computing device has at least one operating system installed, and the operating system information includes the boot partition information of each operating system.
[0008] In response to a query command, the system outputs boot partition information; the query command is used to request boot partition information.
[0009] As can be seen from the above technical solution, the baseboard management controller can obtain the operating system information of the computing device. This operating system information includes the boot partition information of each operating system. When a user wants to view the boot partition information of the computing device, they can input a query command, and the baseboard management controller can output the boot partition information. The operation of the baseboard management controller does not conflict with the operation of the operating system; that is, the baseboard management controller obtains the boot partition information without requiring the operating system to restart, thus not interrupting the services running in the operating system and improving the user experience.
[0010] In one possible implementation, the operating system information also includes at least one of the following: the version number, kernel number, and description information of each operating system.
[0011] In one possible implementation, the computing device further includes a central processing unit; where the operating system information includes multi-boot partition information, the multi-boot partition information is also used to indicate the boot order of the boot partitions of each operating system; the method further includes: in response to a first operation of modifying the boot order in a management page, determining the modified boot order; and sending the modified boot order to the Basic Input / Output System BIOS running in the central processing unit via the Intelligent Platform Management IPMI interface, so that the BIOS boots the operating system according to the modified boot order.
[0012] In one possible implementation, the method further includes: in response to a second operation of configuring an effective time range in a management page, determining the effective time range of the modified boot order; and sending the effective time range to the BIOS running in the central processing unit via the IPMI interface, so that the BIOS boots the operating system according to the modified boot order within the effective time range.
[0013] In one possible implementation, the method further includes: in response to a third operation of maintaining description information in a management page, determining description information for any operating system.
[0014] In one possible implementation, the computing device further includes a central processing unit (CPU) that acquires operating system information of the computing device, including receiving operating system information sent by the CPU.
[0015] In one possible implementation, before receiving operating system information sent by the central processing unit (CPU), the method further includes: executing a management interrupt on the CPU and sending an information retrieval instruction to the CPU; wherein the information retrieval instruction is used to instruct the CPU to call an interrupt handler function of the Basic Input / Output System (BIOS); the interrupt handler function is used to retrieve the operating system version number and / or kernel number.
[0016] In one possible implementation, the interrupt handler is further configured to send the acquired information to the baseboard management controller via the IPMI interface; or, the interrupt handler is further configured to store the acquired information in a preset storage space; the preset storage space is used to store operating system information; receiving operating system information sent by the central processing unit includes: receiving operating system information reported by the BIOS in response to an operating system restart.
[0017] In one possible implementation, the method further includes: sending an information reporting instruction to the central processing unit via the Redfish interface, the information reporting instruction being used to instruct the central processing unit to return operating system information through the running board management agent (BMA); and receiving the operating system information returned by the central processing unit through the running BMA.
[0018] Secondly, this application provides an information management method applied to the central processing unit (CPU) of a computing device, the computing device further including a baseboard management controller; the CPU has one or more operating systems installed; the method includes:
[0019] Obtain operating system information; operating system information includes at least the boot partition information of each operating system;
[0020] Send operating system information to the baseboard management controller; the operating system information is used by the baseboard management controller to output boot partition information in response to query commands.
[0021] In one possible implementation, the operating system information further includes at least one of the following: version number, kernel number, and description information of each operating system; obtaining operating system information includes: executing a management interrupt, in response to receiving an information acquisition instruction sent by the baseboard management controller, running the basic input / output system BIOS to call the interrupt handling function in the first operating system; the interrupt handling function is used to obtain the version number and / or kernel number of the first operating system; the first operating system is any operating system currently running.
[0022] In one possible implementation, the interrupt handler is further configured to: send the acquired information to the baseboard management controller via the IPMI interface; send operating system information to the baseboard management controller, including: sending the acquired information to the baseboard management controller via the IPMI interface through the interrupt handler function running in the first operating system; or, the interrupt handler is further configured to: store the acquired information in a preset storage space; the preset storage space is used to store the operating system information; send the operating system information to the baseboard management controller, including: running the BIOS, responding to the operating system restart via the BIOS, and sending the operating system information to the baseboard management controller based on the intelligent platform management IPMI interface.
[0023] In one possible implementation, the operating system information further includes at least one of the following: version number, kernel number, and description information of each operating system; obtaining operating system information includes: running the Baseboard Management Agent (BMA) to obtain the version number and / or kernel number of the first operating system during the operation of the first operating system via the BMA; sending operating system information to the Baseboard Management Controller includes: running the Baseboard Management Agent (BMA) to return operating system information to the Baseboard Management Controller in response to the information reporting command sent by the Baseboard Management Controller through the Redfish interface via the BMA.
[0024] In one possible implementation, when multiple operating systems are installed in the central processing unit, the operating system information includes multi-boot partition information; the multi-boot partition information is used to indicate the boot order of the boot partitions of each operating system; the method further includes: running the Basic Input / Output System (BIOS) to receive the modified boot order sent by the baseboard management controller via the IPMI interface; and in response to an operating system restart, running the BIOS to boot the operating system according to the modified boot order.
[0025] In one possible implementation, the method further includes: running the BIOS to receive the effective time range of the modified boot order sent by the baseboard management controller via the IPMI interface; and, in response to an operating system restart, running the BIOS to boot the operating system according to the modified boot order, including: in response to an operating system restart, running the BIOS to boot the operating system according to the modified boot order within the effective time range.
[0026] Thirdly, this application provides a computing device including a coupled memory and a baseboard management controller; the memory is used to store program instructions; the baseboard management controller is used to invoke the program instructions to cause the computing device to perform any of the information management methods provided in the first aspect above.
[0027] Fourthly, this application provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement any of the information management methods provided in the first aspect above.
[0028] Fifthly, this application provides a computer program product, including computer instructions that, when executed by a processor, implement any of the information management methods provided in the first aspect above.
[0029] For a detailed description of the second to fifth aspects and their various implementations in this application, please refer to the detailed description in the first aspect and its various implementations; and for a detailed analysis of the beneficial effects of the second to fifth aspects and their various implementations in the first aspect and its various implementations, please refer to the beneficial effect analysis in the first aspect and its various implementations, which will not be repeated here.
[0030] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description
[0031] Figure 1 A schematic diagram of a menu page of a basic input / output system provided in an embodiment of this application;
[0032] Figure 2 A schematic diagram of the system architecture of a computing device to which an information management method is applicable, provided in an embodiment of this application;
[0033] Figure 3 A schematic diagram of a management page provided in an embodiment of this application;
[0034] Figure 4 A flowchart illustrating an information management method provided in this application embodiment;
[0035] Figure 5 A schematic diagram illustrating the logic of obtaining and updating boot partition information as provided in an embodiment of this application;
[0036] Figure 6 This is a schematic diagram illustrating the logic of obtaining and updating the version number and kernel number of an operating system, as provided in an embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0038] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0039] A single computing device can install multiple operating systems, each with different purposes. Each operating system has its own independent boot partition, which stores the operating system's boot files. In different application scenarios, the computing device boots the operating system according to the boot order of the boot partitions and the boot files stored in those partitions.
[0040] When a user wants to view boot partition information on a computing device (such as the boot order of the boot partition), they need to restart the operating system. This requires accessing the Basic Input / Output System (BIOS) menu before the operating system boots, where they can then view the boot partition information. For example, Figure 1 The BIOS menu page is displayed, which includes hard drive partitions, the operating system installed on each partition, boot files, etc.
[0041] However, a system restart interrupts the services running within it, impacting the user experience. Therefore, this application provides an information management method. The baseboard management controller of a computing device can obtain the operating system information, including the boot partition information of each operating system. When a user wants to view the boot partition information, they can input a query command, and the baseboard management controller can output the boot partition information. The operation of the baseboard management controller does not conflict with the operation of the operating system; that is, the baseboard management controller obtains the boot partition information without requiring an operating system restart, thus not interrupting the services running within the operating system and improving the user experience.
[0042] Figure 2 This illustrates the system architecture of the computing device to which the information management method provided in this application is applicable. For example... Figure 2As shown, computing device 1 includes a Baseboard Management Controller (BMC) 10 and a Central Processing Unit (CPU) 20. The Baseboard Management Controller (BMC) 10 establishes a communication connection with the CPU 20, which can be wireless or wired. The Baseboard Management Controller 10 runs within an out-of-band controller, and the CPU 20 has one or more operating systems installed.
[0043] The baseboard management controller 10 is used to obtain operating system information of the computing device 1, which includes at least the boot partition information of each operating system running on the computing device 1. The baseboard management controller 10 is also used to output boot partition information in response to a query command, which is used to request boot partition information.
[0044] In some embodiments, the substrate management controller outputs boot partition information, which may be displayed on the management page.
[0045] Specifically, the management page can be the menu page of the baseboard management controller 10. Users can... Figure 3 The boot partition information can be viewed in the menu page of the shown baseboard management controller 10.
[0046] In some embodiments, the operating system information may also include the version number and kernel number of each operating system, and correspondingly, the management page may also display the version number and kernel number of each operating system. The management page may also display the boot order of the boot partition corresponding to each operating system, the description information of the operating system, the description information of the boot partition, and the effective time range of the boot order of the boot partition.
[0047] In some embodiments, the board management controller can display the boot partition information output on the management page through a display module.
[0048] In some embodiments, the display module may be integrated with the computing device.
[0049] Optionally, the display module can also be a display module included in a user-used device. Through communication between the user device and computing device 1, the user device's display module displays the management page. For example, the display module is the screen included in a user-used computer, and the computer's screen displays the management page.
[0050] In some embodiments, the baseboard management controller 10 obtains the aforementioned operating system information from the central processing unit 20. For example, the central processing unit 20 sends the aforementioned operating system information to the baseboard management controller 10.
[0051] In some embodiments, the central processing unit 20 includes a Basic Input / Output System (BIOS). The storage space corresponding to the BIOS stores the boot partition information of the operating system.
[0052] The central processing unit 20 includes a BIOS, which can be understood as the program code corresponding to the BIOS being stored in a dedicated storage space. The central processing unit reads and executes the program code in the storage space through a specific protocol to implement the functions of the BIOS.
[0053] In some embodiments, the baseboard management controller 10 includes an Intelligent Platform Management (IPMI) interface and / or a Redfish interface.
[0054] In some embodiments, the operating system installed in the central processing unit 20 is pre-configured with an interrupt handling function. When an operating system management interrupt is triggered, the interrupt handling function can obtain the operating system version number and / or kernel number, and return the obtained information directly to the baseboard management controller 10 through the IPMI interface. Alternatively, the interrupt handling function stores the obtained information in a preset memory space. When the operating system restarts, the BIOS reports the information stored in the preset memory space to the baseboard management controller 10 through the IPMI interface.
[0055] In some embodiments, the operating system installed in the central processing unit 20 is pre-configured with a Baseboard Management Agent (BMA). The BMA can realize network communication between the operating system and the baseboard management controller 10. The BMA can obtain the version number and / or kernel number of the operating system and send the obtained information to the baseboard management controller 10 through the Redfish interface.
[0056] It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0057] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0058] The information management method provided in this application embodiment can be executed by the aforementioned computing device 1.
[0059] like Figure 4 As shown in the figure, this application provides an information management method, which includes the following steps:
[0060] S101, The central processing unit obtains the operating system information of the computing device.
[0061] The computing device contains at least one operating system, and the operating system information includes at least the boot partition information of each operating system.
[0062] In some embodiments, the operating system information may further include at least one of the following: the version number, kernel number, and description information of each operating system.
[0063] In some embodiments, obtaining the operating system information of a computing device can be achieved in the following ways:
[0064] Method 1: The operating system running on the CPU is configured with an interrupt handler function, which is used to obtain the operating system's version number and / or kernel number. When the BMC executes a management interrupt to the CPU and sends an information fetch instruction to the CPU, the CPU executes the management interrupt. In response to receiving the information fetch instruction sent by the baseboard management controller, the CPU runs the BIOS to call the interrupt handler function in the first operating system to obtain the version number and / or kernel number of the first operating system; the first operating system can be any currently running operating system; wherein, the information fetch instruction is used to instruct the BIOS running on the CPU to call the interrupt handler function.
[0065] For example, the interrupt handler function is a System Management Interrupt (SMI) handler function. By writing SMI handling code, the user can make the completed interrupt handler function callable by the BIOS to obtain the version number and / or kernel number of the first operating system.
[0066] Specifically, users can trigger the SMI processing function by pre-configuring the level signal of the GPIO pin.
[0067] Currently, there is no program in the operating system that can respond to the information acquisition instructions sent by the BMC. This application configures an interrupt handling function in the operating system so that the operating system can respond to the information acquisition instructions sent by the BMC, thereby obtaining the information of the currently running operating system, and finally sending the acquired information to the BMC.
[0068] Method 2: The operating system running on the central processing unit (CPU) is configured with a Baseboard Management Agent (BMA). The CPU runs the BMA and, through the BMA, obtains the version number and / or kernel number of the first operating system during its operation.
[0069] BMA is a persistent background process. BMA can communicate with BMC over a network. BMC sends information retrieval commands to BMA through the Redfish interface, triggering BMA to obtain operating system information. BMA can obtain operating system information directly through system calls, or by parsing system files.
[0070] By pre-configuring BMA in the operating system, the operating system can respond to the information retrieval instructions of BMC without affecting the operation of the operating system. BMC can instruct BMA to retrieve operating system information at any time.
[0071] In practical use, BMA can also perform functions such as hardware temperature detection, hardware power detection, and heartbeat detection.
[0072] S102, The central processing unit sends operating system information to the baseboard management controller; correspondingly, the baseboard management controller receives the operating system information sent by the central processing unit.
[0073] As described above, based on the first method, in some embodiments, after obtaining the operating system information through the interrupt handling function, the central processing unit runs the interrupt handling function through the first operating system and sends the obtained information to the baseboard management controller through the IPMI interface.
[0074] This method of obtaining operating system information does not require restarting the operating system; the operating system can be interrupted at any time during operation to obtain the information.
[0075] Based on the above method one, in some other embodiments, the acquired information is stored in a preset storage space through an interrupt handling function, the central processing unit runs the BIOS, and in response to the operating system restart, the BIOS sends operating system information to the BMC through the IPMI interface; correspondingly, the BMC receives the operating system information reported by the BIOS in response to the operating system restart.
[0076] For example, the preset storage space can be the storage space corresponding to the BIOS used to store boot partition information. In this way, when the operating system restarts, the BIOS runs and can send the information in the storage space storing the boot partition information to the BMC through the IPMI interface, that is, the BMC obtains the operating system information.
[0077] By working together with the BMC and the BIOS, operating system information can be obtained without restarting the operating system. When the operating system restarts, the BIOS reports the operating system information to the BMC. When the user needs to view the operating system information, they can view it through the BMC's management page. There is no need to restart the operating system at the moment to view the multi-boot partition information through the BIOS menu page, nor is it necessary to run each operating system separately to obtain information such as the version number and kernel number of each operating system.
[0078] In some other embodiments, based on the above-described method two, the BMC sends an information reporting instruction to the central processing unit through the Redfish interface. The information reporting instruction is used to instruct the central processing unit to return operating system information by running the Baseboard Management Agent (BMA). The central processing unit runs the BMA and, in response to the information reporting instruction sent by the BMC through the Redfish interface, returns operating system information to the Baseboard Management Controller.
[0079] In this embodiment, after obtaining the operating system information, the BMC stores the operating system information in the BMC's storage space. When the user needs to view the operating system information, they can directly view the operating system information of each computing device stored by the BMC through the BMC's management page, without having to go through the operating system and / or BIOS.
[0080] In some embodiments, the format of signaling transmitted through the IPMI and Redfish interfaces can be configured to ensure that the signaling meets the protocol requirements of the interfaces. For example, the BMC sends an information retrieval command through the IPMI interface, and the specific format of the information retrieval command is constructed by the user according to the IPMI interface protocol. As another example, the specific format of the operating system information reported by the central processing unit through IPMI is also constructed by the user according to the IPMI interface protocol. When the BMC receives information through the IPMI interface, it parses the information to obtain the operating system information.
[0081] Optionally, users can manually enter operating system information into the baseboard management controller.
[0082] For example, such as Figure 3 As shown, users can enter operating system information on the management page, which the baseboard management controller then obtains. When a user first installs the operating system or has a strong impression of it, they can manually enter the operating system information into the baseboard management controller to ensure its accuracy.
[0083] S103, The substrate management controller responds to the query command and outputs the boot partition information.
[0084] The query command is used to request boot partition information.
[0085] In some embodiments, users can input query commands through the management page displayed by the display module. The display module then transmits the query commands to the BMC via the BMC's Redfish interface. For example, the management page includes a "Query" control. Users can click the "Query" control on the management page, and the display module will then transmit the query commands to the BMC via the BMC's Redfish interface.
[0086] In some embodiments, when multiple operating systems are installed on the central processing unit (CPU), the operating system information includes multi-boot partition information; the multi-boot partition information is used to indicate the boot order of each boot partition. The BMC can also, in response to a first operation modifying the boot order in the management page, determine the modified boot order; send the modified boot order to the BIOS running in the CPU via the IPMI interface; and, in response to an operating system restart, the CPU runs the BIOS and boots the operating system according to the modified boot order.
[0087] For example, such as Figure 3 As shown, the boot order of the currently displayed boot partitions on the management page is as follows: Boot partition 1 (boot files for operating system A are stored in boot partition 1), Boot partition 2 (boot files for operating system B are stored in boot partition 2), and Boot partition 3 (boot files for operating system C are stored in boot partition 3). Users can first click the "▽" mark corresponding to boot partition 1 to move its boot order one step forward, and then click the "△" mark corresponding to boot partition 3 to move its boot order one step forward. After the adjustment, boot partition 2 has the earliest boot order, and boot partition 1 has the latest boot order. When the operating system restarts, the BIOS first boots operating system B from boot partition 2. If a boot failure occurs, it then boots operating system C from boot partition 3. If that also fails, it boots operating system A from boot partition 1.
[0088] The boot order of the boot partition indicates its boot priority. Under normal circumstances, every time the operating system restarts, the BIOS boots the operating system from the boot file of the boot partition that is the first in the boot order.
[0089] The boot order of the boot partition can be adjusted through the BMC, which can meet the boot requirements of users for different operating systems.
[0090] In some embodiments, each time the operating system restarts, the BIOS obtains the boot order of the boot partition from the BMC. In this way, the boot partition information executed by the BIOS each time is consistent with the boot partition information stored in the BMC, and the user can view the effective and accurate operating system information through the BMC.
[0091] Optionally, the BIOS sends the modified boot partition information to the BMC, and the BMC determines whether the modified boot partition information needs to be reconfigured based on the result.
[0092] In some embodiments, in response to a second operation of configuring an effective time range in the management page, the BMC determines the effective time range of the modified boot order; the BMC sends the effective time range to the BIOS running in the central processing unit via the IPMI interface; in response to an operating system restart, the central processing unit runs the BIOS and boots the operating system according to the modified boot order within the effective time range.
[0093] For example, if the effective time range is limited to the current boot cycle, then on the first operating system restart, the BIOS will boot the operating system according to the modified boot order. Subsequent operating system restarts will not be affected by the boot order of the boot partition. In this case, after the BMC sends the modified boot order to the BIOS, the BMC deletes the modified boot order. Thus, on the next operating system restart, the BIOS will still obtain the original boot order from the BMC, ensuring that the modified boot order takes effect only on the current boot cycle.
[0094] In another example, if the effective time range can be permanent, the BMC will overwrite the original boot order with the modified boot order. Every time the operating system restarts, the BIOS will obtain the modified boot order from the BMC and boot the operating system according to the modified boot order, thus making the modified boot order permanently effective.
[0095] It should be understood that users can set the effective time range according to their actual needs, and are not limited to immediate effectiveness or permanent effectiveness. For example, users can set the effective time range for the boot order to be effective on weekdays, effective twice, or effective on rest days.
[0096] By setting the effective time range of the boot order, users can meet their needs for using different operating systems at different times. Furthermore, configuring the effective time range of the boot order through the BMC simplifies the user operation process.
[0097] In some embodiments, the BMC determines the description information in response to a third operation that maintains description information in the management page. For example, such as Figure 3 As shown, the display area corresponding to the description information can include the purpose of the boot partition, the application scenarios of the operating system, and a flag indicating that deletion is prohibited. By adding description information to the management page, you can add descriptions of the application scenarios of the operating system, the purpose of the boot partition, and descriptions to prevent other users from deleting it, giving users a clearer understanding of each operating system and boot partition.
[0098] Depend on Figure 4 As shown in the illustrated embodiment, the baseboard management controller (BMC) can obtain the operating system information of the computing device. This information includes the boot partition information of each operating system. When a user wants to view the boot partition information of the computing device, they can input a query command, and the BMC can output the boot partition information. The operation of the BMC does not conflict with the operation of the operating system; that is, the BMC obtains the boot partition information without requiring an operating system restart, thus not interrupting the services running within the operating system and improving the user experience. Furthermore, the BMC can be used to manage the operating system information of multiple computing devices, facilitating unified management of the operating systems of various computing devices and making it convenient to share the operating system information of each computing device with higher-level administrators.
[0099] In summary, the process of obtaining and updating boot partition information in the operating system information can be as follows: Figure 5 As shown. Figure 5 In this system, the BIOS running in the central processing unit reports boot partition information to the BMC via the IPMI interface when the operating system restarts. The BMC receives and saves the boot partition information reported by the BIOS. Users can modify the management page to input the modified boot order of the boot partition into the BMC's Redfish interface. The BMC sends the modified boot order to the BIOS via the IPMI interface. After receiving the modified boot order, the BIOS boots the operating system according to the modified boot order on the next operating system restart.
[0100] The process of obtaining the operating system version number and kernel number from the operating system information, as well as the process of obtaining and updating the descriptive information, can be described as follows: Figure 6 As shown. Figure 6In the BMC (Browser Control Center) interface, users can modify the management page to input the operating system version number, kernel number, and description information. When the operating system has pre-configured interrupt handlers, the BMC triggers SMI (System-Managed Interrupt) via GPIO pins. The BIOS runs and, through the interrupt handlers, obtains the operating system version number and kernel number. The interrupt handlers either directly return the obtained information to the BMC or store the information in a preset memory space, which the BIOS then reports to the BMC when the operating system restarts. When the operating system has pre-configured BMA (Browser Management Assistant), the BMC sends an information retrieval command to the BMA through the Redfish interface. The BMA obtains the operating system version number and kernel number and reports the information to the BMC through the Redfish interface.
[0101] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0102] Another embodiment of this application provides a computing device including a coupled memory and a baseboard management controller; the memory is used to store program instructions; the baseboard management controller is used to invoke the program instructions to cause the computing device to perform the steps of the information management method as shown in the above embodiments.
[0103] Another embodiment of this application provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the information management method shown in the above embodiments.
[0104] In another embodiment of this application, a computer program product is also provided, which includes computer instructions that, when executed by a processor, implement the steps of the information management method shown in the above embodiments.
[0105] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), etc.
[0106] The above description is merely a specific embodiment of this application. Any variations or substitutions conceived by those skilled in the art based on the specific embodiments provided in this application should be covered within the protection scope of this application.
Claims
1. An information management method, characterized in that, The method includes: Obtain the operating system information of the computing device, wherein at least one operating system is installed in the computing device, and the operating system information includes the boot partition information of each operating system; In response to a query command, the boot partition information is output; the query command is used to request the boot partition information.
2. The method according to claim 1, characterized in that, The operating system information also includes at least one of the following: the version number, kernel number, and description information of each operating system.
3. The method according to claim 1 or 2, characterized in that, The computing device further includes a central processing unit; where the operating system information includes multi-boot partition information, the multi-boot partition information is further used to indicate the boot order of the boot partitions of each operating system; the method further includes: In response to a first operation that modifies the boot order in the management page, the modified boot order is determined; The modified boot order is sent to the Basic Input / Output System (BIOS) running in the central processing unit via the Intelligent Platform Management (IPMI) interface, so that the BIOS boots the operating system according to the modified boot order.
4. The method according to claim 3, characterized in that, The method further includes: In response to a second operation that configures an effective time range in the management page, the effective time range of the modified boot order is determined; The effective time range is sent to the BIOS running in the central processing unit via the IPMI interface, so that the BIOS boots the operating system according to the modified boot order within the effective time range.
5. The method according to claim 3 or 4, characterized in that, The method further includes: In response to a third operation that maintains description information in the management page, description information for any operating system is determined.
6. The method according to any one of claims 1-5, characterized in that, The computing device further includes a central processing unit, and the step of obtaining the operating system information of the computing device includes: Receive the operating system information sent by the central processing unit.
7. The method according to claim 6, characterized in that, Before receiving the operating system information sent by the central processing unit, the method further includes: A management interrupt is executed on the central processing unit (CPU), and an information retrieval instruction is sent to the CPU; wherein the information retrieval instruction is used to instruct the CPU's Basic Input / Output System (BIOS) to call an interrupt handling function; the interrupt handling function is used to retrieve the operating system version number and / or kernel number.
8. The method according to claim 7, characterized in that, The interrupt handling function is also used to send the acquired information to the baseboard management controller via the IPMI interface; Alternatively, the interrupt handling function may also be used to store the acquired information into a preset storage space; The preset storage space is used to store the operating system information; Receiving the operating system information sent by the central processing unit includes: receiving the operating system information reported by the BIOS in response to the operating system restart.
9. The method according to claim 6, characterized in that, The method further includes: The information reporting command is sent to the central processing unit via the Redfish interface. The information reporting command is used to instruct the central processing unit to return the operating system information through the running board management agent (BMA). Receive the operating system information returned by the central processing unit through running the BMA.
10. A computing device, characterized in that, The computing device includes a coupled memory and a baseboard management controller; The memory is used to store program instructions; The baseboard management controller is used to invoke the program instructions to cause the computing device to perform the method as described in any one of claims 1-9.