Switch configuration method and device of baseboard management controller and computer equipment
1. A switch configuration method of a baseboard management controller is characterized by comprising the following steps:
the client name of the baseboard management controller and the required functional configuration and the service life are clarified;
generating an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and service life;
burning the authorization code when the substrate management controller is produced;
and according to the burnt authorization code, performing function configuration and service life switch configuration on the baseboard management controller in association with the client name and the requirement.
2. The switch configuration method of claim 1, wherein burning the authorization code while producing the baseboard management controller comprises:
and when the substrate management controller is produced, burning the authorization code into a live erasable programmable read only memory of a field replaceable unit in a burning mode.
3. The switch configuration method of claim 1, wherein burning the authorization code while producing the baseboard management controller comprises:
when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read only memory of the field replaceable unit in a burning mode.
4. The switch configuration method of claim 1, wherein after the performing, according to the burned authorization code, the switch configuration of the function configuration and the lifetime associated with the customer name and the requirement on the baseboard management controller, further comprises:
and according to the switch configuration, checking the customer name of the customer currently using the baseboard management controller, and starting the function of the baseboard management controller according to the switch configuration when the customer name of the customer currently using the baseboard management controller is checked to be consistent with the customer name associated with the switch configuration.
5. A switch configuration apparatus of a baseboard management controller, comprising:
the device comprises a determining module, a generating module, a burning module and a configuration module;
the clear module is used for clearing the client name of the baseboard management controller, the required functional configuration and the service life;
the generation module is used for generating an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and the service life;
the burning module is used for burning the authorization code when the substrate management controller is produced;
and the configuration module is used for performing function configuration related to the client name and the requirement and switch configuration of the service life on the baseboard management controller according to the burnt authorization code.
6. The switch configuration device of claim 5, wherein the burning module is specifically configured to:
and when the substrate management controller is produced, burning the authorization code into a live erasable programmable read only memory of a field replaceable unit in a burning mode.
7. The switch configuration device of claim 5, wherein the burning module is specifically configured to:
when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read only memory of the field replaceable unit in a burning mode.
8. The switch configuration apparatus of claim 5, wherein the switch configuration apparatus of the baseboard management controller further comprises:
starting the module;
and the starting module is used for verifying the customer name of the customer currently using the substrate management controller according to the switch configuration, and starting the function of the substrate management controller according to the switch configuration when the customer name of the customer currently using the substrate management controller is verified to be consistent with the customer name associated with the switch configuration.
9. A computer device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of switch configuration of a baseboard management controller according to any of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the switch configuration method of a baseboard management controller according to any one of claims 1 to 4.
Background
The existing switch configuration scheme of the Baseboard management Controller generally configures a switch of a Baseboard Management Controller (BMC) through installation and loading of a license key (authorization code), in addition, the authorization code license key can be generated through an algorithm and barcode information or Media Access Control (MAC) Address and the like of the Baseboard management Controller, and the Baseboard management Controller can compare with the authorization code license key when in use, and then determines whether a function is opened or not.
However, in the conventional switch configuration scheme of the bmcs, a unique authorization code must be generated for each bmc, and the client functions of all bmcs are the same, cannot be differentiated, and do not have a function of controlling the service life.
Disclosure of Invention
In view of the above, the present invention provides a switch configuration method and apparatus for a baseboard management controller, and a computer device, which can implement differentiation of switches configured for the baseboard management controller for different client functions and service lives.
According to an aspect of the present invention, there is provided a switch configuration method of a baseboard management controller, including: the client name of the baseboard management controller and the required functional configuration and the service life are clarified; generating an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and service life; burning the authorization code when the substrate management controller is produced; and according to the burnt authorization code, performing function configuration and service life switch configuration on the baseboard management controller in association with the client name and the requirement.
Wherein, when producing the baseboard management controller, burn the authorization code, including: and when the substrate management controller is produced, burning the authorization code into a live erasable programmable read only memory of a field replaceable unit in a burning mode.
Wherein, when producing the baseboard management controller, burn the authorization code, including: when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read only memory of the field replaceable unit in a burning mode.
After the performing, according to the burned authorization code, the function configuration associating the client name and the requirement and the switch configuration of the service life on the baseboard management controller, the method further includes: and according to the switch configuration, checking the customer name of the customer currently using the baseboard management controller, and starting the function of the baseboard management controller according to the switch configuration when the customer name of the customer currently using the baseboard management controller is checked to be consistent with the customer name associated with the switch configuration.
According to another aspect of the present invention, there is provided a switch configuration apparatus of a baseboard management controller, including: the device comprises a determining module, a generating module, a burning module and a configuration module; the clear module is used for clearing the client name of the baseboard management controller, the required functional configuration and the service life; the generation module is used for generating an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and the service life; the burning module is used for burning the authorization code when the substrate management controller is produced; and the configuration module is used for performing function configuration related to the client name and the requirement and switch configuration of the service life on the baseboard management controller according to the burnt authorization code.
Wherein, the burning module is specifically used for: and when the substrate management controller is produced, burning the authorization code into a live erasable programmable read only memory of a field replaceable unit in a burning mode.
Wherein, the burning module is specifically used for: when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read only memory of the field replaceable unit in a burning mode.
Wherein, the switch configuration device of the baseboard management controller further comprises: starting the module; and the starting module is used for verifying the customer name of the customer currently using the substrate management controller according to the switch configuration, and starting the function of the substrate management controller according to the switch configuration when the customer name of the customer currently using the substrate management controller is verified to be consistent with the customer name associated with the switch configuration.
According to yet another aspect of the present invention, there is provided a computer apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a switch configuration method of a baseboard management controller as described in any one of the above.
According to a further aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a switch configuration method of a baseboard management controller as described in any one of the above.
It can be found that, according to the above scheme, the client name of the baseboard management controller and the required function configuration and the service life can be determined, the authorization code associated with the baseboard management controller can be generated according to the client name of the baseboard management controller and the required function configuration and the service life, the authorization code can be burned during production of the baseboard management controller, the switch configuration associated with the client name and the required function configuration and the service life can be performed on the baseboard management controller according to the burned authorization code, and the switch configured on the baseboard management controller can be differentiated according to different client functions and service lives.
Furthermore, according to the scheme, the authorization code can be burnt in a mode of burning the authorization code into the electrified erasable programmable read only memory of the field replaceable unit when the substrate management controller is produced, so that the advantages that the field replaceable unit can be updated when the produced substrate management controller fails, the produced substrate management controller can ensure that data stored in the electrified erasable programmable read only memory are not lost after power failure, and the safety of the authorization code burnt in the produced substrate management controller can be improved.
Furthermore, according to the scheme, when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read-only memory of the field replaceable unit, so that the method has the advantages that the authorization code can be flexibly burnt during production of the substrate management controller, the field replaceable unit can be updated when the produced substrate management controller fails, data stored in the electrified erasable programmable read-only memory can be prevented from being lost after the produced substrate management controller is powered down, and the safety of the authorization code burnt into the produced substrate management controller can be improved.
Furthermore, according to the above scheme, the customer name of the customer currently using the baseboard management controller can be checked according to the switch configuration, and when the customer name of the customer currently using the baseboard management controller is checked to be consistent with the customer name associated with the switch configuration, the function of the baseboard management controller is started according to the switch configuration.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a switch configuration method of a baseboard management controller according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a switch configuration method of a baseboard management controller according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a switch configuration apparatus of a baseboard management controller according to the present invention;
FIG. 4 is a schematic structural diagram of a switch configuration apparatus of a baseboard management controller according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an embodiment of the computer apparatus of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The invention provides a switch configuration method of a substrate management controller, which can realize that the switch configured for the substrate management controller can aim at different customer functions and service life differentiation.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a switch configuration method of a bmc according to an embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
s101: and specifying the client name of the baseboard management controller and the required functional configuration and service life.
In this embodiment, the client name may be a chinese name, an english name, a combination of chinese and english names, or the like, which is not limited in the present invention.
In this embodiment, the functional configuration required by each client may be the same functional configuration, may also be different functional configurations, may also be partially the same or partially different functional configurations, and the like, and the present invention is not limited thereto.
In this embodiment, the lifetime requested by each client may be the same lifetime, may be different lifetimes, may be partially the same lifetime or partially different lifetimes, and the like, and the present invention is not limited thereto.
S102: and generating an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and service life.
In this embodiment, the development department may generate the authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and lifetime, or the production department may generate the authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and lifetime, which is not limited in the present invention.
S103: and burning the authorization code when the substrate management controller is produced.
Wherein, should burn this authorization code when producing this base plate management controller, can include:
when the baseboard management controller is produced, the authorization code is burnt in a mode of burning the authorization code into an EEPROM (Electrically Erasable Programmable read only memory) of an FRU (Field replaceable Unit), so that the Field replaceable Unit can be updated when the produced baseboard management controller fails, the produced baseboard management controller can ensure that data stored in the Electrically Erasable Programmable read only memory are not lost after power failure, and the authorization of the authorization code burnt in the produced baseboard management controller can be improved.
Wherein, should burn this authorization code when producing this base plate management controller, can include:
when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read-only memory of the field replaceable unit, so that the changed authorization code is burnt, the advantages that the flexible burning of the authorization code can be realized when the substrate management controller is produced, the field replaceable unit can be updated when the memory of the produced substrate management controller is in failure, the data stored in the electrified erasable programmable read-only memory can be prevented from being lost after the produced substrate management controller is powered off, and the safety of the authorization code burnt into the produced substrate management controller can be improved.
In this embodiment, when the authorization code burned into the produced baseboard management controller is changed, the changed authorization code may be directly burned into the baseboard management controller, and the like.
S104: and according to the burnt authorization code, performing function configuration and service life switch configuration related to the client name and the requirement on the baseboard management controller.
After the performing, according to the burned authorization code, the function configuration and the switch configuration of the lifetime of the baseboard management controller, which are associated with the client name and the requirement, the method may further include:
according to the switch configuration, the customer name of the customer currently using the baseboard management controller is verified, and when the customer name of the customer currently using the baseboard management controller is verified to be consistent with the customer name associated with the switch configuration, the function of the baseboard management controller is started according to the switch configuration.
It can be found that, in this embodiment, the client name of the baseboard management controller and the required function configuration and the service life can be determined, the authorization code associated with the baseboard management controller can be generated according to the client name of the baseboard management controller and the required function configuration and the service life, the authorization code can be burned during production of the baseboard management controller, the switch configuration associated with the client name and the required function configuration and the service life can be performed on the baseboard management controller according to the burned authorization code, and the switch configured on the baseboard management controller can be differentiated according to different client functions and service lives.
Further, in this embodiment, when the substrate management controller is produced, the authorization code may be burned in the live erasable programmable read only memory of the field replaceable unit in a burning manner, which has the advantages of being able to update the field replaceable unit when the memory fails in the produced substrate management controller, and being able to ensure that the data stored in the live erasable programmable read only memory is not lost after the produced substrate management controller is powered down, and being able to improve the security of the authorization code burned in the produced substrate management controller.
Further, in this embodiment, when the substrate management controller is produced and the authorization code is changed, the changed authorization code may be burned into the live erasable programmable read only memory of the field replaceable unit in a burning manner, which has the advantages of being capable of flexibly burning the authorization code when the substrate management controller is produced, being capable of updating the field replaceable unit when the memory of the produced substrate management controller fails, being capable of ensuring that data stored in the live erasable programmable read only memory is not lost when the produced substrate management controller is powered down, and being capable of improving the security of the authorization code burned into the produced substrate management controller.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a switch configuration method of a bmc according to another embodiment of the present invention. In this embodiment, the method includes the steps of:
s201: and specifying the client name of the baseboard management controller and the required functional configuration and service life.
As described above in S101, further description is omitted here.
S202: and generating an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller and the required functional configuration and service life.
As described above in S102, further description is omitted here.
S203: and burning the authorization code when the substrate management controller is produced.
As described above in S103, which is not described herein.
S204: and according to the burnt authorization code, performing function configuration and service life switch configuration related to the client name and the requirement on the baseboard management controller.
As described above in S104, and will not be described herein.
S205: and according to the switch configuration, checking the customer name of the customer currently using the baseboard management controller, and starting the function of the baseboard management controller according to the switch configuration when the customer name of the customer currently using the baseboard management controller is checked to be consistent with the customer name associated with the switch configuration.
It can be seen that, in this embodiment, the customer name of the customer currently using the baseboard management controller can be checked according to the switch configuration, and when it is checked that the customer name of the customer currently using the baseboard management controller is consistent with the customer name associated with the switch configuration, the function of the baseboard management controller is turned on according to the switch configuration.
The invention also provides a switch configuration device of the substrate management controller, which can realize that the switch configured on the substrate management controller can aim at different client functions and service life differentiation.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a switch configuration device of a bmc according to an embodiment of the present invention. In this embodiment, the switch configuration apparatus 30 of the bmc includes an explicit module 31, a generating module 32, a burning module 33, and a configuration module 34.
The defining module 31 is used for defining the client name of the baseboard management controller and the required functional configuration and the service life.
The generating module 32 is configured to generate an authorization code associated with the baseboard management controller according to the client name of the baseboard management controller, the required functional configuration, and the lifetime.
The burning module 33 is configured to burn the authorization code when the bmc is manufactured.
The configuration module 34 is configured to perform, according to the burned authorization code, a function configuration and a switch configuration of a lifetime associated with the client name and the requirement on the baseboard management controller.
Optionally, the burning module 33 may be specifically configured to:
when the baseboard management controller is produced, the authorization code is burnt into the electrified erasable programmable read-only memory of the field replaceable unit.
Optionally, the burning module 33 may be specifically configured to:
when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read only memory of the field replaceable unit in a burning mode.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a switch configuration device of a bmc according to another embodiment of the present invention. Different from the previous embodiment, the switch configuration apparatus 40 of the bmc according to this embodiment further includes a starting module 41.
The starting module 41 is configured to check a customer name of a customer currently using the bmc according to the switch configuration, and start a function of the bmc according to the switch configuration when the customer name of the customer currently using the bmc is checked to be consistent with the customer name associated with the switch configuration.
Each unit module of the switch configuration device 30/40 of the bmc can respectively execute the corresponding steps in the above-described method embodiments, and therefore, the description of each unit module is omitted here for details, please refer to the description of the corresponding steps above.
The present invention further provides a computer device, as shown in fig. 5, comprising: at least one processor 51; and a memory 52 communicatively coupled to the at least one processor 51; the memory 52 stores instructions executable by the at least one processor 51, and the instructions are executed by the at least one processor 51 to enable the at least one processor 51 to execute the switch configuration method of the bmc.
Wherein the memory 52 and the processor 51 are coupled in a bus, which may comprise any number of interconnected buses and bridges, which couple one or more of the various circuits of the processor 51 and the memory 52 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 51 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 51.
The processor 51 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 52 may be used to store data used by the processor 51 in performing operations.
The present invention further provides a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
It can be found that, according to the above scheme, the client name of the baseboard management controller and the required function configuration and the service life can be determined, the authorization code associated with the baseboard management controller can be generated according to the client name of the baseboard management controller and the required function configuration and the service life, the authorization code can be burned during production of the baseboard management controller, the switch configuration associated with the client name and the required function configuration and the service life can be performed on the baseboard management controller according to the burned authorization code, and the switch configured on the baseboard management controller can be differentiated according to different client functions and service lives.
Furthermore, according to the scheme, the authorization code can be burnt in a mode of burning the authorization code into the electrified erasable programmable read only memory of the field replaceable unit when the substrate management controller is produced, so that the advantages that the field replaceable unit can be updated when the produced substrate management controller fails, the produced substrate management controller can ensure that data stored in the electrified erasable programmable read only memory are not lost after power failure, and the safety of the authorization code burnt in the produced substrate management controller can be improved.
Furthermore, according to the scheme, when the substrate management controller is produced and the authorization code is changed, the changed authorization code is burnt into the electrified erasable programmable read-only memory of the field replaceable unit, so that the method has the advantages that the authorization code can be flexibly burnt during production of the substrate management controller, the field replaceable unit can be updated when the produced substrate management controller fails, data stored in the electrified erasable programmable read-only memory can be prevented from being lost after the produced substrate management controller is powered down, and the safety of the authorization code burnt into the produced substrate management controller can be improved.
Furthermore, according to the above scheme, the customer name of the customer currently using the baseboard management controller can be checked according to the switch configuration, and when the customer name of the customer currently using the baseboard management controller is checked to be consistent with the customer name associated with the switch configuration, the function of the baseboard management controller is started according to the switch configuration.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.