1. Technical Field
Embodiments of the current disclosure relate to network configuration, and particularly to a baseboard management controller and a network configuration method of the baseboard management controller.
2. Description of Related Art
A baseboard management controller (BMC) is a specialized microcontroller embedded in a computer, especially in a server, for example. The BMC is connected to a network via one or more network interface devices. Each network interface device may include more than one network port for transferring data between the BMC and remote devices over the network. If the network configuration of BMC is incorrect, the BMC may fail to communicate with remote devices over the network.
In general, the word “module,” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or Assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
In one embodiment, the BMC 10 may further include a storage system 14, and at least one processor 15. The storage system 14 may include a network configuration register that store network port information of the BMC 10. The processor 15 executes one or more computerized codes of the BMC 10 to provide the functions of the BMC 10.
The read module 200 reads the network port information of the BMC 10 from the storage system 14, and determines a current active network port from network ports of the network interface device 12 according to the network port information. It may be understood that an active network port is a working network port defined by the network port information. In one embodiment, the read module 200 reads the network port information of the BMC 10 when a connection between the network ports of the network interface device 12 and the network 13 has changed. In one example with respect to
The detection module 210 detects whether the current active network port works properly. In one embodiment, the detection module 210 checks if the current active network port is connected to the network 13, and checks if data transfer of the current active network port is correct. If the current active network port is not connected to the network 13 or the data transfer of the current active network port is incorrect, the detection module 210 determines that the current active network port works improperly.
The determination module 220 determines a new active network port from the network ports of the network interface device 12 if the current active network port does not work properly. In one example with respect to
The updating module 230 updates the network port information of the BMC 10 according to the new active network port. In one example, each network port of the network interface device 12 is allocated a unique ID. If the network port Port4 is determined as the new active network port, the network port information of the BMC 10 is updated with an ID of the network port Port4.
In block S301, the read module 200 reads network port information of the BMC 10 from the storage system 14, and determines a current active network port from network ports of the network interface device 12 according to the network port information.
In block S302, the detection module 210 detects if the current active network port works properly. In one embodiment, if the current active network port is not connected to the network 13 or data transfer of the current active network port is incorrect, the detection module 210 determines that the current active network port does not work properly. If the current active network port works properly, the procedure ends.
Otherwise, if the network port does not work properly, in block S303, the determination module 220 determines a new active network port from the network ports of the network interface device 12.
In block S304, the updating module 230 updates the network port information of the BMC 10 according to the new active network port. As such, the BMC 10 connects to the network 13 via the new active network port, and communicates with the network 13 through the new active network port.
Although certain inventive embodiments of the current disclosure have been specifically described, the current disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the current disclosure without departing from the scope and spirit of the current disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010135028.8 | Mar 2010 | CN | national |