CN113805964B - Firmware configuration item catalog generation optimization method, device, equipment and medium - Google Patents

Firmware configuration item catalog generation optimization method, device, equipment and medium Download PDF

Info

Publication number
CN113805964B
CN113805964B CN202111063314.2A CN202111063314A CN113805964B CN 113805964 B CN113805964 B CN 113805964B CN 202111063314 A CN202111063314 A CN 202111063314A CN 113805964 B CN113805964 B CN 113805964B
Authority
CN
China
Prior art keywords
firmware
configuration
configuration item
catalog
configuration file
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.)
Active
Application number
CN202111063314.2A
Other languages
Chinese (zh)
Other versions
CN113805964A (en
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202111063314.2A priority Critical patent/CN113805964B/en
Publication of CN113805964A publication Critical patent/CN113805964A/en
Application granted granted Critical
Publication of CN113805964B publication Critical patent/CN113805964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a firmware configuration item catalog generation optimization method, which is applied to management software of multiple servers and comprises the following steps: dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different firmware types; executing a first profile catalog generation policy for the first type of firmware profile; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog; executing a second profile catalog generation policy for the second type of firmware profile; the invention further provides a firmware configuration item record generation optimizing device, equipment and medium, which effectively solve the problem that the generation of the catalogue does not distinguish firmware types due to the prior art, so that the generation of the catalogue of the server configuration item is suitable for the firmware types.

Description

Firmware configuration item catalog generation optimization method, device, equipment and medium
Technical Field
The present invention relates to the field of catalog generation, and in particular, to a method, apparatus, device, and medium for optimizing firmware configuration project catalog generation.
Background
The configuration items of the server can be known to maintenance personnel about the specific configuration condition of the server, and the configuration items of the server can be subjected to self-defining setting.
The configuration item display of the server in the prior art does not distinguish firmware types, and different types of firmware configuration items directly generate a catalog according to a unified rule and perform unified display.
However, the configuration items of each firmware type generally have hundreds of items, the configuration item catalogue generating strategies of different firmware types are different, the display and maintenance of the configuration items of different firmware types are very inconvenient, and the adaptability of the generation of the different firmware types is not high.
Disclosure of Invention
In order to solve the problems in the prior art, the invention innovatively provides a firmware configuration item record generation optimizing method and device, which effectively solve the problem that the catalog generation is not differentiated from the firmware types due to the prior art, and effectively improve the adaptability of the catalog generation of the server configuration item.
The first aspect of the present invention provides a firmware configuration item catalog generation optimization method, which is applied to management software of multiple servers, and comprises:
dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different firmware types;
executing a first profile catalog generation policy for the first type of firmware profile; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog.
Executing a second profile catalog generation policy for the second type of firmware profile; the second configuration item catalog generation strategy is used for generating the second configuration item catalog according to the parent level configuration file and the child level configuration file.
Optionally, the first type of firmware configuration item is a BIOS firmware configuration item, and the second type of firmware configuration item is a BMC firmware configuration item.
Further, executing the first profile catalog generation policy for the first type of firmware profile specifically includes:
initializing a BIOS firmware configuration item, a parameter array and parameter array elements to obtain a primary catalog; the parameter array elements in the parameter array are used for identifying whether the current catalogue comprises a subdirectory or not;
reading a BIOS firmware type configuration file, obtaining all subdirectories except a primary catalog in the BIOS firmware type configuration file, and assigning the current subdirectory to a parameter array element in a parameter array;
traversing whether the parameter array element corresponding to the current sub-directory is empty, if the parameter array element corresponding to the current sub-directory is empty, not generating the secondary directory, and if the parameter array element corresponding to the current sub-directory is not empty, correspondingly generating the secondary directory with the directory element in the current sub-directory.
Optionally, executing the second configuration item catalog generation policy for the second type of firmware configuration item specifically includes:
generating a first configuration file according to the model of the server, wherein all BMC firmware configuration items corresponding to all models are stored in the first configuration file;
generating a second configuration file and a third configuration file corresponding to the server model according to the subordinate relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores parent BMC firmware configuration items which correspond to the current server model and cannot be configured; the third configuration file stores a sub-level BMC firmware configuration item which corresponds to the current server model and cannot be configured;
and generating a second configuration item catalog according to the first configuration file, the second configuration file and the third configuration file.
Further, the BMC firmware configuration items comprise a parent BMC firmware configuration item and a child BMC firmware configuration item, wherein the child BMC firmware configuration item is a BMC firmware configuration item subordinate to the parent BMC firmware configuration item; the father BMC firmware configuration item in the second configuration file is a father BMC firmware configuration item which corresponds to the server model and cannot be configured; the sub-level BMC firmware configuration items in the third configuration file are sub-level BMC firmware configuration items which correspond to the server model and cannot be configured.
Optionally, generating the second profile directory according to the first profile, the second profile and the third profile is specifically:
performing complement operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and parent BMC firmware configuration items which are stored in the second configuration file and cannot be configured and corresponding to the current server model, and determining configurable parent BMC firmware configuration items corresponding to the current server model;
performing complement operation on BMC firmware configuration items corresponding to all types stored in the first configuration file and sub-level BMC firmware configuration items which are stored in the third configuration file and cannot be configured and correspond to the current server type, and determining the configurable sub-level BMC firmware configuration items corresponding to the current server type;
and generating a second configuration item catalog from the configurable parent-level BMC firmware configuration item corresponding to the current server model and the configurable child-level BMC firmware configuration item corresponding to the current server model.
Optionally, the method further comprises:
acquiring directory information input by a user, and determining a directory selected by the user according to the directory information input by the user;
and displaying the firmware configuration items belonging to the user-selected directory in the form of directory elements.
The second aspect of the present invention provides a firmware configuration project record generation optimizing apparatus, applied to management software of multiple servers, comprising:
the division module divides the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different firmware types;
the first generation module executes a first configuration item catalog generation strategy aiming at the first type of firmware configuration items; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog.
The second generating module executes a second configuration item catalog generating strategy aiming at the second type firmware configuration items; the second configuration item catalog generation strategy is used for generating the second configuration item catalog according to the parent level configuration file and the child level configuration file.
A third aspect of the present invention provides an electronic device, comprising: a memory for storing a computer program; a processor for implementing the steps of a firmware configuration item catalog generation optimization method according to the first aspect of the present invention when executing the computer program.
A fourth aspect of the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of a firmware configuration item catalog generation optimization method according to the first aspect of the present invention.
The technical scheme adopted by the invention comprises the following technical effects:
1. the method and the device effectively solve the problem that the catalog generation does not distinguish the firmware types due to the prior art, so that the catalog generation of the server configuration items is suitable for the firmware types.
2. According to the technical scheme, all configuration items are not required to be rendered at one time, and different directory generation strategies are formulated according to different firmware types, so that each part of the business logic can be well isolated, the coupling degree among the parts of the business logic is reduced, and the reusability of the directory generation strategies is improved.
3. In the technical scheme of the invention, when the second type firmware configuration item executes the second configuration item catalog generation strategy, the first configuration file is all configuration items corresponding to all machine types, and the second configuration file and the third configuration file are all configuration items corresponding to the current server machine type; the second configuration item catalog is generated according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item catalog can correspond to the current server model, and can be compatible with the generation of configuration item catalogs of different server model types, only the second configuration file and the third configuration file corresponding to the current server model are required to be updated and maintained, the code of model compatibility is continuously increased along with the increase of models when a researcher develops firmware configuration, and meanwhile commands for assisting firmware operators to append firmware configuration in software in real time are omitted.
4. According to the technical scheme, the primary catalogue and the secondary catalogue can be correspondingly generated according to the subordinate relation of the firmware type configuration items of the BIOS (Basic Input Output System ), the secondary configuration files and the third configuration files can also be generated according to the hierarchical relation of the firmware type configuration items of the BMC (Baseboard Management Controller ), the secondary configuration item catalogue is correspondingly generated according to the first configuration files, the second configuration files and the third configuration files, the catalog structure is simplified to be displayed, different compatible models and display strategies are adopted according to different scenes (different server models) of the BMC, and the display effect is more visual.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
For a clearer description of embodiments of the invention or of the solutions of the prior art, reference will be made to the accompanying drawings, which are used in the description of the embodiments or of the prior art, and it will be obvious to those skilled in the art that other drawings can be obtained from these without inventive labour.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of step S2 in a method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a BIOS firmware configuration entry directory (first configuration entry directory) according to an embodiment of the method of the present invention;
FIG. 4 is a schematic flow chart of step S3 in a method according to an embodiment of the present invention;
FIG. 5 is a flow chart of step S33 in a method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a BMC firmware entry directory (second entry directory) according to an embodiment of the method of the present invention;
FIG. 7 is a schematic flow chart of another method according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of a third device according to the embodiment of the present invention.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
Example 1
As shown in FIG. 1, the invention provides a firmware configuration item catalog generation optimization method, which is applied to management software of multiple servers and comprises the following steps:
s1, dividing firmware configuration items into a first type of firmware configuration item and a second type of firmware configuration item according to different firmware types;
s2, executing a first configuration item catalog generation strategy aiming at the first type firmware configuration items; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog.
S3, executing a second configuration item catalog generation strategy aiming at the second type firmware configuration items; the second configuration item catalog generation strategy is used for generating the second configuration item catalog according to the parent level configuration file and the child level configuration file.
In step S1, the first type of firmware configuration item may be a BIOS firmware configuration item, and the second type of firmware configuration item may be a BMC firmware configuration item.
In step S2, as shown in fig. 2, step S2 specifically includes:
s21, initializing a BIOS firmware configuration item, a parameter array and parameter array elements to obtain a primary catalog; the parameter array elements in the parameter array are used for identifying whether the current catalogue comprises a subdirectory or not;
s22, reading a BIOS firmware type configuration file, acquiring all subdirectories except a primary catalog in the BIOS firmware type configuration file, and assigning the current subdirectory to a parameter array element in the parameter array;
s23, traversing whether the parameter array element corresponding to the current subdirectory is empty or not, and if so, executing the step S24; if not, executing step S25;
s24, not generating a secondary catalog;
s25, correspondingly generating a secondary catalog by catalog elements in the current subdirectory.
In steps S21-S25, initializing a BIOS firmware configuration item, a parameter array and parameter array elements to obtain a primary catalog; the parameter array elements in the parameter array are used to identify whether the current directory includes a subdirectory,
as shown in fig. 3, a directory of configuration items is configured for the generated BIOS firmware. Triggering and calling doneEach (analysis function) to analyze and initialize parameters such as parameter array (list) and parameter array element (lisData) when a user accesses a BIOS firmware type configuration item, wherein the parameter array element in the parameter array is used for identifying whether the current directory (sub-directory except the primary directory) comprises the sub-directory or not, initializing the parameter array element lisData serving as a judgment mark to be empty, and obtaining the primary directory (first-layer directory) after the initialization is completed; reading the content of an XML (extensible markup language, configuration file format) document configured by BIOS firmware, analyzing all titles and title contents except for a 1-level title in the XML document, and assigning the title and title contents to a parameter array element lisData in a parameter array list; and traversing and judging the parameter array element lisdata values of all the directory entries, judging whether the parameter array element lisdata values are empty, if so, indicating that the parameter array element lisdata is free of subdirectories, and if not, not generating a secondary directory. If not, reading all sub-elements in the current sub-directory, and correspondingly generating a secondary directory by using directory elements in the current sub-directory.
In step S3, as shown in fig. 4, step S3 specifically includes:
s31, generating a first configuration file according to the model of the server, wherein all BMC firmware configuration items corresponding to all models are stored in the first configuration file;
s32, generating a second configuration file and a third configuration file corresponding to the server model according to the subordinate relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores father-level BMC firmware configuration items which correspond to the current server model and cannot be configured; the third configuration file stores a sub-level BMC firmware configuration item which corresponds to the current server model and cannot be configured;
s33, generating a second configuration item catalog according to the first configuration file, the second configuration file and the third configuration file.
In steps S31-S33, the BMC firmware configuration item includes a parent BMC firmware configuration item and a child BMC firmware configuration item, where the child BMC firmware configuration item is a BMC firmware configuration item subordinate to the parent BMC firmware configuration item; the parent-level BMC firmware configuration item may be an SNMP (simple network management protocol) configuration item, an SMTP (simple mail transfer protocol) configuration item, a USER (USER) configuration item, an NTP (network time protocol) configuration item, a NET (network) configuration item, a DNS (domain name resolution) configuration item, a Service (Service) configuration item, a get acquisition command line and a set setting command line in an SNMP test tool) configuration item, a SYS execution command line in a BMCs (BMC) configuration item, an LDAP (lightweight directory access protocol) configuration item, an SSL (remote entry) configuration item, etc., the child-level BMC firmware configuration item may be a BMC firmware configuration item subordinate to the ntp.server4 (NTP configuration item), a Snmp.alarmstrategy (SNMP) configuration item), a first configuration item of a snp set (mpgetset configuration item) and the like, and a second configuration item of the snp set configuration item may be stored in a corresponding manner, and may also be updated in order to reduce the frequency of all the general-purpose type configuration items, or may be determined in order to update all the general-purpose type configuration items according to the invention. The server model in the first configuration file may be a common M5 model or M6 model, or may be another server model, and all BMC firmware configuration items (such as adding, deleting, modifying, etc.) of a certain model may be updated according to the server model condition.
The father-level BMC firmware configuration item in the second configuration file is a father-level BMC firmware configuration item which corresponds to the server model and cannot be configured, for example, NF58 is M5 (M5 model): [ SERVICE, SNMPGetSet ]; the sub-level BMC firmware configuration item in the third configuration file is a sub-level BMC firmware configuration item which corresponds to the server model and cannot be configured, for example NF58 x M5 (M5 model) [ SNMP.systemID, SNMPGetSet.trapPort ].
As shown in fig. 5, step S33 specifically includes:
s331, performing complement operation on all BMC firmware configuration items corresponding to all machine types stored in the first configuration file and a parent BMC firmware configuration item which cannot be configured and corresponds to the current server machine type stored in the second configuration file, and determining a configurable parent BMC firmware configuration item corresponding to the current server machine type;
s332, performing complement operation on all BMC firmware configuration items corresponding to all machine types stored in the first configuration file and sub-level BMC firmware configuration items which are stored in the third configuration file and cannot be configured and correspond to the current server machine type, and determining the configurable sub-level BMC firmware configuration items corresponding to the current server machine type;
s333, generating a second configuration item catalog from the configurable parent BMC firmware configuration item corresponding to the current server model and the configurable child BMC firmware configuration item corresponding to the current server model.
In step S331, the complement operation is performed on all the BMC firmware configuration items corresponding to all the models stored in the first configuration file and the parent BMC firmware configuration items corresponding to the current server model stored in the second configuration file, that is, the parent BMC firmware configuration items in the first configuration file, which are the same as the parent BMC firmware configuration items corresponding to the current server model in the second configuration file and cannot be configured, are removed, and the remaining parent BMC firmware configuration items corresponding to the current server model in the first configuration file are configurable parent BMC firmware configuration items corresponding to the current server model.
S332, performing complement operation on all BMC firmware configuration items corresponding to all machine types stored in the first configuration file and sub-level BMC firmware configuration items which are stored in the third configuration file and cannot be configured and correspond to the current server machine type, namely eliminating sub-level BMC firmware configuration items which are the same as the sub-level BMC firmware configuration items which are stored in the first configuration file and cannot be configured and correspond to the current server machine type in the second configuration file, wherein the remaining sub-level BMC firmware configuration items which are stored in the first configuration file and correspond to the current server machine type are configurable sub-level BMC firmware configuration items which are corresponding to the current server machine type.
In step S333, a second configuration item directory is generated from the configurable parent BMC firmware configuration item corresponding to the current server model and the configurable child BMC firmware configuration item corresponding to the current server model, as shown in fig. 6.
As shown in fig. 7, the technical solution of the present invention further provides a firmware configuration item catalog generation optimization method, which further includes:
s4, acquiring directory information input by a user, and determining a directory selected by the user according to the directory information input by the user;
s5, displaying the firmware configuration items belonging to the user selection directory in the form of the directory and directory elements.
In steps S4-S5, the user selects to view a certain directory content: when the user clicks on the catalog, the ready function is triggered to be invoked. Taking the user selection of the directory "processor" as an example: after initializing and generating a catalog list, clicking a processor by a user, triggering and calling ready, reading the ID of a selected title and the title content to assign to a key (used for identifying the current access element); reading and analyzing lower-level data in the current element XML document, wherein the lower-level data also comprises sub-elements, and the lower-level data is displayed as a second-level catalog (or a sub-level BMC firmware configuration item); otherwise, the lower level data is directly displayed as an element of the primary directory (or parent BMC firmware configuration item).
It should be noted that, in the technical solution of the present invention, steps S1 to S5 may be implemented by hardware or software language programming, and the implementing thought corresponds to the steps, and may also be implemented by other modes, which is not limited herein.
The method and the device effectively solve the problem that the catalog generation does not distinguish the firmware types due to the prior art, so that the catalog generation of the server configuration items is suitable for the firmware types.
According to the technical scheme, all configuration items are not required to be rendered at one time, and different directory generation strategies are formulated according to different firmware types, so that each part of the business logic can be well isolated, the coupling degree among the parts of the business logic is reduced, and the reusability of the directory generation strategies is improved.
In the technical scheme of the invention, when the second type firmware configuration item executes the second configuration item catalog generation strategy, the first configuration file is all configuration items corresponding to all machine types, and the second configuration file and the third configuration file are all configuration items corresponding to the current server machine type; the second configuration item catalog is generated according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item catalog can correspond to the current server model, and can be compatible with the generation of configuration item catalogs of different server model types, only the second configuration file and the third configuration file corresponding to the current server model are required to be updated and maintained, the code of model compatibility is continuously increased along with the increase of models when a researcher develops firmware configuration, and meanwhile commands for assisting firmware operators to append firmware configuration in software in real time are omitted.
According to the technical scheme, the primary catalogue and the second catalogue can be correspondingly generated according to the subordinate relation of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relation of the BMC firmware type configuration items, the second configuration item catalogue is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display catalogue structure is simplified, different compatible models and display strategies are adopted according to different scenes (different server models) of the BMC, and the display effect is more visual.
Example two
As shown in fig. 8, the technical solution of the present invention further provides a firmware configuration project record generation optimizing apparatus, which is applied to management software of multiple servers, and includes:
the division module 101 divides the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different firmware types;
a first generation module 102 that executes a first profile catalog generation policy for a first type of firmware profile; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog.
A second generation module 103 that executes a second configuration item catalog generation policy for the second type of firmware configuration item; the second configuration item catalog generation strategy is used for generating the second configuration item catalog according to the parent level configuration file and the child level configuration file.
The method and the device effectively solve the problem that the catalog generation does not distinguish the firmware types due to the prior art, so that the catalog generation of the server configuration items is suitable for the firmware types.
According to the technical scheme, all configuration items are not required to be rendered at one time, and different directory generation strategies are formulated according to different firmware types, so that each part of the business logic can be well isolated, the coupling degree among the parts of the business logic is reduced, and the reusability of the directory generation strategies is improved.
In the technical scheme of the invention, when the second type firmware configuration item executes the second configuration item catalog generation strategy, the first configuration file is all configuration items corresponding to all machine types, and the second configuration file and the third configuration file are all configuration items corresponding to the current server machine type; the second configuration item catalog is generated according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item catalog can correspond to the current server model, and can be compatible with the generation of configuration item catalogs of different server model types, only the second configuration file and the third configuration file corresponding to the current server model are required to be updated and maintained, the code of model compatibility is continuously increased along with the increase of models when a researcher develops firmware configuration, and meanwhile commands for assisting firmware operators to append firmware configuration in software in real time are omitted.
According to the technical scheme, the primary catalogue and the second catalogue can be correspondingly generated according to the subordinate relation of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relation of the BMC firmware type configuration items, the second configuration item catalogue is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display catalogue structure is simplified, different compatible models and display strategies are adopted according to different scenes (different server models) of the BMC, and the display effect is more visual.
Example III
As shown in fig. 9, the technical solution of the present invention further provides an electronic device, including: a memory 201 for storing a computer program; a processor 202 is configured to implement the steps of a firmware configuration item catalog generation optimization method as in the first embodiment when executing the computer program.
The memory 201 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device. It will be appreciated that memory 201 may be volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random AccessMemory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronousDynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr sdram, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory 201 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory. The methods disclosed in the embodiments of the present application may be applied to the processor 202 or implemented by the processor 202. The processor 202 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware in the processor 202 or by instructions in software. The processor 202 may be a processor, DSP (Digital Signal Processing, meaning a chip capable of implementing digital signal processing techniques), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 202 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied in a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium in the memory 201 and the processor 202 reads the program in the memory 201 to perform the steps of the method described above in connection with its hardware. The processor 202 implements corresponding flows in the methods of the embodiments of the present application when executing the program, and for brevity, will not be described in detail herein.
The method and the device effectively solve the problem that the catalog generation does not distinguish the firmware types due to the prior art, so that the catalog generation of the server configuration items is suitable for the firmware types.
According to the technical scheme, all configuration items are not required to be rendered at one time, and different directory generation strategies are formulated according to different firmware types, so that each part of the business logic can be well isolated, the coupling degree among the parts of the business logic is reduced, and the reusability of the directory generation strategies is improved.
In the technical scheme of the invention, when the second type firmware configuration item executes the second configuration item catalog generation strategy, the first configuration file is all configuration items corresponding to all machine types, and the second configuration file and the third configuration file are all configuration items corresponding to the current server machine type; the second configuration item catalog is generated according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item catalog can correspond to the current server model, and can be compatible with the generation of configuration item catalogs of different server model types, only the second configuration file and the third configuration file corresponding to the current server model are required to be updated and maintained, the code of model compatibility is continuously increased along with the increase of models when a researcher develops firmware configuration, and meanwhile commands for assisting firmware operators to append firmware configuration in software in real time are omitted.
According to the technical scheme, the primary catalogue and the second catalogue can be correspondingly generated according to the subordinate relation of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relation of the BMC firmware type configuration items, the second configuration item catalogue is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display catalogue structure is simplified, different compatible models and display strategies are adopted according to different scenes (different server models) of the BMC, and the display effect is more visual.
Example IV
The technical solution of the present invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of a firmware configuration item catalog generation optimization method as in the first embodiment.
For example comprising a memory 201 storing a computer program executable by a processor 202 to perform the steps of the method described above. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code. Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, and the computer software product may be stored in a storage medium, and include several instructions to cause an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The method and the device effectively solve the problem that the catalog generation does not distinguish the firmware types due to the prior art, so that the catalog generation of the server configuration items is suitable for the firmware types.
According to the technical scheme, all configuration items are not required to be rendered at one time, and different directory generation strategies are formulated according to different firmware types, so that each part of the business logic can be well isolated, the coupling degree among the parts of the business logic is reduced, and the reusability of the directory generation strategies is improved.
In the technical scheme of the invention, when the second type firmware configuration item executes the second configuration item catalog generation strategy, the first configuration file is all configuration items corresponding to all machine types, and the second configuration file and the third configuration file are all configuration items corresponding to the current server machine type; the second configuration item catalog is generated according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item catalog can correspond to the current server model, and can be compatible with the generation of configuration item catalogs of different server model types, only the second configuration file and the third configuration file corresponding to the current server model are required to be updated and maintained, the code of model compatibility is continuously increased along with the increase of models when a researcher develops firmware configuration, and meanwhile commands for assisting firmware operators to append firmware configuration in software in real time are omitted.
According to the technical scheme, the primary catalogue and the second catalogue can be correspondingly generated according to the subordinate relation of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relation of the BMC firmware type configuration items, the second configuration item catalogue is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display catalogue structure is simplified, different compatible models and display strategies are adopted according to different scenes (different server models) of the BMC, and the display effect is more visual.
While the foregoing description of the embodiments of the present invention has been presented in conjunction with the drawings, it should be understood that it is not intended to limit the scope of the invention, but rather, it is intended to cover all modifications or variations within the scope of the invention as defined by the claims of the present invention.

Claims (7)

1. The firmware configuration item catalog generation optimization method is characterized by being applied to management software of multiple servers and comprising the following steps of:
dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different firmware types; the first type firmware configuration item is a BIOS firmware configuration item, and the second type firmware configuration item is a BMC firmware configuration item;
executing a first profile catalog generation policy for the first type of firmware profile; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog; executing a first profile catalog generation policy for a first type of firmware profile specifically includes:
initializing a BIOS firmware configuration item, a parameter array and parameter array elements to obtain a primary catalog; the parameter array elements in the parameter array are used for identifying whether the current catalogue comprises a subdirectory or not;
reading a BIOS firmware type configuration file, obtaining all subdirectories except a primary catalog in the BIOS firmware type configuration file, and assigning the current subdirectory to a parameter array element in a parameter array;
traversing whether the parameter array element corresponding to the current sub-directory is empty, if so, not generating a secondary directory, and if not, correspondingly generating a secondary directory with the directory element in the current sub-directory;
executing a second profile catalog generation policy for the second type of firmware profile; the second configuration item catalog generation strategy is used for generating a second configuration item catalog according to the parent level configuration file and the child level configuration file; executing the second profile catalog generation policy for the second type of firmware profile specifically includes:
generating a first configuration file according to the model of the server, wherein all BMC firmware configuration items corresponding to all models are stored in the first configuration file;
generating a second configuration file and a third configuration file corresponding to the server model according to the subordinate relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores parent BMC firmware configuration items which correspond to the current server model and cannot be configured; the third configuration file stores a sub-level BMC firmware configuration item which corresponds to the current server model and cannot be configured;
and generating a second configuration item catalog according to the first configuration file, the second configuration file and the third configuration file.
2. The method for optimizing firmware configuration project record generation according to claim 1, wherein the BMC firmware configuration items include a parent-level BMC firmware configuration item and a child-level BMC firmware configuration item, wherein the child-level BMC firmware configuration item is a BMC firmware configuration item subordinate to the parent-level BMC firmware configuration item; the father BMC firmware configuration item in the second configuration file is a father BMC firmware configuration item which corresponds to the server model and cannot be configured; the sub-level BMC firmware configuration items in the third configuration file are sub-level BMC firmware configuration items which correspond to the server model and cannot be configured.
3. The method for optimizing firmware configuration item record generation according to claim 1, wherein the generating the second configuration item directory according to the first configuration file, the second configuration file and the third configuration file specifically comprises:
performing complement operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and parent BMC firmware configuration items which are stored in the second configuration file and cannot be configured and corresponding to the current server model, and determining configurable parent BMC firmware configuration items corresponding to the current server model;
performing complement operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and sub-level BMC firmware configuration items which are stored in the third configuration file and cannot be configured and correspond to the current server model, and determining the configurable sub-level BMC firmware configuration items corresponding to the current server model;
and generating a second configuration item catalog from the configurable parent-level BMC firmware configuration item corresponding to the current server model and the configurable child-level BMC firmware configuration item corresponding to the current server model.
4. The firmware configuration project record generation optimization method of claim 1, further comprising:
acquiring directory information input by a user, and determining a directory selected by the user according to the directory information input by the user;
and displaying the firmware configuration items belonging to the user-selected directory in the form of directory elements.
5. A firmware configuration project record generation optimizing device is characterized by being applied to management software of multiple servers and comprising:
the division module divides the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different firmware types; the first type firmware configuration item is a BIOS firmware configuration item, and the second type firmware configuration item is a BMC firmware configuration item;
the first generation module executes a first configuration item catalog generation strategy aiming at the first type of firmware configuration items; the first configuration item catalog generation strategy is used for generating a first configuration item catalog comprising a primary catalog and a secondary catalog; executing a first profile catalog generation policy for a first type of firmware profile specifically includes:
initializing a BIOS firmware configuration item, a parameter array and parameter array elements to obtain a primary catalog; the parameter array elements in the parameter array are used for identifying whether the current catalogue comprises a subdirectory or not;
reading a BIOS firmware type configuration file, obtaining all subdirectories except a primary catalog in the BIOS firmware type configuration file, and assigning the current subdirectory to a parameter array element in a parameter array;
traversing whether the parameter array element corresponding to the current sub-directory is empty, if so, not generating a secondary directory, and if not, correspondingly generating a secondary directory with the directory element in the current sub-directory;
the second generating module executes a second configuration item catalog generating strategy aiming at the second type firmware configuration items; the second configuration item catalog generation strategy is used for generating a second configuration item catalog according to the parent level configuration file and the child level configuration file; executing the second profile catalog generation policy for the second type of firmware profile specifically includes:
generating a first configuration file according to the model of the server, wherein all BMC firmware configuration items corresponding to all models are stored in the first configuration file;
generating a second configuration file and a third configuration file corresponding to the server model according to the subordinate relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores parent BMC firmware configuration items which correspond to the current server model and cannot be configured; the third configuration file stores a sub-level BMC firmware configuration item which corresponds to the current server model and cannot be configured;
and generating a second configuration item catalog according to the first configuration file, the second configuration file and the third configuration file.
6. An electronic device, comprising: a memory for storing a computer program; a processor for implementing the steps of a firmware profile catalog generation optimization method according to any one of claims 1 to 4 when executing said computer program.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a firmware configuration item catalog generation optimization method according to any one of claims 1 to 4.
CN202111063314.2A 2021-09-10 2021-09-10 Firmware configuration item catalog generation optimization method, device, equipment and medium Active CN113805964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111063314.2A CN113805964B (en) 2021-09-10 2021-09-10 Firmware configuration item catalog generation optimization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111063314.2A CN113805964B (en) 2021-09-10 2021-09-10 Firmware configuration item catalog generation optimization method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113805964A CN113805964A (en) 2021-12-17
CN113805964B true CN113805964B (en) 2024-02-23

Family

ID=78895016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111063314.2A Active CN113805964B (en) 2021-09-10 2021-09-10 Firmware configuration item catalog generation optimization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113805964B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035842B (en) * 2022-01-07 2022-04-08 飞腾信息技术有限公司 Firmware configuration method, computing system configuration method, computing device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9053236B1 (en) * 2013-12-23 2015-06-09 Emc Corporation Automated directory services test setup utility
CN109614157A (en) * 2018-12-27 2019-04-12 联想(北京)有限公司 A kind of configuration method of system, device and storage medium
CN110941453A (en) * 2019-10-31 2020-03-31 苏州浪潮智能科技有限公司 Method and device for initializing Baseboard Management Controller (BMC) configuration
CN112416456A (en) * 2020-11-18 2021-02-26 中国建设银行股份有限公司 Configuration file processing method, device, equipment, storage medium and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10838828B2 (en) * 2017-07-25 2020-11-17 Hubstor Inc. Methods and systems relating to network based storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9053236B1 (en) * 2013-12-23 2015-06-09 Emc Corporation Automated directory services test setup utility
CN109614157A (en) * 2018-12-27 2019-04-12 联想(北京)有限公司 A kind of configuration method of system, device and storage medium
CN110941453A (en) * 2019-10-31 2020-03-31 苏州浪潮智能科技有限公司 Method and device for initializing Baseboard Management Controller (BMC) configuration
CN112416456A (en) * 2020-11-18 2021-02-26 中国建设银行股份有限公司 Configuration file processing method, device, equipment, storage medium and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Alice Buffi ; Paolo Nepa.The SARFID Technique for Discriminating Tagged Items Moving Through a UHF-RFID Gate.《IEEE Sensors Journal》.2017,全文. *
目录树的XML文档的自动生成;田喜平;牛红惠;裴世凯;;电脑知识与技术;20161205(34);全文 *

Also Published As

Publication number Publication date
CN113805964A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US11151083B2 (en) Generating target application packages for groups of computing devices
US7882213B2 (en) Network management system to monitor managed elements
US9760347B2 (en) Method and system to identify GUI objects for non-markup-language-presented applications
CN109739867B (en) Industrial metadata management method and system
US20030220925A1 (en) System and method for web services management
TW200917057A (en) Automatically instrumenting a set of web documents
BRPI0807464B1 (en) Computer storage media and method implemented on a computational device
US20160306690A1 (en) Integrated test design, automation, and analysis
US8051128B2 (en) Using feed usage data in an access controlled team project site environment
US7720814B2 (en) Repopulating a database with document content
CN101526916A (en) Method and system for using page-based object flow verification in regression test
CN103473234A (en) Method, device and system for deriving report forms from web inquiring system
CN113805964B (en) Firmware configuration item catalog generation optimization method, device, equipment and medium
CN105468511A (en) Web page script error positioning method and apparatus
US20040204778A1 (en) Method for persisting SNMP MIB data in files
CN113608955A (en) Log recording method, device, equipment and storage medium
CN110309118A (en) A kind of design method of depth network data excavation robot
US8271879B2 (en) Workstation management application
CN113722191B (en) Page monitoring method, device, equipment and computer readable storage medium
CN111143310A (en) Log recording method and device and readable storage medium
US20070245252A1 (en) Enhanced display of properties for a program object
JP3543683B2 (en) Automatic document creation system, automatic document creation method, and recording medium recording automatic document creation program
JP2009230300A (en) Information processing system
KR20220010294A (en) Rule-based OPC UA Node Generation System and Method
US20210200833A1 (en) Health diagnostics and analytics for object repositories

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
GR01 Patent grant
GR01 Patent grant