CN114553859A - BMC configuration management method and device, electronic equipment and storage medium - Google Patents

BMC configuration management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114553859A
CN114553859A CN202210151708.1A CN202210151708A CN114553859A CN 114553859 A CN114553859 A CN 114553859A CN 202210151708 A CN202210151708 A CN 202210151708A CN 114553859 A CN114553859 A CN 114553859A
Authority
CN
China
Prior art keywords
bmc
configuration file
configuration
historical version
storage area
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.)
Withdrawn
Application number
CN202210151708.1A
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 CN202210151708.1A priority Critical patent/CN114553859A/en
Publication of CN114553859A publication Critical patent/CN114553859A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Abstract

The application provides a BMC configuration management method, a BMC configuration management device, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a historical version configuration file of the BMC, and storing the historical version configuration file into a storage area; when a BMC configuration restoration request input by a user is received, calling a corresponding target historical version configuration file in a storage area according to the BMC configuration restoration request; and configuring the BMC based on the target historical version configuration file to restore the BMC to the target historical version. According to the method provided by the scheme, the historical version configuration file of the BMC is stored, when the BMC needs to be configured and restored, the corresponding target historical version configuration file is directly called, a user does not need to repeatedly send related configuration commands, and the BMC configuration efficiency is improved.

Description

BMC configuration management method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of server management technologies, and in particular, to a BMC configuration management method and apparatus, an electronic device, and a storage medium.
Background
A Baseboard Management Controller (BMC) is a dedicated service processor for managing a server, and a user can configure the BMC in the server to manage the server.
In the prior art, the user usually implements the modification of different configuration parameters by sending different configuration commands to the BMC. In addition, in practical applications, no matter the BMC configuration is updated or restored to a history version, a user is required to repeatedly send a related configuration command, and the BMC configuration efficiency cannot be guaranteed under the condition of a large BMC configuration amount.
Disclosure of Invention
The application provides a BMC configuration management method, a BMC configuration management device, an electronic device and a storage medium, so as to overcome the defect that the prior art cannot guarantee BMC configuration efficiency.
A first aspect of the present application provides a BMC configuration management method, including:
acquiring a historical version configuration file of BMC, and storing the historical version configuration file in a storage area;
when a BMC configuration restoration request input by a user is received, calling a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request;
and configuring the BMC based on the target historical version configuration file so as to restore the BMC to the target historical version.
Optionally, configuring the BMC based on the target historical version configuration file includes:
acquiring a factory default configuration file of the BMC;
generating a target default configuration file according to the target historical version configuration file and a factory default configuration file;
and restoring the default configuration of the BMC based on the target default configuration file.
Optionally, the generating a target default configuration file according to the target historical version configuration file and the factory default configuration file includes:
positioning an item to be replaced in the factory default configuration file according to the configuration item contained in the target historical version configuration file;
and replacing the item to be replaced in the factory default configuration file with a corresponding configuration item in the target historical version configuration file to obtain a target default configuration file.
Optionally, the obtaining the historical version configuration file of the BMC includes:
when a BMC configuration updating request or a BMC configuration restoring request input by a user is received, acquiring a current configuration file of the BMC, and taking the current configuration file as the historical version configuration file.
Optionally, the invoking a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request includes:
determining a target historical version of the BMC according to the BMC configuration demand information represented by the BMC configuration restoration request;
and calling a target historical version configuration file corresponding to the target historical version in the storage area according to the file path information of the storage area.
Optionally, the storage area is located in a non-volatile memory of the BMC.
Optionally, the method further includes:
monitoring the space utilization condition of the storage area;
and managing the current stored historical version configuration file of the storage area according to the space use condition of the storage area.
A second aspect of the present application provides a BMC configuration management apparatus, including:
the acquisition module is used for acquiring a historical version configuration file of the BMC and storing the historical version configuration file into a storage area;
the calling module is used for calling a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request when the BMC configuration restoration request input by a user is received;
and the configuration module is used for configuring the BMC based on the target historical version configuration file so as to restore the BMC to the target historical version.
Optionally, the configuration module is specifically configured to:
acquiring a factory default configuration file of the BMC;
generating a target default configuration file according to the target historical version configuration file and a factory default configuration file;
and recovering the default configuration of the BMC based on the target default configuration file.
Optionally, the configuration module is specifically configured to:
according to configuration items contained in the target historical version configuration file, positioning items to be replaced in the factory default configuration file;
and replacing the item to be replaced in the factory default configuration file with a corresponding configuration item in the target historical version configuration file to obtain a target default configuration file.
Optionally, the obtaining module is specifically configured to:
when a BMC configuration updating request or a BMC configuration restoring request input by a user is received, a current configuration file of the BMC is obtained, and the current configuration file is used as the historical version configuration file.
Optionally, the calling module is specifically configured to:
determining a target historical version of the BMC according to the BMC configuration demand information represented by the BMC configuration restoration request;
and calling a target historical version configuration file corresponding to the target historical version in the storage area according to the file path information of the storage area.
Optionally, the storage area is located in a non-volatile memory of the BMC.
Optionally, the apparatus further comprises:
the file management module is used for monitoring the space use condition of the storage area; and managing the current stored historical version configuration file of the storage area according to the space use condition of the storage area.
A third aspect of the present application provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement a method as set forth in the first aspect and various possible designs of the first aspect.
This application technical scheme has following advantage:
the application provides a BMC configuration management method, a BMC configuration management device, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a historical version configuration file of the BMC, and storing the historical version configuration file into a storage area; when a BMC configuration restoration request input by a user is received, calling a corresponding target historical version configuration file in a storage area according to the BMC configuration restoration request; and configuring the BMC based on the target historical version configuration file to restore the BMC to the target historical version. According to the method provided by the scheme, the historical version configuration file of the BMC is stored, when the BMC needs to be configured and restored, the corresponding target historical version configuration file is directly called, a user does not need to repeatedly send related configuration commands, and the BMC configuration efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to these drawings.
Fig. 1 is a schematic structural diagram of a BMC configuration management system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a BMC configuration management method according to an embodiment of the present application;
fig. 3 is a BMC configuration management apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following examples, "plurality" means two or more unless specifically limited otherwise.
In the prior art, the user usually implements the modification of different configuration parameters by sending different configuration commands to the BMC. In practical applications, whether the BMC configuration is updated or restored to a historical version, the user is required to repeatedly send the related configuration command. Particularly, in a scenario where the BMC configuration is restored to a certain historical version, the BMC configuration can only be restored to the factory setting, and then the related configuration is modified, and the BMC configuration efficiency cannot be guaranteed in a case where the BMC configuration amount is large.
In view of the foregoing problems, an embodiment of the present invention provides a BMC configuration management method, an apparatus, an electronic device, and a storage medium, where the method includes: acquiring a historical version configuration file of the BMC, and storing the historical version configuration file into a storage area; when a BMC configuration restoration request input by a user is received, calling a corresponding target historical version configuration file in a storage area according to the BMC configuration restoration request; and configuring the BMC based on the target historical version configuration file to restore the BMC to the target historical version. According to the method provided by the scheme, the historical version configuration file of the BMC is stored, when the BMC needs to be configured and restored, the corresponding target historical version configuration file is directly called, a user does not need to repeatedly send related configuration commands, and the BMC configuration efficiency is improved.
The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
First, a structure of a BMC configuration management system based on the present application will be described:
the BMC configuration management method and device, the electronic device and the storage medium provided by the embodiment of the application are suitable for managing and modifying configuration files of BMC. As shown in fig. 1, a schematic structural diagram of a BMC configuration management system according to an embodiment of the present application is shown, and the system mainly includes a BMC, a storage area, and a BMC configuration management device. Specifically, the BMC configuration management device is configured to obtain a historical version configuration file of the BMC, store the obtained historical version configuration file in a storage area, where the storage area is used to store multiple versions of the configuration file of the BMC, and when the BMC needs to be configured and modified, the BMC configuration management device may directly call a corresponding configuration file from the storage area to perform corresponding configuration and modification on the BM without performing a cumbersome configuration process, thereby improving the BMC configuration efficiency.
The embodiment of the application provides a BMC configuration management method, which is used for managing and modifying configuration files of BMC. The execution subject of the embodiment of the present application is an electronic device, such as a server, a desktop computer, a notebook computer, a tablet computer, and other electronic devices that can be used for BMC configuration management.
As shown in fig. 2, a schematic flow diagram of a BMC configuration management method provided in an embodiment of the present application is shown, where the BMC configuration management method includes:
step 201, obtaining a historical version configuration file of the BMC, and storing the historical version configuration file in a storage area.
The storage area can be located in a non-volatile memory of the BMC, and other storage devices do not need to be additionally arranged, so that the file storage safety is guaranteed, and the development cost of the BMC configuration management system is saved.
Step 202, when a BMC configuration restoration request input by a user is received, a corresponding target historical version configuration file is called in a storage area according to the BMC configuration restoration request.
It should be noted that, in the process of configuring the BMC, each configuration parameter of the BMC is modified, a corresponding configuration subfile is generated, and each configuration version of the BMC relates to modification of a plurality of configuration parameters, so that each configuration version corresponds to a plurality of configuration subfiles. The configuration file of any configuration version is a set formed by the configuration subfiles included in the configuration version. The configuration parameters of the BMC comprise configurations of DNS, NTP, FRU, BMC management user name, password and the like.
The user can input a BMC configuration restoration request based on the BMC front-end interface and can send the BMC configuration restoration request in a command mode.
Specifically, according to a BMC configuration restoration request input by a user, which target historical version the user needs to restore the BMC to may be determined, and then a corresponding target historical version configuration file may be called in the storage area.
Step 203, based on the target historical version configuration file, configuring the BMC to restore the BMC to the target historical version.
Specifically, the BMC configuration restoration process may be executed based on the target historical version configuration file, so as to restore the configuration of the BMC to the corresponding target historical version.
In order to improve compatibility of the BMC configuration management method provided in the embodiment of the present application, the BMC configuration management process may be implemented based on a whistley platform, or may be implemented based on other platforms, and may be specifically adjusted according to an actual application situation, which is not limited in the embodiment of the present application.
On the basis of the foregoing embodiments, since the BMC itself has a function of restoring factory configuration, in order to reduce the cost of restoring the BMC configuration, as an implementable manner, in an embodiment, configuring the BMC based on the target historical version configuration file includes:
step 2031, acquiring a factory default configuration file of the BMC;
step 2032, generating a target default configuration file according to the target historical version configuration file and the factory default configuration file;
step 2033, based on the target default configuration file, restoring the default configuration to the BMC.
It should be noted that the factory default configuration file of the BMC is owned by each BMC and used for restoring the BMC to the factory configuration.
Specifically, a target default configuration file may be generated by fusing a target historical version configuration file and a factory default configuration file, and then the target default configuration file is used as an execution file for restoring a factory configuration process, and a BMC is subjected to a related operation for restoring a default configuration, so as to restore the BMC configuration to a corresponding target historical version.
Specifically, in an embodiment, an item to be replaced may be located in a factory default configuration file according to a configuration item included in a target historical version configuration file; and replacing the item to be replaced in the factory default configuration file with the corresponding configuration item in the target historical version configuration file to obtain the target default configuration file.
For example, if the target historical version configuration file includes 2 configuration subfiles, the two configuration subfiles represent configuration information of two configuration items, namely, a BMC management user name and a password, respectively, and the factory default configuration file includes not only the two configuration items, namely, the BMC management user name and the password, but also other 8 configuration items, it may be determined that the BMC management user name and the password in the factory default configuration file are two items to be replaced. And then replacing the configuration subfiles corresponding to the BMC management user name and the password in the factory default configuration file with the configuration subfiles corresponding to the BMC management user name and the password in the target historical version configuration file, and fusing the target historical version configuration file with other 8 configuration items in the factory default configuration file to obtain the target default configuration file.
On the basis of the foregoing embodiment, as an implementable manner, in an embodiment, the obtaining a historical version configuration file of the BMC includes:
in step 2011, when a BMC configuration update request or a BMC configuration restore request input by a user is received, a current configuration file of the BMC is obtained, and the current configuration file is used as a historical version configuration file.
Specifically, when a user receives a BMC configuration update request or a BMC configuration restoration request input by the user, it may be determined that the user will modify the current BMC configuration, and in order to ensure that the user can also quickly recover to the current configuration version at a later stage, a current configuration file of the BMC may be acquired, and the current configuration file is stored in the storage area as a history version configuration file.
On the basis of the foregoing embodiment, as an implementable manner, in an embodiment, according to the BMC configuration restoration request, invoking a corresponding target historical version configuration file in the storage area includes:
step 2021, determining a target historical version of the BMC according to BMC configuration demand information represented by the BMC configuration restoration request;
step 2022, according to the file path information of the storage area, calling a target historical version configuration file corresponding to the target historical version in the storage area.
It should be noted that the historical version configuration file may be stored in a specified file path of the storage area according to a preset file storage rule, and the version number of the historical version configuration file may be used as a storage tag thereof.
Specifically, when the target historical version configuration file needs to be called from the storage area, the target historical version configuration file corresponding to the version number of the target historical version may be called in the storage area according to the file path corresponding to each storage tag represented by the file path information of the storage area.
The BMC configuration management method provided by the embodiment of the application is also suitable for server production scenes, a server provider usually provides a server for multiple users, and different users have different configuration requirements on the server, so that configuration files of multiple BMC versions can be preset in a BMC storage area before the server is produced, and the configuration files are respectively suitable for requirements of different users, so that the configuration files of the current user can be directly called in the process of producing the server, and the server can be rapidly produced.
On the basis of the foregoing embodiment, since the storage space of the storage area is limited, as an implementable manner, in an embodiment, the method further includes:
step 301, monitoring the space usage of a storage area;
step 302, according to the space usage of the storage area, managing the historical version configuration file currently stored in the storage area.
Specifically, whether the remaining storage space of the storage area is abundant can be judged by monitoring the space usage of the storage area, and under the condition that the remaining storage space is not abundant, file compression processing can be performed on the historical version configuration file currently stored in the storage area, and also the historical version configuration file with repetition or high similarity can be removed, and specifically, the historical version configuration file currently stored in the storage area can be managed by taking the space occupation amount of the configuration file as a target according to an actual application scene, and a specific management mode is not limited in the embodiment of the present application.
According to the BMC configuration management method provided by the embodiment of the application, the historical version configuration file of the BMC is obtained and stored in the storage area; when a BMC configuration restoration request input by a user is received, calling a corresponding target historical version configuration file in a storage area according to the BMC configuration restoration request; and configuring the BMC based on the target historical version configuration file to restore the BMC to the target historical version. According to the method provided by the scheme, the historical version configuration file of the BMC is stored, when the BMC needs to be configured and restored, the corresponding target historical version configuration file is directly called, a user does not need to repeatedly send related configuration commands, and the BMC configuration efficiency is improved. And moreover, the target default configuration file is generated by fusing the target historical version configuration file and the factory default configuration file, and corresponding configuration restoration is carried out on the basis of the target default configuration file by utilizing the factory restoration configuration function of the BMC, so that the restoration cost of the BMC configuration is reduced.
The embodiment of the present application provides a BMC configuration management device, which is configured to execute the BMC configuration management method provided in the foregoing embodiment.
Fig. 3 is a schematic structural diagram of a BMC configuration management device according to an embodiment of the present disclosure. The BMC configuration management device 30 includes: an acquisition module 301, a calling module 302, and a configuration module 303.
The obtaining module 301 is configured to obtain a historical version configuration file of the BMC, and store the historical version configuration file in a storage area; the calling module 302 is configured to, when a BMC configuration restoration request input by a user is received, call a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request; a configuration module 303, configured to configure the BMC based on the target historical version configuration file, so as to restore the BMC to the target historical version.
Specifically, in an embodiment, the configuration module 303 is specifically configured to:
acquiring a factory default configuration file of BMC;
generating a target default configuration file according to the target historical version configuration file and the factory default configuration file;
and restoring the default configuration of the BMC based on the target default configuration file.
Specifically, in an embodiment, the configuration module 303 is specifically configured to:
according to configuration items contained in the target historical version configuration file, positioning items to be replaced in a factory default configuration file;
and replacing the item to be replaced in the factory default configuration file with the corresponding configuration item in the target historical version configuration file to obtain the target default configuration file.
Specifically, in an embodiment, the obtaining module 301 is specifically configured to:
when a BMC configuration updating request or a BMC configuration restoring request input by a user is received, a current configuration file of BMC is obtained, and the current configuration file is used as a historical version configuration file.
Specifically, in an embodiment, the invoking module 302 is specifically configured to:
determining a target historical version of the BMC according to the BMC configuration demand information represented by the BMC configuration restoration request;
and calling a target historical version configuration file corresponding to the target historical version in the storage area according to the file path information of the storage area.
Specifically, in one embodiment, the storage area is located in a non-volatile memory of the BMC.
Specifically, in an embodiment, the BMC configuration management device further includes:
the file management module 304 is used for monitoring the space utilization condition of the storage area; and managing the current stored historical version configuration file of the storage area according to the space use condition of the storage area.
With regard to the BMC configuration management apparatus in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
The BMC configuration management device provided by the embodiment of the application comprises an acquisition module, a calling module and a configuration module, wherein the acquisition module is used for acquiring a historical version configuration file of BMC and storing the historical version configuration file into a storage area; the calling module is used for calling a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request when the BMC configuration restoration request input by the user is received; and the configuration module is used for configuring the BMC based on the target historical version configuration file so as to restore the BMC to the target historical version. According to the device provided by the scheme, the historical version configuration file of the BMC is stored, when the BMC needs to be configured and restored, the corresponding target historical version configuration file is directly called, a user does not need to repeatedly send related configuration commands, and the BMC configuration efficiency is improved. And moreover, the target default configuration file is generated by fusing the target historical version configuration file and the factory default configuration file, and corresponding configuration restoration is performed on the basis of the target default configuration file by utilizing the factory restoration configuration function of the BMC, so that the restoration cost of the BMC configuration is reduced.
An embodiment of the present application provides an electronic device, configured to execute the BMC configuration management method provided in the foregoing embodiment.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 40 includes: at least one processor 41 and a memory 42.
The memory stores computer-executable instructions; the at least one processor executes the memory-stored computer-executable instructions to cause the at least one processor to perform the BMC configuration management method provided by the above embodiments.
The electronic device provided in the embodiment of the present application is configured to execute the BMC configuration management method provided in the foregoing embodiment, and an implementation manner and a principle of the electronic device are the same and are not described again.
An embodiment of the present application provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the BMC configuration management method provided in any of the above embodiments is implemented.
The storage medium including the computer executable instructions according to the embodiment of the present application may be used to store the computer executable instructions of the BMC configuration management method provided in the foregoing embodiment, and an implementation manner and a principle thereof are the same and are not described again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple 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.
The 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 solution of the embodiment.
In addition, functional units in the embodiments of the present application 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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A BMC configuration management method, comprising:
acquiring a historical version configuration file of BMC, and storing the historical version configuration file in a storage area;
when a BMC configuration restoration request input by a user is received, calling a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request;
and configuring the BMC based on the target historical version configuration file so as to restore the BMC to the target historical version.
2. The method of claim 1, wherein configuring the BMC based on the target historical version profile comprises:
acquiring a factory default configuration file of the BMC;
generating a target default configuration file according to the target historical version configuration file and a factory default configuration file;
and restoring the default configuration of the BMC based on the target default configuration file.
3. The method of claim 2, wherein generating a target default configuration file according to the target historical version configuration file and a factory default configuration file comprises:
positioning an item to be replaced in the factory default configuration file according to the configuration item contained in the target historical version configuration file;
and replacing the item to be replaced in the factory default configuration file with a corresponding configuration item in the target historical version configuration file to obtain a target default configuration file.
4. The method of claim 1, wherein obtaining the historical version configuration file for the BMC comprises:
when a BMC configuration updating request or a BMC configuration restoring request input by a user is received, a current configuration file of the BMC is obtained, and the current configuration file is used as the historical version configuration file.
5. The method of claim 1, wherein the invoking a corresponding target historical version configuration file in the memory area according to the BMC configuration restore request comprises:
determining a target historical version of the BMC according to the BMC configuration demand information represented by the BMC configuration restoration request;
and calling a target historical version configuration file corresponding to the target historical version in the storage area according to the file path information of the storage area.
6. The method of claim 1, wherein the storage area is located in a non-volatile memory of the BMC.
7. The method of claim 1, further comprising:
monitoring the space usage of the storage area;
and managing the current stored historical version configuration file of the storage area according to the space use condition of the storage area.
8. A BMC configuration management apparatus, comprising:
the acquisition module is used for acquiring a historical version configuration file of the BMC and storing the historical version configuration file into a storage area;
the calling module is used for calling a corresponding target historical version configuration file in the storage area according to the BMC configuration restoration request when the BMC configuration restoration request input by a user is received;
and the configuration module is used for configuring the BMC based on the target historical version configuration file so as to restore the BMC to the target historical version.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1 to 7.
CN202210151708.1A 2022-02-18 2022-02-18 BMC configuration management method and device, electronic equipment and storage medium Withdrawn CN114553859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210151708.1A CN114553859A (en) 2022-02-18 2022-02-18 BMC configuration management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210151708.1A CN114553859A (en) 2022-02-18 2022-02-18 BMC configuration management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114553859A true CN114553859A (en) 2022-05-27

Family

ID=81675172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210151708.1A Withdrawn CN114553859A (en) 2022-02-18 2022-02-18 BMC configuration management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114553859A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149229A (en) * 2023-10-27 2023-12-01 江苏华鲲振宇智能科技有限责任公司 Automatic restoration method and system for server management software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149229A (en) * 2023-10-27 2023-12-01 江苏华鲲振宇智能科技有限责任公司 Automatic restoration method and system for server management software
CN117149229B (en) * 2023-10-27 2024-03-12 江苏华鲲振宇智能科技有限责任公司 Automatic restoration method and system for server management software

Similar Documents

Publication Publication Date Title
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN111414391A (en) Method and system for accessing multiple data sources
CN109165175B (en) Equipment identifier generation method and device
CN103973470A (en) Cluster management method and equipment for shared-nothing cluster
CN112631686A (en) Data processing method, data processing device, computer equipment and storage medium
CN111582824B (en) Cloud resource synchronization method, device, equipment and storage medium
CN112434278A (en) Bare computer authentication method, apparatus, device and medium
US8719622B2 (en) Recording and preventing crash in an appliance
CN107463390B (en) Software upgrading method and upgrading server
CN114553859A (en) BMC configuration management method and device, electronic equipment and storage medium
CN102880478A (en) Software updating method
CN112044061B (en) Game picture processing method and device, electronic equipment and storage medium
CN111651304B (en) Software recovery method and device based on double-core intelligent ammeter and computer equipment
CN108536541B (en) Process engine object processing method and device
CN112001707A (en) Business workflow generation method and system based on business data
CN111897643A (en) Thread pool configuration system, method, device and storage medium
CN110737458A (en) code updating method and related device
CN114756527A (en) Method and device for expanding Redis cluster, electronic equipment and storage medium
CN114490189A (en) Cloud platform database backup method and device, electronic equipment and storage medium
CN113590033A (en) Information synchronization method and device of super-fusion system
CN113326052A (en) Method and device for upgrading service component, computer equipment and storage medium
CN112099879A (en) Configuration information management method and device, computer equipment and storage medium
JP7102783B2 (en) System management equipment, system management methods, and programs
CN112463228A (en) Storage pool hybrid deployment method and device
CN109542598B (en) Timed task management method and device

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220527

WW01 Invention patent application withdrawn after publication