[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115525348A - BMC control method, control device and server platform - Google Patents

BMC control method, control device and server platform Download PDF

Info

Publication number
CN115525348A
CN115525348A CN202211197098.5A CN202211197098A CN115525348A CN 115525348 A CN115525348 A CN 115525348A CN 202211197098 A CN202211197098 A CN 202211197098A CN 115525348 A CN115525348 A CN 115525348A
Authority
CN
China
Prior art keywords
bmc
target
information
field
identification information
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
CN202211197098.5A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211197098.5A priority Critical patent/CN115525348A/en
Publication of CN115525348A publication Critical patent/CN115525348A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The embodiment of the application provides a control method, a control device and a server platform for BMC, wherein the method comprises the following steps: under the condition that the target BMC is started, reading preset field information in a field replaceable unit of the target BMC, wherein the preset field information is information representing a name of a target third party, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the name of the third party, and at least part of functional modules are different in identification information; and adjusting the working state of each functional module according to the preset field information and each identification information, wherein the working state comprises a starting state and a non-starting state. Through the method and the device, the problem that in the related technology, when a third-party user of the server changes, the BMC version needs to be refreshed, and the manpower maintenance cost is high is solved, and the effect of saving the manpower cost for upgrading the BMC is achieved.

Description

BMC control method, control device and server platform
Technical Field
The embodiment of the application relates to the field of servers, in particular to a BMC control method, a control device, a computer readable storage medium, an electronic device and a server platform.
Background
The BMC executes a server remote Management Controller, which is called a Baseboard Management Controller in english, and is a Baseboard Management Controller. The BMC can realize functions of relevant control, information monitoring and the like of the server, and is a platform for visually presenting server information. The firmware of the BMC generally exists in a Flash (memory chip), and includes information such as uboot (boot loader), kernel, file system, application processes and the like, and the BMC functions are consistent for BMCs of the same model. When the server is handed over to a different third party for use, the BMC needs to adapt to a different set of functions.
Under the existing conditions, when the same model is handed over by a cloud service provider to be used by different third parties, a version of BMC needs to be independently generated according to a function set required by a third party user, when a plurality of third parties exist, a plurality of versions of BMC exist, and when a server switches users, the version of BMC needs to be refreshed by the cloud service provider, so that the labor cost and the delivery cycle are increased.
Disclosure of Invention
The embodiment of the application provides a BMC control method, a control device, a computer readable storage medium, an electronic device and a server platform, so as to at least solve the problem that in the related art, when a third-party user of a server changes, a BMC version needs to be refreshed, and the labor maintenance cost is high.
According to an embodiment of the present application, there is provided a BMC control method including: under the condition that a target BMC is started, reading preset Field information in a Field Replaceable Unit (FRU) of the target BMC, wherein the preset Field information is information representing a name of a target third party, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the name of the third party, and at least part of identification information of the functional modules is different; and adjusting the working state of each functional module according to the preset field information and each identification information, wherein the working state comprises a starting state and a non-starting state.
In an exemplary embodiment, adjusting the operating state of each of the functional modules according to the predetermined field information and each of the identification information includes: determining a target function module according to the preset field information and each identification information, wherein the target function module is the function module corresponding to the identification information matched with the preset field information; and controlling the target function module to be started, and controlling the function modules except the target function module in the target BMC not to be started, so that the working state of the target function module is the starting state, and the working state of the function modules except the target function module is the non-starting state.
In an exemplary embodiment, determining the target function module according to the predetermined field information and each of the identification information includes: reading all the identification information; comparing each identification information with the preset field information, and determining the functional module corresponding to the identification information which is the same as the preset field information as the target functional module under the condition that the identification information is the same as the preset field information.
In an exemplary embodiment, reading the predetermined field information in the field-replaceable unit of the target BMC includes: acquiring a field configuration file of the field replaceable unit; and retrieving the field configuration file, and determining the field value corresponding to the preset field as the preset field information.
In one exemplary embodiment, the method further comprises: modifying the predetermined field information in the field replaceable unit according to a modification instruction under the condition that the modification instruction is received to obtain the modified field replaceable unit, wherein the modification instruction is an instruction for requesting to modify the predetermined field information into target information; controlling the target BMC to restart upon obtaining the modified field replaceable unit.
In another exemplary embodiment, before reading the predetermined field information in the field replaceable unit of the target BMC in case of start-up of the target BMC, the method further includes: adding the predetermined field to the original field replaceable unit to obtain the field replaceable unit.
According to another embodiment of the present application, there is provided a control device of a BMC, including: the system comprises a first reading unit, a second reading unit and a third reading unit, wherein the first reading unit is used for reading preset field information in a field replaceable unit of a target BMC under the condition that the target BMC is started, the preset field information is information representing a target third party name, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the third party name, and at least part of the identification information of the functional modules is different; and the adjusting unit is used for adjusting the working state of each functional module according to the preset field information, wherein the working state comprises a starting state and a non-starting state.
According to a further embodiment of the application, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present application, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
According to another embodiment of the present application, there is also provided a server platform including a BMC and a controller of the BMC, the controller being configured to perform the steps of any one of the method embodiments described above.
According to the control method, the name information of the third party of the characterization server is stored in the preset field of the field replaceable unit, each functional module in the BMC carries the identification information of the name of the characterization third party, and under the condition that the BMC is started, whether the functional module corresponding to the identification information is started or not is controlled by reading the preset field information in the field replaceable unit according to the preset field information and the identification information, so that the function of the adjusted BMC can be adapted to the current third party user. Therefore, when the third party changes, the upgrading of the BMC version can be realized without manual refreshing, the automatic upgrading of the BMC version is realized, the labor cost of BMC upgrading is saved, and the problem that the labor maintenance cost is high because a BMC version needs to be refreshed when a third party user of a server changes in the related art is effectively solved.
Drawings
FIG. 1 is a flow chart of a control method of a BMC according to an embodiment of the application;
FIG. 2 is another flow chart of a control method of a BMC according to an embodiment of the application;
FIG. 3 is a further flowchart of a method for controlling a BMC according to an embodiment of the application;
FIG. 4 is a block diagram of a control device of a BMC according to an embodiment of the application;
fig. 5 is a schematic hardware configuration diagram of a mobile terminal according to a control method of the BMC in an embodiment of the present application.
Wherein the figures include the following reference numerals:
102. a processor; 104. a memory; 106. a transmission device; 108. and an input/output device.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a method for controlling a BMC is provided, and fig. 1 is a flowchart according to an embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
step S101, under the condition that a target BMC is started, reading preset field information in a field replaceable unit of the target BMC, wherein the preset field information is information representing a target third party name, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the third party name, and at least part of the identification information of the functional modules is different;
the third-party service to be operated by the server can be determined by reading the field information on the field replaceable unit, namely the predetermined field of the FRU, and the third-party service corresponding to each functional module can be determined by the identification information carried on each functional module in the BMC.
In practical applications, before reading the predetermined field information in the field replaceable unit of the target BMC when the target BMC is started, the method further includes: adding said predetermined field to an initial said field replaceable unit to obtain said field replaceable unit. Before the above step S101 is performed, information characterizing the name of the target third party needs to be added to a predetermined field of the FRU.
In addition, when the target BMC is started, before reading the predetermined field information in the field replaceable unit of the target BMC, the method further includes: marking identification information on the functional module corresponding to each third party, and storing all the functional modules carrying the identification information into the BMC. By integrating different services in one BMC, the same BMC version can provide various package functions, and therefore research and development cost of cloud service providers can be saved.
The third party may refer to different user services, or may refer to different server users. Different third party services correspond to different versions of firmware. The predetermined field information may be an abbreviation of a user service, and different user services may also be represented by different code information, which may be flexibly set according to actual conditions. The FRU is set in a system file of the target BMC. One third party may correspond to one functional module, or may correspond to a plurality of functional modules. One of the functional modules may be a BMC firmware, or all functional modules with the same identification information may form a BMC firmware.
The person skilled in the art may read the predetermined field information characterizing the name of the target third party from the FRU in any suitable manner. In a specific embodiment, a specific process of reading the predetermined field information in the field-replaceable unit of the target BMC may include the following steps:
acquiring a field configuration file of the field replaceable unit;
and searching the field configuration file, and determining the field value corresponding to the preset field as the preset field information.
In the above embodiment, the predetermined field information can be retrieved relatively quickly by retrieving the field configuration file of the field replaceable unit.
Step S102, adjusting the working status of each functional module according to the predetermined field information and each identification information, where the working status includes a start status and a non-start status.
And enabling or disabling each functional module according to a target third party represented by the preset field information and the third party corresponding to each functional module, and automatically matching the adjusted version of the BMC firmware with the target third party service represented by the preset field information without manually upgrading the BMC firmware.
In this embodiment of the application, a specific implementation manner of adjusting the operating state of each functional module according to the predetermined field information and each identification information is shown in fig. 2, and includes the following steps:
step S1021, according to the predetermined field information and each of the identification information, determining a target function module, wherein the target function module is the function module corresponding to the identification information matched with the predetermined field information;
step S1022, controlling the target function module to be activated, and controlling the function modules in the target BMC except for the target function module not to be activated, so that the working status of the target function module is the activated status, and the working status of the function modules except for the target function module is the inactivated status.
In the process, the functional module carrying the identification information matched with the preset field information is determined as the target functional module, then the target functional module is controlled to be enabled, and other functional modules except the target functional module are forbidden, so that the function of the adjusted BMC is adapted to the current third-party user, and the self-adaptation of the multi-package BMC is further realized.
The matching of the predetermined field information and the identification information may mean that the two have at least partially the same information, or that the two satisfy a one-to-one correspondence relationship. In this embodiment of the application, the matching is that the predetermined field information is the same as the identification information, and the specific implementation process of the step S1021 may be: reading all the identification information; comparing each piece of the identification information with the predetermined field information, and determining the functional module corresponding to the identification information identical to the predetermined field information as the target functional module when the identification information is identical to the predetermined field information.
The method further comprises the following steps:
step S103, in the case of receiving a modification instruction, modifying the predetermined field information in the field replaceable unit according to the modification instruction to obtain a modified field replaceable unit, where the modification instruction is an instruction for requesting to modify the predetermined field information to be target information;
and step S104, controlling the target BMC to restart under the condition that the modified field replaceable unit is obtained.
In the process, when the version of the BMC is required to be updated, namely the function of the BMC package is required to be switched, the preset field information in the FRU is modified firstly, then the BMC is restarted, and the BMC completes the automatic switching of the package in the starting process. The switching of the package function is completed by directly modifying the preset field information of the FRU on line, the work of manually refreshing the BMC firmware is avoided, the maintenance labor cost is saved, the product on-line period is shortened, the product completion period is shortened, and the research and development efficiency is improved.
After the step S104 is executed, the step S101 and the step S102 need to be executed in order to complete the switching of the BMC function package.
The above-described modification instructions can be implemented by a simple management network command.
The execution sequence of step S103 and step S104 may be interchanged with the execution sequence of step S101 and step S102, that is, step S103 and step S104 may be executed first, and then step S101 and step S102 may be executed, or step S101 and step S102 may be executed first, and then step S103 and step S104 may be executed.
According to the control method, the name information of the third party of the characterization server is stored in the preset field of the field replaceable unit, each function module in the BMC carries the identification information of the name of the characterization third party, and under the condition that the BMC is started, whether the function module corresponding to the identification information is started or not is controlled by reading the preset field information in the field replaceable unit according to the preset field information and the identification information, so that the function of the adjusted BMC can be adapted to the current third party user. Therefore, when a third party changes, the upgrading of the BMC version can be realized without manual refreshing, the automatic upgrading of the BMC version is realized, the labor cost of upgrading the BMC is saved, and the problem that the labor maintenance cost is high because a BMC version needs to be refreshed when a third party user of a server changes in the related art is effectively solved.
Moreover, when the server switches to a third party, updating the BMC version can also increase the delivery cycle of the server of the cloud service provider.
In addition, as the BMC stores a plurality of specific package functions required by a third party, the method and the system can realize a plurality of package functions and can also realize automatic switching among the plurality of package functions, so that the BMC can be applied to different use scenes.
The execution subject of the above steps may be a controller of BMC, but is not limited thereto. But also can be applied to other product machines which provide different functions through different packages.
According to another embodiment of the present application, there is also provided a BMC control method, including the steps of:
step S201, under the condition that a target BMC is started, reading preset field information in a field replaceable unit of the target BMC, wherein the preset field information is information representing a target third party name, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the third party name, and at least part of the identification information of the functional modules is different;
step S202, according to the predetermined field information, controlling the function module corresponding to the identification information matched with the predetermined field information to start running, and controlling the function module corresponding to the identification information unmatched with the predetermined field information not to stop running.
The third party may refer to different user services, or may refer to different server users. Different third party services correspond to different versions of firmware. The predetermined field information may be an abbreviation of a user service, and different user services may also be represented by different code information, which may be flexibly set according to actual situations. The FRU is set in a system file of the target BMC. One third party may correspond to one functional module or a plurality of functional modules. One of the functional modules may be a BMC firmware, or all functional modules with the same identification information may form a BMC firmware.
In an embodiment of the application, a specific implementation manner of controlling the functional module corresponding to the identification information that matches the predetermined field information to start and operate, and controlling the functional module corresponding to the identification information that does not match the predetermined field information not to start may be: and controlling the function module corresponding to the identification information which is the same as the preset field information to start and operate, and controlling the function module corresponding to the identification information which is different from the preset field information not to start.
In another embodiment, a specific implementation manner of controlling the functional module corresponding to the identification information that matches the predetermined field information to start running and controlling the functional module corresponding to the identification information that does not match the predetermined field information not to start may further be:
calling a preset relation table, wherein the preset relation table is a table for representing the preset field information and identification information matched with the preset field information; according to the preset field information and the preset relation table, determining that the identification information matched with the preset field information is target identification information; and controlling the functional module of which the identification information is the target identification information to start and operate, and controlling the functional module of which the identification information is not the target identification information not to start.
In the above embodiment, each functional module is enabled or disabled according to the target third party represented by the predetermined field information and the third party corresponding to each functional module, and the adjusted version of the BMC firmware and the target third party service represented by the predetermined field information can be automatically matched without manually updating the BMC firmware.
In order to further realize the automatic switching of the BMC function package, the method further comprises the following steps:
step S203, in the case of receiving a modification instruction, modifying the predetermined field information in the field replaceable unit according to the modification instruction to obtain a modified field replaceable unit, where the modification instruction is an instruction for requesting to modify the predetermined field information to be target information;
step S204, controlling the modified target BMC to restart;
step S205, when the modified target BMC is started, sequentially executes the step S201 and the step S202.
In a case that the target BMC is started, before reading predetermined field information in a field replaceable unit of the target BMC, the method further includes: adding said predetermined field to an initial said field replaceable unit to obtain said field replaceable unit; and marking the identification information on the functional module corresponding to each third party, and storing all the functional modules carrying the identification information into the target BMC. Before performing the above-mentioned reading action of the predetermined field information in the field replaceable unit of the target BMC, information characterizing the name of the target third party needs to be added to the predetermined field of the FRU. By integrating different services in one BMC, the same BMC version can provide various package functions, and therefore research and development cost of cloud service providers can be saved.
The person skilled in the art may read the predetermined field information characterizing the name of the target third party from the FRU in any suitable manner. In order to retrieve the predetermined field information more quickly, in an actual application process, reading the predetermined field information in the field replaceable unit of the target BMC includes: acquiring a field configuration file of the field replaceable unit; and searching the field configuration file, and determining the field value corresponding to the preset field as the preset field information.
According to the control method, the name information of the third party of the characterization server is stored in the preset field of the field replaceable unit, each function module in the BMC carries the identification information of the name of the characterization third party, and under the condition that the BMC is started, whether the function module corresponding to the identification information matched with the preset field information is started or not is controlled by reading the preset field information in the field replaceable unit, so that the function of the adjusted BMC can be adapted to the current third party user. Therefore, when the third party changes, the version of the BMC can be upgraded without manual refreshing, the labor cost of upgrading the BMC is saved, and the problem that the labor maintenance cost is high because a third party user of the server needs to refresh the version of the BMC when changing in the related technology is effectively solved. In addition, by adopting the method, the delivery time of the server caused by upgrading the BMC version can be saved.
FIG. 3 shows a control flow diagram for a BMC according to one embodiment of the application. As shown in fig. 3, in case of BMC start-up, first, the predetermined field information of the exclusive FRU; enabling and disabling part of the functional modules through predetermined field information of the FRU; then determining whether to switch the BMC function package, and ending the flow under the condition of determining not to switch the BMC function package; and under the condition of determining to switch the BMC function package, modifying the preset field information of the FRU through a network command, and restarting the BMC to realize the switching of the BMC function package.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
It should be noted that the steps illustrated in the flowcharts of the figures 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 flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In this embodiment, a BMC control device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted for brevity. 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.
Fig. 4 is a block diagram of a control device of a BMC according to an embodiment of the present application, and as shown in fig. 4, the device includes:
a first reading unit 10, configured to read, when a target BMC is started, predetermined field information in a field replaceable unit of the target BMC, where the predetermined field information is information representing a name of a target third party, and the target BMC includes a plurality of function modules, each of the function modules carries identification information representing a name of a third party, and the identification information of at least some of the function modules is different;
the third-party service to be operated by the server can be determined by reading the field information on the field replaceable unit, namely the predetermined field of the FRU, and the third-party service corresponding to each functional module can be determined by the identification information carried on each functional module in the BMC.
In practical applications, the apparatus further includes a first adding unit, where the first adding unit is configured to, when the target BMC is started, add the predetermined field to the initial field-replaceable unit before reading the predetermined field information in the field-replaceable unit of the target BMC, so as to obtain the field-replaceable unit. Before executing the first reading unit, information characterizing the name of the target third party needs to be added to a predetermined field of the FRU.
In addition, the device further comprises a first storage unit, wherein the first storage unit is used for marking the functional module corresponding to each third party with identification information and storing all the functional modules carrying the identification information into the BMC before reading the preset field information in the field replaceable unit of the target BMC under the condition that the target BMC is started. By integrating different services in one BMC, the same BMC version can provide various package functions, and therefore research and development cost of cloud service providers can be saved.
The third party may refer to different user services, or may refer to different server users. Different third party services correspond to different versions of firmware. The predetermined field information may be an abbreviation of a user service, and different user services may also be represented by different code information, which may be flexibly set according to actual conditions. The FRU is arranged in a system file of the target BMC. One third party may correspond to one functional module or a plurality of functional modules. One of the functional modules may be a BMC firmware, or all functional modules with the same identification information may form a BMC firmware.
The person skilled in the art may read the predetermined field information characterizing the name of the target third party from the FRU in any suitable manner. In a specific embodiment, the first reading unit may include the following:
the first acquisition module is used for acquiring the field configuration file of the field replaceable unit;
and the first retrieval module is used for retrieving the field configuration file and determining the field value corresponding to the preset field as the preset field information.
In the above embodiment, the predetermined field information can be retrieved relatively quickly by retrieving the field configuration file of the field replaceable unit.
An adjusting unit 20, configured to adjust working states of the functional modules according to the predetermined field information, where the working states include a start state and a non-start state.
And enabling or disabling each functional module according to the target third party represented by the preset field information and the third party corresponding to each functional module, and realizing the automatic matching of the adjusted version of the BMC firmware and the target third party service represented by the preset field information without manually upgrading the BMC firmware.
In an embodiment of the present application, the adjusting unit includes:
a first determining module, configured to determine a target function module according to the predetermined field information and each piece of the identification information, where the target function module is the function module corresponding to the identification information that matches the predetermined field information;
and the first control module is used for controlling the target function module to be started and controlling the function modules in the target BMC except the target function module not to be started so as to enable the working state of the target function module to be the starting state and enable the working states of the function modules except the target function module to be the non-starting state.
In the process, the functional module carrying the identification information matched with the preset field information is determined as the target functional module, then the target functional module is controlled to be enabled, and other functional modules except the target functional module are forbidden, so that the function of the adjusted BMC is adapted to the current third-party user, and the self-adaptation of the multi-package BMC is further realized.
The matching of the predetermined field information and the identification information may mean that the two have at least partially the same information, or that the two satisfy a one-to-one correspondence relationship. In this embodiment of the application, the matching is that the predetermined field information is the same as the identification information, and the first determining module may include a reading sub-module and a comparing sub-module, where the reading sub-module is configured to read all the identification information; the comparison sub-module is configured to compare each piece of identification information with the predetermined field information, and determine, when the piece of identification information is identical to the predetermined field information, the functional module corresponding to the piece of identification information identical to the predetermined field information as the target functional module.
The above-mentioned device still includes:
a first modifying unit, configured to modify, according to a modification instruction received from the field replaceable unit, the predetermined field information in the field replaceable unit to obtain a modified field replaceable unit, where the modification instruction is an instruction that requests to modify the predetermined field information to obtain target information;
and the first control unit is used for controlling the target BMC to restart under the condition of obtaining the modified field replaceable unit.
In the process, when the version of the BMC is required to be updated, namely the function of the BMC package is required to be switched, the preset field information in the FRU is modified firstly, then the BMC is restarted, and the BMC completes the automatic switching of the package in the starting process. The switching of the package function is completed by directly modifying the preset field information of the FRU on line, the work of manually refreshing the BMC firmware is avoided, the maintenance labor cost is saved, the product on-line period is shortened, the product completion period is shortened, and the research and development efficiency is improved.
The device further comprises a first circulation unit, wherein the first circulation unit is used for modifying the preset field information in the field replaceable unit according to the modification instruction, and after the modified field replaceable unit is obtained, the first reading unit and the adjusting unit are sequentially executed to complete the switching of the BMC functional package.
The above-described modification instructions can be implemented by a simple management network command.
The execution sequence of the first modification unit and the first control unit and the execution sequence of the first reading unit and the adjustment unit can be interchanged, that is, the first modification unit and the first control unit can be executed first, then the first reading unit and the adjustment unit can be executed, or the first reading unit and the adjustment unit can be executed first, then the first modification unit and the first control unit can be executed.
According to the control device, the name information of the third party of the representation server is stored in the preset field of the field replaceable unit, each function module in the BMC carries the identification information of the name of the representation third party, and under the condition that the BMC is started, whether the function module corresponding to the identification information is started or not is controlled by reading the preset field information in the field replaceable unit according to the preset field information and the identification information, so that the function of the adjusted BMC can be adapted to the current third party user. Therefore, when a third party changes, the upgrading of the BMC version can be realized without manual refreshing, the automatic upgrading of the BMC version is realized, the labor cost of upgrading the BMC is saved, and the problem that the labor maintenance cost is high because a BMC version needs to be refreshed when a third party user of a server changes in the related art is effectively solved.
Moreover, when the server is switched to a third party, the updating of the BMC version can also increase the delivery cycle of the server of the cloud service provider.
In addition, as a plurality of specific package functions required by a third party are stored in the BMC, the method and the device can realize multiple package functions and also can realize automatic switching among the multiple package functions, so that the BMC can be applied to different use scenes.
According to another embodiment of the present application, there is also provided a control apparatus of a BMC, including:
the second reading unit is used for reading preset field information in a field replaceable unit of a target BMC under the condition that the target BMC is started, wherein the preset field information is information representing a name of a target third party, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the name of the third party, and at least part of the identification information of the functional modules is different;
and a second control unit, configured to control, according to the predetermined field information, the function module corresponding to the identifier information that matches the predetermined field information to start operation, and control the function module corresponding to the identifier information that does not match the predetermined field information not to start operation.
The third party may refer to different user services, or may refer to different server users. Different third party services correspond to different versions of firmware. The predetermined field information may be an abbreviation of a user service, and different user services may also be represented by different code information, which may be flexibly set according to actual conditions. The FRU is set in a system file of the target BMC. One third party may correspond to one functional module or a plurality of functional modules. One of the functional modules may be a BMC firmware, or all functional modules with the same identification information may form a BMC firmware.
In an embodiment of the application, the second control unit may include a second control module, where the second control module is configured to control the function module corresponding to the identification information that is the same as the predetermined field information to start and operate, and control the function module corresponding to the identification information that is different from the predetermined field information not to start.
In other embodiments, the second control unit may further include the following modules:
the calling module is used for calling a preset relation table, and the preset relation table is a table for representing the preset field information and the identification information matched with the preset field information; a second determining module, configured to determine, according to the predetermined field information and the predetermined relationship table, that the identification information matched with the predetermined field information is target identification information; and a third control module, configured to control the functional module whose identifier is the target identifier to start and operate, and control the functional module whose identifier is not the target identifier not to start.
In the above embodiment, each functional module is enabled or disabled according to the target third party represented by the predetermined field information and the third party corresponding to each functional module, and the adjusted version of the BMC firmware and the target third party service represented by the predetermined field information can be automatically matched without manually updating the BMC firmware.
In order to further realize the automatic switching of the BMC function package, the apparatus further includes a second modifying unit, a third controlling unit, and a second circulating unit, wherein:
the second modification unit is configured to modify, according to a modification instruction received from the field replaceable unit, the predetermined field information in the field replaceable unit to obtain a modified field replaceable unit, where the modification instruction is an instruction that requests modification of the predetermined field information to obtain target information;
the third control unit is used for controlling the modified target BMC to restart;
the second cycle unit is configured to sequentially execute the second reading unit and the second control unit when the modified target BMC is started.
The device further comprises a second adding unit and a second storage unit, wherein the second adding unit is used for adding the preset field into the initial field replaceable unit to obtain the field replaceable unit before reading the preset field information in the field replaceable unit of the target BMC under the condition that the target BMC is started; the second storage unit is configured to print the identification information on the functional module corresponding to each third party, and store all the functional modules carrying the identification information in the target BMC. Before performing the above-mentioned reading action of the predetermined field information in the field replaceable unit of the target BMC, information characterizing the name of the target third party needs to be added to the predetermined field of the FRU. By integrating different services in one BMC, the same BMC version can provide various package functions, and therefore research and development cost of cloud service providers can be saved.
The person skilled in the art may read the predetermined field information characterizing the name of the target third party from the FRU in any suitable manner. In order to retrieve the predetermined field information more quickly, in an actual application process, the second reading unit includes a second obtaining module and a second retrieving module, where the second obtaining module is configured to obtain a field configuration file of the field replaceable unit; the second retrieving module is configured to retrieve the field configuration file and determine a field value corresponding to a predetermined field as the predetermined field information.
According to the control device, the name information of the third party of the representation server is stored in the preset field of the field replaceable unit, each function module in the BMC carries the identification information of the name of the representation third party, and under the condition that the BMC is started, whether the function module corresponding to the identification information matched with the preset field information is started or not is controlled by reading the preset field information in the field replaceable unit, so that the function of the adjusted BMC can be adapted to the current third party user. Therefore, when the third party changes, the version of the BMC can be upgraded without manual refreshing, the labor cost of upgrading the BMC is saved, and the problem that the labor maintenance cost is high because a third party user of the server needs to refresh the version of the BMC when changing in the related technology is effectively solved. In addition, by adopting the method, the delivery time of the server caused by upgrading the BMC version can be saved.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
According to another embodiment of the present application, there is also provided a server platform including a BMC and a controller of the BMC, the controller being configured to perform the steps of any of the method embodiments.
The server platform comprises a BMC and a controller thereof, wherein the controller is used for executing any one of the methods, the method stores name information representing a third party of the server into a preset field of a field replaceable unit, each function module in the BMC carries identification information representing the name of the third party, and when the BMC is started, whether the function module corresponding to the identification information is started or not is controlled by reading the preset field information in the field replaceable unit according to the preset field information and the identification information, so that the function of the adjusted BMC can be adapted to a current third party user. Therefore, when a third party changes, the upgrading of the BMC version can be realized without manual refreshing, the automatic upgrading of the BMC version is realized, the labor cost of upgrading the BMC is saved, and the problem that the labor maintenance cost is high because a BMC version needs to be refreshed when a third party user of a server changes in the related art is effectively solved.
The server platform further comprises a server. When the server switches to the third party, updating the BMC version can also increase the delivery cycle of the server of the cloud service provider.
In addition, as the BMC stores a plurality of specific package functions required by a third party, the method and the system can realize a plurality of package functions and can also realize automatic switching among the plurality of package functions, so that the BMC can be applied to different use scenes.
In a practical application process, the controller may be embedded in the BMC.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the BMC running on the mobile terminal, fig. 5 is a block diagram of a hardware structure of the mobile terminal of a BMC control method according to the embodiment of the present application. As shown in fig. 5, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration and is not intended to limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 5.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the BMC control method in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices via a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the present application described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing devices, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into separate integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A control method of BMC is characterized by comprising:
under the condition that a target BMC is started, reading preset field information in a field replaceable unit of the target BMC, wherein the preset field information is information representing a target third party name, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the third party name, and at least part of identification information of the functional modules is different;
and adjusting the working state of each functional module according to the preset field information and each identification information, wherein the working state comprises a starting state and a non-starting state.
2. The method of claim 1, wherein adjusting the operating status of each of the functional modules according to the predetermined field information and each of the identification information comprises:
determining a target function module according to the preset field information and each identification information, wherein the target function module is the function module corresponding to the identification information matched with the preset field information;
and controlling the target function module to be started, and controlling the function modules except the target function module in the target BMC not to be started, so that the working state of the target function module is the starting state, and the working state of the function modules except the target function module is the non-starting state.
3. The method of claim 2, wherein determining a target function module based on the predetermined field information and each of the identification information comprises:
reading all the identification information;
comparing each identification information with the preset field information respectively, and determining the functional module corresponding to the identification information which is the same as the preset field information as the target functional module under the condition that the identification information is the same as the preset field information.
4. The method of claim 1, wherein reading predetermined field information in a field replaceable unit of the target BMC comprises:
acquiring a field configuration file of the field replaceable unit;
and retrieving the field configuration file, and determining the field value corresponding to the preset field as the preset field information.
5. The method according to any one of claims 1 to 4, further comprising:
modifying the predetermined field information in the field replaceable unit according to a modification instruction under the condition that the modification instruction is received to obtain the modified field replaceable unit, wherein the modification instruction is an instruction for requesting to modify the predetermined field information into target information;
controlling the target BMC to restart upon obtaining the modified field replaceable unit.
6. The method of any of claims 1 to 4, wherein in the event that the target BMC boots up, prior to reading the predetermined field information in the field replaceable unit of the target BMC, the method further comprises:
adding the predetermined field to the original field replaceable unit to obtain the field replaceable unit.
7. A BMC control apparatus, comprising:
the system comprises a first reading unit, a second reading unit and a third reading unit, wherein the first reading unit is used for reading preset field information in a field replaceable unit of a target BMC under the condition that the target BMC is started, the preset field information is information representing a target third party name, the target BMC comprises a plurality of functional modules, each functional module carries identification information representing the third party name, and at least part of the identification information of the functional modules is different;
and the adjusting unit is used for adjusting the working state of each functional module according to the preset field information, wherein the working state comprises a starting state and a non-starting state.
8. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method as claimed in any one of claims 1 to 6 when executing the computer program.
10. A server platform, comprising:
BMC;
a controller of the BMC to perform the steps of the method of any of claims 1 to 6.
CN202211197098.5A 2022-09-28 2022-09-28 BMC control method, control device and server platform Pending CN115525348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211197098.5A CN115525348A (en) 2022-09-28 2022-09-28 BMC control method, control device and server platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211197098.5A CN115525348A (en) 2022-09-28 2022-09-28 BMC control method, control device and server platform

Publications (1)

Publication Number Publication Date
CN115525348A true CN115525348A (en) 2022-12-27

Family

ID=84698819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211197098.5A Pending CN115525348A (en) 2022-09-28 2022-09-28 BMC control method, control device and server platform

Country Status (1)

Country Link
CN (1) CN115525348A (en)

Similar Documents

Publication Publication Date Title
US9720678B2 (en) Network switching method, version upgrade method, and terminal device
CN113010217B (en) BIOS parameter setting method and device, electronic equipment and storage medium
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN103024782A (en) Base station software version management method and system
CN113434202A (en) Starting method and device of equipment, electronic equipment and computer storage medium
CN107395385A (en) Method for upgrading software and device
CN108874410B (en) Patch management method and device
CN112162794B (en) Single board starting method, device, single board and network equipment
EP4162649A1 (en) Stable references for network function life cycle management automation
CN107707394A (en) Equipment remote upgrade method, server, system and readable storage medium storing program for executing
CN114153525B (en) AI model servitization sharing method and system for power grid regulation and control service
CN115469964A (en) Method and device for determining mapping relation between block device and virtual machine disk character
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN113434184A (en) Equipment upgrading method and device, storage medium and electronic device
CN115525348A (en) BMC control method, control device and server platform
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
CN112214353A (en) Firmware recovery method and device, computer equipment and storage medium
CN113992739B (en) Local area network OTA firmware upgrading device, method and system
CN113986357B (en) Method, apparatus and storage medium for establishing communication link
CN116360871A (en) Control method, device, equipment and medium for network card starting sequence
CN116149941A (en) Monitoring method and device of server component, server and storage medium
CN118276887A (en) Set top box cross-system upgrading method and device, set top box and storage medium
CN111427603B (en) Application program upgrading method and device
CN114297067A (en) Script testing method and device
CN114442765A (en) Fan control method for computer equipment, baseboard management controller and storage medium

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