A server protection method and device, electronic equipment and storage medium
By shielding the communication link and related hardware modules between the baseboard management controller and the server before upgrading or downgrading, the server anomaly caused by the upgrade or downgrading of the baseboard management controller was resolved, ensuring the stable operation of the server.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2022-06-30
- Publication Date
- 2026-07-31
AI Technical Summary
During upgrades or downgrades, the baseboard management controller can easily cause abnormal server control or loss of monitoring status, leading to abnormal server restarts.
Before upgrading or downgrading the baseboard management controller, shield its communication link with the server and related hardware modules, including the communication link, the communication controller in the baseboard management controller and the watchdog timer in the server, and adjust the disable information through software shielding to avoid abnormal control signals.
This effectively avoids server malfunctions caused by upgrading or downgrading the baseboard management controller, ensuring the normal operation of the server.
Smart Images

Figure CN115129344B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of servers, and in particular to a server protection method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] The Baseboard Management Controller (BMC) is a core component of the server. It communicates with and manages the hardware modules within the server. However, during upgrades or downgrades, the BMC may operate in an unstable state, potentially causing abnormal server control or loss of monitoring, which could lead to unexpected server restarts.
[0003] Therefore, how to ensure the normal operation of the server during the upgrade or downgrade of the baseboard management controller is a technical problem that those skilled in the art must face. Summary of the Invention
[0004] The purpose of this invention is to provide a server protection method, device, electronic device, and computer-readable storage medium that can shield the communication link and related hardware modules between the baseboard management controller and the server, effectively ensuring the normal operation of the server during the upgrade or downgrade of the baseboard management controller.
[0005] To address the aforementioned technical problems, this invention provides a server protection method applied to a server, wherein the server includes a baseboard management controller, and the method includes:
[0006] When it is detected that the baseboard management controller is preparing to perform an upgrade or downgrade operation, the communication link between the baseboard management controller and the server is determined.
[0007] The first hardware module and the second hardware module that communicate with each other through the communication link in the baseboard management controller and the server are respectively identified;
[0008] The communication link, the first hardware module, and the second hardware module are shielded, and when the shielding is completed, the baseboard management controller is controlled to perform the upgrade operation or the downgrade operation.
[0009] Optionally, shielding the communication link includes:
[0010] The process communicating with the server via the communication link is located in the baseboard management controller, and the process is closed.
[0011] Optionally, shielding the communication link includes:
[0012] The data stream sent by the baseboard management controller to the server through the communication link is shielded.
[0013] Optionally, the first hardware module is the communication controller in the baseboard management controller, and the shielding of the first hardware module includes:
[0014] The bit disable information is located in the reset mask register of the communication controller, and the bit disable information is adjusted to the enabled state.
[0015] Optionally, the second hardware module is a watchdog timer in the server, and the step of shielding the second hardware module includes:
[0016] Locate the disabled information for the watchdog timer and enable it.
[0017] Optionally, before determining the communication link between the baseboard management controller and the server, the method further includes:
[0018] Determine whether the server is operating at full capacity;
[0019] If so, proceed to the step of determining the communication link between the baseboard management controller and the server.
[0020] Optionally, after controlling the baseboard management controller to perform the upgrade operation or the downgrade operation, the method further includes:
[0021] When the baseboard management controller detects that it has completed the upgrade or downgrade operation, the shielding of the communication link, the first hardware module, and the second hardware module is removed.
[0022] The present invention also provides a server protection device applied to a server, the server including a baseboard management controller, the device comprising:
[0023] The communication link determination module is used to determine the communication link between the baseboard management controller and the server when it is detected that the baseboard management controller is preparing to perform an upgrade operation or a downgrade operation.
[0024] A hardware module determination module is used to determine the first hardware module and the second hardware module that communicate through the communication link in the baseboard management controller and the server, respectively.
[0025] The shielding module is used to shield the communication link, the first hardware module and the second hardware module, and to control the baseboard management controller to perform the upgrade operation or the downgrade operation when the shielding is completed.
[0026] The present invention also provides an electronic device, comprising:
[0027] Memory, used to store computer programs;
[0028] A processor for implementing the server protection method described above when executing the computer program.
[0029] The present invention also provides a computer-readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the server protection method described above.
[0030] This invention provides a server protection method applied to a server, the server including a baseboard management controller. The method includes: when it is detected that the baseboard management controller is preparing to perform an upgrade operation or a downgrade operation, determining the communication link between the baseboard management controller and the server; determining a first hardware module and a second hardware module in the baseboard management controller and the server that communicate through the communication link; shielding the communication link, the first hardware module, and the second hardware module, and controlling the baseboard management controller to perform the upgrade operation or the downgrade operation when the shielding is completed.
[0031] As can be seen, in this invention, when it is determined that the baseboard management controller is preparing to perform an upgrade or downgrade operation, the communication link between the baseboard management controller and the server can be determined first, as well as the hardware modules communicating through the aforementioned communication link in both the baseboard management controller and the server. This is because the baseboard management controller may transmit abnormal control signals through this communication link during the upgrade or downgrade process, which could lead to server malfunctions. Simultaneously, related hardware modules in the baseboard management controller and the server may have associated control relationships; that is, once the baseboard management controller and the server disconnect communication, these modules may experience abnormal situations such as resets. Therefore, this invention not only shields the communication link between the baseboard management controller and the server but also shields the related hardware modules, thereby effectively preventing server malfunctions caused by baseboard management controller upgrades or downgrades, and effectively ensuring the normal operation of the server during baseboard management controller upgrades or downgrades. This invention also provides a server protection device, electronic device, and computer-readable storage medium, which have the above-mentioned beneficial effects. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0033] Figure 1 A flowchart illustrating a server protection method provided in an embodiment of the present invention;
[0034] Figure 2 This is a structural block diagram of a server protection device provided in an embodiment of the present invention. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] The baseboard management controller (BMC) is a core component of a server, communicating with and managing the server's hardware modules. However, during upgrades or downgrades, the BMC operates in an unstable state, potentially causing abnormal server control or loss of monitoring, leading to abnormal server restarts. Therefore, this invention provides a server protection method that shields the communication link and related hardware modules between the BMC and the server, effectively preventing server malfunctions caused by BMC upgrades or downgrades and ensuring normal server operation during these processes. Please refer to [reference needed]. Figure 1 , Figure 1 A flowchart of a server protection method provided in an embodiment of the present invention. The method is applied to a server, the server including a baseboard management controller, and the method includes:
[0037] S101. When it is detected that the baseboard management controller is preparing to perform an upgrade or downgrade operation, determine the communication link between the baseboard management controller and the server.
[0038] It should be clearly pointed out that the shielding operation of the baseboard management controller and related server components in this application is performed before the baseboard management controller performs an upgrade or downgrade operation. In other words, the shielding operations involved in the embodiments of this invention are all upgrade preparation operations or downgrade preparation operations of the baseboard management controller. As mentioned above, shielding the baseboard management controller and related server components is to isolate the baseboard management controller from the server. Specifically, during the firmware upgrade or downgrade process, the working state of the baseboard management controller will be unstable, that is, it may send abnormal control commands to the server or stop monitoring the server. At this time, under abnormal interference, the server may be abnormally controlled or reset, which may easily lead to server crashes. The server crash problem caused by the instability of the baseboard management controller is more obvious when the server is running at full load. Specifically, the server is usually running at full load during testing or high-load operation. At this time, all hardware units of the server are running at high load. Once some units fail, it is very easy to cause a cascading failure. In other words, if the baseboard management controller performs an upgrade or downgrade operation while the server is operating at full capacity, it can easily lead to server crashes. Therefore, before the baseboard management controller performs an upgrade or downgrade operation, it is crucial to centrally shield the associated components between the baseboard management controller and the server to suppress the impact of hardware-related disturbances on the server, which is of great significance for ensuring stable server operation.
[0039] Of course, considering that the above shielding will prolong the upgrade or downgrade time of the baseboard management controller and reduce the upgrade and downgrade efficiency, the above shielding operation can be performed when the server's operating state is determined to be a specific state, such as when the server is determined to be operating in the above full-voltage operating state.
[0040] In one possible scenario, prior to determining the communication link between the baseboard management controller and the server, the following may also be included:
[0041] Step 11: Determine if the server is operating at full capacity; if yes, proceed to step 12; if no, directly control the baseboard management controller to perform an upgrade or downgrade operation.
[0042] Step 12: Proceed to the step of determining the communication link between the baseboard management controller and the server.
[0043] It should be noted that the embodiments of the present invention do not limit how to determine whether the server is operating at full capacity. For example, the number of working hardware units in the server and the resource utilization rate of each hardware unit can be counted. When it is determined that the number of working hardware units in the server is greater than a preset number, and the resource utilization rate of each hardware unit is higher than the corresponding preset utilization rate, it is determined that the server is operating at full capacity. It should be noted that the embodiments of the present invention do not limit the specific values of the above-mentioned preset number and preset utilization rate, and can be set according to actual application needs.
[0044] Furthermore, in this step, when the baseboard management controller is detected as preparing to perform an upgrade or downgrade operation, the communication links between the baseboard management controller and the server are first determined. These communication links refer to the communication links between various controllers within the baseboard management controller and the various hardware units within the server. The purpose of determining these communication links, as mentioned above, is to prevent controllers in the baseboard management controller from sending abnormal control signals to the server through these communication links when operating under unstable conditions, thereby preventing abnormal control situations on the server. It should be noted that this embodiment of the invention does not limit the specific communication links between the baseboard management controller and the server; relevant technologies concerning baseboard management controllers and servers can be referenced. Of course, it is also possible not to block all communication links, but only to block specific communication links that are prone to causing server crashes, such as specifically blocking the monitoring link between the baseboard management controller and the server. This can be configured according to actual application requirements.
[0045] S102. Determine the first hardware module and the second hardware module that communicate with each other via the communication link in the baseboard management controller and the server, respectively.
[0046] In addition to the communication link, this embodiment of the invention further identifies a first hardware module and a second hardware module that communicate with the server via the aforementioned communication link. The first hardware module belongs to the baseboard management controller, while the second hardware module belongs to the server. This is because there may be a controlled relationship between the first and second hardware modules. For example, if the first hardware module stops monitoring the second hardware module, the second hardware module may reset. Furthermore, the shielding of the communication link may not be complete; the baseboard management controller may still send some abnormal control information to the server. Therefore, this application further identifies the first and second hardware modules that communicate with the baseboard management controller and the server via the communication link, respectively, to shield the first and second hardware modules and prevent server crashes due to abnormalities in these modules. It should be noted that the embodiments of the present invention do not limit the specific first hardware module and second hardware module. For example, the communication controller in the baseboard management controller that communicates with the server CPU is a high-risk hardware module and can be classified as the first hardware module. Another example is that each piece of server hardware may have a watchdog timer (WDT). This timer needs to be updated periodically; otherwise, it will reset its associated circuitry. The state of the watchdog timer is usually managed by the baseboard management controller, and this hardware setting is prone to abnormalities when the server is operating at full capacity, which can easily interfere with the normal operation of the server. Therefore, the watchdog timers in each piece of server hardware can be included in the second hardware module. Of course, the baseboard management controller and other hardware modules in the server can also be included in the first and second hardware modules, depending on the actual application requirements.
[0047] S103. Shield the communication link, the first hardware module and the second hardware module, and when the shielding is completed, control the baseboard management controller to perform an upgrade operation or a downgrade operation.
[0048] After identifying the aforementioned communication link, the first hardware module, and the second hardware module, this embodiment of the invention will selectively shield them to avoid interfering with the normal operation of the server. This embodiment of the invention does not limit the specific shielding method for the communication link; for example, it can completely shield the data stream sent by the baseboard management controller to the server through the aforementioned communication link, that is, when operational information sent by the baseboard management controller to the server is detected in the aforementioned communication link, that operational information is discarded.
[0049] In one possible scenario, shielding the communication link can include:
[0050] Step 21: The shielded substrate management controller sends a data stream to the server via the communication link.
[0051] Alternatively, you can locate the process in the baseboard management controller that communicates with the server through the aforementioned communication link and shut down that process to block the communication source.
[0052] In one possible scenario, shielding the communication link can include:
[0053] Step 31: Locate the process communicating with the server via the communication link in the baseboard management controller and close the process.
[0054] It should be noted that the embodiments of the present invention do not limit how to query the process of communicating with the server in the baseboard management controller; relevant technologies of the baseboard management controller can be referred to.
[0055] Furthermore, it should be noted that the embodiments of the present invention do not limit how the first hardware module is shielded. It is understood that the shielding methods for each module in the baseboard management controller vary, and relevant technologies for baseboard management controllers can be referenced. It should be noted that the embodiments of the present invention do not limit whether hardware or software shielding is used to shield the first hardware module. To avoid affecting the normal operation of the baseboard management controller, and to ensure that each hardware module in the baseboard management controller can correctly perform upgrade or downgrade operations, the embodiments of the present invention will use software shielding to shield the first hardware module. It should be noted that the embodiments of the present invention do not limit the specific method of software shielding. It is understood that the software shielding methods for each module in the baseboard management controller vary, such as driver shielding or bit disabling. Bit disabling refers to adjusting the register information of the first hardware module so that the module cannot communicate. Specifically, when the first hardware module is the communication controller in the baseboard management controller, the controller can be shielded using bit disabling. Specifically, bit disable information can be found in the reset mask register of the communication controller, and the bit disable information can be adjusted to the enabled state, that is, bit disabling of the communication controller can be enabled. This not only achieves software shielding of the communication controller, but also does not affect the normal operation of other hardware devices in the baseboard management and control.
[0056] In one possible scenario, the first hardware module is the communication controller within the baseboard management controller. Shielding the first hardware module may include:
[0057] Step 41: Locate the bit disable information in the reset mask register of the communication controller and adjust the bit disable information to the enabled state.
[0058] Furthermore, it should be noted that the embodiments of the present invention do not limit how the second hardware module is shielded. It is understood that the shielding methods for each module in the server vary, and relevant server technologies can be referenced. It should be noted that the embodiments of the present invention do not limit whether hardware or software shielding is used to shield the second hardware module. To avoid affecting the normal operation of the server, the embodiments of the present invention will use software shielding to shield the second hardware module. It should be noted that the embodiments of the present invention do not limit the specific method of software shielding; relevant server technologies can be referenced, such as driver shielding or adjusting the disable information. Adjusting the disable information involves adjusting the configuration information of the second hardware module to stop it from working. Specifically, when the second hardware module is a watchdog timer in the server's modules, the timer can be shielded by adjusting the disable information. Specifically, the configuration information related to the watchdog timer can be found, and the watchdog timer's disable information (disable WDT) can be adjusted to the enabled state to disable the watchdog timer. In this way, even if the baseboard management controller no longer updates the state of the watchdog timer, the timer cannot control the associated circuit to reset, thus ensuring the normal operation of the server.
[0059] In one possible scenario, the second hardware module is a watchdog timer in the server. Shielding the second hardware module can include:
[0060] Step 51: Locate the watchdog timer's disabled information and change it to enabled.
[0061] It should be noted that the embodiments of the present invention do not limit the specific storage location of the watchdog timer disable information in the server, and relevant server technologies can be referred to.
[0062] Furthermore, it should be noted that the embodiments of the present invention do not limit the specific shielding order of the communication link, the first hardware module, and the second hardware module, and can be set according to actual application requirements. After the shielding operation is completed, it can be ensured that the baseboard management controller can perform upgrade or downgrade operations without interfering with the server, thereby controlling the baseboard management controller to start the aforementioned upgrade or downgrade operation. It should be noted that the embodiments of the present invention do not limit the specific upgrade or downgrade operation of the baseboard management controller, and relevant technologies of the baseboard management controller can be referred to. Furthermore, it can be understood that, in order to restore the baseboard management controller's control over the server, after determining that the baseboard management controller has completed the upgrade or downgrade operation, the shielding of the communication link, the first hardware module, and the second hardware module can be removed.
[0063] In one possible scenario, after the control board management controller performs an upgrade or downgrade operation, it may also include:
[0064] Step 61: When the baseboard management controller detects that it has completed an upgrade or downgrade operation, the shielding of the communication link, the first hardware module, and the second hardware module is removed.
[0065] Based on the above embodiments, in this invention, when it is determined that the baseboard management controller is preparing to perform an upgrade or downgrade operation, the communication link between the baseboard management controller and the server can be determined first, as well as the hardware modules in the baseboard management controller and the server that communicate through the aforementioned communication link. This is because the baseboard management controller may transmit abnormal control signals through this communication link during the upgrade or downgrade process, which may lead to server malfunctions. At the same time, there may be associated control relationships between the relevant hardware modules in the baseboard management controller and the server. That is, once the baseboard management controller and the server disconnect communication, these modules may experience abnormal situations such as resets. Therefore, this invention not only shields the communication link between the baseboard management controller and the server, but also shields the relevant hardware modules, thereby effectively avoiding server malfunctions caused by the upgrade or downgrade of the baseboard management controller and effectively ensuring the normal operation of the server during the upgrade or downgrade of the baseboard management controller.
[0066] Based on the above embodiments, the server protection method described above will be introduced below with practical examples.
[0067] 1. The server is powered on normally and is running under full-voltage extreme conditions;
[0068] 2. Before performing upgrade or downgrade operations on the server BMC, start the process to block abnormal disturbances;
[0069] 3. Software shielding is implemented for the interactive communication links between the BMC and the server hardware to shield and limit any abnormal interference that may be caused by the aforementioned communication links, and to prevent the BMC controllers from affecting the server system during upgrades and downgrades; in addition, some communication controllers in the BMC that interact with the CPU also need to be shielded by software shielding.
[0070] 4. During the server BMC upgrade process, kill the processes in the BMC that communicate with the server, and at the same time enable the hardware-related disturbance suppression part;
[0071] 5. To avoid anomalies during the BMC upgrade / downgrade process, it is necessary to disable watchdog timers (WTDs) that may be set in the hardware modules of the server. At the same time, it is necessary to restrict the BMC's communication with the hardware, especially the monitoring part of the server hardware monitoring system, and cut off the relevant interference parts.
[0072] The server protection device, electronic device, and computer-readable storage medium provided in the embodiments of the present invention are described below. The server protection device, electronic device, and computer-readable storage medium described below can be referred to in correspondence with the server protection method described above.
[0073] Please refer to Figure 2 , Figure 2 This is a structural block diagram of a server protection device provided in an embodiment of the present invention. The device is applied to a server, which includes a baseboard management controller and may include:
[0074] The communication link determination module 201 is used to determine the communication link between the baseboard management controller and the server when it is detected that the baseboard management controller is preparing to perform an upgrade operation or a downgrade operation.
[0075] The hardware module determination module 202 is used to determine the first hardware module and the second hardware module that communicate with each other in the baseboard management controller and the server via a communication link, respectively.
[0076] The shielding module 203 is used to shield the communication link, the first hardware module and the second hardware module, and to control the baseboard management controller to perform upgrade or downgrade operations when the shielding is completed.
[0077] Optionally, the shielding module 203 may include:
[0078] The first shielding submodule of the communication link is used to locate the process communicating with the server through the communication link in the baseboard management controller and shut down the process.
[0079] Optionally, the communication link may be shielded, including:
[0080] The second shielding submodule of the communication link is used to shield the data stream sent by the baseboard management controller to the server through the communication link.
[0081] Optionally, the first hardware module is the communication controller in the baseboard management controller, and the shielding module 203 may include:
[0082] The first hardware module shielding submodule is used to look up bit disable information in the reset shielding register of the communication controller and adjust the bit disable information to the enabled state.
[0083] Optionally, the second hardware module is a watchdog timer in the server, and the shielding module 203 may include:
[0084] The second hardware module shielding submodule is used to find the watchdog timer's disabled information and adjust the disabled information to the enabled state.
[0085] Optionally, the device may further include:
[0086] The judgment module is used to determine whether the server is operating at full capacity; if so, the communication link determination module 201 is called.
[0087] Optionally, the device may further include:
[0088] The shielding removal module is used to remove the shielding of the communication link, the first hardware module, and the second hardware module when the baseboard management controller detects that it has completed an upgrade or downgrade operation.
[0089] This invention also provides an electronic device, comprising:
[0090] Memory, used to store computer programs;
[0091] A processor is used to implement the server protection methods described above when executing computer programs.
[0092] Since the embodiments of the electronic device part correspond to the embodiments of the server protection method part, please refer to the description of the embodiments of the server protection method part for the embodiments of the electronic device part, and they will not be repeated here.
[0093] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the server protection method described in any of the above embodiments.
[0094] Since the embodiments of the computer-readable storage medium portion correspond to the embodiments of the server protection method portion, the embodiments of the storage medium portion are described in the description of the embodiments of the server protection method portion, and will not be repeated here.
[0095] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0096] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software 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 implementations should not be considered beyond the scope of this invention.
[0097] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0098] The foregoing has provided a detailed description of a server protection method, apparatus, electronic device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of the present invention. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims
1. A server protection method, applied to a server, said server including a baseboard management controller, characterized in that, The method includes: When it is detected that the baseboard management controller is preparing to perform an upgrade or downgrade operation, the communication link between the baseboard management controller and the server is determined. The first hardware module and the second hardware module, which communicate with each other through the communication link, are respectively identified in the baseboard management controller and the server; wherein the first hardware module belongs to the baseboard management controller, and the second hardware module belongs to the server, and there is an associated and controlled relationship between the first hardware module and the second hardware module; The communication link, the first hardware module, and the second hardware module are shielded, and when the shielding is completed, the baseboard management controller is controlled to perform the upgrade operation or the downgrade operation. The first hardware module is the communication controller in the baseboard management controller, and the shielding of the first hardware module includes: The bit disable information is located in the reset mask register of the communication controller, and the bit disable information is adjusted to the enabled state. The second hardware module is the watchdog timer in the server, and the step of disabling the second hardware module includes: Locate the disabled information for the watchdog timer and enable it.
2. The server protection method of claim 1, wherein, The shielding of the communication link includes: The process communicating with the server via the communication link is located in the baseboard management controller, and the process is closed.
3. The method of claim 1, wherein the server protection method is characterized by, The shielding of the communication link includes: The data stream sent by the baseboard management controller to the server through the communication link is shielded.
4. The method of claim 1, wherein the server protection method is characterized by, Before determining the communication link between the baseboard management controller and the server, the method further includes: Determine whether the server is operating at full capacity; If so, proceed to the step of determining the communication link between the baseboard management controller and the server.
5. The method of claim 1 to 4, wherein, After controlling the baseboard management controller to perform the upgrade operation or the downgrade operation, the method further includes: When the baseboard management controller detects that it has completed the upgrade or downgrade operation, the shielding of the communication link, the first hardware module, and the second hardware module is released.
6. A server protection device applied to a server, the server comprising a baseboard management controller, characterized in that, The device includes: A communication link determination module is used to determine the communication link between the baseboard management controller and the server when it is detected that the baseboard management controller is preparing to perform an upgrade operation or a downgrade operation. A hardware module determination module is used to determine a first hardware module and a second hardware module that communicate with the baseboard management controller and the server through the communication link, respectively; wherein the first hardware module belongs to the baseboard management controller, while the second hardware module belongs to the server, and there is an associated and controlled relationship between the first hardware module and the second hardware module; A shielding module is used to shield the communication link, the first hardware module and the second hardware module, and to control the baseboard management controller to perform the upgrade operation or the downgrade operation when the shielding is completed; The first hardware module is the communication controller in the baseboard management controller, and the shielding module includes: The first hardware module shielding submodule is used to search for bit disable information in the reset shielding register of the communication controller and adjust the bit disable information to the enabled state. The second hardware module is the watchdog timer in the server, and the shielding module includes: The second hardware module shielding submodule is used to find the disabled information of the watchdog timer and adjust the disabled information to the enabled state.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for implementing the server protection method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the server protection method as described in any one of claims 1 to 5.