Method, device and equipment for checking configuration of substrate management controller
By automatically configuring and checking the server's BMC using the substrate management controller information configuration file, the problem of inefficient BMC configuration checking in the prior art is solved, and the automatic configuration and inspection of BMC is realized, and efficiency is improved.
Patent Information
- Application Number
- CN202411793178.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-18
AI Technical Summary
In the prior art, the server needs to manually configure and check the configuration of the BMC before it is put into use, resulting in inefficient testing and the BMC configuration inspection cannot be completed quickly and conveniently.
Through the substrate management controller information configuration file, the BMC in the host to be tested is automatically configured, and the target configuration items configured in the BMC are automatically checked according to the configuration check information to generate a configuration test report.
The automated configuration and inspection of BMC has been realized, which improves configuration and inspection efficiency and reduces the workload of relevant personnel.
Smart Images

Figure CN119645526A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a configuration checking method, device and equipment for a baseboard management controller. Background Art
[0002] With the continuous progress of society and the continuous development of science and technology, people's demand for servers is increasing, and with it comes higher and higher requirements for BMC (Baseboard Management Controller) and higher and higher stability. At present, before the server is put into use, it is necessary to test the configuration retention of BMC in various situations to ensure the retention of the configuration or whether the configuration is restored to the default.
[0003] In the related art, testers are required to configure various BMC configurations in advance and manually check the existence of the configurations after performing different operations. However, manual configuration and inspection by testers is time-consuming and laborious, resulting in low efficiency. Therefore, how to quickly and conveniently complete BMC configuration and check the configuration retention status, and improve the inspection efficiency of BMC configuration, is a problem that needs to be solved urgently. Summary of the invention
[0004] The object of the present invention is to provide a method, device and equipment for checking the configuration of a baseboard management controller, so as to quickly and conveniently complete the BMC configuration and check the configuration retention status, thereby improving the inspection efficiency.
[0005] In order to solve the above technical problems, the present invention provides a configuration checking method of a baseboard management controller, comprising:
[0006] According to the baseboard management controller information configuration file, configure the baseboard management controller in the host to be tested; wherein the baseboard management controller information configuration file includes deployment configuration information, configuration item configuration information and configuration check information;
[0007] According to the configuration check information, the target configuration item configured in the baseboard management controller is checked to obtain a configuration check result;
[0008] A configuration test report is generated according to the configuration check result.
[0009] On the other hand, configuring the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file includes:
[0010] According to the deployment configuration information, configure and deploy the baseboard management controller; wherein the deployment configuration information includes an Internet protocol address, a user name and a password;
[0011] According to the configuration item configuration information, each configuration item of the baseboard management controller is configured; wherein the configuration item includes at least one of user, static network, power-on strategy, power consumption and network time protocol.
[0012] On the other hand, configuring each configuration item of the baseboard management controller according to the configuration item configuration information includes:
[0013] Obtaining a configuration identifier of a current configuration item in the configuration item configuration information; wherein the current configuration item is any of the configuration items;
[0014] If the configuration flag is a non-modification flag, the default value of the current configuration item is not modified;
[0015] If the configuration identifier is a modification identifier, modifying the default value of the current configuration item according to the user configuration information of the current configuration item in the configuration item configuration information;
[0016] The step of checking the target configuration items configured in the baseboard management controller according to the configuration check information to obtain the configuration check result includes:
[0017] Obtaining the check mark of the current configuration item that has been configured in the configuration check information;
[0018] If the inspection mark of the current configuration item is the inspection mark, the current configuration item is used as the target configuration item, and according to the preset configuration information of the current configuration item in the configuration item configuration information, the content of the current configuration item in the baseboard management controller is checked to obtain the configuration inspection result of the current configuration item; wherein the preset configuration information is a preset default value or user configuration information.
[0019] On the other hand, generating a configuration test report according to the configuration check result includes:
[0020] The configuration test report is generated according to the configuration check result and the configuration retention requirements in the configuration check information; wherein the configuration retention requirements include default configuration item retention requirements and modified configuration item retention requirements.
[0021] On the other hand, the baseboard management controller information configuration file includes a data structured format file and a programming code file; wherein the data structured format file includes the deployment configuration information, and the programming code file includes the configuration item configuration information and configuration check information.
[0022] On the other hand, before configuring the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file, the method further includes:
[0023] Reading configuration information of a baseboard management controller in a target host according to the acquired file configuration instruction; wherein the target host is a host corresponding to the file configuration instruction;
[0024] The configuration item information is checked according to the configuration information and the instructions in the file configuration instruction, a preset template file is configured, and the baseboard management controller information configuration file is generated.
[0025] On the other hand, checking the target configuration item configured in the baseboard management controller according to the configuration check information to obtain the configuration check result includes:
[0026] After the baseboard management controller is configured, executing the operation command in the configuration check information;
[0027] After the operation command is executed, all target configuration items in the baseboard management controller are checked according to the configuration check information to obtain the configuration check result.
[0028] On the other hand, checking all target configuration items in the baseboard management controller according to the configuration check information to obtain the configuration check result includes:
[0029] Determine whether the one-key check identifier in the configuration check information is a start identifier;
[0030] If yes, all the configuration items in the baseboard management controller are respectively determined as the target configuration items, and all the target configuration items are checked using the configuration check information to obtain the configuration check result;
[0031] If not, the target configuration item is determined according to the inspection identifier of each configuration item in the baseboard management controller, and all the target configuration items are inspected using the configuration inspection information to obtain the configuration inspection result.
[0032] The present invention also provides a configuration checking device for a baseboard management controller, comprising:
[0033] A configuration module, configured to configure a baseboard management controller in a host to be tested according to a baseboard management controller information configuration file; wherein the baseboard management controller information configuration file includes deployment configuration information, configuration item configuration information and configuration check information;
[0034] A checking module, configured to check the target configuration items configured in the baseboard management controller according to the configuration checking information, and obtain a configuration checking result;
[0035] The report module is used to generate a configuration test report according to the configuration check result.
[0036] In addition, the present invention also provides a configuration checking device for a baseboard management controller, comprising:
[0037] Memory for storing computer programs;
[0038] The processor is used to implement the steps of the configuration checking method of the baseboard management controller as described above when executing the computer program.
[0039] A configuration check method for a baseboard management controller provided by the present invention comprises: configuring a baseboard management controller in a host to be tested according to a baseboard management controller information configuration file; wherein the baseboard management controller information configuration file comprises deployment configuration information, configuration item configuration information and configuration check information; checking the target configuration items configured in the baseboard management controller according to the configuration check information to obtain a configuration check result; generating a configuration test report according to the configuration check result;
[0040] It can be seen that the present invention can realize the automatic configuration of the BMC in the server host and improve the configuration efficiency by configuring the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file; by checking the target configuration items configured in the baseboard management controller according to the configuration check information and obtaining the configuration check result, it can automatically check the retention of the BMC configuration, thereby realizing the automatic configuration and inspection of various BMC configurations, improving the inspection efficiency of the BMC configuration, and reducing the workload of relevant personnel. In addition, the present invention also provides a configuration inspection method, device and equipment for a baseboard management controller, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0042] Figure 1 A flowchart of a configuration checking method of a baseboard management controller provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of a configuration process of a BMC information file provided by an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of another configuration checking method of a baseboard management controller provided by an embodiment of the present invention;
[0045] Figure 4A structural block diagram of a configuration checking device for a baseboard management controller provided by an embodiment of the present invention;
[0046] Figure 5 A simplified structural diagram of a configuration inspection device for a baseboard management controller provided by an embodiment of the present invention;
[0047] Figure 6 A schematic diagram of the specific structure of a configuration checking device for a baseboard management controller provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Please refer to Figure 1 , Figure 1 A flowchart of a configuration checking method of a baseboard management controller provided by an embodiment of the present invention. The method may include:
[0050] Step 101: configuring a baseboard management controller in a host to be tested according to a baseboard management controller information configuration file; wherein the baseboard management controller information configuration file includes deployment configuration information, configuration item configuration information and configuration check information.
[0051] It can be understood that the baseboard management controller (BMC) information configuration file in this embodiment can be a file required to run for configuring and checking the BMC in the server host (i.e., the host to be tested). In this embodiment, the processor can use the deployment configuration information and configuration item configuration information in the BMC information configuration file to configure the BMC in the host to be tested; and use the configuration check information in the BMC information configuration file to check all or part of the configuration items configured in the BMC to obtain the retention status of the BMC configuration.
[0052] Correspondingly, the specific number and content of the BMC information configuration file in this embodiment can be set by the designer according to the practical scenario and user needs. For example, the BMC information configuration file can include a data structured format file for storing deployment configuration information and a programming code file for storing configuration item configuration information and configuration check information. For example, the data structured format file can adopt a .yaml file (such as a config.yaml file), and the .yaml file can include the deployment configuration information of the BMC in the deployment server host, such as an IP (Internet Protocol) address, a user name and a password, so as to realize external test data configuration management; the YAML (Yet Another Markup Language, a markup language) syntax adopted in the .yaml file is similar to other high-level languages, and can simply express data forms such as lists, hash tables, and scalars; its use of blank symbol indentation and a large number of appearance-dependent features are particularly suitable for expressing or editing data structures and various configuration files. The programming code file can adopt a .py file (such as a check_info.py file) to develop using python (a programming language), and use the pytest (a mature full-featured Python test framework) framework to implement the inspection test of the BMC configuration items.
[0053] Similarly, this embodiment also does not limit the specific content of various information in the BMC information configuration file. For example, the deployment configuration information may include an IP address, a user name, and a password, such as the IP address, user name, and password of the server host and the IP address, user name, and password of the BMC. For example, the deployment configuration information may include the following content:
[0054] server:
[0055] os:
[0056] host: 100.17.2.129
[0057] port: 22
[0058] Username: root
[0059] password: inspur@123
[0060] bmc:
[0061] host: 100.17.3.51
[0062] port: 22
[0063] username: admin
[0064] password: admin
[0065] Accordingly, the configuration item configuration information may include the contents of any one or more configuration items among users, static networks, power-on policies, power consumption and Network Time Protocol (NTP); the configuration item configuration information may also include the contents of any one or more configuration items among SNMP (Simple Network Management Protocol), fan mode, web (webpage) timeout session, SMTP (Simple Mail Transfer Protocol), kvm (Kernel-based Virtual Machine, an open source system virtualization module) timeout session, LDAP (Lightweight Directory Access Protocol, Lightweight Directory Access Protocol) / AD (Active Directory, an application instance of LDAP), IPv4 (Internet Protocol version 4) access policy and syslog (system log).
[0066] It should be noted that the specific method for the processor to configure the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file in this step can be set by the designer. For example, the processor can configure the BMC in the host to be tested according to the deployment configuration information; and configure the various configuration items of the baseboard management controller according to the configuration item configuration information. For example, the processor can first read the data structured format file (such as the config.yaml file) to configure the deployment BMC; then read the programming code file (such as the check_info.py file) to configure the various configuration items of the baseboard management controller, such as modifying users, static networks, power-on policies, power consumption, NTP, SNMP, fan mode, web timeout session, SMTP, kvm timeout session, LDAP / AD, IPv4 access policy, and syslog configuration items.
[0067] Among them, the specific manner of configuring each configuration item of the baseboard management controller using the configuration item configuration information in this embodiment can be set by the designer according to the usage scenario and user needs. For example, the processor can directly use the preset configuration information (such as preset default values and user configuration information) of each configuration item in the configuration item configuration information to modify the corresponding configuration item of the BMC; or only use the user configuration information of each configuration item in the configuration item configuration information to modify the corresponding configuration item of the BMC, that is, do not modify the configuration item corresponding to the preset default value.
[0068] In order to reduce the amount of calculation for configuration item modification and improve configuration efficiency, the processor can also configure each configuration item of the baseboard management controller according to the configuration identifier corresponding to each configuration item in the configuration item configuration information; if the configuration identifier corresponding to a configuration item is a non-modification identifier, the content of the configuration item (i.e., the default value) is not modified; if it is a modification identifier, the default value of the configuration item is modified according to the user configuration information of the configuration item in the configuration item configuration information. In other words, the processor can obtain the configuration identifier of the current configuration item in the configuration item configuration information; wherein the current configuration item is any configuration item; if the configuration identifier is a non-modification identifier, the default value of the current configuration item is not modified; if the configuration identifier is a modification identifier, the default value of the current configuration item is modified according to the user configuration information of the current configuration item in the configuration item configuration information.
[0069] Correspondingly, the method provided before this step may also include a process of obtaining a BMC information configuration file; for example, the processor may receive a BMC information configuration file sent by a user, or directly read a pre-stored BMC information configuration file. In order to facilitate the configuration of the BMC information configuration file, the processor in this embodiment may also use the BMC configuration information read from the specified server host (i.e., the target host) to automatically generate a corresponding BMC information configuration file.
[0070] For example, the processor can read the configuration information of the baseboard management controller in the target host (such as IP address, user name, password and various configuration items of BMC, etc.) according to the obtained file configuration instruction; wherein the target host is the host corresponding to the file configuration instruction; according to the configuration information and the specified check configuration item information in the file configuration instruction, configure the preset template file (such as .yaml file template and .py file template) to generate the baseboard management controller information configuration file. In other words, the processor can generate the BMC information configuration file using the preset template file according to the BMC configuration information read from the target host, the configuration items to be checked specified by the user and the corresponding target configuration retention status, so as to facilitate the subsequent batch configuration and inspection of the host to be tested.
[0071] Correspondingly, such as Figure 2 As shown, in the process of reading the configuration information of the baseboard management controller in the target host according to the obtained file configuration instructions, it is also possible to determine whether the configuration information of the BMC in the target host is successfully read; if so, continue to execute the generation process of the BMC information configuration file; if not, an error may be reported. Furthermore, after reading the configuration information of the baseboard management controller in the target host according to the obtained file configuration instructions, it is also possible to determine whether all or part of the content (such as some configuration items) in the configuration information is the same as the preset user configuration content; if so, continue to execute the generation process of the BMC information configuration file; if not, an error may be reported. Correspondingly, as Figure 3 As shown, in this step, the processor may also report an error when the BMC configuration fails.
[0072] Step 102: According to the configuration check information, the target configuration items configured in the baseboard management controller are checked to obtain the configuration check result.
[0073] It can be understood that in this step, the processor can check the configuration items that need to be checked (ie, target configuration items) in the BMC according to the configuration check information, and obtain configuration check results of all target configuration items.
[0074] Correspondingly, in this step, the processor checks the target configuration items configured in the baseboard management controller according to the configuration check information, and the specific method of obtaining the configuration check result can be set by the designer according to the practical scenario and user needs. For example, after all the configuration items of the BMC are configured, the target configuration items configured in the BMC can be checked (such as serially or in parallel) to obtain the configuration check result; or after each or part of the configuration items are configured, these configuration items can be checked to obtain the configuration check result. This embodiment does not impose any restrictions on this.
[0075] Furthermore, in this step, the processor can first execute an operation command (such as restart or restore to factory settings) when checking the configured target configuration items to ensure the accuracy of the configuration retention check. For example, the host to be tested can be controlled to restart by controlling the host to be tested to execute the following operation command under the OS (operating system):
[0076] Ipmitool chassis mc reset cold
[0077] Sleep 500
[0078] For example, in order to avoid repeated execution of operation commands, the processor can execute the operation commands in the configuration check information after the baseboard management controller is configured; after the operation command is executed, all target configuration items in the baseboard management controller are checked according to the configuration check information to obtain the configuration check result. Accordingly, when it is only necessary to check whether the configuration result is correct, the operation command can be omitted in the configuration check information, so as to realize batch configuration of the machine and configuration result check, ensure the accuracy of the configuration, and perform differentiated configuration for different customized services of customers.
[0079] It should be noted that the target configuration item in this embodiment can be a configuration item that needs to be checked. The specific confirmation method of the target configuration item in this step can be set by the designer, such as directly taking all configuration items as the target configuration items; or the target configuration item can be determined according to the inspection identifiers corresponding to each configuration item in the configuration inspection information, such as the processor can obtain the inspection identifier of the current configuration item that has been configured in the configuration inspection information; if the inspection identifier of the current configuration item is the inspection identifier, the current configuration item is taken as the target configuration item, and according to the preset configuration information of the current configuration item in the configuration item configuration information, the content of the current configuration item in the baseboard management controller is checked to obtain the configuration inspection result of the current configuration item; wherein the preset configuration information is the preset default value or the user configuration information; if the inspection identifier of the current configuration item is the non-inspection identifier, then you can continue to wait or check the next configuration item.
[0080] Furthermore, in this embodiment, the target configuration items to be checked can be determined according to the one-key check mark in the configuration check information to facilitate the user's check configuration. For example, the processor can determine whether the one-key check mark in the configuration check information is a startup mark; if it is a startup mark, all configuration items in the baseboard management controller are respectively determined as target configuration items, and all target configuration items are checked using the configuration check information to obtain the configuration check result; if it is a non-startup mark, the target configuration item is determined according to the respective check marks of each configuration item in the baseboard management controller, and all target configuration items are checked using the configuration check information to obtain the configuration check result.
[0081] Correspondingly, in this step, the processor can use the preset configuration information (preset default value or user configuration information) corresponding to each current target configuration item in the configuration check information to check the content of the configured current target configuration item to obtain the configuration check result of the current target configuration item; wherein, the current target configuration item is any target configuration item. For example, when the current target configuration item is a default configuration item that does not need to be modified, the processor can check whether the content of the configured current target configuration item is the same as the preset default value corresponding to the current target configuration item in the configuration check information; if they are the same, the configuration check result of the current target configuration item is determined to be restored; if they are not the same, the configuration check result of the current target configuration item is determined to be retained. For example, the default values of different configuration types (such as preset default values) can be different. Taking the default value of #ntp_servers as an example, during the inspection process, if a certain configuration type does not have a default value, None, "NONE", "null", "" can be obtained, or the content of the corresponding line can be deleted; the default value of the bool (Boolean variable) type uses True and False. For example:
[0082] ntp_servers_default = {
[0083] "AlternateNtpServer": "Sync Always",
[0084] "ExtraNtpServer": "",
[0085] "MaxPollingInterval": "",
[0086] "MinPollingInterval": "",
[0087] "NtpAddressOrigin": "Static",
[0088] "NtpServerCount": 3,
[0089] "PreferredNtpServer": "",
[0090] "ServiceEnabled": False,
[0091] "SyncMode": "Sync Once"
[0092] Correspondingly, when the current target configuration item is a modified configuration item that needs to be modified, the processor can check whether the content of the current target configuration item after the modification configuration is the same as the user configuration information corresponding to the current target configuration item in the configuration check information; if they are the same, the configuration check result of the current target configuration item is determined to be retained; if they are not the same, the configuration check result of the current target configuration item is determined to be restored.
[0093] Step 103: Generate a configuration test report based on the configuration check result.
[0094] Correspondingly, in this step, the processor can generate a configuration test report based on the configuration check results (such as retention or restoration) of all target configuration items for the convenience of user viewing.
[0095] Among them, the specific way in which the processor generates a configuration test report based on the configuration check results in this step can be set by the designer according to practical scenarios and user needs. For example, the processor can directly generate a corresponding configuration test report based on the configuration check results, such as categorizing and displaying the target configuration items to be restored and the target configuration items to be retained in the configuration test report. The processor can also generate a configuration test report based on the configuration check results and the configuration retention requirements in the configuration check information to facilitate users to understand whether the required configuration retention is met; wherein the configuration retention requirements include the default configuration item retention requirements (default) and the modified configuration item retention requirements (recover). For example, when the retention requirement for the default configuration item is retain (i.e., default= True), the configuration test report may display information that the configuration check result is the restored default configuration item (i.e., the erroneous default configuration item) or all the default configuration items are retained unchanged; when the retention requirement for the default configuration item is restore (i.e., default=Flase), the configuration test report may display information that the configuration check result is the retained default configuration item (i.e., the erroneous default configuration item) or all the default configuration items are restored; when the retention requirement for the modified configuration item is retain (i.e., recover = True), the configuration test report may display information that the configuration check result is the restored modified configuration item (i.e., the erroneous modified configuration item) or all the modified configuration items are retained unchanged; when the retention requirement for the modified configuration item is restore (i.e., recover = False), the configuration test report may display information that the configuration check result is the retained modified configuration item (i.e., the erroneous modified configuration item) or all the modified configuration items are restored.
[0096] In this embodiment, the embodiment of the present invention configures the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file, so as to realize the automatic configuration of the BMC in the server host and improve the configuration efficiency; by checking the configured target configuration items in the baseboard management controller according to the configuration check information and obtaining the configuration check result, the retention status of the BMC configuration can be automatically checked, thereby realizing the automatic configuration and inspection of various BMC configurations, improving the inspection efficiency of the BMC configuration, and reducing the workload of related personnel.
[0097] Corresponding to the above method embodiment, an embodiment of the present invention further provides a configuration checking device for a baseboard management controller. The configuration checking device for a baseboard management controller described below and the configuration checking method for a baseboard management controller described above can refer to each other.
[0098] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a configuration checking device for a baseboard management controller provided by an embodiment of the present invention. The device may include:
[0099] The configuration module 10 is used to configure the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file; wherein the baseboard management controller information configuration file includes deployment configuration information, configuration item configuration information and configuration check information;
[0100] The checking module 20 is used to check the target configuration items configured in the baseboard management controller according to the configuration checking information and obtain the configuration checking result;
[0101] The reporting module 30 is used to generate a configuration test report according to the configuration check result.
[0102] In some embodiments, the configuration module 10 may include:
[0103] A deployment submodule, configured to configure the deployment baseboard management controller according to the deployment configuration information; wherein the deployment configuration information includes an Internet protocol address, a user name and a password;
[0104] The configuration submodule is used to configure various configuration items of the baseboard management controller according to the configuration item configuration information; wherein the configuration item includes at least one of user, static network, power-on strategy, power consumption and network time protocol.
[0105] In some embodiments, the configuration submodule may be specifically used to obtain a configuration identifier of a current configuration item in the configuration item configuration information; wherein the current configuration item is any configuration item; if the configuration identifier is a non-modification identifier, the default value of the current configuration item is not modified; if the configuration identifier is a modification identifier, the default value of the current configuration item is modified according to the user configuration information of the current configuration item in the configuration item configuration information;
[0106] The inspection module 20 can be specifically used to obtain the inspection identifier of the current configuration item that has been configured in the configuration inspection information; if the inspection identifier of the current configuration item is the inspection identifier, the current configuration item is used as the target configuration item, and according to the preset configuration information of the current configuration item in the configuration item configuration information, the content of the current configuration item in the baseboard management controller is checked to obtain the configuration inspection result of the current configuration item; wherein the preset configuration information is a preset default value or user configuration information.
[0107] In some embodiments, the reporting module 30 may be specifically configured to generate a configuration test report according to the configuration check result and the configuration retention requirements in the configuration check information; wherein the configuration retention requirements include the default configuration item retention requirements and the modified configuration item retention requirements.
[0108] In some embodiments, the baseboard management controller information configuration file includes a data structured format file and a programming code file; wherein the data structured format file includes deployment configuration information, and the programming code file includes configuration item configuration information and configuration check information.
[0109] In some embodiments, the apparatus may further include:
[0110] A configuration reading module, used to read the configuration information of the baseboard management controller in the target host according to the acquired file configuration instruction; wherein the target host is the host corresponding to the file configuration instruction;
[0111] The file generation module is used to check the configuration item information according to the configuration information and the specified configuration instructions, configure the preset template file, and generate the baseboard management controller information configuration file.
[0112] In some embodiments, according to the configuration check information, the target configuration item configured in the baseboard management controller is checked to obtain the configuration check result, including:
[0113] After the baseboard management controller is configured, the operation command in the configuration check information is executed;
[0114] After the operation command is executed, all target configuration items in the baseboard management controller are checked according to the configuration check information to obtain the configuration check result.
[0115] In some embodiments, the inspection module 20 may include:
[0116] A one-key judgment submodule is used to judge whether the one-key check identifier in the configuration check information is a startup identifier;
[0117] A first checking module is used to determine all configuration items in the baseboard management controller as target configuration items if it is a startup identifier, and check all target configuration items using the configuration checking information to obtain a configuration checking result;
[0118] The second checking module is used to determine the target configuration item according to the checking identifier of each configuration item in the baseboard management controller if it is not a startup identifier, and to check all target configuration items using the configuration checking information to obtain the configuration checking result.
[0119] In this embodiment, the embodiment of the present invention configures the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file through the configuration module 10, which can realize the automatic configuration of the BMC in the server host and improve the configuration efficiency; through the inspection module 20, according to the configuration inspection information, the target configuration items configured in the baseboard management controller are inspected, and the configuration inspection results are obtained, and the retention status of the BMC configuration can be automatically checked, thereby realizing the automatic configuration and inspection of various BMC configurations, improving the inspection efficiency of the BMC configuration, and reducing the workload of related personnel.
[0120] Corresponding to the above method embodiment, an embodiment of the present invention further provides a configuration checking device for a baseboard management controller. The configuration checking device for a baseboard management controller described below and the configuration checking method for a baseboard management controller described above can refer to each other.
[0121] Please refer to Figure 5 , Figure 5 A simplified structural diagram of a configuration inspection device for a baseboard management controller provided by an embodiment of the present invention. The configuration inspection device may include:
[0122] A memory D1, for storing computer programs;
[0123] The processor D2 is used to implement the steps of the baseboard management controller configuration checking method provided by the above method embodiment when executing a computer program.
[0124] Accordingly, please refer to Figure 6 , Figure 6 A specific structural diagram of a configuration inspection device for a baseboard management controller provided in an embodiment of the present invention. The configuration inspection device 310 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and one or more storage media 330 (for example, one or more mass storage devices) storing application programs 342 or data 344. Among them, the memory 332 and the storage medium 330 can be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the host. Furthermore, the central processor 322 can be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the configuration inspection device 310.
[0125] The configuration checking device 310 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and / or one or more operating systems 341, such as Linux system.
[0126] The configuration checking device 310 in this embodiment may specifically be a server or a computer device.
[0127] The steps in the above-described method for checking the configuration of a baseboard management controller may be implemented by the structure of a device for checking the configuration of a baseboard management controller.
[0128] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer program product. The computer program product described below and the configuration checking method of a baseboard management controller described above can refer to each other.
[0129] A computer program product includes a computer program / instruction. When the computer program / instruction is executed by a processor, the steps of the configuration checking method of a baseboard management controller provided in the above method embodiment are implemented.
[0130] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the configuration checking method of a baseboard management controller described above can refer to each other.
[0131] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the configuration checking method of a baseboard management controller of the above method embodiment are implemented.
[0132] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
[0133] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, computer program products and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0134] The above is a detailed introduction to the configuration inspection method, device and equipment of a baseboard management controller provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A configuration checking method for a baseboard management controller, characterized in that: include: According to the baseboard management controller information configuration file, configure the baseboard management controller in the host to be tested; wherein the baseboard management controller information configuration file includes deployment configuration information, configuration item configuration information and configuration check information; According to the configuration check information, the target configuration item configured in the baseboard management controller is checked to obtain a configuration check result; A configuration test report is generated according to the configuration check result.
2. The configuration checking method of the baseboard management controller according to claim 1, characterized in that: The step of configuring the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file includes: According to the deployment configuration information, configure and deploy the baseboard management controller; wherein the deployment configuration information includes an Internet protocol address, a user name and a password; According to the configuration item configuration information, each configuration item of the baseboard management controller is configured; wherein the configuration item includes at least one of user, static network, power-on strategy, power consumption and network time protocol.
3. The configuration checking method of the baseboard management controller according to claim 2, characterized in that: Configuring each configuration item of the baseboard management controller according to the configuration item configuration information includes: Obtaining a configuration identifier of a current configuration item in the configuration item configuration information; wherein the current configuration item is any of the configuration items; If the configuration flag is a non-modification flag, the default value of the current configuration item is not modified; If the configuration identifier is a modification identifier, modifying the default value of the current configuration item according to the user configuration information of the current configuration item in the configuration item configuration information; The step of checking the target configuration items configured in the baseboard management controller according to the configuration check information to obtain the configuration check result includes: Obtaining the check mark of the current configuration item that has been configured in the configuration check information; If the inspection mark of the current configuration item is the inspection mark, the current configuration item is used as the target configuration item, and according to the preset configuration information of the current configuration item in the configuration item configuration information, the content of the current configuration item in the baseboard management controller is checked to obtain the configuration inspection result of the current configuration item; wherein the preset configuration information is a preset default value or user configuration information.
4. The configuration checking method of a baseboard management controller according to claim 1, characterized in that: Generating a configuration test report according to the configuration check result includes: The configuration test report is generated according to the configuration check result and the configuration retention requirements in the configuration check information; wherein the configuration retention requirements include default configuration item retention requirements and modified configuration item retention requirements.
5. The configuration checking method of a baseboard management controller according to claim 1, characterized in that: The baseboard management controller information configuration file includes a data structured format file and a programming code file; wherein the data structured format file includes the deployment configuration information, and the programming code file includes the configuration item configuration information and configuration check information.
6. The configuration checking method of a baseboard management controller according to claim 1, characterized in that: Before configuring the baseboard management controller in the host to be tested according to the baseboard management controller information configuration file, the method further includes: Reading configuration information of a baseboard management controller in a target host according to the acquired file configuration instruction; wherein the target host is a host corresponding to the file configuration instruction; The configuration item information is checked according to the configuration information and the instructions in the file configuration instruction, a preset template file is configured, and the baseboard management controller information configuration file is generated.
7. The configuration checking method of a baseboard management controller according to any one of claims 1 to 6, characterized in that: The step of checking the target configuration items configured in the baseboard management controller according to the configuration check information to obtain the configuration check result includes: After the baseboard management controller is configured, executing the operation command in the configuration check information; After the operation command is executed, all target configuration items in the baseboard management controller are checked according to the configuration check information to obtain the configuration check result.
8. The configuration checking method of a baseboard management controller according to claim 7, characterized in that: The step of checking all target configuration items in the baseboard management controller according to the configuration check information to obtain the configuration check result includes: Determine whether the one-key check identifier in the configuration check information is a start identifier; If yes, all the configuration items in the baseboard management controller are respectively determined as the target configuration items, and all the target configuration items are checked using the configuration check information to obtain the configuration check result; If not, the target configuration item is determined according to the inspection identifier of each configuration item in the baseboard management controller, and all the target configuration items are inspected using the configuration inspection information to obtain the configuration inspection result.
9. A configuration checking device for a baseboard management controller, characterized in that: include: A configuration module, configured to configure a baseboard management controller in a host to be tested according to a baseboard management controller information configuration file; wherein the baseboard management controller information configuration file includes deployment configuration information, configuration item configuration information and configuration check information; A checking module, configured to check the target configuration items configured in the baseboard management controller according to the configuration checking information, and obtain a configuration checking result; The report module is used to generate a configuration test report according to the configuration check result.
10. A configuration checking device for a baseboard management controller, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the configuration checking method of the baseboard management controller as described in any one of claims 1 to 8 when executing the computer program.