Startup Method and Device for Server Startup Items

By obtaining the target startup configuration information from the substrate management controller when the server is started and determining the startup sequence based on its effectiveness, the problem of temporarily adjusting the server startup item order in the prior art is solved, and the default settings are automatically restored, which improves the stability and predictability of the server.

CN119917180BActive Publication Date: 2025-06-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510396369.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-06-24
Estimated Expiration
2045-03-31

AI Technical Summary

Technical Problem

In the prior art, temporary adjustment of the server startup item order requires manual adjustment of the order and then manual restoration of the default settings, resulting in low efficiency.

Method used

When the server starts, the target startup configuration information is obtained from the substrate management controller, and the startup sequence is determined based on whether the valid target priority order is included. If included, start in the order of target priority; if not included, start in the order of default priority. The substrate management controller manages the target startup configuration information based on the preset time, so that when the preset time is exceeded, the target priority order becomes invalid and the startup items will automatically return to the default settings.

Benefits of technology

Improve the efficiency of temporarily adjusting the order of startup items, ensuring that temporary dynamic adjustment of startup items will not permanently affect the server's startup configuration, and ensuring the stability and predictability of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917180B_ABST
    Figure CN119917180B_ABST
Patent Text Reader

Abstract

The present application discloses a method for starting a server startup item, which relates to the field of computer technology and includes: when the server starts up, if it is determined that the target startup configuration information of the startup item is stored in the baseboard management controller, obtaining the target startup configuration information from the basic management controller, and then, if the target priority order with a valid status is included in the target startup configuration information, starting the startup item according to the target priority order. Since the baseboard management controller manages the stored target startup configuration information based on a preset duration, when the preset duration is exceeded, the target priority order in the target startup configuration information becomes invalid, and the startup item automatically returns to the default settings, solving the technical problem in the related art that temporarily adjusting the startup item order requires manual adjustment of the order and then manual restoration of the default settings, resulting in low efficiency of temporarily adjusting the startup item order, and achieving the technical effect of improving the efficiency of temporarily adjusting the startup item order.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a method and device for starting a server startup item. Background Art

[0002] A server is a computing device or software system dedicated to providing various services and resources for other computers or devices to use. It can process, manage, and store data, run application programs, and support various network activities. The startup item usually refers to the order in which the operating system or other software components are loaded when the server starts. By adjusting the startup order of the startup items, the startup process of the server can be better managed to ensure the stability, performance, and security of the system.

[0003] Therefore, improving the way of changing the startup configuration information of the server and realizing the change of the startup order of the server startup items to protect the normal operation of the server are the challenges faced by the current firmware maintenance of the server and the server startup configuration management. Summary of the Invention

[0004] This application provides a method and device for starting a server startup item, which at least solves the technical problem in the related art that the efficiency of temporarily adjusting the startup item order is low because the order needs to be manually adjusted and then the default settings need to be manually restored.

[0005] This application provides a method for starting a server startup item, including: when the server starts and it is determined that the target startup configuration information of the server startup item is stored in the baseboard management controller, obtaining the target startup configuration information from the baseboard management controller. Wherein, when the duration that the target startup configuration information is stored in the baseboard management controller is less than or equal to a preset duration, the target startup configuration information includes a target priority order with a valid status; when the duration that the target startup configuration information is stored in the baseboard management controller is greater than the preset duration, the target startup configuration information does not include the target priority order with a valid status; when it is determined that the target startup configuration information includes a target priority order with a valid status, starting the startup items according to the target priority order; when it is determined that the target startup configuration information does not include the target priority order with a valid status, starting the startup items according to the default priority order.

[0006] The present application also provides a starting device for a server startup item, including: an obtaining module, configured to obtain target startup configuration information from a baseboard management controller when the server starts up and it is determined that the baseboard management controller stores the target startup configuration information of the server startup item, wherein, when the duration for which the target startup configuration information is stored in the baseboard management controller is less than or equal to a preset duration, the target startup configuration information includes a target priority order with a valid status, and when the duration for which the target startup configuration information is stored in the baseboard management controller is greater than the preset duration, the target startup configuration information does not include a target priority order with a valid status; a first startup module, configured to start up the startup item according to the target priority order when it is determined that the target startup configuration information includes a target priority order with a valid status; and a second startup module, configured to start up the startup item according to a default priority order when it is determined that the target startup configuration information does not include a target priority order with a valid status.

[0007] The present application also provides an electronic device, including: a memory, configured to store a computer program; and a processor, configured to implement the steps of any of the above server startup item startup methods when executing the computer program.

[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored, and wherein the computer program implements the steps of any of the above server startup item startup methods when executed by a processor.

[0009] The present application also provides a computer program product, including a computer program, and the computer program implements the steps of any of the above server startup item startup methods when executed by a processor.

[0010] Through the present application, when the server is started, if it is determined that the target startup configuration information is stored in the baseboard management controller, the target startup configuration information is obtained from the baseboard management controller, and it is determined whether the target startup configuration information includes a target priority order with a valid status. Furthermore, when the target startup configuration information includes a target priority order with a valid status, the startup items are started according to the target priority order. When the target startup configuration information does not include a target priority order with a valid status, the startup items are started according to the default priority order. Since the baseboard management controller manages the stored target startup configuration information based on a preset duration, when the preset duration is exceeded, the target priority order included in the target startup configuration information becomes invalid, and the startup items automatically return to the default settings. This ensures that the temporary dynamic adjustment of the startup items will not permanently affect the server's startup configuration. At the same time, it also ensures the stability and predictability of the server during daily operations. Therefore, it is possible to solve the technical problem in the related art that the efficiency of temporarily adjusting the startup item order is low because manual adjustment of the order is required and then manual restoration of the default settings is needed, achieving the technical effect of improving the efficiency of temporarily adjusting the startup item order. Brief Description of the Drawings

[0011] To more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0012] Figure 1 Hardware structure block diagram of a mobile terminal for a method of starting a server startup item provided by an embodiment of the present application;

[0013] Figure 2 Flowchart of a method for starting a server startup item provided by an embodiment of the present application;

[0014] Figure 3 System interaction schematic diagram provided by an embodiment of the present application;

[0015] Figure 4 Flowchart of PXE startup settings provided by an embodiment of the present application;

[0016] Figure 5 Swimlane diagram of PXE startup settings provided by an embodiment of the present application;

[0017] Figure 6 Structure block diagram of a device for starting a server startup item provided by an embodiment of the present application. Detailed Description of the Embodiments

[0018] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0019] It should be noted that in the description of the present application, the terms "including", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0020] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0021] In connection with the specific application environment architecture or specific hardware architecture on which the execution of the startup method of the server startup item depends, the specific application environment architecture or specific hardware architecture is described herein.

[0022] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal or a similar computing device. Taking the operation on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal for a startup method of a server startup item in an embodiment of the present application. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processors 102 may include, but are not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the above mobile terminal. For example, the mobile terminal may further include more or fewer components than those shown in Figure 1 the figure, or have a different configuration from that shown in Figure 1 the figure.

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

[0024] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0025] The embodiments of the present application provide a startup method for a server startup item. The method will be described in detail in combination with the execution process of the startup method for the server startup item.

[0026] The following explains the professional terms in the embodiments of the present application:

[0027] BIOS: Basic Input Output System, the basic input and output system, is a firmware stored in the ROM chip on the computer motherboard, mainly responsible for the initialization and self-check of computer hardware, and providing the most basic hardware control program during operation. When the computer starts up, the BIOS will execute a series of preset instructions, check and configure hardware devices, and provide a necessary environment for the loading of the operating system.

[0028] BMC: Baseboard Management Controller, the baseboard management controller, is a dedicated microcontroller used to monitor and manage the hardware status of a computer system, including power supply, temperature, fan speed, etc., and can provide remote system monitoring and management functions through a network.

[0029] CPU: Central Processing Unit, the central processing unit, is one of the main hardware components of a computer, responsible for executing instructions and processing data. The CPU is equivalent to the brain of the computer, controlling the operation of the computer, performing arithmetic and logical operations, and sending control signals.

[0030] IPMI: Intelligent Platform Management Interface, an intelligent platform management interface, is a standardized interface for remote monitoring and management of servers. IPMI allows system administrators to perform operations such as power control, hardware monitoring, event logging, and system recovery on servers through the network without the need for the operating system to be running.

[0031] PCI: Peripheral Component Interconnect, a peripheral component interconnect, is a bus standard for connecting high-speed devices (such as graphics cards, sound cards, network cards, etc.) in a computer. PCI allows these devices to communicate directly with the computer's motherboard through slots, providing high-speed data transfer capabilities. With the development of technology, the PCI standard has also undergone multiple upgrades, including PCI-X, PCI Express, etc., which is a more modern and high-speed bus standard.

[0032] Redfish protocol: The intelligent platform management Redfish standard protocol, is a management interface standard for modern data centers and cloud computing environments, and is an open industry standard protocol. Redfish is based on HTTP / HTTPS, RESTful API, JSON data format, and OData query language, providing a more modern, flexible, and secure way to manage data centers. In addition, the Redfish protocol can achieve remote management of USB devices on the server through the Physical USB Over Lan interface communication protocol.

[0033] USB Over Lan: Universal Serial Bus over the network, is a technology that allows USB devices to be remotely accessed and controlled over the network as if these devices were directly connected to the remote client. This technology is particularly useful in remote management and maintenance, enabling USB connection operations on devices located at a relatively long physical distance. In data centers, the USB Over Lan technology is commonly used for remote BIOS configuration, system installation, or fault diagnosis, which involves using USB storage devices or other hardware with USB interfaces.

[0034] USB: Universal Serial Bus, a general - purpose serial bus, is a widely - used interface standard for connecting computers and peripheral devices such as keyboards, mice, printers, storage devices, etc. USB provides a plug - and - play connection method, allowing devices to be hot - plugged without restarting the system.

[0035] NVMe hard drive: The full name is Non - Volatile Memory Express, an optimized storage interface protocol mainly used for solid - state drives (SSDs). NVMe is designed to utilize the PCIe (Peripheral Component Interconnect Express) bus to provide low latency and high transfer speeds, especially suitable for high - bandwidth and low - latency storage applications. NVMe hard drives can achieve higher I / O performance, with a significant improvement in read and write speeds compared to traditional SATA or SAS - interface solid - state drives.

[0036] USB flash drive: The full name is USB Flash Drive, a portable storage device that uses a USB interface to connect to a computer. USB flash drives usually include flash memory chips and a USB interface controller, can store various data files, and can easily transfer data between different computers. Due to its portability and ease of use, USB flash drives are very popular in daily data storage and transfer.

[0037] CD - ROM0: The full name is Compact Disc Read - Only Memory, an optical storage medium for storing digital data. CD - ROM can be read, but the data cannot be changed once written, so it is called read - only. The capacity of a CD - ROM is usually 650MB to 700MB, mainly used for distributing software, games, music, videos, and other data. CD - ROM needs to be read through a CD - ROM drive (or optical disc drive), which can read the data on the CD but cannot write data. When referring to CD - ROM0, this usually means the first CD - ROM device in the BIOS or UEFI boot settings, that is, the CD - ROM designated as the priority boot among multiple CD - ROM drives.

[0038] LCP: Link Control Protocol, a component of the Point - to - Point Protocol (PPP), is used to establish, configure, and test data - link connections.

[0039] SPI: Serial Peripheral Interface, a synchronous serial data link interface used for communication between microcontrollers and peripheral devices such as memory chips, sensors, and peripherals. SPI allows for fast data transfer between devices and is commonly used for short-distance communication that requires high-speed data transfer.

[0040] QSPI: Quad SPI, a four-wire serial peripheral interface, is an advanced version of the SPI interface. It enables simultaneous transmission and reception of 4-bit data by using additional control lines, thus significantly increasing the data transfer rate. QSPI is typically used for communication with high-speed flash memories and other peripherals.

[0041] CCXI: Cache Coherent eXtended I / O Interconnect, a high-speed and low-latency interconnect technology designed to provide cache-coherent I / O device communication. It is mainly used in servers and high-performance computing systems to enhance the I / O performance and coherence of the system.

[0042] UPI: Unified Port Interconnect, an interconnect technology used in Intel's Xeon scalable processors for high-speed communication channels between processors. In Intel's architecture, UPI replaces the old QPI (Quick Path Interconnect) technology, providing higher-speed data transfer and lower latency.

[0043] GMI: Graphics and Memory Interconnect, a communication interface between processors and one of the interfaces for high-speed communication.

[0044] NVRAM: Non-Volatile Random Access Memory, a type of memory that can retain data even after power is lost. It has an access speed similar to RAM (Random Access Memory) but has the persistence of ROM (Read-Only Memory). In computer systems, NVRAM is commonly used to store configuration information that needs to be accessed at system startup.

[0045] EEPROM: Electrically Erasable Programmable Read-Only Memory, an electrically erasable programmable read-only memory, is a special type of memory where data can be electronically erased and rewritten. Different from flash memory, data in EEPROM can be updated at the byte level without erasing the entire chip. In hardware, EEPROM is used to store small data blocks that need to be frequently updated, such as device configurations and user settings.

[0046] DXE: Driver eXecution Environment, the driver execution environment, is a stage in the UEFI boot process that is mainly responsible for loading and executing drivers to provide the system with access to and control of hardware.

[0047] SCE: Setup Control Environment, a conceptual environment that is usually used to describe the environment for configuring and controlling startup settings in a server or computer system. In server management, SCE may involve the management of BIOS / UEFI settings, including the boot order, hardware configuration, etc.

[0048] RAID card: Redundant Arrays of Independent Disks, disk array.

[0049] OCP network card: Open Compute Project Network Interface Card version 3.0, an open network interface card design specification.

[0050] In this embodiment, a method for starting a server startup item is provided. Figure 2 It is a flowchart of the method for starting a server startup item according to an embodiment of the present application. As Figure 2 shown, the process includes the following steps:

[0051] Step S202, when the server starts up and it is determined that the target startup configuration information of the server startup item is stored in the baseboard management controller, obtain the target startup configuration information from the baseboard management controller. Among them, when the duration for which the target startup configuration information is stored in the baseboard management controller is less than or equal to a preset duration, the target startup configuration information includes a target priority order with a valid status. When the duration for which the target startup configuration information is stored in the baseboard management controller is greater than the preset duration, the target startup configuration information does not include a target priority order with a valid status;

[0052] Step S204, when it is determined that the target startup configuration information includes a target priority order with a valid status, start the startup items according to the target priority order;

[0053] Step S206, when it is determined that the target startup configuration information does not include a target priority order with a valid status, start the startup items according to the default priority order.

[0054] Optionally, the execution subject of the above steps may be a background processor, or other devices with similar processing capabilities, or may also be a machine integrating at least an image acquisition device and a data processing device. Among them, the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include terminals such as a computer and a mobile phone, but is not limited thereto.

[0055] Among them, the execution order of Step S204 and Step S206 can be interchanged, that is, Step S206 can be executed first, and then Step S204 can be executed.

[0056] Through the above steps, when the server starts up, if it is determined that the target startup configuration information is stored in the baseboard management controller, obtain the target startup configuration information from the baseboard management controller, and judge whether the target startup configuration information includes a target priority order with a valid status. Furthermore, when the target startup configuration information includes a target priority order with a valid status, start the startup items according to the target priority order. When the target startup configuration information does not include a target priority order with a valid status, start the startup items according to the default priority order. Since the baseboard management controller manages the stored target startup configuration information based on a preset duration, when the preset duration is exceeded, the target priority order included in the target startup configuration information becomes invalid, and the startup items automatically return to the default settings, thus ensuring that the temporary dynamic adjustment of the startup items will not permanently affect the startup configuration of the server. At the same time, it also ensures the stability and predictability of the server in daily operations, improves the management efficiency and stability of the server, enhances the operation and maintenance efficiency, reduces the operation and maintenance cost, solves the technical problem in the related art that manually adjusting the order of the startup items and then manually restoring the default settings is required for temporarily adjusting the order of the startup items, resulting in low efficiency of temporarily adjusting the order of the startup items, and improves the efficiency of temporarily adjusting the order of the startup items.

[0057] In step S202, the startup item can be the option for the computer system to select to load the operating system from a storage device or network resource during startup; the target startup configuration information can be a set of specific startup rules for the startup devices (i.e., startup items) that an administrator or user expects the system to follow during startup in a server or computer system; the target priority order can be the order of startup items that an administrator or user expects during startup. The priority of the startup item determines which startup device the system tries to load the bootloader from first and then run the operating system. For example, if the hard disk is the device with the highest priority, then the system first tries to boot from the hard disk; if no valid boot information is found on the hard disk, the system will continue to check the next device according to the startup sequence list.

[0058] Optionally, in the embodiments of the present application, the startup items include but are not limited to the peripheral devices available in the system, such as PCI network cards, PCI RAID cards, PCI OCP network cards, PCI NVME hard disks, CD / DVD-ROMs, USB network cards, USB hard disks, etc. with PCI interfaces. By adjusting the startup items (i.e., the priority order of the startup items), users can control the startup process of the computer or server. For example, for system recovery, installing a new operating system, running diagnostic tools, or updating firmware, etc., without changing the hardware connection or physical medium. This flexibility makes the startup item configuration a common tool for system administrators and users to perform system management and troubleshooting.

[0059] Optionally, in the embodiments of the present application, the target startup configuration information can be the startup configuration information for PXE startup, SCSI startup, etc. The startup configuration information includes but is not limited to the startup device list, priority order, startup mode, and one-time startup setting. Among them, the startup device list lists all possible startup devices in the system, such as hard disk drives (including traditional HDDs and solid-state SSDs), USB devices, network interface cards (for PXE network startup), optical drives, etc.; the priority order assigns a priority order to each startup device, determining the specific order in which the system tries to load the operating system during startup. For example, the hard disk may be set as the first priority, the network interface card as the second priority, the USB device as the third priority, etc.; the startup mode indicates which startup mode the system should use. Common ones include the Legacy BIOS startup mode, UEFI startup mode, etc. Different startup modes may affect how the system recognizes and processes startup devices; the one-time startup setting allows the system to temporarily change the startup order during the next startup instead of permanently changing the BIOS settings. For example, a user may hope that the system boots from the network once (such as a one-time PXE startup, etc.) to install the operating system or perform troubleshooting, and does not want to follow this setting for every subsequent startup.

[0060] In step S202, the basic management controller can be a unit module that stores target startup configuration information. Through the baseboard management controller, an administrator or user can set the startup items of the server, thereby modifying and adjusting the startup order of the startup items; the preset duration can be the duration threshold for the baseboard management controller to store the target startup configuration information.

[0061] Optionally, in the embodiments of the present application, the preset can be set according to actual situations, such as 3 minutes, 5 minutes, 10 minutes, etc. By setting the preset duration, the target startup configuration information stored in the basic management controller can be effectively managed. Thus, by setting a preset duration, the startup items can automatically return to the default settings after the preset time, ensuring that the temporary dynamic adjustment of the startup items will not permanently affect the startup configuration of the server. It can provide an effective solution for situations that require temporarily starting from a specific device or network, such as updating the operating system or troubleshooting. At the same time, it also ensures the stability and predictability of the server during daily operations.

[0062] In step S206, if the target startup configuration information does not include a target priority order with a valid status, it may be that the target startup configuration information exists, but the target priority order included in the target startup configuration information is in an invalid state. For example, the preset duration is set to 3 minutes. When the duration exceeds 3 minutes, the baseboard management controller first sets the target priority order to an invalid state and then clears the target startup configuration information. In this case, when the duration does not exceed 3 minutes, the basic input / output system determines that the baseboard management controller stores the target startup configuration information of the server's startup item and obtains the target startup configuration information. However, when judging whether the target startup configuration information includes a target priority order with a valid status, the duration for which the baseboard management controller stores the target startup configuration information exceeds 3 minutes. At this time, the target priority order becomes invalid, that is, the baseboard management controller stores the target startup configuration information, but the target priority order included in the target startup configuration information is in an invalid state; it may also be that the target startup configuration information does not exist. For example, the preset duration is set to 3 minutes. When the duration exceeds 3 minutes, the baseboard management controller directly clears the target startup configuration information. In this case, when the duration does not exceed 3 minutes, the basic input / output system determines that the baseboard management controller stores the target startup configuration information of the server's startup item. However, when obtaining the target startup configuration information, the duration for which the baseboard management controller stores the target startup configuration information exceeds 3 minutes. At this time, the baseboard management controller clears the target startup configuration information, and the basic input / output system does not obtain the target startup configuration information, that is, the baseboard management controller does not store the target startup configuration information (or the baseboard management controller does not store the target priority order). By setting the preset duration to dynamically manage the status of the configuration information, the system can flexibly adjust the startup strategy under different circumstances, ensuring the reliability and flexibility of the startup process.

[0063] As an optional implementation manner, when it is determined that the target startup configuration information includes a target priority order with a valid status, the above method further includes: determining the target configuration times of the target startup configuration information; and processing the target startup configuration information stored in the baseboard management controller according to the target processing manner corresponding to the target configuration times.

[0064] Optionally, in the embodiments of the present application, the target configuration times may be once, or may be twice, three times, permanent, etc., multiple times; according to the target configuration times, the startup priority order of the startup item can be adjusted more effectively according to the startup settings.

[0065] Optionally, in the embodiments of the present application, the target processing method may be a processing method for the target startup configuration information, such as clearing the target startup configuration information, saving the target startup configuration information, etc. Through these target processing methods, it helps to achieve a one-time and temporary adjustment of the startup item priority, while ensuring that the basic startup configuration of the server is not affected, improving the flexibility and management efficiency of the server, reducing the operation and maintenance costs, and enhancing the manageability and maintainability of the data center server.

[0066] Through the above content, when the system sets the target startup configuration information through the IPMI command, the command will carry an information representing the target configuration times, which is usually used to determine whether the current setting is a "one-time startup" or a "permanent startup". For example, if the target configuration times is 1, it means a one-time startup configuration, which will only take effect at the next server startup; if the target configuration times is greater than 1 (such as set to a specific value or infinity), it means a permanent startup configuration, and the server will follow this configuration every time it starts. Based on the different target configuration times, different processing methods will be adopted for the target startup configuration information stored in the BMC. By determining the number of times of the target startup configuration information, the startup configuration of the system can be flexibly adjusted according to actual needs, so as to meet the requirements of different application scenarios. At the same time, the system resources can be effectively utilized to avoid unnecessary resource waste.

[0067] As an optional implementation manner, processing the target startup configuration information stored in the baseboard management controller according to the target processing method corresponding to the target configuration times includes: when the target configuration times is single, deleting the target startup configuration information stored in the baseboard management controller; when the target configuration times is multiple, transferring the target startup configuration information stored in the baseboard management controller to the target storage area for storage, so as to update the default priority order to the target priority order.

[0068] Optionally, in the embodiments of the present application, the target storage area may be a storage area such as the NVRAM area or the EEPROM area inside the BIOS. In the BIOS of the server, a target storage area (such as the NVRAM area) is set to store the default startup item priority order, so that even after the server restarts, the BIOS can read and restore the original default priority order from the target storage area, ensuring that the server can start according to the factory settings or the permanent priority order set by the administrator.

[0069] Optionally, in the embodiments of the present application, the target configuration times can be set only temporarily once. In this case, after the BIOS sends an instruction to obtain the target startup configuration information stored in the BMC, after the BMC responds to the obtain instruction and sends the target startup configuration information to the BIOS, the target startup configuration information stored in the BMC is deleted. At this time, the BIOS will, by deleting the configuration information, prevent the old or incorrect configuration information from being reused accidentally or without authorization, thereby reducing the risk of configuration errors and improving the security of the system. At the same time, deleting the information that is no longer needed can release resources and improve the storage space and processing capacity of the BMC.

[0070] Optionally, in the embodiments of the present application, the target configuration times can be a finite number of times such as 2 times, 3 times, 4 times, etc. In this case, after the BIOS sends an instruction to obtain the target startup configuration information stored in the BMC for the first time, after the BMC responds to the obtain instruction and sends the target startup configuration information to the BIOS, the target configuration times are decremented by one, and then the target startup configuration information is continued to be stored and the duration for which the BMC stores the target startup configuration information is set to zero, and the timing operation is restarted. At the same time, the BIOS stores the default priority order in the target storage area. If the BIOS sends an instruction to obtain the target startup configuration information stored in the BMC again within the preset duration, the above operations are repeated until the target configuration times is 1. After the BIOS sends an instruction to obtain the target startup configuration information stored in the BMC, after the BMC responds to the obtain instruction and sends the target startup configuration information to the BIOS, the target startup configuration information stored in the BMC is deleted; if the BIOS does not send an instruction to obtain the target startup configuration information stored in the BMC again within the preset duration, the BMC directly clears the stored target startup configuration information. By resetting the timing and updating the priority order after each obtainment of the configuration information, the reliability and consistency of the system in the critical configuration stage are ensured, and the risk of startup failure or configuration error caused by outdated or lost information is reduced. At the same time, the BMC automatically manages and clears the configuration information, reducing the need for manual intervention, improving the automation degree of system management, and effectively enhancing the efficiency and reliability of system startup configuration management.

[0071] Optionally, in the embodiments of the present application, the target configuration times can be permanently set. In this case, after the BIOS sends the instruction to obtain the target startup configuration information stored in the BMC for the first time, after the BMC responds to the obtain instruction and sends the target startup configuration information to the BIOS, the BIOS receives the target startup configuration information and transfers the target priority order in the target startup configuration information to the target storage area to update the default priority order to the target priority order. By directly obtaining the target startup configuration information from the BMC and permanently storing it in the target storage area, the BIOS can reduce the dependence on external settings during startup, thereby accelerating the startup process. In addition, the administrator only needs to configure once in the BMC to ensure that the same configuration is used for subsequent startups, simplifying the complexity of multiple configurations.

[0072] Through the above content, the startup configuration information in the baseboard management controller is managed accordingly according to different target configuration times. When the target configuration times is single, the unnecessary configuration information is deleted to release the storage space in the baseboard management controller and improve the resource utilization efficiency. When the target configuration times is multiple, the configuration information is transferred to the target storage area and the default priority order is updated to the target priority order, enabling the system to adjust the configuration order according to actual needs, improving the flexibility and adaptability of the system. By automatically processing and adjusting the startup configuration information, the complexity and potential errors of manual management are reduced, the management process of the baseboard management controller is simplified, enabling the system to start and configure more quickly and effectively, thereby improving the overall performance and response speed. In addition, it is ensured that only necessary configuration information is stored and used, reducing potential problems caused by redundant or outdated information and improving the reliability and stability of system operation.

[0073] As an optional implementation manner, the above method further includes: determining that the target startup configuration information is stored in the baseboard management controller in the following manner: receiving the response data returned by the baseboard management controller, where the response data is used to indicate whether the target startup configuration information is stored in the baseboard management controller; and determining that the target startup configuration information is stored in the baseboard management controller when it is determined that the value of the target bit included in the response data is the target value.

[0074] Optionally, in the embodiments of the present application, the above response data can be a data packet or information block returned by the baseboard management controller (BMC) after receiving a query command. This data packet usually contains several fields, including bits used to indicate the status or storage information of the BMC, so that it can be determined whether the target startup configuration information is stored in the BMC according to the value of a specific bit or field (i.e., the target bit) in the response data.

[0075] Optionally, in the embodiments of the present application, the above target value may be a predefined binary value, such as 0, 1, etc., or a specific flag, such as 0b01, 0xFF, etc.

[0076] Optionally, in the embodiments of the present application, when it is determined that the value of the target bit included in the response data is the target value, determining that the target startup configuration information is stored in the baseboard management controller includes: when the values of all bits in the response data are the first value, or when the value of the least significant bit of the response data is the second value, determining that the target startup configuration information is stored in the baseboard management controller.

[0077] Optionally, in the embodiments of the present application, it may also be determined that the target startup configuration information is stored in the baseboard management controller when the values of specific bits in the response data are all the first value, such as 101010101, etc.

[0078] Optionally, in the embodiments of the present application, it may also be determined that the target startup configuration information is stored in the baseboard management controller when the values of a certain specific bit in the response data are all the third value. For example, when the value of the most significant bit is 0XFF, it is determined that the target startup configuration information is stored in the baseboard management controller.

[0079] Through the above content, by receiving the response data returned by the baseboard management controller, it is possible to accurately determine whether the target startup configuration information is stored therein, enabling real-time acquisition of the status information of the baseboard management controller. Furthermore, ensuring that the target startup configuration information is stored in the baseboard management controller for subsequent operations avoids ineffective operations caused by directly obtaining the target startup configuration information from the baseboard management controller, reduces the occupation of system resources, and improves operation efficiency.

[0080] As an optional implementation manner, before determining that the target startup configuration information of the startup item of the server is stored in the baseboard management controller, the above method further includes: obtaining and installing a target network protocol for communicating with the baseboard management controller; determining that the target startup configuration information is stored in the baseboard management controller includes: when it is determined that the target network protocol is successfully installed, determining that the target startup configuration information is stored in the baseboard management controller.

[0081] Optionally, in the embodiments of the present application, the target network protocol includes, but is not limited to, the IPMI protocol, the SSH protocol, etc. By installing the target network protocol, communication between various unit modules inside the server can be achieved, such as communication between the BIOS and the BMC.

[0082] Optionally, in the embodiments of the present application, when it is determined that the target network protocol is successfully installed, it indicates that the BIOS can communicate with the BMC through the target network protocol, so as to determine whether the target startup configuration information is stored in the baseboard management controller.

[0083] Optionally, in the embodiments of the present application, after obtaining and installing the target network protocol for communicating with the baseboard management controller, it further includes: when it is determined that the installation of the target network protocol fails, starting the startup items in the default priority order.

[0084] Through the above content, a specific network protocol is obtained and installed to communicate with the BMC, ensuring that the system can communicate effectively with the BMC. If the network protocol is successfully installed and the target startup configuration information is indeed stored in the BMC, the system can start according to these configuration information, ensuring that the system starts according to the expected configuration, improving the accuracy and efficiency of startup. If the installation of the network protocol fails, the system will not be able to obtain specific startup configuration information from the BMC. In this case, the system will start in the default priority order, ensuring that the system can still start normally even when the protocol installation fails, ensuring the availability of the system. By automating and standardizing the startup process, manual intervention can be reduced and the system management efficiency can be improved.

[0085] As an optional implementation manner, after obtaining and installing the target network protocol and before determining that the target startup configuration information is stored in the baseboard management controller, the above method further includes: when it is determined that the target network protocol is successfully installed, traversing the network protocols supported by the server to obtain a traversal result; when the traversal result indicates that there is a first network protocol with a priority higher than that of the target network protocol and there is first startup configuration information set through the first network protocol, starting the startup items in the first priority order included in the first startup configuration information.

[0086] Optionally, in the embodiments of the present application, the first network protocol can be any protocol supported by the server and with a higher priority in the priority sorting than the target network protocol, such as the Redfish protocol, SMASH, etc. Through the first network protocol, the hardware of the server can be managed and monitored.

[0087] Optionally, in the embodiments of the present application, the first startup configuration information can be the relevant startup parameters and settings for configuring the startup items through the first network protocol, including the startup item priority order, startup parameters, number of configurations, etc.

[0088] Optionally, in the embodiments of the present application, the first priority order can be the startup item priority order included in the first startup configuration information.

[0089] Through the above, by traversing all the network protocols supported by the server after installing the target network protocol, it is possible to ensure that the network protocol with the highest priority is selected for startup configuration. Furthermore, by identifying and preferentially using the network protocol with a higher priority, it is possible to ensure that critical tasks or important startup configurations are executed first, optimizing the allocation and use of resources. At the same time, the server is allowed to dynamically adjust the startup process according to the actual network environment and configuration requirements, rather than always following a fixed startup process, which helps to maintain efficient operation in a changing network environment, increases the system's compatibility, and can adapt to different network configurations and protocol standards.

[0090] As an optional implementation manner, after traversing the network protocols supported by the server and obtaining the traversal result, the method further includes at least one of the following: when the traversal result indicates that there is a second network protocol with a priority higher than the target network protocol and there is no second startup configuration information set through the second network protocol, determining whether the target startup configuration information is stored in the baseboard management controller; when the traversal result indicates that there is no network protocol with a priority higher than the target network protocol, determining whether the target startup configuration information is stored in the baseboard management controller.

[0091] Optionally, in the embodiments of the present application, the second network protocol may be any protocol supported by the server and with a higher priority in the priority ranking, such as the Redfish protocol, SMASH, etc. Through the first network protocol, the hardware of the server can be managed and monitored.

[0092] Optionally, in the embodiments of the present application, the second startup configuration information may be the relevant startup parameters and settings for setting the startup item configuration through the second network protocol, including the startup item priority order, startup parameters, number of configurations, etc.

[0093] Through the above, by intelligently switching between different protocols, the system's ability to respond to network environment changes is improved, the impact that may be brought about by the failure of a single protocol is reduced, and when the high-priority protocol lacks startup configuration information, the system can automatically check whether there is a backup target startup configuration information to ensure that the system can continue to start and run normally, avoiding startup failures caused by the lack of configuration information, and improving the system's startup success rate and operation stability.

[0094] As an optional implementation manner, before the server starts, the method further includes at least one of the following: when the server is shut down, sending the target startup configuration information from the remote control end to the baseboard management controller; when the server has started, sending the target startup configuration information to the baseboard management controller and triggering the server to restart.

[0095] Optionally, in the embodiments of the present application, in the state where the server is powered off, the remote control terminal can set a one-time PXE boot (i.e., set the target boot configuration information) through the ipmitool.exe chassis bootdev PXE command.

[0096] Optionally, in the embodiments of the present application, when the server is in the default system state, in the operating system environment, a one-time PXE boot can be set through the ipmitool.exe –I lanplus -H XX.XX.XX.XX (BMC IP address) –U BMC username –P BMC password chassis bootdev PXE command.

[0097] Through the above content, by sending the boot configuration information from the remote control terminal, the administrator can configure and manage the server anywhere without physically touching the server, improving the management efficiency, especially for servers in data centers or remote locations; when the server has been started, by sending the configuration information and triggering a restart to quickly update the configuration, the server downtime is reduced. In addition, the administrator can preset the boot configuration and automatically send these configurations at the appropriate time through scripts or management software, greatly reducing the need for manual intervention, reducing the risk of human configuration errors, ensuring that the server starts with the correct configuration, and helping to ensure that the security configuration is in place before the server starts, thereby improving the overall system security.

[0098] As an optional implementation manner, after starting the startup item, the method further includes: obtaining the actual startup order of the startup item; and determining that the startup item starts successfully when the actual startup order of the startup item is consistent with the startup item priority order used when starting the startup item.

[0099] Optionally, in the embodiments of the present application, to obtain the actual startup order of the startup item, after the server starts, tools in the current running environment (such as SCE, etc.) can be used to read the order of the startup item device group of the server. Specifically, these tools can scan and identify each service and device that is starting in the current system and record them in the order of their startup.

[0100] Through the above content, an accurate startup item order list can be obtained, and it is ensured that key services start in the expected order to maintain the stability and efficiency of the system, which is of great significance for system optimization, fault troubleshooting, and improving the overall performance.

[0101] As an optional implementation, when it is determined that the target startup configuration information of the startup item of the server is stored in the baseboard management controller, the above method further includes: when the baseboard management controller determines that the duration for which the target startup configuration information is stored in the baseboard management controller is less than or equal to a preset duration, continue to store the target startup configuration information; when the baseboard management controller determines that the duration for which the target startup configuration information is stored in the baseboard management controller is greater than the preset duration, clear the target startup configuration information.

[0102] As an optional implementation, Figure 3 For the system interaction schematic diagram according to the embodiment of the present application, as Figure 3 shown, mainly includes:

[0103] Server: This is the entire hardware platform, including hardware components such as a central processing unit (CPU), memory, storage devices, network interfaces, etc., and a firmware system (such as BIOS and BMC) for managing and starting these hardware. The startup process of the server is mainly controlled by the BIOS, and its management function is mainly implemented through the BMC.

[0104] BIOS: BIOS is the initialization and self-check program of the server hardware and is also the bridge between the operating system and the hardware. When the server starts up, the BIOS is responsible for the initialization of the hardware, setting the startup order, and performing operations such as the Pre-boot Execution Environment (PXE). The BIOS can also communicate with the BMC through the IPMI protocol to dynamically adjust the startup item order.

[0105] BMC: BMC is an independent management controller on the server for remotely monitoring and managing the server. It receives commands from the remote control end through the IPMI protocol, such as setting a one-time PXE startup. The BMC can store these commands and transmit the adjustment information of the startup item order to the BIOS through the IPMI protocol when the server starts up. Another important function of the BMC is timing. If the BIOS does not obtain the adjustment information of the startup item order within 3 minutes after receiving the command, the BMC will automatically clear this information.

[0106] As an optional implementation, Figure 4 For the flowchart of the PXE startup setting according to the embodiment of the present application, as Figure 4 shown, the specific process is as follows:

[0107] Step S401, when the server is in the shutdown state, the remote control terminal sets the PXE one-time startup through the IPMI command. The format of the IPMI command is as follows: ipmitool.exe chassis bootdev PXE; or when the server boots through the system disk and enters the system state, the PXE one-time startup is set through the IPMI command in the system. The format of the IPMI command is as follows: ipmitool.exe –I lanplus -H XX.XX.XX.XX (bmc IP address) –U BMC user name –P BMC password chassis bootdev PXE. The current set group's default startup order (i.e., the default priority order) is the storage device group, the network card device group, the CD / DVD-ROM device group, and the other device group;

[0108] Step S402, after the one-time IPMI command PXE startup is set under the system or the remote control terminal, after receiving the command, the BMC terminal stores the one-time PXE startup command (i.e., the target startup configuration information) in the NVRAM or EEPROM of the BMC for recording. At the same time, the BMC terminal starts automatic timing. When the time counted by the BMC terminal exceeds 3 minutes (i.e., the preset duration), the target startup configuration information will be erased regardless of whether the BIOS has started or not; if the BIOS obtains the target startup configuration information through the IPMI protocol between the BIOS and the BMC within 3 minutes, and the BMC receives the response signal and the time does not exceed 3 minutes, the BMC will also automatically clear the startup setting information record; at this time, the BIOS can query whether the parameters of the one-time PXE startup (i.e., the target configuration information) are effectively set through the IPMI command. The format of the IPMI command is as follows:

[0109] Remote control terminal command: ipmitool.exe chassis bootparam get 5;

[0110] Command under the system: ipmitool.exe –I lanplus -H XX.XX.XX.XX (bmc IP address) –U BMC user name –P BMC password chassis bootparam get 5;

[0111] Step S403, after the setting in Step S401 is completed, the server is restarted through the BMC web or the IPMI command. The command format is as follows: ipmitool.exe–I lanplus -H XX.XX.XX.XX (bmc IP address)–U BMC user name–P BMC password power cycle, or the server is restarted by pressing the physical power button of the server;

[0112] Step S404: When the server starts up, install the IPMI command protocol (i.e., the target network protocol) during the DXE phase of the BIOS and determine whether the protocol is installed successfully. If the installation fails, start the boot items in the default priority order. If the installation is successful, check whether the Redfish protocol is supported (i.e., traverse the network protocols supported by the server). If the Redfish protocol (i.e., the third network protocol) is not supported, continue to execute Step S405. If the Redfish protocol (i.e., the first network protocol or the second network protocol) is supported, determine whether there is a setting to modify the boot item order using the Redfish protocol. If there is no setting to modify the boot item order using the Redfish protocol (i.e., the second priority order), continue to execute Step S405. If there is a setting to modify the boot item order using the Redfish protocol (i.e., the first priority order), start with the boot item priority order set by the Redfish protocol (i.e., the first priority order).

[0113] Step S405: The BIOS reads the response data of the IPMI boot item settings returned by the BMC end through the IPMI protocol and judges the response data. Judge whether the data in the response data is 0 or whether Bit0 in the response data is set to 1 (i.e., whether the values of all bits in the response data are the first value, or whether the value of the least significant bit in the response data is the second value). If the data is 0 or Bit0 in the response data is set to 1 (i.e., the values of all bits in the response data are the first value, or the value of the least significant bit in the response data is the second value), it is confirmed that the BMC end has set the IPMI boot item order (i.e., the target priority order), and continue to execute Step S406. Among them, Bit0 represents the setting of BIOS startup or Post startup. If the data is not 0 and Bit0 in the response data is set to 0, it is considered that the BMC end does not have an IPMI command to set the boot item order (i.e., the target priority order), and start the boot items in the default priority order.

[0114] Step S406: After confirming that the BMC stores the IPMI startup settings (i.e., the target startup configuration information), the BIOS obtains the startup settings and the parameters of the startup method (i.e., the target startup configuration information) set in Step S401 through IPMI protocol commands, and judges whether the startup flag bit is valid. If it is invalid (i.e., the target startup configuration information does not include a valid target priority order, for example, the storage waiting time exceeds the preset duration), the startup item is started according to the default priority order. If it is valid (i.e., the target startup configuration information includes a valid target priority order), it is judged whether the setting times of the startup item (i.e., the target configuration times) are for single startup. If it is not single startup (i.e., the target configuration times are multiple), the current startup item order (i.e., the target priority order) is permanently stored in the NVRAM area of the BIOS (i.e., the target storage area). If it is single startup (i.e., the target configuration times are single), the BIOS startup item order before the BIOS Setup interface is updated (i.e., the default priority order) is obtained and backed up and stored in the NVRAM area (i.e., the target storage area) before the IPMI command of the BIOS. At the same time, the startup variable of the BIOS Setup interface is obtained for setting, that is, the current startup item order (i.e., the target priority order) is updated to the BIOS Setup interface, and the startup item is started according to the target priority order.

[0115] Step S407: After the startup order group is adjusted, the current startup item order starts with the network card set by the IPMI command (i.e., the target startup configuration information) obtained from the BIOS Setup interface as the first startup item. At this time, it enters the PXE operating system. After entering the operating system, use the SCE tool to read the startup item device group order of the current server (i.e., obtain the actual startup order of the startup item). The current startup item device group is the network card device group, the storage device group, the CD / DVD-ROM device group, and the other device group (i.e., the actual startup order of the startup item is the same as the startup item priority order used when starting the startup item), which meets the expectation.

[0116] Step S408, when step S407 is completed and there is no task command input, when a restart command or a power-off and power-on command is set, the server starts normally. In the DXE stage of the BIOS, the BIOS obtains, through a protocol, the boot item order stored and backed up in the NVRAM area of the BIOS and restores and updates it to the boot item order group in the BIOS Setup interface, that is, adjusts it to the boot settings before a one-time PXE boot by setting the IPMI command (i.e., the default priority order), that is, the storage device group, the network card device group, the CD / DVD-ROM device group, the other group, etc. After the restoration is completed, continue to boot into the operating system; after entering the operating system, use the SCE tool to read the boot item device group order of the current server. The current boot item device group is the storage device group, the network card device group, the CD / DVD-ROM device group, and the other device group, which meets the expectation of restoring the original settings.

[0117] The specific interaction swimlane diagram is as Figure 5 shown. Compared with the traditional method of manually entering the BIOS Setup interface to adjust the boot order, the interaction method between the BIOS and the BMC does not require direct physical contact with the server, reducing human errors and providing a more efficient and flexible management method. It not only improves the management level of the server but also brings higher operation efficiency and lower cost overhead to the data center. In addition, by automatically restoring the permanent default settings, it ensures that the server can automatically return to its normal boot process after completing specific operations without additional intervention, which not only improves the management level of the server but also brings higher operation efficiency and lower cost overhead to the data center.

[0118] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.

[0119] In this embodiment, a boot device for the server boot item is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation by hardware, or a combination of software and hardware is also possible and contemplated.

[0120] Figure 6 is a structural block diagram of the boot device for the server boot item according to the embodiment of the present application, as Figure 6As shown in the figure, the device includes: an obtaining module 602, configured to obtain target startup configuration information from a baseboard management controller when the server starts up and it is determined that the target startup configuration information of the startup item of the server is stored in the baseboard management controller. Wherein, when the duration for which the target startup configuration information is stored in the baseboard management controller is less than or equal to a preset duration, the target startup configuration information includes a target priority order with a valid status. When the duration for which the target startup configuration information is stored in the baseboard management controller is greater than the preset duration, the target startup configuration information does not include a target priority order with a valid status; a first startup module 604, configured to start the startup item according to the target priority order when it is determined that the target startup configuration information includes a target priority order with a valid status; a second startup module 606, configured to start the startup item according to the default priority order when it is determined that the target startup configuration information does not include a target priority order with a valid status.

[0121] As an optional implementation manner, the startup device for the server startup item further includes: a first determination module, configured to determine the target configuration times of the target startup configuration information; a processing module, configured to process the target startup configuration information stored in the baseboard management controller according to a target processing manner corresponding to the target configuration times.

[0122] As an optional implementation manner, the processing module includes: a deletion unit, configured to delete the target startup configuration information stored in the baseboard management controller when the target configuration times is single; a storage unit, configured to transfer the target startup configuration information stored in the baseboard management controller to a target storage area for storage when the target configuration times is multiple, so as to update the default priority order to the target priority order.

[0123] As an optional implementation manner, the startup device for the server startup item further includes: a receiving module, configured to receive response data returned by the baseboard management controller, where the response data is used to indicate whether the target startup configuration information is stored in the baseboard management controller; a second determination module, configured to determine that the target startup configuration information is stored in the baseboard management controller when it is determined that the value of a target bit included in the response data is a target value.

[0124] As an optional implementation manner, the second determination module includes: a first determination unit, configured to determine that the target startup configuration information is stored in the baseboard management controller when the values of all bits of the response data are a first value, or the value of the least significant bit of the response data is a second value.

[0125] As an optional implementation manner, the starting device of the server startup item further includes: an installation module, configured to obtain and install a target network protocol for communicating with a baseboard management controller; a third determination module, configured to determine that target startup configuration information is stored in the baseboard management controller when it is determined that the target network protocol is successfully installed.

[0126] As an optional implementation manner, the third determination module further includes: a startup unit, configured to start the startup item in a default priority order when it is determined that the installation of the target network protocol fails.

[0127] As an optional implementation manner, the starting device of the server startup item further includes: a traversal module, configured to traverse the network protocols supported by the server when it is determined that the target network protocol is successfully installed, and obtain a traversal result; a third startup module, configured to start the startup item in the first priority order specified in the first startup configuration information when the traversal result indicates that there is a first network protocol with a priority higher than that of the target network protocol and there is first startup configuration information set through the first network protocol.

[0128] As an optional implementation manner, the traversal module further includes: a second determination unit, configured to determine whether target startup configuration information is stored in the baseboard management controller when the traversal result indicates that there is a second network protocol with a priority higher than that of the target network protocol and there is no second startup configuration information set through the second network protocol; a third determination unit, configured to determine whether target startup configuration information is stored in the baseboard management controller when the traversal result indicates that there is no network protocol with a priority higher than that of the target network protocol.

[0129] As an optional implementation manner, the remote control end includes: a first sending module, configured to send target startup configuration information to the baseboard management controller when the server is shut down; the starting device of the server startup item further includes: a second sending module, configured to send target startup configuration information to the baseboard management controller and trigger the server to restart when the server has been started.

[0130] As an optional implementation manner, the starting device of the server startup item further includes: a second obtaining module, configured to obtain the actual startup order of the startup item; a fourth determination module, configured to determine that the startup item is successfully started when the actual startup order of the startup item is consistent with the startup item priority order used when starting the startup item.

[0131] As an optional implementation manner, the baseboard management controller includes: a storage module, configured to continue storing the target startup configuration information when it is determined that the duration for which the target startup configuration information is stored in the baseboard management controller is less than or equal to a preset duration; and a clearing module, configured to clear the target startup configuration information when it is determined that the duration for which the target startup configuration information is stored in the baseboard management controller is greater than the preset duration.

[0132] For the description of the features in the corresponding embodiments of the startup device of the server startup item, reference may be made to the relevant description in the corresponding embodiments of the startup method of the server startup item, which will not be elaborated herein one by one.

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

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

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

[0136] An embodiment of the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above embodiments of the startup method of the server startup item.

[0137] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above embodiments of the startup method of the server startup item.

[0138] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered as exceeding the scope of this application.

[0139] The above has introduced in detail a method and device for starting a server startup item provided by this application. Specific examples are used herein to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A method for starting a server startup item, characterized in that: include: When the server is started, and in the case that the baseboard management controller stores the target startup configuration information of the startup item of the server, the target startup configuration information is obtained from the baseboard management controller, wherein, in the case that the time length for which the target startup configuration information is stored in the baseboard management controller is less than or equal to the preset time length, the target startup configuration information includes the target priority sequence with a valid state, and in the case that the time length for which the target startup configuration information is stored in the baseboard management controller is greater than the preset time length, the target startup configuration information does not include the target priority sequence with a valid state; In a case where it is determined that the target startup configuration information includes the target priority sequence in a valid state, starting the startup items according to the target priority sequence; In the case where it is determined that the target startup configuration information does not include the target priority order in a valid state, starting the startup items according to a default priority order; Before determining that the baseboard management controller stores the target startup configuration information of the startup item of the server, the method further includes: When it is determined that the target network protocol for communicating with the baseboard management controller is successfully installed, traversing the network protocols supported by the server to obtain a traversal result; When the traversal result indicates that there is a first network protocol with a higher priority than the target network protocol, and there is first startup configuration information set by the first network protocol, the startup items are started according to the first priority order included in the first startup configuration information.

2. The method for starting a server startup item according to claim 1, characterized in that: In the case where it is determined that the target startup configuration information includes the target priority sequence in a valid state, the method further includes: Determine a target configuration number of the target startup configuration information; The target startup configuration information stored in the baseboard management controller is processed according to a target processing method corresponding to the target configuration number.

3. The method for starting a server startup item according to claim 2, characterized in that: Processing the target startup configuration information stored in the baseboard management controller according to the target processing mode corresponding to the target configuration number includes: In the case where the target configuration number is single, deleting the target startup configuration information stored in the baseboard management controller; In a case where the target configuration times are multiple times, the target startup configuration information stored in the baseboard management controller is transferred to a target storage area for storage, so as to update the default priority order to the target priority order.

4. The method for starting a server startup item according to claim 1, characterized in that: The method further includes: determining that the target startup configuration information is stored in the baseboard management controller in the following manner: Receiving response data returned by the baseboard management controller, wherein the response data is used to indicate whether the target startup configuration information is stored in the baseboard management controller; When it is determined that the value of the target bit included in the response data is the target value, it is determined that the target startup configuration information is stored in the baseboard management controller.

5. The method for starting a server startup item according to claim 4, characterized in that: In the case where it is determined that the value of the target bit included in the response data is the target value, determining that the target startup configuration information is stored in the baseboard management controller includes: When the values ​​of the respective bits of the response data are all the first values, or the value of the least significant bit of the response data is the second value, it is determined that the target startup configuration information is stored in the baseboard management controller.

6. The method for starting a server startup item according to claim 4, characterized in that: Before determining that the baseboard management controller stores the target startup configuration information of the startup item of the server, the method further includes: acquiring and installing the target network protocol; Determining that the target startup configuration information is stored in the baseboard management controller includes: when it is determined that the target network protocol is successfully installed, determining that the target startup configuration information is stored in the baseboard management controller.

7. The method for starting a server startup item according to claim 6, characterized in that: After obtaining and installing the target network protocol for communicating with the baseboard management controller, further comprising: In the case where it is determined that the target network protocol fails to be installed, the startup items are started according to the default priority order.

8. The method for starting a server startup item according to claim 1, characterized in that: After traversing the network protocols supported by the server and obtaining the traversal results, the method further includes at least one of the following: In a case where the traversal result indicates that there is a second network protocol with a higher priority than the target network protocol, and there is no second startup configuration information set by the second network protocol, determining whether the target startup configuration information is stored in the baseboard management controller; When the traversal result indicates that there is no network protocol with a higher priority than the target network protocol, it is determined whether the target startup configuration information is stored in the baseboard management controller.

9. The method for starting a server startup item according to claim 1, characterized in that: Before the server is started, the method further includes at least one of the following: When the server is shut down, the remote control terminal sends the target startup configuration information to the baseboard management controller; When the server is started, the target startup configuration information is sent to the baseboard management controller, and the server is triggered to restart.

10. The method for starting a server startup item according to claim 1, characterized in that: After starting the startup item, the method further includes: Obtaining the actual startup order of the startup items; When the actual startup order of the startup items is consistent with the startup item priority order adopted when starting the startup items, it is determined that the startup items are successfully started.

11. The method for starting a server startup item according to claim 1, characterized in that: In the case where it is determined that the baseboard management controller stores the target startup configuration information of the startup item of the server, the method further includes: When the baseboard management controller determines that the time length for which the target startup configuration information is stored in the baseboard management controller is less than or equal to the preset time length, the baseboard management controller continues to store the target startup configuration information; The baseboard management controller clears the target startup configuration information when it is determined that the storage time length of the target startup configuration information in the baseboard management controller is greater than the preset time length.

12. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for starting a server startup item according to any one of claims 1 to 11 when executing the computer program.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for starting a server startup item according to any one of claims 1 to 11.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for starting a server startup item according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • System starting method and device based on BMC and BIOS and medium

    CN114924802A