[0013] Such as figure 1 Shown is the application environment diagram of the BMC switch machine control system of the cabinet server of the present invention. The cabinet server BMC switch control system 21 is applied to the cabinet server 1 to control the startup, shutdown, and restart of the BMC 4 of each server 6 in the cabinet. The rack server 1 further includes a rack management controller (Rack Management Controller, RMC) 2 and an I2C expander 3. The cabinet management controller 2 is connected to the input device 7 and the display device 8.
[0014] The number of the servers 6 is one or more. Each server 6 corresponds to a BMC 4 and a power management chip (Power IC) 11.
[0015] The power management chip 11 is connected to the BMC chip through a restart signal (RST) or a power signal (PWR). The restart signal is used to control the restart of the BMC, and the power signal includes a startup signal and a shutdown signal, which is used to control the startup and shutdown of the BMC.
[0016] The cabinet management controller 2 communicates with the I2C expander 3 through the I2C controller 12, and the I2C expander 3 is connected to each server 6 through General Purpose Input Output (GPIO). The I2C expander 3 has multiple slots, and each server 6 corresponds to a respective slot on the I2C expander 3. Each slot corresponds to a number, therefore, each server also corresponds to a unique number. In this way, the rack management controller 2 knows which server to communicate with according to the unique number corresponding to each server 6.
[0017] When the I2C expander 3 communicates with multiple servers 6 through GPIO signals, the rack management controller 2 can control the startup, shutdown, and restart of multiple servers 6 through the I2C expander 3 at the same time. In this way, there is no need to switch the connection between the rack management controller 2 and each server 6 one by one.
[0018] Such as figure 2 Shown is the module diagram of the BMC switch control system of the rack server. In this embodiment, the BMC switch control system 21 of the rack server includes a receiving module 210, an analysis module 211, a judgment module 212, a control module 213, and a detection module 214. The module referred to in the present invention refers to a series of computer program segments that can be executed by the processor 10 and can complete fixed functions, and are stored in the memory 9. In this embodiment, the function of each module will be described in image 3 Detailed description in the flowchart.
[0019] Such as image 3 Shown is a flowchart of a preferred embodiment of the method for controlling the BMC switch on and off of the cabinet server of the present invention. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0020] Step S10, initializing the connection between the I2C controller 12 of the rack management controller 2 and the I2C expander 3, the connection between the I2C expander 3 and each server 6, and so on.
[0021] Step S11, the receiving module 210 receives the serial number and operation mode value of at least one server 6 input by the user on the display device 8.
[0022] The number of the input server may be multiple. The operation mode includes restarting, switching on and off. For example, set the operating mode value 0 to represent restart, and the operating mode value 1 represents power on and off. In this embodiment, the number and operation mode of the server 6 will be presented on the display device 8 in a human-computer interaction manner such as a user command terminal or a WEB interface, so that the user can select and operate.
[0023] In step S12, the parsing module 211 analyzes the server corresponding to the serial number according to the serial number of the received server, and connects the communication of the cabinet management controller 2 to the server through the I2C expander 3.
[0024] Step S13: The judging module 212 judges whether the operating mode corresponding to the server is restart according to the received operating mode value.
[0025] When the received operation mode value is 0, it means that the operation mode corresponding to the server is restart, and step S14 is executed; when the received operation mode value is not 0, it means that the operation mode corresponding to the server is switch Machine, go to step S15.
[0026] In step S14, the control module 213 sends a restart control signal to the server through the I2C expander 3 to control the restart signal of the power management chip 11 of the server to be connected to the BMC to trigger the restart of the BMC.
[0027] In step S15, the detecting module 214 detects the on-off state of the BMC of the server.
[0028] In this embodiment, the detection module 214 can determine whether the state of the BMC is on by detecting the power-on signal PS_GOOD of the BMC of the server. Generally, when the power on/off signal is high, the state of the BMC is on; when the power on/off signal is low, the BMC is off.
[0029] The detection module 214 can also determine whether the status of the BMC is booting by detecting the interrupt signal fed back to the rack management controller 2 by the server. If the interrupt signal transitions from a low level to a high level, the state of the BMC is turned on; if the interrupt signal transitions from a high level to a low level, the state of the BMC is turned off.
[0030] When the BMC is powered on, perform step S16; when the BMC is powered off, perform step S17;
[0031] In step S16, the control module 213 sends a shutdown control signal to the server through the I2C expander 3 to control the shutdown signal of the power management chip 11 of the server to connect to the BMC to trigger the shutdown of the BMC.
[0032] In step S17, the control module 213 sends a power-on control signal to the server through the I2C expander 3 to control the power-on signal of the power management chip 11 of the server to connect to the BMC to trigger the power-on of the BMC.
[0033] Through the present invention, the BMC switch control system and method of the cabinet server can control the BMC switch and restart of any one or more servers in the cabinet through the cabinet management controller, without cutting off the AC power of a single server The BMC can be switched on and off and restarted; the cost is low and convenient. At the same time, the server management tends to be centralized from distributed to centralized management, which is convenient for the development of management programs, and it is also convenient for developers and IT managers to debug.
[0034] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements are made without departing from the spirit and scope of the technical solution of the present invention.