CN114489818A - BMC configuration method and device based on BIOS - Google Patents

BMC configuration method and device based on BIOS Download PDF

Info

Publication number
CN114489818A
CN114489818A CN202111681688.0A CN202111681688A CN114489818A CN 114489818 A CN114489818 A CN 114489818A CN 202111681688 A CN202111681688 A CN 202111681688A CN 114489818 A CN114489818 A CN 114489818A
Authority
CN
China
Prior art keywords
bmc
configuration
bios
ipmi
command set
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.)
Pending
Application number
CN202111681688.0A
Other languages
Chinese (zh)
Inventor
陈小春
张超
朱立森
孙亮
石李鹏
黄超
易祝兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Clp Technology Beijing Co ltd
Original Assignee
Clp Technology Beijing Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Clp Technology Beijing Co ltd filed Critical Clp Technology Beijing Co ltd
Priority to CN202111681688.0A priority Critical patent/CN114489818A/en
Publication of CN114489818A publication Critical patent/CN114489818A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a BMC configuration device and method based on BIOS, which can solve the problem that a user can not log in BMC WEB in time to carry out BMC user configuration. At the BIOS end, when the Web login end of the BMC has a fault that the login cannot be performed, restarting a server, entering a BMC configuration interface of the BIOS login interface, and inputting BMC configuration parameters; packaging BMC configuration parameters according to an IPMI protocol format recognizable by BMC to obtain an IPMI command set; packaging according to a bus protocol agreed between the BIOS and the BMC, and sending the packaged data to the BMC; at the BMC end, the BMC in the monitoring state after being electrified and started detects a data packet from the BIOS, and analyzes the data packet to obtain an IPMI command set; analyzing the IPMI command set according to the IPMI protocol structure, and identifying the IPMI command containing BMC configuration parameters; and executing the BMC configuration parameters carried by the IPMI command one by one to realize the parameter configuration of the BMC.

Description

BMC configuration method and device based on BIOS
Technical Field
The invention belongs to the technical field of computer firmware, and particularly relates to a method and a device for BMC configuration based on a BIOS (basic input/output system).
Background
The BIOS (basic Input Output system), i.e., the basic Input Output system, is a boot program deployed On the ROM chip of the motherboard, and the BIOS is responsible for a computing system Self-Test Program (POST) and a system Self-boot program, and thus is the first program after the computer system is started. The BIOS is stored in the ROM chip and can still maintain the original settings after power is removed.
A BMC (Baseboard Management Controller) is a control unit having an independent power supply and an independent I/O interface, and is disposed in a server, and can control peripherals such as a sensor, a hard disk, a network, and a graphics card of the server. No matter whether the server is provided with an operating system or not, and whether the server is started or not, the BMC can monitor the running condition of the server as long as the baseboard management controller is electrified.
The LPC Bus (Low pin count Bus) is used to connect Low bandwidth devices to the CPU. Common low speed devices are: BIOS, serial port, parallel port, PS/2 keyboard and mouse, and soft disc controller.
IPMI (Intelligent Platform Management Interface) is a set of interactive standard Management specifications for server system cluster autonomy and monitoring physical health characteristics of servers, such as temperature, voltage, fan operating state, power state, etc. Meanwhile, the IPMI is also responsible for recording information and log records of various hardware, and is used for prompting a user and positioning subsequent problems.
The good autonomy of IPMI overcomes the limitation of the prior management mode based on an operating system, for example, the IPMI can still perform the operations of startup and shutdown, information extraction and the like under the condition that the operating system does not respond or is not loaded. The relationship diagram of BMC, BIOS and IPMI is shown in FIG. 1.
With the deployment of mass servers, the BMC has an important role because the BMC can perform operations such as remote management, monitoring, installation, and restart on the servers. At present, user information of the BMC can only be configured at a BMC Web end, but when a network fails or the original BMC is abnormal, the user cannot log in the BMC Web to perform user configuration in time.
Disclosure of Invention
In view of this, the present invention provides a BMC configuration method and apparatus based on a BIOS, where BMC user information can be configured at a BIOS end, and a problem that a user cannot log in a BMC WEB to configure a BMC user in time can be solved.
In view of the above problem, the present invention provides a BMC configuration device based on BIOS, including: a configuration Baseboard Management Controller (BMC) unit arranged in the BIOS and a configuration lead-in unit arranged in the BMC;
the configuration BMC unit comprises a configuration input module, an IPMI protocol conversion module and a BMC communication module;
the configuration input module is used for displaying a BMC configuration interface for configuring BMC parameters and receiving externally input BMC configuration parameters after the BIOS is started;
the IPMI protocol conversion module is used for packaging the BMC configuration parameters into an IPMI command set which can be identified by the BMC according to the IPMI protocol structure after the configuration input module acquires the BMC configuration parameters, and sending the IPMI command set to the BMC communication module;
the BMC communication module is used for packaging the IPMI command set into a data packet according to a bus protocol agreed between the BIOS and the BMC and sending the data packet to the BMC;
the BMC configuration lead-in unit comprises a BIOS communication module, an IPMI protocol analysis module and a configuration item loading module;
the BIOS communication module is used for receiving the data packet and sending the IPMI command set in the data packet to the IPMI protocol conversion module for analysis;
the IPMI protocol analysis module is used for analyzing the received IPMI command set according to the IPMI protocol structure to obtain the IPMI command containing the BMC configuration parameters;
and the configuration item loading module is used for configuring the corresponding BMC parameters according to the BMC configuration parameters carried by the IPMI command.
Preferably, the IPMI command set includes the following fields:
the type is defined for the type of the BMC configuration parameter;
the number N of the configuration items defines the number of the configuration items in the data packet;
a check value, which defines the check value of the IPMI command set;
the configuration item data defines configuration data of N configuration items, and specifically comprises the following steps: the name of each configuration item; IPMI command for each configuration item; the parameters of each configuration item that need to be configured.
Preferably, the bus protocol agreed between the BIOS and the BMC is a Low Pin Count (LPC) bus protocol.
Preferably, the BMC configuration parameter includes an IP address of the BMC and user information of the BMC.
Preferably, the BIOS communication module receives the data packet and feeds back the reception condition to the BIOS.
Preferably, when a login failure incapability occurs at the Web login end of the BMC, the server is restarted, and the configuration BMC unit is called to display a BMC configuration interface of the BIOS login interface.
The invention also provides a BMC configuration method based on BIOS,
step 1, when a Web login end of BMC has a fault that login cannot be performed, restarting a server, and entering a BMC configuration interface of a BIOS login interface;
step 2, configuring BMC configuration parameters in a BMC configuration interface;
step 3, packaging the BMC configuration parameters according to an IPMI protocol format which can be identified by the BMC to obtain an IPMI command set;
step 4, packing the IPMI command set into a data packet according to a bus protocol agreed between the BIOS and the BMC, and sending the data packet to the BMC;
step 5, after power-on starting, the BMC in the monitoring state detects a data packet from the BIOS, and analyzes the data packet according to the bus protocol to obtain an IPMI command set;
step 6, analyzing the IPMI command set according to an IPMI protocol structure, and identifying an IPMI command containing BMC configuration parameters;
and 7, executing the BMC configuration parameters carried by the IPMI command one by one to realize the parameter configuration of the BMC.
Preferably, the IPMI command set includes the following fields:
the type is defined for the type of the BMC configuration parameter;
the number N of the configuration items defines the number of the configuration items in the data packet;
a check value, which defines the check value of the IPMI command set;
the configuration item data defines configuration data of N configuration items, and specifically comprises the following steps: the name of each configuration item; IPMI command for each configuration item; each configuration item requires parameters to be configured.
Preferably, the bus protocol agreed between the BIOS and the BMC is an LPC bus protocol.
Preferably, the BMC configuration parameter includes an IP address of the BMC and user information of the BMC.
Has the advantages that:
the invention creatively provides that BMC user information can be configured at the BIOS end. The configuration process is implemented by the BIOS encapsulating specific packets using IPMI protocol, and passing all information needed to configure the BMC to the BMC via the bus. When a network fails or an original BMC user is abnormal, the user cannot log in the BMC WEB in time to perform user configuration, and the user can perform user information configuration by using the function on a BIOS configuration interface, so that operations such as inquiring, adding, changing and deleting of the BMC user are realized.
Drawings
FIG. 1 is a diagram of the relationship of BMC, BIOS and IPMI;
FIG. 2 is an architecture diagram of the BIOS configuration BMC parameters;
FIG. 3 is a BMC configuration item data structure;
FIG. 4 is a general block diagram of BIOS communicating with BMC and passing user information;
FIG. 5 is a flow chart of the BIOS sending BMC configuration;
FIG. 6 is a flow chart illustrating the BMC receiving the BIOS configuration.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
The invention provides a scheme for configuring BMC based on BIOS, which has the core idea that the user information of BMC can only be configured at the Web end of BMC at present, and innovatively proposes that the user information of BMC can be configured at the BIOS end. The configuration process is realized by packaging a specific data packet by using an IPMI protocol and an LPC communication technology through a BIOS and transmitting all information needing to configure the BMC to the BMC. In the invention, the IPMI bottommost physical path supports but is not limited to an LPC bus, and the problem that a user cannot log in a BMC WEB in time to configure a BMC user can be solved.
FIG. 2 is a schematic diagram of a BMC configuration device based on BIOS according to the present invention. As shown in FIG. 2, the present invention requires adding a configuration BMC unit to the BIOS and a configuration import unit to the BMC.
At the BIOS end, the configuration BMC unit comprises a configuration input module, an IPMI protocol conversion module and a BMC communication module:
and the configuration input module is used for displaying a BMC configuration interface for configuring the BMC parameters and receiving the BMC configuration parameters input from the outside after the BIOS is started. The BMC configuration parameters comprise an IP address of the BMC and user information of the BMC. The display interface can also be divided into an IP address configuration interface, a user information configuration interface and other related interfaces. In a use scene, when a Web login end of the BMC fails to log in due to user configuration information error, the server is restarted, the configuration BMC unit is called, and a BMC configuration interface can be displayed on a BIOS interface.
And the IPMI protocol conversion module is used for packaging the BMC configuration parameters into an IPMI command set which can be identified by the BMC according to the IPMI protocol structure after the configuration input module acquires the BMC configuration parameters, and sending the IPMI command set to the BMC communication module.
In this embodiment, as shown in fig. 3, the IPMI command set includes the following fields:
and the type defines the type of the BMC configuration parameter, such as BMC configuration.
And the number N of the configuration items defines the number of the configuration items in the data packet. The configuration items are control items used by the BMC for controlling and managing the server, and mainly comprise a user name, a password and user authority which are required for logging in WEB, a fan rotating speed for controlling the fan state and an on-off option for controlling the on-off state of the server.
A check value, defining a check value for the IPMI command set.
The configuration item data defines configuration data of N configuration items, and specifically comprises the following steps: the name of each configuration item; IPMI command for each configuration item; each configuration item requires a configured parameter.
The BMC communication module is used for packaging the IPMI command set into a data packet and sending the data packet to the BMC according to a bus protocol agreed between the BIOS and the BMC, wherein the bus protocol is an LPC bus protocol in the embodiment; and receiving feedback of the BMC.
At the BMC end, the BMC configuration lead-in unit comprises a BIOS communication module, an IPMI protocol analysis module and a configuration item loading module:
and the BIOS communication module is used for receiving a data packet of an LPC or other bus protocols, extracting an IPMI command set in the data packet, sending the IPMI command set to the IPMI protocol conversion module for analysis, and feeding back the receiving condition to the BIOS.
And the IPMI protocol analysis module is used for analyzing the received IPMI command set according to the IPMI protocol structure and identifying the IPMI command containing the BMC configuration parameters.
And the configuration item loading module is used for configuring the corresponding BMC parameters according to the BMC configuration parameters carried by the IPMI command.
Based on the above device, the present invention can configure the related parameters of the BMC through the BIOS configuration interface, and the general block diagram of the implementation of the method is shown in fig. 4. Specifically, fig. 5 shows the work flow through the BIOS side, and fig. 6 shows the work flow of the BMC side.
Referring to FIG. 5, the main steps of the BIOS configuring the BMC user information include:
step one, powering on a server, if a WEB login page of a BMC (baseboard management controller) cannot be accessed through a network, judging that the user information (user name and user password) is set wrongly, and turning to the next step; if logging in normally, the process ends.
And step two, restarting the server, and pressing a shortcut key to enter a BIOS login interface. And logging in the BIOS by the identity of an administrator, and entering a BMC configuration interface.
And step three, configuring BMC configuration parameters including parameters such as IP addresses and user information in a BMC configuration interface.
And fourthly, reading the BMC configuration parameters by the BIOS, and finishing packaging the BMC configuration parameters according to an IPMI protocol format recognizable by the BMC to form an IPMI command set. The IPMI command set mainly comprises information such as command format, command length and each command word.
And step five, packing the IPMI command set according to the LPC or other bus protocols agreed between the BIOS and the BMC, adding a data packet header specified by the bus protocol, and then sending the IPMI command set to the BMC through the bottom LPC or other bus protocols.
Referring to fig. 6, the main steps of the BMC receiving the BIOS information configuration include:
step one, the BMC is electrified to start the BCM to be in a monitoring state.
And step two, detecting whether a data packet sent by the BIOS is received.
And step three, analyzing the received data packet according to an LPC or other bus protocols to obtain an IPMI command set.
And step four, analyzing the IPMI command set according to an IPMI protocol structure, and identifying the IPMI command containing BMC configuration parameters.
And step five, executing the BMC configuration parameters carried by the IPMI command one by one to realize the parameter configuration of the BMC.
This flow ends by this point.
The above embodiments only describe the design principle of the present invention, and the shapes and names of the components in the description may be different without limitation. Therefore, a person skilled in the art of the present invention can modify or substitute the technical solutions described in the foregoing embodiments; such modifications and substitutions do not depart from the spirit and scope of the present invention.

Claims (10)

1. A BMC configuration apparatus based on BIOS, comprising: a configuration Baseboard Management Controller (BMC) unit arranged in the BIOS and a configuration lead-in unit arranged in the BMC;
the configuration BMC unit comprises a configuration input module, an IPMI protocol conversion module and a BMC communication module;
the configuration input module is used for displaying a BMC configuration interface for configuring BMC parameters and receiving externally input BMC configuration parameters after the BIOS is started;
the IPMI protocol conversion module is used for packaging the BMC configuration parameters into an IPMI command set which can be identified by the BMC according to the IPMI protocol structure after the configuration input module acquires the BMC configuration parameters, and sending the IPMI command set to the BMC communication module;
the BMC communication module is used for packaging the IPMI command set into a data packet according to a bus protocol agreed between the BIOS and the BMC and sending the data packet to the BMC;
the BMC configuration lead-in unit comprises a BIOS communication module, an IPMI protocol analysis module and a configuration item loading module;
the BIOS communication module is used for receiving the data packet and sending the IPMI command set in the data packet to the IPMI protocol conversion module for analysis;
the IPMI protocol analysis module is used for analyzing the received IPMI command set according to the IPMI protocol structure to obtain the IPMI command containing the BMC configuration parameters;
and the configuration item loading module is used for configuring the corresponding BMC parameters according to the BMC configuration parameters carried by the IPMI command.
2. The BIOS-based BMC configuration device of claim 1, wherein the IPMI command set comprises fields as follows:
the type is defined for the type of the BMC configuration parameter;
the number N of the configuration items defines the number of the configuration items in the data packet;
a check value, which defines the check value of the IPMI command set;
the configuration item data defines configuration data of N configuration items, and specifically comprises the following steps: the name of each configuration item; IPMI command for each configuration item; the parameters of each configuration item that need to be configured.
3. The BIOS-based BMC configuration device of claim 1, wherein the bus protocol agreed between the BIOS and the BMC is a Low Pin Count (LPC) bus protocol.
4. The BIOS-based BMC configuration device of claim 1, wherein the BMC configuration parameter comprises an IP address of the BMC, a user information of the BMC.
5. The BIOS-based BMC configuration device of claim 1, wherein the BIOS communication module receives a data packet and feeds back the reception to the BIOS.
6. The BMC configuration apparatus of claim 1, wherein when a login failure occurs at a Web login end of the BMC, the server is restarted, and the configuration BMC unit is invoked to display a BMC configuration interface of the BIOS login interface.
7. A BMC configuration method based on BIOS is characterized in that,
step 1, when a Web login end of BMC has a fault that login cannot be performed, restarting a server, and entering a BMC configuration interface of a BIOS login interface;
step 2, configuring BMC configuration parameters in a BMC configuration interface;
step 3, packaging the BMC configuration parameters according to an IPMI protocol format which can be identified by the BMC to obtain an IPMI command set;
step 4, packing the IPMI command set into a data packet according to a bus protocol agreed between the BIOS and the BMC, and sending the data packet to the BMC;
step 5, after power-on starting, the BMC in the monitoring state detects a data packet from the BIOS, and analyzes the data packet according to the bus protocol to obtain an IPMI command set;
step 6, analyzing the IPMI command set according to an IPMI protocol structure, and identifying an IPMI command containing BMC configuration parameters;
and 7, executing the BMC configuration parameters carried by the IPMI command one by one to realize the parameter configuration of the BMC.
8. The method of claim 7, wherein the IPMI command set comprises the following fields:
the type is defined for the type of the BMC configuration parameter;
the number N of the configuration items defines the number of the configuration items in the data packet;
a check value, which defines the check value of the IPMI command set;
the configuration item data defines configuration data of N configuration items, and specifically comprises the following steps: the name of each configuration item; IPMI command for each configuration item; each configuration item requires parameters to be configured.
9. The method of claim 7, wherein the bus protocol agreed between the BIOS and the BMC is an LPC bus protocol.
10. The method of claim 7, wherein the BMC configuration parameters comprise an IP address of a BMC, user information of a BMC.
CN202111681688.0A 2021-12-30 2021-12-30 BMC configuration method and device based on BIOS Pending CN114489818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111681688.0A CN114489818A (en) 2021-12-30 2021-12-30 BMC configuration method and device based on BIOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111681688.0A CN114489818A (en) 2021-12-30 2021-12-30 BMC configuration method and device based on BIOS

Publications (1)

Publication Number Publication Date
CN114489818A true CN114489818A (en) 2022-05-13

Family

ID=81509352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111681688.0A Pending CN114489818A (en) 2021-12-30 2021-12-30 BMC configuration method and device based on BIOS

Country Status (1)

Country Link
CN (1) CN114489818A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005471A (en) * 2015-06-24 2015-10-28 北京百度网讯科技有限公司 Method, device, server and system for modifying configuration parameters of BIOS
WO2017054573A1 (en) * 2015-09-29 2017-04-06 中兴通讯股份有限公司 Configuration method and device
CN108170451A (en) * 2017-12-28 2018-06-15 曙光信息产业股份有限公司 A kind of method and system of server B MC controls bios version upgrading
CN109857466A (en) * 2018-11-29 2019-06-07 新华三技术有限公司 BIOS collocation method, device, server and computer readable storage medium
CN112463222A (en) * 2020-11-11 2021-03-09 苏州浪潮智能科技有限公司 Data interaction method, device and equipment between server BIOS and BMC

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005471A (en) * 2015-06-24 2015-10-28 北京百度网讯科技有限公司 Method, device, server and system for modifying configuration parameters of BIOS
WO2017054573A1 (en) * 2015-09-29 2017-04-06 中兴通讯股份有限公司 Configuration method and device
CN108170451A (en) * 2017-12-28 2018-06-15 曙光信息产业股份有限公司 A kind of method and system of server B MC controls bios version upgrading
CN109857466A (en) * 2018-11-29 2019-06-07 新华三技术有限公司 BIOS collocation method, device, server and computer readable storage medium
CN112463222A (en) * 2020-11-11 2021-03-09 苏州浪潮智能科技有限公司 Data interaction method, device and equipment between server BIOS and BMC

Similar Documents

Publication Publication Date Title
US10846160B2 (en) System and method for remote system recovery
US7930425B2 (en) Method of effectively establishing and maintaining communication linkages with a network interface controller
US8560686B2 (en) Communicating with an in-band management application through an out-of-band communications channel
CN102244591B (en) Client server and method for full process monitoring on function text of client server
US7840736B2 (en) Bus communication enumeration
US6249812B1 (en) Interactive system support using a system management asic
US7788520B2 (en) Administering a system dump on a redundant node controller in a computer system
US7159146B2 (en) Analyzing system error messages
US8190774B2 (en) Managing virtual addresses of blade servers in a data center
CN113285822A (en) Data center troubleshooting mechanism
US10536329B2 (en) Assisted configuration of data center infrastructure
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
US20090157858A1 (en) Managing Virtual Addresses Of Blade Servers In A Data Center
US9047190B2 (en) Intrusion protection for a client blade
CN115277348A (en) Server management method, server and server management system
US20200342109A1 (en) Baseboard management controller to convey data
CN114510381A (en) Fault injection method, device, equipment and storage medium
US10990496B2 (en) System and method to derive health information for a general purpose processing unit through aggregation of board parameters
CN114489818A (en) BMC configuration method and device based on BIOS
TW201523277A (en) Server system and node detection method
CN115408016A (en) Computing cluster deployment method and device, electronic equipment and storage medium
CN115543755A (en) Performance monitoring method, device, system, equipment and medium
CN114510259A (en) Method and device for importing and exporting BIOS configuration based on BMC
CN114138574A (en) Controller testing method, device, server and storage medium
CN112579507A (en) Host machine and BMC communication method, BIOS, operating system, BMC and server

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
CB02 Change of applicant information

Address after: 100083 north side, 13th floor, Taiji building, No.6 working area (South), wohuqiao, Haidian District, Beijing

Applicant after: Kunlun Taike (Beijing) Technology Co.,Ltd.

Address before: 100083 north side, 13th floor, Taiji building, No.6 working area (South), wohuqiao, Haidian District, Beijing

Applicant before: CLP Technology (Beijing) Co.,Ltd.

CB02 Change of applicant information