Startup item processing method and device, equipment and medium

By obtaining and processing the startup item list in the BIOS initialization stage, detecting the network card generation startup item function and preset collection, and generating a personalized target startup item list, it solves the problem that management network card cannot be identified first, and improves system operation and maintenance efficiency.

CN120447981APending Publication Date: 2025-08-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510618939.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

During the BIOS initialization stage, the management network card startup items in multiple network cards of the server cannot be identified first, resulting in the inability to PXE boot for the specified network cards, affecting the system operation and maintenance efficiency.

Method used

By obtaining the initial startup item list, detecting the network card generation startup item function status and preset startup item set, processing it based on the device information of the target startup item, and generating a personalized target startup item list to ensure that the management network card is preferred.

Benefits of technology

It realizes personalized dynamic management of startup items during the BIOS initialization stage, improves system operation and maintenance capabilities, and meets the diverse needs of users and project scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120447981A_ABST
    Figure CN120447981A_ABST
Patent Text Reader

Abstract

The invention discloses a starting item processing method and device, equipment and a medium, and relates to the technical field of basic input and output systems. In response to starting operation of a user, an initial starting item list is obtained; when it is detected that the starting item generation function of the network card is in a forbidden state, and / or at least one initial starting item in the initial starting item list belongs to a preset starting item set, determining equipment information corresponding to the target starting item; according to the equipment information corresponding to the target starting item, processing the target starting item to obtain a processing result; and according to the processing result, generating a target starting item list. In the embodiment of the invention, a network card startup item generation function and a preset startup item set are introduced to perform personalized configuration management on startup items, so that effective PXE guidance of specified network card startup items can be realized according to user requirements or project scenes and the like, and the system operation and maintenance capability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of basic input and output systems, and in particular to a startup item processing method, apparatus, device, and medium. Background Art

[0002] The Basic Input / Output System (BIOS) is the key interface between computer hardware and the operating system. It is responsible for hardware initialization and self-testing when the computer starts, and provides low-level hardware control functions. The Preboot eXecution Environment (PXE) is a network boot technology that uses a network protocol that allows the client to directly boot the computer by obtaining the required boot files from the network. In related technologies, as long as the network card is connected to the network cable and has a PXE environment, the client can successfully enter the PXE environment for management operations. However, with the advancement of technology, the server enters the BIOS initialization phase after startup. Most of the server's multiple network cards are used for data transmission and network communication, and there are fewer boot items for network cards used for management operations. Due to the limitations and symmetry of server design, it is impossible to prioritize the identification of management network card boot items. In other words, it is impossible to perform PXE boot for a specific boot item. Therefore, how to perform personalized dynamic management of boot items during the BIOS initialization phase has become an urgent problem that needs to be solved. Summary of the Invention

[0003] The present application provides a method, apparatus, device, and medium for processing startup items to at least solve the problem of how to perform personalized dynamic management of startup items during the BIOS initialization phase.

[0004] The present application provides a startup item processing method, comprising: in response to a user's startup operation, obtaining an initial startup item list, wherein the initial startup item list stores multiple initial startup items;

[0005] When it is detected that the network card's startup item generation function is disabled, and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, determining device information corresponding to a target startup item, where the target startup item is any one of the multiple initial startup items;

[0006] Process the target startup item according to the device information corresponding to the target startup item to obtain a processing result;

[0007] A target startup item list is generated according to the processing result. The target startup item list is obtained by processing at least one startup item in the initial startup item list.

[0008] The present application also provides a startup item processing device, comprising: an acquisition module, configured to acquire an initial startup item list in response to a user's startup operation, wherein the initial startup item list stores a plurality of initial startup items;

[0009] a processing module, configured to determine device information corresponding to a target startup item when detecting that a network card startup item generation function is disabled and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, where the target startup item is any one of the multiple initial startup items;

[0010] The processing module is further used to process the target startup item according to the device information corresponding to the target startup item to obtain a processing result;

[0011] The generating module is configured to generate a target startup item list according to the processing result, where the target startup item list is obtained by processing at least one startup item in the initial startup item list.

[0012] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned startup item processing methods when executing the computer program.

[0013] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned startup item processing methods are implemented.

[0014] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned startup item processing methods when executed by a processor.

[0015] Through this application, in response to the user's startup operation, an initial startup item list is obtained, and multiple initial startup items are stored in the initial startup item list; when it is detected that the network card startup item generation function is in a disabled state, and / or there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set, the device information corresponding to the target startup item is determined, and the target startup item is any one of the multiple initial startup items; according to the device information corresponding to the target startup item, the target startup item is processed to obtain a processing result; according to the processing result, a target startup item list is generated, and the target startup item list is obtained after processing at least one startup item in the initial startup item list. In this solution, the network card startup item generation function and the preset startup item set are introduced to perform personalized configuration management on the startup items. If the network card startup item generation function is in a disabled state, and / or there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set, it can be indicated that the current system is disabled for the target startup item, and then it can be processed according to the device information of the target startup item. In this way, according to user needs or project scenarios, effective PXE booting of the specified network card startup item can be achieved, thereby improving the system operation and maintenance capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A process for processing a startup item provided in an embodiment of the present application Figure 1 ;

[0018] Figure 2 A hardware interaction diagram of a startup item processing method provided in an embodiment of the present application;

[0019] Figure 3 A process for processing a startup item provided in an embodiment of the present application Figure 2 ;

[0020] Figure 4 A process for processing a startup item provided in an embodiment of the present application Figure 3 ;

[0021] Figure 5 A structural diagram of a startup item processing device provided in an embodiment of the present application;

[0022] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

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

[0025] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0026] The BIOS is the key interface between computer hardware and the operating system. It is responsible for hardware initialization and self-testing when the computer starts, and provides low-level hardware control functions. When the computer is turned on, the BIOS will run first, initializing core hardware such as the Central Processing Unit (CPU), memory, hard disk, and graphics card to ensure that they are all in an operational state. The BIOS can detect whether the hardware is working properly. If a fault is found (such as memory corruption), it can prompt the user through an alarm or error code. The user can also adjust the boot device priority (such as booting from the hard disk, USB flash drive, or optical drive) through the BIOS setup interface to install the system or repair faults. The BIOS can provide advanced settings such as CPU overload, memory timing, and fan speed to optimize system performance.

[0027] After the computer is powered on and started, the program in the BIOS chip will automatically execute to complete hardware detection and initialization; then, according to the preset startup sequence, the BIOS will transfer control to the boot sector of the specified storage device (such as a hard disk) to start the operating system; at the same time, while the operating system is running, the BIOS can continue to provide interrupt services (such as keyboard input, disk reading and writing) to ensure the interaction between hardware and software.

[0028] PXE is a network boot technology that allows computers to load an operating system or boot image from a remote server over the network, without relying on boot media on local storage devices (such as hard drives or USB drives). When a computer boots, its network interface card (NIC) broadcasts a Dynamic Host Configuration Protocol (DHCP) request to obtain an IP address and other network configuration information. At the same time, the client indicates that it supports PXE booting and includes specific options in the DHCP request that specify the IP address of the Trivial File Transfer Protocol (TFTP) server and the name of the boot file.

[0029] The Baseboard Management Controller (BMC) is a core component in server hardware management. A standalone microcontroller, typically integrated into the server motherboard, BMCs are responsible for remote server management and monitoring. The BMC has its own firmware and operating system, independent of the server's operating system and applications. This allows it to function even if the server's operating system crashes or fails to boot. It typically supports standardized management protocols such as the Intelligent Platform Management Interface (IPMI), facilitating integration with other management software and systems. It also provides a variety of security mechanisms, such as user authentication, access control, and data encryption, to ensure secure and reliable server management.

[0030] BMC can monitor the server's hardware status in real time, including temperature, fan speed, voltage, power status, etc.; it also provides remote power on / off, restart, and access to BIOS / UEFI settings, allowing administrators to operate the server from a remote location. In addition, it will also record important events and fault information during server operation to facilitate administrators' troubleshooting and analysis. At the same time, when the server experiences an abnormality or failure, the BMC can promptly send an alarm message to the administrator.

[0031] Among related technologies, PXE supports multiple operating systems, including Windows, Linux, and Mac OS X. Its main application scenarios can include automatic system installation, system maintenance, system disaster recovery, system remote update, virtualization deployment, network startup, etc. It has obvious advantages in various application scenarios, including reducing installation time, saving maintenance costs, security, reliability, timely updates to improve update efficiency, reducing deployment time, improving deployment efficiency, and improving system startup efficiency. Because of these many advantages, PXE boot has become more and more popular and is widely used on servers.

[0032] Early server customers had relatively limited application scenarios, and the shipping configurations were relatively simple. As long as the network card was connected to a network cable and a PXE environment was available, customers could successfully access the PXE environment for management operations. At the time, there were no strict requirements for the time required to enter PXE, which network card to use, or the order in which network cards were identified by the operating system.

[0033] However, with technological advancements and increasingly diverse market demands, shipping configurations are constantly expanding, and customers are increasingly demanding more detailed PXE boot requirements. Specifically, customers not only require PXE boot to complete within a specific timeframe, but also want to enter the PXE environment from a specific network card (NIC) to enable unified management of all machines. Today, servers are typically equipped with multiple NICs, most of which primarily provide high-performance data transmission, low-latency communication, and flexible network access to support efficient application operation. However, the number of NICs actually used for management boot options is relatively small. Furthermore, due to the limitations and symmetry of server design, the management NIC is often located in the middle PE port of the CPU, while the front port is connected to the switch. As a result, during computer boot, the NIC boot option under the switch is prioritized, while the management NIC boot option is not. This can lead to slow boot times, inability to PXE boot the specified NIC boot option, and difficulties with customer operations and maintenance.

[0034] To address these issues and meet diverse customer needs, current approaches typically include hardware upgrades, customizing the BIOS to disable PXE functionality for other network card boot options, and adjusting the boot order. However, these methods are labor-intensive and resource-intensive and significantly increase the difficulty of subsequent maintenance and version upgrades. Therefore, dynamic and personalized management of boot options during the BIOS initialization phase has become a pressing issue.

[0035] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0036] like Figure 1 As shown, Figure 1 This is a flowchart of a startup item processing method provided in an embodiment of the present application. The method may include the following steps:

[0037] 101. In response to a startup operation by a user, obtain an initial startup item list.

[0038] It should be noted that startup items refer to programs or services that run automatically when the computer starts. Specifically, they can include some services necessary for the operation of the operating system, such as network services, printing services, security services, etc.; they can also include startup items that are added by default when some applications are installed, so that they can run automatically when the system starts, such as instant messaging software, antivirus software, cloud storage services, etc.; in addition, some programs will set scheduled tasks to run automatically at specific times or conditions, and these tasks may also appear as startup items.

[0039] In an embodiment of the present application, when a user starts a computer or server, the BIOS will be started synchronously and enter the BIOS initialization phase. At this time, an initial startup item list can be obtained, and the initial startup item list stores multiple initial startup items.

[0040] In some embodiments, the initial startup item can be understood as a startup item automatically generated when the computer or server starts. The method of obtaining the initial startup item list can specifically include: generating through a startup item list generation module, and the startup item list generation module can be a FilterBootDeviceList module. The FilterBootDeviceList module can be used to generate a BootDeviceList (i.e., the initial startup item list) for storing all generated initial startup items.

[0041] In some embodiments, a PxeBootAdjust module may be added and connected to the back of the FilterBootDeviceList module to adjust the PXE boot items of the network card.

[0042] 102. When it is detected that the network card startup item generation function is in a disabled state, and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, device information corresponding to the target startup item is determined.

[0043] It should be noted that the network card generation startup item function can be a customized function option, and the network card generation startup item function can be in an enabled state or a disabled state. This function can control whether the network card can prioritize the generation of startup items under the SW and whether to enter the PXE environment. The preset startup item set can be a customized startup item set, specifically including multiple preset startup items. The preset startup item can be a pre-configured startup item that is not allowed to be prioritized. In other words, the preset startup item set can also be understood as a startup item blacklist list, and the startup items in the preset startup item set are all startup items that cannot be prioritized.

[0044] In an embodiment of the present application, the current status of the network card's startup item generation function can be detected. If the network card's startup item generation function is in a disabled state, then it is necessary to process the target startup item based on the device information corresponding to the target startup item in the initial startup item list. The target startup item can be any one of multiple initial startup items.

[0045] In an embodiment of the present application, the initial startup items in the initial startup item list can be compared with the preset startup item set. If there is at least one initial startup item that belongs to the preset startup item set, it means that there are startup items in the initial startup item list that are not allowed to be started. In this case, the target startup item also needs to be processed according to the device information corresponding to the target startup item in the initial startup item list.

[0046] In an embodiment of the present application, the device information corresponding to the target startup item may specifically include: Base Class information, Subclass information, Bus information, Device information, Function information, the device's DID, VID, SSID, SVID, etc., wherein DID information may refer to the device's ID (Device ID), VID may refer to the vendor ID (Vendor ID), SSID may refer to the system vendor identification code (Subsystem-Vendor Identification), and SVID information may refer to the secondary encoding (Subsystem-Identification) of the device authorized to be manufactured.

[0047] In some embodiments, the status judgment of the network card generating startup item function and the judgment of whether there is at least one initial startup item in the initial startup item list belonging to the preset startup item set may both be executed or one of them may be executed, that is, an and / or relationship, which is not specifically limited in the embodiments of the present application.

[0048] 103. Process the target startup item according to the device information corresponding to the target startup item to obtain a processing result.

[0049] In an embodiment of the present application, it is possible to determine whether the target startup item is a startup item that is not allowed to be started first based on the device information corresponding to the target startup item, so that the target startup item is processed accordingly to obtain a processing result. The processing may specifically include: allowing operation, pausing operation, deleting, etc. The processing result can indicate whether the processing of the target startup item is completed.

[0050] 104. Generate a target startup item list based on the processing results.

[0051] In an embodiment of the present application, after the target startup item is processed, the initial startup item list can be updated according to the processing result. If there is a deleted target startup item, the information of the target startup item can be synchronously deleted in the initial startup item list to obtain a target startup item list. The target startup item list is obtained after processing at least one startup item in the initial startup item list.

[0052] It should be noted that the processing of the target startup item in this embodiment can be understood as a cyclic process, which requires traversing each initial startup item in the initial startup item list. That is, for each initial startup item, the corresponding device information must be determined and processed according to the device information.

[0053] In an embodiment of the present application, in response to a user's startup operation, an initial startup item list is obtained, and multiple initial startup items are stored in the initial startup item list; when it is detected that the network card startup item generation function is in a disabled state, and / or there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set, the device information corresponding to the target startup item is determined, and the target startup item is any one of the multiple initial startup items; according to the device information corresponding to the target startup item, the target startup item is processed to obtain a processing result; according to the processing result, a target startup item list is generated, and the target startup item list is obtained after processing at least one startup item in the initial startup item list. In this solution, the network card startup item generation function and the preset startup item set are introduced to perform personalized configuration management on the startup items. If the network card startup item generation function is in a disabled state, and / or there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set, it can be indicated that the current system is disabled for the target startup item, then it can be processed according to the device information of the target startup item. In this way, according to user needs or project scenarios, effective PXE booting of the specified network card startup item can be achieved, thereby improving the system operation and maintenance capabilities.

[0054] In some embodiments, as Figure 2 The following is a hardware interaction diagram of the boot item processing method provided by an embodiment of the present application. It can be seen that the BMC and BIOS can interact through the IPMI interface and the RESTful API interface. Furthermore, the BMC can also transmit information through the communication medium and communication interface layer, the IPMI protocol layer, and the IPMI management software. The BMC can register an IPMI command according to the protocol specification to determine whether the setting is successful, and use Redfish to interact with BIOS options.

[0055] In some embodiments, the prerequisite for processing the target startup item may be that the network card's startup item generation function is in a disabled state, or that there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set, or that the network card's startup item generation function is in a disabled state and there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set. This will be described in detail below through different embodiments.

[0056] like Figure 3 As shown, Figure 3 Another flowchart of a method for processing startup items provided in an embodiment of the present application is provided. In this embodiment, a process for processing a target startup item when the network card's startup item generation function is disabled is described. The method may include the following steps:

[0057] 301. In response to a user's startup operation, obtain an initial startup item list.

[0058] In the embodiment of the present application, for the description of step 301, please refer to the detailed description of step 101 in the above embodiment, and the embodiment of the present application will not be repeated.

[0059] 302. Obtain the current value of the startup item option generated by the network card through a preset function.

[0060] In an embodiment of the present application, the status of the network card generation startup item function can be represented by the value of the network card generation startup item option (SW PXE Support option). When the value of the network card generation startup item option is 0, it indicates that the network card generation startup item function is in a disabled state. When the value of the network card generation startup item option is 1, it indicates that the network card generation startup item function is in an enabled state. Therefore, in order to determine the current status of the network card generation startup item function, the current value of the network card generation startup item option can be obtained first. The acquisition method may include obtaining it through a preset function, wherein the preset function can be a getVariable function.

[0061] In some embodiments, the current value of the network card generated startup item option can be obtained from NVRAM through the getVariable function.

[0062] 303. Assign the current value to the first variable.

[0063] In an embodiment of the present application, the first variable may be a newly added UINT8 variable SwPxeSupport. After determining the current value of the startup item option generated by the network card, the current value may be assigned to the first variable SwPxeSupport.

[0064] 304. Determine the current state of the network card's startup item generation function according to the value of the first variable.

[0065] In an embodiment of the present application, the current state of the network card generating startup item function may specifically include an on state or a disabled state. When in the on state, the value of the network card generating startup item option is 1, that is, the value of the first variable is 1; when in the disabled state, the value of the network card generating startup item option is 0, that is, the value of the first variable is 0. Therefore, the current state of the network card generating startup item function can be determined based on the value of the first variable.

[0066] In this solution, by adding a new network card startup item generation function, it is possible to avoid the situation where the network card under the SW is preferentially identified during the startup process, while the management network card cannot be preferentially identified. In addition, by introducing variables to represent the current status of the network card startup item generation function, the function status can be adjusted according to real-time needs, thereby realizing personalized configuration of the network card startup item.

[0067] 305. When it is detected that the network card startup item generation function is in a disabled state, determine device information corresponding to the target startup item.

[0068] In an embodiment of the present application, if the value of the first variable is 0, it means that the network card startup item generation function is in a disabled state, then the device information corresponding to the target startup item can be determined and subsequent processing can be performed; if the value of the first variable is 1, it means that the current environment does not require restrictions on the network card startup item, then no subsequent operations are required.

[0069] 306. Determine the device type of the target startup item based on the device information.

[0070] In an embodiment of the present application, the device types corresponding to the target startup items may include many types, such as: network card, network disk, system disk, hard disk, U disk, CD, etc. In an embodiment of the present application, only the startup items under the network card are processed. Therefore, the device type can be determined based on the device information, so that the target startup items whose device type is the network card can be filtered out.

[0071] In some embodiments, the device type of the target startup item may be determined based on the Base Class and Subclass information in the device information.

[0072] 307. When the device type is a network card, determine the device slot information corresponding to the target startup item.

[0073] In an embodiment of the present application, if it is determined that the device type is a network card, the device slot information can be further judged. The network card is inserted into the card slot. Different scenarios or project requirements are different, and there may be certain restrictions on the slot. Therefore, the device slot information can be determined based on the device information, so that the target startup items whose device slot information meets the conditions can be filtered out.

[0074] In some embodiments, the device slot information (Slotnumber information) of the corresponding device can be searched from the PcieInfo information according to the Bus, Device, and Function information in the device information. The PcieInfo information can be information pre-generated by the PcieInfo module.

[0075] In some embodiments, if the device type is not a network card, it means that the current target startup item is not a startup item that needs to be restricted, so there is no need to process the target startup item and the process ends directly.

[0076] 308. When the device slot information is within a preset range, the target startup item is processed to obtain a processing result.

[0077] In an embodiment of the present application, the preset range can be a slot range obtained in various ways such as scenario requirements, project requirements, or user customization. If the device slot information is within the preset range, it means that the target startup item is a startup item that meets the requirements and needs to be restricted to startup. Therefore, the target startup item can be processed to obtain a processing result.

[0078] In some embodiments, if the device slot information is not within a preset range, it means that the current target startup item is not a startup item that needs to be restricted, so there is no need to process the target startup item and the process ends directly.

[0079] In some embodiments, through the above process, the target startup item whose device type is a network card and whose device slot information is within a preset range can be filtered out from the initial startup item list. At this time, the processing method for the target startup item is deletion. Specifically, the target startup item in the initial startup item list can be deleted through a preset deletion function to obtain a deletion feedback result.

[0080] It should be noted that the preset deletion function can be a DeleteBootDevice function, which deletes the target boot item and obtains a deletion feedback result. The deletion feedback result can also indicate whether the deletion is successful. At the same time, the information of the target boot item in the initial boot item list can also be deleted, thereby updating the initial boot item list to obtain the target boot item list.

[0081] In this solution, the startup items are screened, and the network card startup items that need to be restricted are selected through the device type and device slot information. This can avoid the situation where the network card under SW is preferentially identified during the boot process, while the management network card cannot be preferentially identified. In addition, selecting targeted startup items for processing can effectively realize the dynamic shutdown of the network card startup items under SW, achieving the effect of personalized configuration of startup items.

[0082] 309. Generate a target startup item list based on the processing result.

[0083] In the embodiment of the present application, for the description of step 309 , please refer to the detailed description of step 104 in the above embodiment, which will not be repeated in the embodiment of the present application.

[0084] In some embodiments, the network card generation startup item function can be a pre-customized function, and the status of the network card generation startup item function can also be adjusted automatically. Specifically, you can enter the BIOS SETUP path in advance, Advanced->Miscellaneous Configuration, and add a new network card generation startup item option (SW PXE Support). The optional values are Disable (0) and Enable (1), and the mapstring is SwPxeSupport.

[0085] The default value of the network card generation startup item option is Enable. Disable turns off the network card generation startup item function under SW, prohibiting entry into the PXE environment from the network card under SW. Enable turns on the network card generation startup item function under SW, and PXE booting can be performed when accessing the network environment with a network cable.

[0086] In some embodiments, the value of the boot option generated by the network card can be modified, specifically through the BMC segment. The modification method may include:

[0087] (1) The customer sets the option value according to the needs, enters BIOS SETUP, finds Advanced->Miscellaneous Configuration->SW PXE Support, manually modifies the option, saves the settings and reboots to take effect.

[0088] (2) Enter the OS or Shell, use the SCE tool, and modify the option value to 0 or 1 through mapstring SwPxeSupport. Restart the system for the change to take effect.

[0089] (3) Use the redfish tool to modify the options and restart the system for the changes to take effect.

[0090] In an embodiment of the present application, in order to adjust the current state of the network card generation startup item function, it can specifically include: receiving a network card generation startup item function adjustment command; parsing the network card generation startup item function adjustment command to obtain a parsing result; adjusting the state of the network card generation startup item function according to the parsing result, and synchronously recording the number of state adjustments.

[0091] It should be noted that the network card generation boot item function adjustment command can be a command generated by the user after configuration on the page, or it can be generated by a system tool, or it can be an OEM IPMI command developed by the BMC. This command is used to set the current value and default value of the SW PXE Support option, without limitation. After parsing the command, the state of the network card generation boot item function that needs to be adjusted can be obtained, and then the state of the network card generation boot item function can be adjusted. At the same time, the number of state adjustments can be recorded, the option change flag is set to 1, the machine is restarted, the BIOS judgment flag is set to 1, and the option synchronization is performed from the BMC synchronization information after the change.

[0092] In this solution, the numerical configuration of the network card startup item options can be pre-configured on the BMC side and synchronized to the BIOS side to implement the processing of the startup items. It can also be configured in a variety of ways. This can fully take into account customer needs, project needs, or system needs, making the platform more compatible, better addressing customer needs, and realizing personalized configuration of network card startup items.

[0093] like Figure 4 As shown, Figure 4 Another flowchart of a method for processing startup items provided in an embodiment of the present application is provided. In this embodiment, a process for processing a target startup item when at least one initial startup item in the initial startup item list belongs to a preset startup item set is described. The method may include the following steps:

[0094] 401. In response to a user's startup operation, obtain an initial startup item list.

[0095] In the embodiment of the present application, for the description of step 401, please refer to the detailed description of step 101 in the above embodiment, and the embodiment of the present application will not be repeated.

[0096] 402. Obtain a preset startup item set through a preset function.

[0097] In an embodiment of the present application, the preset startup item set may be pre-set and stored, and thus the preset startup item set may be obtained through a preset function, which may be a getVariable function.

[0098] In some embodiments, the preset startup item set stored in NVRAM can be obtained through the getVariable function.

[0099] 403. Assign the preset startup item set to the second variable.

[0100] In an embodiment of the present application, after obtaining the preset startup item set, since the list needs to be compared later, the preset startup item set can be assigned to a second variable, which can be a newly added variable SW_PXE_MESSAGE*SwPxeList. The second variable can include at least one structure for recording startup item information.

[0101] Each structure can record the information of a startup item in the preset startup item set, and the structure can be expressed as typedef struct{UINT16 Did;

[0102] UINT16 Vid;

[0103] UINT16 Ssid;

[0104] UINT16 Svid

[0105] }SW_PXE_MESSAGE.

[0106] 404. Compare the startup item information corresponding to the multiple initial startup items with the second variable respectively to determine the target startup item.

[0107] In an embodiment of the present application, the initial startup item list includes multiple initial startup items. Each initial startup item needs to be compared with the second variable. Specifically, the startup item information can be compared. If there is a successful match, the startup item can be determined as the target startup item, which can be indicated as a startup item to be restricted. The target startup item is the startup item among the multiple initial startup items that successfully matches the second variable.

[0108] In this solution, by adding a preset startup item set to represent the network card startup items that are restricted from startup, it is possible to avoid the situation where the network card under the SW is preferentially identified during the startup process, while the management network card cannot be preferentially identified. In addition, by introducing variables to represent the relevant information of specific startup items in the preset startup item set, the functional status can be adjusted according to real-time needs, thereby realizing personalized configuration of the network card startup items.

[0109] 405 : When it is detected that at least one initial startup item in the initial startup item list belongs to a preset startup item set, device information corresponding to the target startup item is determined.

[0110] 406. Process the target startup item according to the device information corresponding to the target startup item to obtain a processing result.

[0111] In some embodiments, the processing of the target boot item may be a deletion processing. Specifically, a DeleteBootDevice function is executed to delete the information of the target boot item in the initial boot item list, and the boot item list in the NVRAM is updated synchronously.

[0112] 407. Generate a target startup item list based on the processing result.

[0113] In the embodiment of the present application, for the description of steps 405 to 407 , please refer to the detailed description of steps 102 to 104 in the above embodiment, which will not be repeated in the embodiment of the present application.

[0114] In some embodiments, the preset startup item set can be a pre-customized startup item set, which can specifically include: receiving a blacklist startup item to be added and the corresponding device information; performing information verification on the blacklist startup item and the device information to obtain a verification result; when the verification result indicates that the verification is passed, adding the blacklist startup item and the corresponding device information to the blacklist to obtain a startup item blacklist list.

[0115] It should be noted that a new preset startup item setting function has been added under BIOS SETUP. This function includes Add and Delete, and provides a display page to show the preset startup item set that has been set. When the user clicks the Add function, an information input page will pop up to add the device information that needs to be added to the preset startup item set, including the device's DID, VID, SSID, and SVID. After entering, the user can click Confirm. After the information is successfully verified, it is updated to NVRAM and a prompt indicating that the update is successful. Otherwise, a feedback indicating verification failure will be given based on the failure situation. When the user clicks the Delete function, an information input page will pop up to delete the device information that needs to be added to the preset startup item set, including the device's DID, VID, SSID, and SVID. After entering, the user can click Confirm. After the information is successfully verified and the device information is deleted from NVRAM, it is updated to NVRAM and a prompt indicating that the update is successful. Otherwise, a feedback indicating verification failure or the absence of the device will be given based on the failure situation. After the setup is completed, the SETUP interface refreshes the display page based on the information in NVRAM, so that the preset startup item set can be obtained later through the preset function.

[0116] In this solution, the information of the preset startup item set can be configured in advance and synchronized to the BIOS to implement the processing of the startup items. The startup item information in the preset startup item set can also be added or deleted at any time. This can fully take into account customer needs, project needs, or system needs, effectively improve the flexibility of startup item processing, better solve customer needs, and realize personalized configuration of network card startup items.

[0117] In some embodiments, the above two embodiments respectively describe the processing of startup items when the network card's startup item generation function is in a disabled state, and the processing of startup items when there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set. When the network card's startup item generation function is in a disabled state and there is at least one initial startup item in the initial startup item list that belongs to a preset startup item set, the processing of startup items only requires the complete execution of all the steps of the above two embodiments, which will not be repeated in the embodiments of this application.

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

[0119] like Figure 5 As shown, an embodiment of the present application further provides a startup item processing device, which may include: an acquisition module 501, configured to acquire an initial startup item list in response to a user's startup operation, wherein the initial startup item list stores multiple initial startup items;

[0120] Processing module 502 is configured to determine device information corresponding to a target startup item when detecting that a network card startup item generation function is disabled and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, where the target startup item is any one of the multiple initial startup items;

[0121] The processing module 502 is further configured to process the target startup item according to the device information corresponding to the target startup item to obtain a processing result;

[0122] The generating module 503 is configured to generate a target startup item list according to the processing result. The target startup item list is obtained by processing at least one startup item in the initial startup item list.

[0123] In some embodiments, the acquisition module 501 is further configured to acquire the current value of the startup item generated by the network card through a preset function;

[0124] The processing module 502 is further configured to assign the current value to the first variable;

[0125] The processing module 502 is further configured to determine a current state of the network card generating startup item function according to the value of the first variable, where the current state includes an enabled state or a disabled state.

[0126] In some embodiments, the acquisition module 501 is further configured to acquire a preset startup item set through a preset function;

[0127] The processing module 502 is further configured to assign the preset startup item set to a second variable, where the second variable includes at least one structure for recording startup item information;

[0128] The processing module 502 is further configured to compare the startup item information corresponding to the multiple initial startup items with the second variable respectively to determine a target startup item, where the target startup item is a startup item among the multiple initial startup items that successfully matches the second variable.

[0129] In some embodiments, when it is detected that the network card's startup item generation function is in a disabled state, the processing module 502 is specifically configured to determine a device type of the target startup item based on the device information;

[0130] Processing module 502 is specifically configured to determine the device slot information corresponding to the target startup item when the device type is a network card;

[0131] The processing module 502 is specifically configured to process the target startup item and obtain a processing result when the device slot information is within a preset range.

[0132] In some embodiments, the processing module 502 is specifically configured to delete the target startup item in the initial startup item list through a preset deletion function to obtain a deletion feedback result.

[0133] In some embodiments, the acquisition module 501 is further configured to receive a network card-generated startup item function adjustment command;

[0134] The processing module 502 is further configured to parse the startup function adjustment command generated by the network card to obtain a parsing result;

[0135] The processing module 502 is further configured to adjust the state of the network card's startup item generation function according to the analysis result, and simultaneously record the number of state adjustments.

[0136] In some embodiments, the acquisition module 501 is further configured to receive a blacklist startup item to be added and corresponding device information;

[0137] The processing module 502 is further configured to verify the blacklist startup item and the device information to obtain a verification result;

[0138] The processing module 502 is further configured to add the blacklist startup item and the corresponding device information to the blacklist when the verification result indicates that the verification is passed, so as to obtain a startup item blacklist list.

[0139] In the embodiments of the present application, the description of the features in the embodiments corresponding to the startup item processing device can refer to the relevant description of the embodiments corresponding to the startup item processing method, and will not be repeated here.

[0140] like Figure 6As shown, an embodiment of the present application further provides an electronic device, including a memory 601 and a processor 602, wherein the memory 601 stores a computer program, and the processor 602 is configured to run the computer program to execute the steps in any of the above-mentioned startup item processing method embodiments.

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

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

[0143] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned startup item processing method embodiments are implemented.

[0144] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned startup item processing method embodiments.

[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians 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.

[0146] The above is a detailed introduction to the process monitoring of a storage system provided by this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core ideas of this application. It should be pointed out that, for those skilled in the art, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

Claims

1. A startup item processing method, characterized in that: The method comprises: In response to a startup operation by a user, obtaining an initial startup item list, wherein the initial startup item list stores a plurality of initial startup items; When it is detected that the network card's startup item generation function is disabled, and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, determining device information corresponding to a target startup item, where the target startup item is any one of the multiple initial startup items; Processing the target startup item according to the device information corresponding to the target startup item to obtain a processing result; A target startup item list is generated according to the processing result, where the target startup item list is obtained by processing at least one startup item in the initial startup item list.

2. The method according to claim 1, characterized in that When it is detected that the network card's startup item generation function is disabled, and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, before determining the device information corresponding to the target startup item, the method further includes: Get the current value of the network card generated startup option through the preset function; Assigning the current value to a first variable; According to the value of the first variable, a current state of the network card generating a startup item function is determined, where the current state includes an enabled state or a disabled state.

3. The method according to claim 1, characterized in that When it is detected that the network card's startup item generation function is disabled, and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, before determining the device information corresponding to the target startup item, the method further includes: Obtain the preset startup item set through a preset function; Assigning the preset startup item set to a second variable, where the second variable includes at least one structure for recording startup item information; The startup item information corresponding to the multiple initial startup items is respectively compared with the second variable to determine the target startup item, where the target startup item is a startup item among the multiple initial startup items that successfully matches the second variable.

4. The method according to claim 1, wherein When it is detected that the network card's function of generating startup items is in a disabled state, processing the target startup item according to the device information corresponding to the target startup item to obtain a processing result includes: Determining the device type of the target startup item according to the device information; When the device type is a network card, determining the device slot information corresponding to the target startup item; When the device slot information is within a preset range, the target startup item is processed to obtain the processing result.

5. The method according to claim 4, characterized in that The processing of the target startup item according to the device information corresponding to the target startup item to obtain a processing result includes: The target startup item in the initial startup item list is deleted through a preset deletion function to obtain a deletion feedback result.

6. The method according to claim 1, wherein The method further comprises: Receive network card generated startup item function adjustment command; Parsing the startup item function adjustment command generated by the network card to obtain a parsing result; The state of the network card generating startup item function is adjusted according to the analysis result, and the number of state adjustments is simultaneously recorded.

7. The method according to claim 1, characterized in that The method further comprises: Receive the blacklist startup item to be added and the corresponding device information; Performing information verification on the blacklist startup item and the device information to obtain a verification result; When the verification result indicates that the verification is passed, the blacklist startup item and the corresponding device information are added to the blacklist to obtain the startup item blacklist list.

8. A startup item processing device, characterized in that: The device comprises: an acquisition module, configured to acquire an initial startup item list in response to a user's startup operation, wherein the initial startup item list stores a plurality of initial startup items; a processing module, configured to, when detecting that a network card function of generating startup items is disabled and / or at least one initial startup item in the initial startup item list belongs to a preset startup item set, determine device information corresponding to a target startup item, where the target startup item is any one of the multiple initial startup items; The processing module is further configured to process the target startup item according to the device information corresponding to the target startup item to obtain a processing result; A generating module is configured to generate a target startup item list according to the processing result, wherein the target startup item list is obtained by processing at least one startup item in the initial startup item list.

9. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the startup item processing method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the startup item processing method according to any one of claims 1 to 7 are implemented.