CN114374627A - Method, device and system for restarting baseboard management controller and server - Google Patents
Method, device and system for restarting baseboard management controller and server Download PDFInfo
- Publication number
- CN114374627A CN114374627A CN202111639483.6A CN202111639483A CN114374627A CN 114374627 A CN114374627 A CN 114374627A CN 202111639483 A CN202111639483 A CN 202111639483A CN 114374627 A CN114374627 A CN 114374627A
- Authority
- CN
- China
- Prior art keywords
- management controller
- network
- baseboard management
- time period
- preset time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000002159 abnormal effect Effects 0.000 claims abstract description 37
- 239000000758 substrate Substances 0.000 claims abstract description 23
- 230000015654 memory Effects 0.000 claims description 30
- 230000005856 abnormality Effects 0.000 claims description 14
- 238000001514 detection method Methods 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 151
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 230000009467 reduction Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011896 sensitive detection Methods 0.000 description 2
- 230000033228 biological regulation Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to the field of equipment detection, in particular to a method, a device, a system and a server for restarting a baseboard management controller. The method comprises the steps of detecting the substrate management controller through the network access, obtaining the network connection state of the substrate management controller in a preset time period, comparing the network connection state in the preset time period with a preset condition, determining whether the network of the substrate management controller is abnormal or not, and sending a restart command to the substrate management controller to restart the substrate management controller when the network of the substrate management controller is abnormal. Through the detection to the net gape of base plate management controller, realized the real-time supervision to base plate management controller network state, avoided because the fluctuation of base plate management controller causes work efficiency to reduce, when discovering that base plate management controller appears the network anomaly, even restart the operation to base plate management controller, realized work efficiency's promotion.
Description
Technical Field
The invention relates to the field of equipment detection, in particular to a method, a device, a system and a server for restarting a baseboard management controller.
Background
Currently, a Baseboard Management Controller (BMC) is a baseboard management system on a server, and is responsible for important functions of the server, such as asset information display, hardware monitoring, heat dissipation regulation, system configuration, remote monitoring, log collection, fault diagnosis, and system maintenance. When the server BMC acquires the network instability, abnormal BMC communication can be caused, at this time, if the BMC problem is required to be checked, the user must manually realize the network problem and manually execute the BMC resetting action, and in this case, the user must obtain the operation before the server, so that the use of the client is inconvenient, and great trouble is brought to the maintenance of the server.
Particularly, when the server BMC obtains the intermittent connection of the network, the remote management function of the BMC is directly affected, for the user, the first idea is to restart the BMC to remove the fault, but due to the limited network, the user must go to the server site to restart the BMC network, which brings great inconvenience to the use of the server
In the prior art, when a server acquires that a network is unstable and communication is interrupted and discontinued, firstly, a means of troubleshooting is to restart a BMC chip of the server, and then check whether communication can be recovered to normal. This requires the technician to be aware of the problem with the improper communication and perform an action to restart the BMC, resulting in less-than-quick resolution of the problem, inconvenience to the user, and inconvenience to the customer.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a system, and a server for restarting a BMC, so as to solve the problem that the BMC cannot be automatically restarted.
According to a first aspect, an embodiment of the present invention provides a method for restarting a baseboard management controller, which is applied to a satellite server that distributes a network to the baseboard management controller through a network path, and includes:
detecting the baseboard management controller through the network access to acquire the network connection state of the baseboard management controller in a preset time period;
comparing the network connection state in the preset time period with a preset condition to determine whether the network of the substrate management controller is abnormal or not;
and when the network of the baseboard management controller is abnormal, sending a restart command to the baseboard management controller to restart the baseboard management controller.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the network state of the baseboard management controller is monitored in real time by detecting the network port of the baseboard management controller, the reduction of the working efficiency caused by the fluctuation of the baseboard management controller is avoided, and when the network abnormality of the baseboard management controller is found, the baseboard management controller is restarted, so that the working efficiency is improved.
With reference to the first aspect, in a first implementation manner of the first aspect, the comparing the connection state within the preset time period with a preset condition, and determining whether the network of the baseboard management controller is abnormal includes:
judging whether the connection state in the preset time period is a connection maintaining state or not;
and when the connection state in the preset time period is the connection maintaining state, determining that the network of the baseboard management controller is normal.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the network state is monitored by judging the online state and the offline state of the baseboard management controller, a judgment condition is provided for subsequently judging whether the baseboard management controller is restarted, and the working efficiency is further improved.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the comparing the connection state within the preset time period with a preset condition, and determining whether the network of the baseboard management controller is abnormal further includes:
judging whether the connection state in the preset time period is the connection state and the off-line state alternately;
and when the connection state in the preset time period is the connection state and the off-line state, determining that the network of the baseboard management controller is abnormal.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the condition is determined, the condition under which the baseboard management controller is abnormal is accurately determined, the execution condition is determined for the follow-up restarting operation executed by the baseboard management controller, and the working efficiency is further improved.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, when the connection state in the preset time period is a connection state and a down state, the determining that the network of the bmc is abnormal includes:
calculating the frequency of the offline state in the preset time period, and comparing the frequency with the frequency recorded in the preset condition to obtain a comparison result;
and determining the network abnormality of the baseboard management controller based on the comparison result.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the network state abnormity of the baseboard management controller is definitely judged under the condition through setting the network abnormity condition of the baseboard management controller, so that the phenomenon that the baseboard management controller is too frequent due to too sensitive detection is avoided, the baseboard management controller is restarted only after the abnormity is confirmed, and the working efficiency is further improved.
With reference to the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the determining, based on the comparison result, a network anomaly of the baseboard management controller includes:
and when the frequency is the same as the frequency recorded in the preset condition, determining that the network of the baseboard management controller is abnormal.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the network state abnormity of the baseboard management controller is definitely judged under the condition through setting the network abnormity condition of the baseboard management controller, so that the phenomenon that the baseboard management controller is too frequent due to too sensitive detection is avoided, the baseboard management controller is restarted only after the abnormity is confirmed, and the working efficiency is further improved.
According to a second aspect, an embodiment of the present invention provides an apparatus for restarting a baseboard management controller, where the apparatus is applied to a satellite server that distributes a network to the baseboard management controller through a network path, and the apparatus includes:
the acquisition module is used for detecting the baseboard management controller through the network access and acquiring the network connection state of the baseboard management controller in a preset time period;
the determining module is used for comparing the network connection state in the preset time period with a preset condition and determining whether the network of the substrate management controller is abnormal or not;
and the restarting module is used for sending a restarting command to the substrate control manager to restart the substrate management controller when the network of the substrate management controller is abnormal.
According to a third aspect, an embodiment of the present invention provides a satellite server, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the baseboard management controller restarting method described in the first aspect or any one of the embodiments of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a baseboard management controller restarting system, including:
the base plate management controller is connected with the satellite server and used for executing the restart command sent by the satellite server;
the satellite server is used for detecting the board base management controller through the network access, acquiring the network connection state of the board base management controller in a preset time period, comparing the network connection state in the preset time period with a preset condition, determining whether the network of the board base management controller is abnormal or not, and sending a restart command to the board base management controller to restart the board base management controller when the network of the board base management controller is abnormal.
According to a fourth aspect, in a first implementation manner of the fourth aspect, the satellite server has a first network port and a second network port, the first network port is used for connecting to a network, and the second network port is connected to a network port corresponding to the baseboard control manager.
According to a fifth aspect, an embodiment of the present invention provides a server, including:
a housing;
the baseboard management controller restart system described in the fourth aspect, the baseboard management controller restart system being disposed within the enclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a method of a baseboard management controller restarting according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method of a baseboard management controller restarting according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a satellite server connected to a baseboard management controller according to an embodiment of the invention;
FIG. 4 is a flow diagram of a method of a baseboard management controller restarting according to an embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus for baseboard management controller restart according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a satellite server according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In describing the present invention, it is noted that the term "and/or" as used in this specification and the appended claims refers to and includes any and all combinations of one or more of the associated listed items.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the network state of the baseboard management controller is monitored in real time by detecting the network port of the baseboard management controller, the reduction of the working efficiency caused by the fluctuation of the baseboard management controller is avoided, and when the network abnormality of the baseboard management controller is found, the baseboard management controller is restarted, so that the working efficiency is improved.
In accordance with an embodiment of the present invention, there is provided a method embodiment of baseboard management controller reboot, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In the embodiment, a method for restarting a baseboard management controller is provided, and a satellite server is applied to a satellite server which distributes a network to the baseboard management controller through a network path. Fig. 1 is a flowchart of a method for restarting a baseboard management controller according to an embodiment of the present invention, where the flowchart includes the following steps, as shown in fig. 1:
s11, detecting the baseboard management controller through the network access to obtain the network connection state of the baseboard management controller in a preset time period;
specifically, the offline frequency within a preset time may be used as the connection state.
For example, in one embodiment, it is assumed that the BMC _ a exists, and it is further assumed that when the link down state occurs at the port a of the BMC _ a, the link down state is determined, and it is assumed that the preset time is 180 seconds, the link down state occurs at the BMC _ a within 180 seconds, and it is assumed that the link down state occurs 15 times at the BMC _ a within 180 seconds, and 180 seconds and 15 times are used as the connection state.
S12, comparing the network connection state in the preset time period with a preset condition, and determining whether the network of the baseboard management controller is abnormal;
for example, assuming that the preset condition is "180 seconds, 12 times", taking the above-mentioned baseboard management controller BMC _ a as an example, assuming that when the link down state occurs at the network port a of the baseboard management controller BMC _ a, it is determined as an off-line state, assuming that the preset time is 180 seconds, within 180 seconds, it is collected that the link down state occurs at the baseboard management controller BMC _ a, assuming that within 180 seconds, the link down state occurs at the baseboard management controller BMC _ a 15 times, taking 180 seconds and 15 times as connection states, comparing the obtained connection states "180 seconds and 18 times" with the preset condition "180 seconds and 9 times" to obtain the current connection state abnormality.
Details about this step will be described later.
S13, when the network of the baseboard management controller is abnormal, a restart command is sent to the baseboard management controller to restart the baseboard management controller.
Specifically, in the specific implementation, still taking the above-mentioned BMC _ a as an example, assuming that when the link down state occurs at the network port a of the BMC _ a, it is determined as the off-line state, assuming that the preset time is 180 seconds, within 180 seconds, the link down state occurs at the BMC _ a, assuming that the link down state occurs at the BMC _ a within 180 seconds, taking 180 seconds and 15 times as the connection states, and comparing the obtained connection states "180 seconds and 15 times" with the preset conditions "180 seconds and 12 times" to obtain the current network state abnormality. And after a network abnormal signal is obtained, sending a restart command to the baseboard control manager, so that the baseboard management controller BMC _ A carries out restart operation.
Details about this step will be described later.
In the method for restarting the substrate management controller provided by the embodiment of the invention, the satellite server distributes a network to the substrate management controller through the network access, and the satellite server detects the network port of the substrate management controller through the network access, so that the real-time monitoring of the network state of the substrate management controller is realized, the reduction of the working efficiency caused by the fluctuation of the substrate management controller is avoided, when the substrate management controller is found to have network abnormality, the satellite server is used for timely restarting the substrate management controller, and the improvement of the working efficiency is realized.
In this embodiment, a method for restarting a bmc is provided, which may be used for a satellite server, such as a computer, a server, a tablet computer, and the like, and fig. 2 is a flowchart of a method for restarting a bmc according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
and S21, detecting the baseboard management controller through the network access, and acquiring the network connection state of the baseboard management controller in a preset time period.
Please refer to S11 in fig. 1, which is not described herein again.
S22, comparing the network connection state in the preset time period with a preset condition, and determining whether the network of the baseboard management controller is abnormal;
specifically, S22 includes:
s221, judging whether the connection state in the preset time period is a connection maintaining state;
specifically, whether the connection state is maintained may be determined according to a preset condition.
For example, in one embodiment, it is assumed that the BMC _ B exists, and it is further assumed that when the link down state occurs at the network port B of the BMC _ B, the link down state is determined, the preset time is set to 180 seconds, the link down state occurs at the BMC _ B within 180 seconds, and if the link down state occurs 18 times at the BMC _ B within 180 seconds, 180 seconds and 18 times are used as the connection state. Further, when the connection state is compared with the preset condition "180 seconds, 36 times", it is obvious that the current connection state does not exceed 36 times described in the preset condition, and therefore, it can be determined that the connection state in the preset time period is the connection maintaining state.
S222, when the connection state in the preset time period is the connection maintaining state, determining that the network of the baseboard management controller is normal.
Further, still taking the above-mentioned baseboard management controller BMC _ B as an example, similarly, when the link down state occurs at the network port B of the baseboard management controller BMC _ B, it is determined as an off-line state, assuming that the set preset time is 180 seconds, within 180 seconds, the link down state occurs at the board management controller BMC _ B, assuming that within 180 seconds, the link down state occurs at the board management controller BMC _ B for 18 times, taking 180 seconds and 18 times as examples of connection states, and the preset condition is still "180 seconds and 36 times", obviously, at this time, it may be determined that the connection state within the preset time period is the connection state. Therefore, the network of the baseboard management controller BMC _ B is normal at this time.
And S223, determining that the network of the baseboard management controller is abnormal when the connection state in the preset time period is the connection state and the off-line state are alternately appeared.
Further, taking the BMC _ C as an example, assuming that the BMC _ C is in the down state when the link down state occurs at the gateway b of the BMC _ C, assuming that the preset time is 180 seconds, acquiring that the BMC has the link down state within 180 seconds, assuming that the BMC has the link down state 180 times within 180 seconds, taking 180 seconds and 180 times as the connection state, further, taking the preset condition of "180 seconds and 36 times" as an example, obviously, at this time, the current connection state already exceeds 36 times recorded in the preset condition, and therefore, it may be determined that the network of the BMC is abnormal at this time.
In some optional implementations of this embodiment, the step S223 may include:
(1) calculating the frequency of the offline state in the preset time period, and comparing the frequency with the frequency recorded in the preset condition to obtain a comparison result;
specifically, the frequency of occurrence of the offline state can be calculated by the following formula:
for example, assuming that the BMC _ C and the corresponding preset condition are used as an example, according to the above description, if the BMC _ C appears the link down state 180 times within 180 seconds, the frequency of the corresponding BMC _ C is 1 time/second, and the frequency of the corresponding preset condition is 0.2 time/second. It is clear that 1 time/second is greater than 0.2 times/second.
(2) And determining the network abnormality of the baseboard management controller based on the comparison result.
Specifically, still taking the assumption that the baseboard management controller BMC _ B, the baseboard management controller BMC _ C and the corresponding preset condition are still used as an example, through calculation, it can be obtained that the frequency of occurrence of the offline state of the baseboard management controller BMC _ B is 0.1 times/second, the frequency of occurrence of the offline state of the baseboard management controller BMC _ C is 1 times/second, and the frequency of occurrence of the offline state of the preset condition is 0.2 times/second, where the frequency of occurrence of the offline state of the baseboard management controller BMC _ B is less than the frequency of occurrence of the offline state of the preset condition, so that the baseboard management controller BMC _ B has no network abnormality, and the frequency of occurrence of the offline state of the baseboard management controller BMC _ C is greater than the frequency of occurrence of the offline state of the preset condition, so that the baseboard management controller BMC has network abnormality.
S23, when the network of the baseboard management controller is abnormal, a restart command is sent to the baseboard management controller to restart the baseboard management controller;
specifically, S23 includes:
s231, when the network of the bmc is abnormal, allocating a network to the second portal through the first portal to restart the bmc.
Specifically, in practical application, after the satellite server a determines that the baseboard management controller BMC _ D has a network abnormality, the restart signal is sent to the baseboard management controller BMC _ D on the server S through the network port m on the satellite server a and the network port n on the baseboard management controller BMC _ D, so that the baseboard management controller BMC _ D is restarted.
According to the method for restarting the baseboard management controller provided by the embodiment of the invention, the network state of the baseboard management controller is monitored in real time by detecting the network port of the baseboard management controller, the reduction of the working efficiency caused by the fluctuation of the baseboard management controller is avoided, and when the network abnormality of the baseboard management controller is found, the baseboard management controller is restarted, so that the working efficiency is improved.
In this embodiment, a system for restarting a bmc is provided, which can be used in a satellite server, such as a computer, a server, a tablet computer, etc., and fig. 3 is a schematic diagram of a system for restarting a bmc according to an embodiment of the present invention:
in the system for restarting the baseboard management controller provided by this embodiment, the baseboard management controller is connected to the satellite server, and is configured to execute a restart command sent by the satellite server;
specifically, referring to fig. 3, a baseboard management controller BMC _ D is connected to the satellite server a.
The satellite server is used for detecting the board base management controller through the network access, acquiring the network connection state of the board base management controller in a preset time period, comparing the network connection state in the preset time period with a preset condition, determining whether the network of the board base management controller is abnormal or not, and sending a restart command to the board base management controller to restart the board base management controller when the network of the board base management controller is abnormal.
Specifically, referring to fig. 3, the corresponding network pass is composed of a network port m located on the satellite server a, a network port located on the BMC _ D, and a network cable between the two network ports.
As a specific application example of the present embodiment. As shown in fig. 4, the method for restarting the baseboard management controller includes:
and S1, detecting the baseboard management controller and acquiring the connection state in a preset time period.
And S2, calculating the frequency of the offline state of the baseboard management controller.
S3, judging whether the frequency of the off-line state of the baseboard management controller is less than the preset condition, if yes, executing step S4, otherwise, executing step S5.
S4, recognizing that there is no network abnormality in the bmc, the bmc remains in the current state and is not restarted.
And S5, recognizing the network abnormality of the baseboard management controller and restarting the baseboard management controller.
In this embodiment, a device for restarting a bmc is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and the description already made is not repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The embodiment provides an apparatus for restarting a baseboard management controller, which is applied to a satellite server that distributes a network to the baseboard management controller through a network path, as shown in fig. 5, and includes:
an obtaining module 51, configured to detect the baseboard management controller through the network access, and obtain a network connection state of the baseboard management controller within a preset time period;
a determining module 52, configured to compare the network connection state in the preset time period with a preset condition, and determine whether the network of the baseboard management controller is abnormal;
and the restarting module 53 is configured to send a restarting command to the baseboard management controller to restart the baseboard management controller when the network of the baseboard management controller is abnormal.
The firmware refresh apparatus in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides a satellite server, which has the apparatus for restarting the baseboard management controller shown in fig. 5.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a satellite server according to an alternative embodiment of the present invention, and as shown in fig. 6, the satellite server may include: at least one processor 61, such as a CPU (Central Processing Unit), at least one communication interface 63, memory 64, at least one communication bus 62. Wherein a communication bus 62 is used to enable the connection communication between these components. The communication interface 63 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 63 may also include a standard wired interface and a standard wireless interface. The Memory 64 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 64 may optionally be at least one memory device located remotely from the processor 61. Wherein the processor 61 may be in connection with the apparatus described in fig. 6, an application program is stored in the memory 64, and the processor 61 calls the program code stored in the memory 64 for performing any of the above-mentioned method steps.
The communication bus 62 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 62 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The memory 64 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 64 may also comprise a combination of the above types of memory.
The processor 61 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 61 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 64 is also used to store program instructions. The processor 61 may call program instructions to implement a method of restarting a baseboard management controller as shown in any of the embodiments of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method for restarting the baseboard management controller in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims (10)
1. A method for restarting a baseboard management controller, the method being applied to a satellite server that distributes a network to the baseboard management controller through a network path, the method comprising:
detecting the baseboard management controller through the network access to acquire the network connection state of the baseboard management controller in a preset time period;
comparing the network connection state in the preset time period with a preset condition to determine whether the network of the substrate management controller is abnormal or not;
and when the network of the baseboard management controller is abnormal, sending a restart command to the baseboard management controller to restart the baseboard management controller.
2. The method of claim 1, wherein comparing the network connection status within the preset time period with a preset condition and determining whether the network of the baseboard management controller is abnormal comprises:
judging whether the connection state in the preset time period is a connection maintaining state or not;
and when the connection state in the preset time period is the connection maintaining state, determining that the network of the baseboard management controller is normal.
3. The method of claim 2, wherein comparing the network connection status within the preset time period with a preset condition to determine whether the network of the baseboard management controller is abnormal further comprises:
judging whether the connection state in the preset time period is the connection state and the off-line state alternately;
and when the connection state in the preset time period is the connection state and the off-line state, determining that the network of the baseboard management controller is abnormal.
4. The method of claim 3, wherein determining the network anomaly of the baseboard management controller when the connection status within the preset time period is the connection status and the down status alternately occurs comprises:
calculating the frequency of the offline state in the preset time period, and comparing the frequency with the frequency recorded in the preset condition to obtain a comparison result;
and determining the network abnormality of the baseboard management controller based on the comparison result.
5. The method of claim 4, wherein determining the network anomaly of the baseboard management controller based on the comparison comprises:
and when the frequency is the same as that in the preset condition, determining that the network of the baseboard management controller is abnormal.
6. An apparatus for restarting a baseboard management controller, the apparatus being applied to a satellite server that distributes a network to the baseboard management controller through a network path, the apparatus comprising:
the acquisition module is used for detecting the baseboard management controller through the network access and acquiring the network connection state of the baseboard management controller in a preset time period;
the determining module is used for comparing the network connection state in the preset time period with a preset condition and determining whether the network of the substrate management controller is abnormal or not;
and the restarting module is used for sending a restarting command to the substrate control manager to restart the substrate management controller when the network of the substrate management controller is abnormal.
7. A satellite server, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method of any one of claims 1-5.
8. A baseboard management controller restart system comprising:
the base plate management controller is connected with the satellite server and used for executing the restart command sent by the satellite server;
the satellite server is used for detecting the board base management controller through the network access, acquiring the network connection state of the board base management controller in a preset time period, comparing the network connection state in the preset time period with a preset condition, determining whether the network of the board base management controller is abnormal or not, and sending a restart command to the board base management controller to restart the board base management controller when the network of the board base management controller is abnormal.
9. The system of claim 8, wherein the satellite server has a first network port and a second network port, the first network port is used for connecting to a network, and the second network port is connected to a network port corresponding to the baseboard control manager.
10. A server, comprising:
a housing;
the baseboard management controller restart system of claim 8 or 9, said baseboard management controller restart system disposed within said enclosure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111639483.6A CN114374627A (en) | 2021-12-29 | 2021-12-29 | Method, device and system for restarting baseboard management controller and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111639483.6A CN114374627A (en) | 2021-12-29 | 2021-12-29 | Method, device and system for restarting baseboard management controller and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114374627A true CN114374627A (en) | 2022-04-19 |
Family
ID=81141885
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111639483.6A Withdrawn CN114374627A (en) | 2021-12-29 | 2021-12-29 | Method, device and system for restarting baseboard management controller and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114374627A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225464A (en) * | 2022-07-15 | 2022-10-21 | 苏州浪潮智能科技有限公司 | Network switching method, device, equipment and storage medium |
-
2021
- 2021-12-29 CN CN202111639483.6A patent/CN114374627A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225464A (en) * | 2022-07-15 | 2022-10-21 | 苏州浪潮智能科技有限公司 | Network switching method, device, equipment and storage medium |
CN115225464B (en) * | 2022-07-15 | 2023-08-15 | 苏州浪潮智能科技有限公司 | Network switching method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110851320A (en) | Server downtime supervision method, system, terminal and storage medium | |
CN112286709B (en) | Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults | |
CN109143954B (en) | System and method for realizing controller reset | |
WO2019129022A1 (en) | Error processing method, apparatus and system for device | |
CN109254922B (en) | Automatic testing method and device for BMC Redfish function of server | |
CN103631685A (en) | Fault self-inspection system and method | |
CN111352779A (en) | On-off test method of AC power supply of MOC card and related assembly | |
CN112529223A (en) | Equipment fault repair method and device, server and storage medium | |
CN112231140A (en) | Method, system, terminal and storage medium for fault recovery of BMC (baseboard management controller) of storage device | |
CN113592337A (en) | Fault processing method and device, electronic equipment and storage medium | |
CN114374627A (en) | Method, device and system for restarting baseboard management controller and server | |
CN114884840A (en) | Application health state checking method and electronic equipment | |
CN114816022A (en) | Server power supply abnormity monitoring method, system and storage medium | |
CN114020509A (en) | Method, device and equipment for repairing work load cluster and readable storage medium | |
CN114116276A (en) | BMC hang-up self-recovery method, system, terminal and storage medium | |
CN111880992B (en) | Monitoring and maintaining method for controller state in storage device | |
CN113742120A (en) | Method, system, device and medium for kdump triggering | |
CN107273291B (en) | Processor debugging method and system | |
CN112231170B (en) | Data interaction card supervision method, system, terminal and storage medium | |
CN116506327B (en) | Physical node monitoring method, device, computer equipment and storage medium | |
CN111414267A (en) | Far-end eliminating method for abnormal state of cabinet applied to data center | |
CN111416721A (en) | Far-end eliminating method for abnormal state of cabinet applied to data center | |
CN114636852B (en) | Overcurrent test method and device for server, server and readable storage medium | |
CN116484373B (en) | Abnormal process checking and killing method, system, device, computer equipment and storage medium | |
CN111414274A (en) | Far-end eliminating method for abnormal state of cabinet applied to data center |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220419 |