CN113805964A - Firmware configuration item directory generation optimization method, device, equipment and medium - Google Patents

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

Info

Publication number
CN113805964A
CN113805964A CN202111063314.2A CN202111063314A CN113805964A CN 113805964 A CN113805964 A CN 113805964A CN 202111063314 A CN202111063314 A CN 202111063314A CN 113805964 A CN113805964 A CN 113805964A
Authority
CN
China
Prior art keywords
configuration item
directory
configuration
firmware
item
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.)
Granted
Application number
CN202111063314.2A
Other languages
Chinese (zh)
Other versions
CN113805964B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a firmware configuration item directory 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 types of firmware; executing a first configuration item catalog generation policy for a first type firmware configuration item; the first configuration item directory generation strategy is used for generating a first configuration item directory comprising a primary directory and a secondary directory; executing a second configuration item directory generation policy for the second type firmware configuration item; the invention also provides a firmware configuration project list generation optimizing device, equipment and medium.

Description

Firmware configuration item directory generation optimization method, device, equipment and medium
Technical Field
The invention relates to the field of directory generation, in particular to a firmware configuration project directory generation optimization method, device, equipment and medium.
Background
For the configuration items of the server, for maintenance personnel, the specific configuration conditions of the server can be known, and custom setting can also be performed for the configuration items of the server.
At present, in the prior art, the configuration item display of the server does not distinguish the firmware types, and the configuration items of different types of firmware directly generate directories according to a uniform rule and perform uniform display.
However, the configuration items of each firmware type generally have hundreds of items, the configuration item catalog generation strategies of different firmware types are different, the display and maintenance of the configuration items of different firmware types are very inconvenient, and the generation adaptability of the firmware catalogs of different types is not high.
Disclosure of Invention
The invention aims to solve the problems in the prior art, and innovatively provides a firmware configuration project list generation optimization method and device, so that the problem that the firmware types cannot be distinguished in directory generation in the prior art is effectively solved, and the adaptability of the directory generation of a server configuration project is effectively improved.
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 types of firmware;
executing a first configuration item catalog generation policy for a first type firmware configuration item; the first configuration item directory generation policy is used for generating a first configuration item directory including a primary directory and a secondary directory.
Executing a second configuration item directory generation policy for the second type firmware configuration item; and the second configuration item directory generation strategy is used for generating a second configuration item directory according to the parent-level configuration file and the sub-level configuration file.
Optionally, 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.
Further, executing the first configuration item catalog generation policy for the first type firmware configuration item specifically includes:
initializing a BIOS firmware configuration item, a parameter array and a parameter array element to obtain a primary directory; the parameter array elements in the parameter array are used for identifying whether the current directory comprises subdirectories or not;
reading the BIOS firmware type configuration file, acquiring all subdirectories except a first-level directory in the BIOS firmware type configuration file, and assigning the current subdirectories to parameter array elements in a parameter array;
and traversing whether the parameter array element corresponding to the current subdirectory is empty, if the parameter array element corresponding to the current subdirectory is empty, not generating a secondary directory, and if the parameter array element corresponding to the current subdirectory is not empty, correspondingly generating the secondary directory by the directory element in the current subdirectory.
Optionally, executing the second configuration item directory generation policy for the second type firmware configuration item specifically includes:
generating a first configuration file according to the type of the server, wherein all BMC firmware configuration items corresponding to all the types of the server 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 subordination relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores a parent-level BMC firmware configuration item which corresponds 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 directory according to the first configuration file, the second configuration file and the third configuration file.
Further, the BMC firmware configuration item includes a parent-level BMC firmware configuration item and a child-level BMC firmware configuration item, where the child-level BMC firmware configuration item is a BMC firmware configuration item subordinate to the parent-level BMC firmware configuration item; the parent-level BMC firmware configuration item in the second configuration file is a parent-level BMC firmware configuration item which is corresponding to the server model and cannot be configured; and the sub-level BMC firmware configuration item in the third configuration file is a sub-level BMC firmware configuration item which is corresponding to the server model and cannot be configured.
Optionally, the generating the second configuration item directory according to the first configuration file, the second configuration file, and the third configuration file specifically includes:
performing complementary set taking operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and a parent BMC firmware configuration item which is stored in the second configuration file and is not configured and corresponding to the current server model, and determining a configurable parent BMC firmware configuration item corresponding to the current server model;
performing complementary set operation on BMC firmware configuration items corresponding to all models stored in the first configuration file and the 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 directory by 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 catalog information input by a user, and determining a catalog selected by the user according to the catalog information input by the user;
and showing the firmware configuration items belonging to the user-selected directory in the form of the directory and the directory elements.
The second aspect of the present invention provides a firmware configuration project list generation optimization apparatus, which is applied to management software of multiple servers, and includes:
the dividing module is used for dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different types of the firmware;
the first generation module is used for executing a first configuration item catalog generation strategy aiming at the first type firmware configuration item; the first configuration item directory generation policy is used for generating a first configuration item directory including a primary directory and a secondary directory.
The second generation module executes a second configuration item catalog generation strategy aiming at the second type firmware configuration item; and the second configuration item directory generation strategy is used for generating a second configuration item directory according to the parent-level configuration file and the sub-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 invention effectively solves the problem that the directory generation does not distinguish the firmware type in the prior art, so that the directory generation of the server configuration item is adaptive to the firmware type.
2. The technical scheme of the invention does not need to render all configuration items at one time, and simultaneously, different directory generation strategies are formulated according to different types of firmware, so that the method can well isolate all parts of the business logic, thereby reducing the coupling degree among all parts of the business logic and improving the reusability of the directory generation strategies.
3. According to the technical scheme, when the second type firmware configuration item executes the second configuration item directory 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 both based on the configuration items corresponding to the current server machine type; and generating a second configuration item directory according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item directory can correspond to the current server model and can be compatible with the generation of configuration item directories of different server model types, and only the second configuration file and the third configuration file corresponding to the current server model need to be updated and maintained, thereby avoiding that a research and development worker continuously increases the code of model compatibility along with the increase of the model during firmware configuration development, and simultaneously helping a firmware operation and maintenance worker to add a command of firmware configuration in software in real time.
4. According to the technical scheme, a first-level directory and a second directory can be correspondingly generated according to the subordinate relationship of a BIOS (Basic Input Output System) firmware type configuration item, a second configuration file and a third configuration file can be generated according to the hierarchical relationship of a BMC (Baseboard Management Controller) firmware type configuration item, the second configuration item directory is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display directory structure is simplified, different compatible machine types and display strategies are adopted according to different scenes (different server machine types) 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
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without any creative effort.
FIG. 1 is a schematic flow diagram of a process according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating step S2 of a method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a BIOS firmware configuration entry directory (first configuration entry directory) in a method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating step S3 in a method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating step S33 in a method according to an embodiment of the present invention;
FIG. 6 is a block diagram of a BMC firmware configuration entry directory (second configuration entry directory) in a method according to an embodiment of the invention;
FIG. 7 is another schematic flow chart of a method according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an apparatus according to a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of a third apparatus according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the 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 procedures are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, the present invention provides a firmware configuration item catalog generation optimization method, which is applied to management software of multiple servers, and includes:
s1, dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different types of firmware;
s2, executing a first configuration item catalog generation strategy aiming at the first type firmware configuration item; the first configuration item directory generation policy is used for generating a first configuration item directory including a primary directory and a secondary directory.
S3, executing a second configuration item catalog generation strategy aiming at the second type firmware configuration item; and the second configuration item directory generation strategy is used for generating a second configuration item directory according to the parent-level configuration file and the sub-level configuration file.
In step S1, the first type firmware configuration item may be a BIOS firmware configuration item, and the second type firmware configuration item may be a BMC firmware configuration item.
In step S2, as shown in fig. 2, step S2 specifically includes:
s21, initializing the BIOS firmware configuration item, the parameter array and the parameter array element to obtain a primary directory; the parameter array elements in the parameter array are used for identifying whether the current directory comprises subdirectories or not;
s22, reading the BIOS firmware type configuration file, acquiring all subdirectories except the primary directory in the BIOS firmware type configuration file, and assigning the current subdirectories to parameter array elements in the parameter array;
s23, traversing whether the parameter array element corresponding to the current subdirectory is empty, if so, executing the step S24; if the judgment result is no, executing step S25;
s24, no secondary catalog is generated;
and S25, generating a secondary directory corresponding to the directory elements in the current subdirectory.
In steps S21-S25, initializing the BIOS firmware configuration item, the parameter array and the parameter array element to obtain a primary directory; the parameter array element in the parameter array is used to identify whether a subdirectory is included in the current directory,
as shown in fig. 3, a directory of BIOS firmware configuration entries is generated. When a user accesses a BIOS firmware type configuration item, triggering and calling a doneEach (analysis function) to analyze and initialize parameters such as a parameter array (list) and a parameter array element (lisData), wherein the parameter array element in the parameter array is used for identifying whether a current directory (subdirectory except a first-level directory) comprises subdirectories or not, initializing the parameter array element lisData serving as a judgment mark into null, and obtaining the first-level directory (first-level directory) after initialization is completed; reading the content of a BIOS firmware configuration XML (extensible markup language, configuration file format) document, analyzing all titles and title contents except for 1-level titles in the XML document, and assigning values to parameter array elements lisData in a parameter array list; and traversing and judging the parameter array element lisdata values of all the directory entries, judging whether the directory entries are empty, if so, indicating that the directory entries do not have sub-directories, and not generating a secondary directory. And if not, reading all sub-elements under the current subdirectory, and correspondingly generating a secondary directory by the directory elements in the current subdirectory.
In step S3, as shown in fig. 4, step S3 specifically includes:
s31, generating a first configuration file according to the server model, wherein all BMC firmware configuration items corresponding to all the 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 subordination relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores a parent-level BMC firmware configuration item which is corresponding to the current server model and can not 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 S33, generating a second configuration item directory 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 under the parent BMC firmware configuration item; the parent BMC firmware configuration item may be an SNMP (simple network management protocol) configuration item, an SMTP (simple mail transfer protocol) configuration item, a USER configuration item, an NTP (network time protocol) configuration item, an NET configuration item, a DNS (domain name resolution) configuration item, a Service configuration item, an SNMPGetSet (get and set command lines in an SNMP test tool) configuration item, a SYS execution command line in BMCs (BMC) configuration item, an LDAP (lightweight directory access protocol) configuration item, an SSL (remote login) configuration item, etc., the child BMC firmware configuration item may be ntp.server4 (BMC firmware configuration item subordinate to NTP configuration item), a BMC configuration item subordinate to SNMP (BMC configuration item), a BMC id (BMC configuration item subordinate to BMC configuration item), a sngetgetset (SNMP configuration item), a BMC configuration item, a BMC configuration item, all of which may store a first firmware configuration item corresponding to the SNMP. In order to reduce the storage space, only the general BMC firmware configuration items corresponding to all server models may be stored, where the general BMC firmware configuration item corresponding to a certain model may be updated (added, deleted, modified, etc.) according to an actual situation, and the general purpose may be determined according to the use frequency of the BMC firmware configuration item, or may be determined by other manners, which is not limited herein. The server model in the first configuration file may be a commonly used M5 or M6 model, or may be another server model, and all BMC firmware configuration items (such as addition, deletion, and modification) of a certain model may be updated according to the server model.
The parent-level BMC firmware configuration item in the second configuration file is a parent-level BMC firmware configuration item which is corresponding to the server model and cannot be configured, for example, NF 58M 5(M5 model) [ SERVICE, SNMPGetSet ]; the sub-level BMC firmware configuration items in the third configuration file are sub-level BMC firmware configuration items that cannot be configured and correspond to the server model, such as NF 58M 5(M5 model) [ snmp.
As shown in fig. 5, step S33 specifically includes:
s331, performing complementary set taking operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and a parent BMC firmware configuration item which is not configured and corresponding to the current server model and stored in the second configuration file, and determining a configurable parent BMC firmware configuration item corresponding to the current server model;
s332, performing complementary set taking operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and the 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 S333, generating a second configuration item directory by 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.
In step S331, a complementary set operation is performed on all BMC firmware configuration items corresponding to all models stored in the first configuration file and a parent BMC firmware configuration item that is not configurable and corresponding to the current server model and stored in the second configuration file, that is, a parent BMC firmware configuration item that is the same as the parent BMC firmware configuration item that is not configurable and corresponding to the current server model in the second configuration file is removed from the first configuration file, and the remaining parent BMC firmware configuration items corresponding to the current server model in the first configuration file are the configurable parent BMC firmware configuration items corresponding to the current server model.
And S332, performing complementary set operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and the 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, namely removing the 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 model in the second configuration file, and obtaining the configurable sub-level BMC firmware configuration items which are the remaining sub-level BMC firmware configuration items corresponding to the current server model in the first configuration file.
In step S333, a second configuration item directory is generated 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, as shown in fig. 6.
As shown in fig. 7, the technical solution of the present invention further provides a firmware configuration item directory generation optimization method, further including:
s4, obtaining the catalog information input by the user, and determining the catalog selected by the user according to the catalog information input by the user;
and S5, showing the firmware configuration items belonging to the user selection directory in the form of directories and directory elements.
In steps S4-S5, the user selects to view a certain directory content: when the user clicks the directory, the ready function is triggered and called. Taking the user to select the catalog "processor" as an example to explain: after initializing and generating a directory list, clicking a processor by a user, triggering and calling a ready, reading the ID of the selected title and title content and assigning the ID and the title content to a key (for identifying the current access element); reading and analyzing lower-level data in the current element XML document, wherein the lower-level data is displayed as a second-level directory (or a sub-level BMC firmware configuration item) if the lower-level data has sub-elements; otherwise, the lower level data is directly displayed as an element of the primary directory (or the parent BMC firmware configuration item).
It should be noted that, in the technical solution of the present invention, steps S1-S5 can all be implemented by hardware or software language programming, and the implementation idea corresponds to the steps, and can also be implemented by other manners, which is not limited herein.
The invention effectively solves the problem that the directory generation does not distinguish the firmware type in the prior art, so that the directory generation of the server configuration item is adaptive to the firmware type.
The technical scheme of the invention does not need to render all configuration items at one time, and simultaneously, different directory generation strategies are formulated according to different types of firmware, so that the method can well isolate all parts of the business logic, thereby reducing the coupling degree among all parts of the business logic and improving the reusability of the directory generation strategies.
According to the technical scheme, when the second type firmware configuration item executes the second configuration item directory 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 both based on the configuration items corresponding to the current server machine type; and generating a second configuration item directory according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item directory can correspond to the current server model and can be compatible with the generation of configuration item directories of different server model types, and only the second configuration file and the third configuration file corresponding to the current server model need to be updated and maintained, thereby avoiding that a research and development worker continuously increases the code of model compatibility along with the increase of the model during firmware configuration development, and simultaneously helping a firmware operation and maintenance worker to add a command of firmware configuration in software in real time.
According to the technical scheme, the primary directory and the second directory can be correspondingly generated according to the subordinate relationship of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relationship of the BMC firmware type configuration items, the second configuration item directory is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display directory structure is simplified, different compatible machine types and display strategies are adopted according to different scenes (different server machine types) 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 list generation optimization apparatus, which is applied to management software of multiple servers, and includes:
the dividing module 101 is used for dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different types of firmware;
the first generation module 102, which executes a first configuration item catalog generation policy for the first type firmware configuration item; the first configuration item directory generation policy is used for generating a first configuration item directory including a primary directory and a secondary directory.
The second generation module 103 executes a second configuration item directory generation policy for the second type firmware configuration item; and the second configuration item directory generation strategy is used for generating a second configuration item directory according to the parent-level configuration file and the sub-level configuration file.
The invention effectively solves the problem that the directory generation does not distinguish the firmware type in the prior art, so that the directory generation of the server configuration item is adaptive to the firmware type.
The technical scheme of the invention does not need to render all configuration items at one time, and simultaneously, different directory generation strategies are formulated according to different types of firmware, so that the method can well isolate all parts of the business logic, thereby reducing the coupling degree among all parts of the business logic and improving the reusability of the directory generation strategies.
According to the technical scheme, when the second type firmware configuration item executes the second configuration item directory 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 both based on the configuration items corresponding to the current server machine type; and generating a second configuration item directory according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item directory can correspond to the current server model and can be compatible with the generation of configuration item directories of different server model types, and only the second configuration file and the third configuration file corresponding to the current server model need to be updated and maintained, thereby avoiding that a research and development worker continuously increases the code of model compatibility along with the increase of the model during firmware configuration development, and simultaneously helping a firmware operation and maintenance worker to add a command of firmware configuration in software in real time.
According to the technical scheme, the primary directory and the second directory can be correspondingly generated according to the subordinate relationship of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relationship of the BMC firmware type configuration items, the second configuration item directory is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display directory structure is simplified, different compatible machine types and display strategies are adopted according to different scenes (different server machine types) of the BMC, and the display effect is more visual.
EXAMPLE III
As shown in fig. 9, the present invention also provides an electronic device, including: a memory 201 for storing a computer program; a processor 202, configured to implement the steps of the firmware configuration item catalog generation optimization method according to the first embodiment when the computer program is executed.
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 the memory 201 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a flash Memory (flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 201 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory. The method 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 having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 202. The processor 202 may be a processor, a DSP (Digital Signal Processing, i.e., a chip capable of implementing Digital Signal Processing technology), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 202 may implement or perform the methods, steps, and logic blocks disclosed in the 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 implemented by 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 located in the memory 201, and the processor 202 reads the program in the memory 201 and performs the steps of the foregoing method in combination with its hardware. When the processor 202 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
The invention effectively solves the problem that the directory generation does not distinguish the firmware type in the prior art, so that the directory generation of the server configuration item is adaptive to the firmware type.
The technical scheme of the invention does not need to render all configuration items at one time, and simultaneously, different directory generation strategies are formulated according to different types of firmware, so that the method can well isolate all parts of the business logic, thereby reducing the coupling degree among all parts of the business logic and improving the reusability of the directory generation strategies.
According to the technical scheme, when the second type firmware configuration item executes the second configuration item directory 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 both based on the configuration items corresponding to the current server machine type; and generating a second configuration item directory according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item directory can correspond to the current server model and can be compatible with the generation of configuration item directories of different server model types, and only the second configuration file and the third configuration file corresponding to the current server model need to be updated and maintained, thereby avoiding that a research and development worker continuously increases the code of model compatibility along with the increase of the model during firmware configuration development, and simultaneously helping a firmware operation and maintenance worker to add a command of firmware configuration in software in real time.
According to the technical scheme, the primary directory and the second directory can be correspondingly generated according to the subordinate relationship of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relationship of the BMC firmware type configuration items, the second configuration item directory is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display directory structure is simplified, different compatible machine types and display strategies are adopted according to different scenes (different server machine types) of the BMC, and the display effect is more visual.
Example four
The technical solution of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the firmware configuration item catalog generation optimization method in the first embodiment are implemented.
For example, comprising a memory 201 storing a computer program executable by a processor 202 for performing the steps of the method as described above. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code. Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The invention effectively solves the problem that the directory generation does not distinguish the firmware type in the prior art, so that the directory generation of the server configuration item is adaptive to the firmware type.
The technical scheme of the invention does not need to render all configuration items at one time, and simultaneously, different directory generation strategies are formulated according to different types of firmware, so that the method can well isolate all parts of the business logic, thereby reducing the coupling degree among all parts of the business logic and improving the reusability of the directory generation strategies.
According to the technical scheme, when the second type firmware configuration item executes the second configuration item directory 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 both based on the configuration items corresponding to the current server machine type; and generating a second configuration item directory according to the first configuration file, the second configuration file and the third configuration file, so that the second configuration item directory can correspond to the current server model and can be compatible with the generation of configuration item directories of different server model types, and only the second configuration file and the third configuration file corresponding to the current server model need to be updated and maintained, thereby avoiding that a research and development worker continuously increases the code of model compatibility along with the increase of the model during firmware configuration development, and simultaneously helping a firmware operation and maintenance worker to add a command of firmware configuration in software in real time.
According to the technical scheme, the primary directory and the second directory can be correspondingly generated according to the subordinate relationship of the BIOS firmware type configuration items, the second configuration file and the third configuration file can also be generated according to the hierarchical relationship of the BMC firmware type configuration items, the second configuration item directory is correspondingly generated according to the first configuration file, the second configuration file and the third configuration file, the display directory structure is simplified, different compatible machine types and display strategies are adopted according to different scenes (different server machine types) of the BMC, and the display effect is more visual.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A firmware configuration item directory generation optimization method 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 types of firmware;
executing a first configuration item catalog generation policy for a first type firmware configuration item; the first configuration item directory generation strategy is used for generating a first configuration item directory comprising a primary directory and a secondary directory;
executing a second configuration item directory generation policy for the second type firmware configuration item; and the second configuration item directory generation strategy is used for generating a second configuration item directory according to the parent-level configuration file and the sub-level configuration file.
2. The method as claimed in claim 1, wherein 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.
3. The method as claimed in claim 2, wherein the executing the first configuration item directory generation policy with respect to the first type firmware configuration item specifically includes:
initializing a BIOS firmware configuration item, a parameter array and a parameter array element to obtain a primary directory; the parameter array elements in the parameter array are used for identifying whether the current directory comprises subdirectories or not;
reading the BIOS firmware type configuration file, acquiring all subdirectories except a first-level directory in the BIOS firmware type configuration file, and assigning the current subdirectories to parameter array elements in a parameter array;
and traversing whether the parameter array element corresponding to the current subdirectory is empty, if the parameter array element corresponding to the current subdirectory is empty, not generating a secondary directory, and if the parameter array element corresponding to the current subdirectory is not empty, correspondingly generating the secondary directory by the directory element in the current subdirectory.
4. The method as claimed in claim 2, wherein the executing the second configuration item directory generation policy with respect to the second type firmware configuration item specifically comprises:
generating a first configuration file according to the type of the server, wherein all BMC firmware configuration items corresponding to all the types of the server 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 subordination relation of the BMC firmware configuration items in the first configuration file, wherein the second configuration file stores a parent-level BMC firmware configuration item which corresponds 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 directory according to the first configuration file, the second configuration file and the third configuration file.
5. The method as claimed in claim 4, wherein the BMC firmware configuration item includes a parent BMC firmware configuration item and a child BMC firmware configuration item, and the child BMC firmware configuration item is a BMC firmware configuration item under the parent BMC firmware configuration item; the parent-level BMC firmware configuration item in the second configuration file is a parent-level BMC firmware configuration item which is corresponding to the server model and cannot be configured; and the sub-level BMC firmware configuration item in the third configuration file is a sub-level BMC firmware configuration item which is corresponding to the server model and cannot be configured.
6. The method as claimed in claim 4, wherein the step of generating the second configuration item directory according to the first configuration file, the second configuration file and the third configuration file comprises:
performing complementary set taking operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and a parent BMC firmware configuration item which is stored in the second configuration file and is not configured and corresponding to the current server model, and determining a configurable parent BMC firmware configuration item corresponding to the current server model;
performing complementary set operation on all BMC firmware configuration items corresponding to all models stored in the first configuration file and the 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 directory by 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.
7. The firmware configuration item catalog generation optimization method of claim 2, further comprising:
acquiring catalog information input by a user, and determining a catalog selected by the user according to the catalog information input by the user;
and showing the firmware configuration items belonging to the user-selected directory in the form of the directory and the directory elements.
8. A firmware configuration project list generation optimizing device is applied to management software of multiple servers and is characterized by comprising the following steps:
the dividing module is used for dividing the firmware configuration items into a first type firmware configuration item and a second type firmware configuration item according to different types of the firmware;
the first generation module is used for executing a first configuration item catalog generation strategy aiming at the first type firmware configuration item; the first configuration item directory generation policy is used for generating a first configuration item directory including a primary directory and a secondary directory.
The second generation module executes a second configuration item catalog generation strategy aiming at the second type firmware configuration item; and the second configuration item directory generation strategy is used for generating a second configuration item directory according to the parent-level configuration file and the sub-level configuration file.
9. 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 as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of a firmware configuration item catalog generation optimization method according to any one of claims 1 to 7.
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 true CN113805964A (en) 2021-12-17
CN113805964B 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)

Cited By (1)

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

Citations (5)

* 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
US20190034295A1 (en) * 2017-07-25 2019-01-31 Hubstor Inc. Methods and systems relating to network based storage
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

Patent Citations (5)

* 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
US20190034295A1 (en) * 2017-07-25 2019-01-31 Hubstor Inc. Methods and systems relating to network based storage
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》, 9 March 2017 (2017-03-09) *
田喜平;牛红惠;裴世凯;: "目录树的XML文档的自动生成", 电脑知识与技术, no. 34, 5 December 2016 (2016-12-05) *

Cited By (2)

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

Also Published As

Publication number Publication date
CN113805964B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
CN108628661B (en) Automatic establishment method of cloud manufacturing service and cloud manufacturing system
US7668953B1 (en) Rule-based network management approaches
US10621211B2 (en) Language tag management on international data storage
US7333978B2 (en) Searching to identify web page(s)
JP5698429B2 (en) Computer system, method and computer program for managing components
KR101436033B1 (en) Operation management device, operation management method and computer-readable recording medium storing operation management program
US9760347B2 (en) Method and system to identify GUI objects for non-markup-language-presented applications
US20130198333A1 (en) Method and device for recording and reproducing web operation
CN110855458A (en) Configuration command generation method and equipment
JP2009140155A (en) Test program for application program
CN113805964A (en) Firmware configuration item directory generation optimization method, device, equipment and medium
US20060036405A1 (en) Apparatus, system, and method for analyzing the association of a resource to a business process
US20070006221A1 (en) Software install environment constructing apparatus
US8271879B2 (en) Workstation management application
CN109684220A (en) A kind of browser compatibility analysis method based on event replay
Cisco Release Notes for Voice Health Monitor 1.0 on Windows 2000
CN109947451B (en) Cluster application file updating method, system, medium and equipment
JP3543683B2 (en) Automatic document creation system, automatic document creation method, and recording medium recording automatic document creation program
US7287036B2 (en) Method and apparatus for automatically searching hypertext structure
WO2022214200A1 (en) Method and network element for pre-upgrade use case validation
JP6313987B2 (en) File management program, file management method, and file management system
CN106993036B (en) Running environment information processing method and switch
US10469319B2 (en) Certification tool gap analyzer
JP2004246693A (en) Software installation method and information processing system
JP6798340B2 (en) Operational specification analyzer, operation specification analysis method and operation specification analysis program

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