Information configuration method, device, equipment and storage medium

By generating custom configuration scripts and compressed packages, the problem of insufficient user permission control in customized server configurations is solved, and efficient resource utilization and system performance improvement are achieved.

CN114968337BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210609504.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-10-18
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

Existing server customization configuration methods lack user permission control, resulting in resource waste and performance degradation. Users are unable to customize some configuration items, and administrators set unified settings, resulting in resource waste and performance problems.

Method used

By determining the target file from the preset format file based on the device information, a page is generated for the user to select configuration items and a configuration script is generated to form a compressed package and sent to the user end for confirmation and storage to achieve user-defined configuration and reduce the pressure on the management end. Improve system performance.

Benefits of technology

It realizes user-defined configuration, reduces resource waste, improves system performance, avoids information flooding and enhances user experience through permission separation and custom rule approval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968337B_ABST
    Figure CN114968337B_ABST
Patent Text Reader

Abstract

The present application discloses an information configuration method, device, equipment and storage medium, which relates to the field of server technology, including: determining a target file from a pre-written preset format file based on current device information; generating a corresponding page based on the target file so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; generating a target compressed package based on the target configuration item and the configuration script, and sending the target compressed package to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package. The present application determines the target file through the current device information, and generates a corresponding page based on the target file so that the target configuration item is determined through the page on the user terminal and the target script is obtained, and then generates a target compressed package for confirmation on the user terminal, which reduces the pressure on the device and reduces the waste of resources, and improves the performance of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to an information configuration method, device, equipment and storage medium. Background Art

[0002] At present, more and more industries need servers to deploy their own applications. With the rapid increase in data and information volume, the demand for servers is increasing day by day, and at the same time, higher customization requirements are put forward for servers. The customization of servers generally requires a customization process. At present, general customization requirements in server manufacturers have to go through a lot of reviews to ensure quality. Common customization scenarios include customizing labels, Raid (Redundant Arrays of Independent Disks), firmware, fixed BOM (Browser Object Model), etc. Each type of customization can have multiple configuration indicators, and different values ​​can be set for each indicator for personalization. However, the settings of these resources are more centralized and managed by administrators, and the value settings can usually only be unified. In some cases, for the same resource, there are often some indicators that users do not want to see, such as only wanting users to customize CPU (Central Processing Unit) and memory, but not disk read and write IO (Input / Output) and network data. Since the current settings are all handled by administrators, there is a lack of user authority control, resulting in the user end and the management end can only display the same configuration items and configuration values ​​for the same resource. In addition, some configuration information and configuration values ​​set by administrators are often from the administrator's perspective, and users themselves do not care about them. Customizing these data will also cause a waste of system resources. When there are too many configuration items, the performance of the entire configuration system will also decline. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide an information configuration method, device, equipment and storage medium, which can reduce the pressure of the device, reduce resource waste and improve the performance of the system. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses an information configuration method, which is applied to a management end, comprising:

[0005] Determine the target file from the pre-written preset format file based on the current device information;

[0006] Generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script;

[0007] A target compressed package is generated based on the target configuration item and the configuration script, and the target compressed package is sent to the user end, so that the user end stores the target compressed package in a preset directory after confirming the target compressed package.

[0008] Optionally, determining the target file from a pre-written preset format file based on the current device information includes:

[0009] Based on the current machine model, the current baseboard management controller version and the basic input and output system version, a unique target file is determined from a pre-written preset format file; the target file contains a corresponding execution command, and the execution command contains configuration parameters.

[0010] Optionally, after determining the target file from a pre-written preset format file based on the current device information, the method further includes:

[0011] Acquire configuration information in the target file; the configuration information includes a disk array configuration class, a label configuration class, a firmware configuration class, and a fixed browser object model configuration class;

[0012] Correspondingly, generating a corresponding page based on the target file includes:

[0013] Based on the target file and the predefined rules, pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class are generated respectively.

[0014] Optionally, generating a target compressed package based on the target configuration item and the configuration script includes:

[0015] Determine a configuration item to be called from the target configuration item based on the configuration script and the predefined rule;

[0016] A target compressed package including the configuration script and the execution command corresponding to the calling configuration item is generated based on the configuration item to be called.

[0017] Optionally, before determining the target file from a pre-written preset format file based on the current device information, the method further includes:

[0018] The preset format file is pre-written, and each preset format file is named according to a preset naming rule to obtain a corresponding file name; the preset format file contains folders corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class respectively;

[0019] Accordingly, the step of determining the target file from a pre-written preset format file based on the current device information includes:

[0020] The current device information is used to match the file names of all pre-written files in the preset format, and the files in the preset format with successful information matching are determined as the target files.

[0021] Optionally, after generating a corresponding page based on the target file, the method further includes:

[0022] All the generated pages are sent to the user end, so that the user end can perform a custom selection configuration operation on the page to obtain a target configuration item, and click a generate button after the custom selection configuration operation is completed to obtain the configuration script corresponding to the target configuration item.

[0023] Optionally, sending the target compressed package to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package includes:

[0024] After storing the target compressed package in a pre-selected file directory, the target compressed package is sent to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirmation; wherein the operation of the user terminal on the target compressed package includes a download operation and a confirmation operation.

[0025] In a second aspect, the present application discloses an information configuration device, which is applied to a management end, comprising:

[0026] A file determination module, used to determine a target file from a pre-written preset format file based on current device information;

[0027] A page generation module, used to generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script;

[0028] A compressed package generation module, used to generate a target compressed package based on the target configuration item and the configuration script;

[0029] The compressed package sending module is used to send the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package.

[0030] In a third aspect, the present application discloses an electronic device, comprising:

[0031] Memory, used to store computer programs;

[0032] The processor is used to execute the computer program to implement the steps of the information configuration method disclosed above.

[0033] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the information configuration method disclosed above is implemented.

[0034] It can be seen that the present application provides an information configuration method, including: determining the target file from a pre-written preset format file based on the current device information; generating a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; generating a target compressed package based on the target configuration item and the configuration script, and sending the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package. It can be seen that the present application determines the target file by acquiring the current device information, and then generates a page corresponding to the target file, so that the user terminal selects the target configuration item on the page and generates a configuration script, and then sends the target compressed package generated according to the configuration script and the target configuration item to the user terminal for confirmation, which reduces the pressure on the device and reduces the waste of resources, and improves the performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flow chart of an information configuration method disclosed in this application;

[0037] Figure 2 A flowchart of a specific information configuration method disclosed in this application;

[0038] Figure 3 A schematic diagram of a flow chart of an information configuration method disclosed in this application;

[0039] Figure 4 A flowchart of a specific information configuration method disclosed in this application;

[0040] Figure 5 A single example diagram of a baseboard management controller configuration item disclosed in this application;

[0041] Figure 6 A plurality of example diagrams of baseboard management controller configuration items disclosed in this application;

[0042] Figure 7 A schematic diagram of a translated HTML page disclosed in this application;

[0043] Figure 8 A schematic diagram of a YAML file parsing rule disclosed in this application;

[0044] Fig. 9 A schematic diagram of the information configuration device structure provided for this application;

[0045] Fig.10 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The current settings are all handled uniformly by the administrator, and there is a lack of authority control over users, resulting in the user side and the management side only being able to display the same configuration items and configuration values ​​for the same resource. In addition, some configuration information and configuration values ​​set by the administrator are often from the administrator's perspective, and the user himself does not care. Customizing this data will also cause a waste of system resources. When there are too many of these configuration items, the performance of the entire configuration system will also decline. To this end, the present application provides an information configuration method that can reduce the pressure on the device and reduce resource waste, and improve the performance of the system.

[0048] The embodiment of the present invention discloses an information configuration method, see Figure 1 As shown, applied to the management end, the method includes:

[0049] Step S11: Determine a target file from pre-written preset format files based on current device information.

[0050] In this embodiment, the target file is determined from a pre-written preset format file based on the current device information. For example, the preset format file is a YAML (a markup language) file. It is understandable that the current device information is obtained, and then the current device information is used to match the directory of the YAML file. Since the directory name of the YAML file is the current device information, the YAML file with the same directory name as the current device information is used to determine the target file from multiple YAML files. It is understandable that each YAML file contains multiple configuration items, and the YAML file contains an execution command, and the execution command contains multiple configuration item parameters.

[0051] Step S12: Generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script.

[0052] In this embodiment, after determining the target file, a corresponding page is generated based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script. It can be understood that after generating the corresponding page based on the target file, the management terminal sends all the generated pages to the user terminal. After the user terminal receives all the above pages, it can select certain configuration items on the above pages according to needs. The selected configuration items are the target configuration items, and after selecting the target configuration items, click the Generate button to generate the configuration script corresponding to the target configuration items.

[0053] Step S13: Generate a target compressed package based on the target configuration item and the configuration script, and send the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package.

[0054] In this embodiment, after the corresponding configuration script is generated, the management end generates a target compressed package based on the target configuration item and the configuration script, and sends the target compressed package to the user end, so that the user end stores the target compressed package in a preset directory after confirming the target compressed package. It can be understood that according to the configuration item parameters of the target configuration item, a compressed package containing the configuration script and the execution command is generated inside the system.

[0055] It can be understood that this solution divides the configuration items of the same type of firmware into rules, and different configuration items can be seen based on different firmware, thereby generating different configuration information. Rule authority division is performed at the configuration item level, so that administrators (i.e., management end) and users (i.e., user end) can view different configuration information according to rule authority. In this way, authority separation can be performed to avoid the leakage of sensitive alarm information, and at the same time, it can also enable users to focus more on the configuration information within their own demand range and prevent information flooding. On the other hand, due to the division of customized rule approval, the administrator can control the user's demand rules through the approval function (approval, rejection or modification), so that not all configuration items are pushed to the user, which reduces the pressure on the device to a certain extent, improves the performance of the system, and enhances the user experience.

[0056] It can be seen that the present application provides an information configuration method, including: determining the target file from a pre-written preset format file based on the current device information; generating a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; generating a target compressed package based on the target configuration item and the configuration script, and sending the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package. It can be seen that the present application determines the target file by acquiring the current device information, and then generates a page corresponding to the target file, so that the user terminal selects the target configuration item on the page and generates a configuration script, and then sends the target compressed package generated according to the configuration script and the target configuration item to the user terminal for confirmation, which reduces the pressure on the device and reduces the waste of resources, and improves the performance of the system.

[0057] See also Figure 2 As shown, the embodiment of the present invention discloses an information configuration method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0058] Step S21: pre-write the preset format files, and perform a naming operation on each of the preset format files according to a preset naming rule to obtain a corresponding file name.

[0059] In this embodiment, the preset format file is pre-written, and each preset format file is named according to the preset naming rule to obtain the corresponding file name. It can be understood that first, the firmware developer writes a YAML file of a specified format corresponding to different device information, and names each YAML file. The preset format file contains folders corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class. It should be pointed out that the file name rule of the YAML file is "model-BMC version-BIOS version", and after entering the directory, bmc.yml, bios.yml, raid.yml, label and other folders are stored.

[0060] It should be pointed out that when the preset format file is pre-written, the preset format file obtained contains execution commands, and the execution commands contain configuration parameters, but does not contain a configuration script at this time. The configuration script will only be generated when the user selects to complete the target configuration item on the user side and clicks the Generate button.

[0061] Step S22: determining a unique target file from pre-written preset format files based on the current machine model, the current baseboard management controller version and the basic input and output system version.

[0062] In this embodiment, a unique target file is determined from a pre-written preset format file based on the current model, the current baseboard management controller version, and the basic input / output system version, thereby obtaining a configuration item corresponding to the target file. It is understandable that all YAML files are obtained, and then the unique corresponding target file is determined from all YAML files based on the current model, the current baseboard management controller version, and the basic input / output system version. For example, first filter the file directory with the same model as the current model to obtain a first file directory, then filter the file directory with the same baseboard management controller version as the current baseboard management controller version in the first file directory to obtain a second file directory, and then filter the file directory with the same basic input / output system version as the current basic input / output system version in the second file directory to obtain the target file. The target file contains a corresponding execution command, and the above execution command contains multiple configuration parameters.

[0063] Specifically, the current device information is used to match the file names of all pre-written preset format files, that is, the current model, the current baseboard management controller version and the basic input and output system version are matched with each part of the file name, and a YAML file that successfully matches all is determined as the target file.

[0064] Step S23: Obtain configuration information in the target file.

[0065] In this embodiment, after determining the target file, the configuration information in the target file is obtained. It can be understood that the configuration information includes a disk array configuration class, a label configuration class, a firmware configuration class, and a fixed browser object model configuration class. Among them, the disk array configuration class includes _**_disk_*__blocks for Raid_*__; the label configuration class includes machine pictures and machine barcodes; the firmware configuration class includes BMC configuration and BIOS configuration, and the fixed browser object model configuration class includes hard disk, display, CPU, etc.

[0066] Step S24: Based on the target file and predefined rules, pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class are generated respectively, so that the user end determines the target configuration item on the page and generates a corresponding configuration script.

[0067] In this embodiment, after obtaining the configuration information in the target file, pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class are generated based on the configuration information in the target file and predefined rules, so that the user end can determine the target configuration item on the page and generate the corresponding configuration script. It can be understood that this scheme proposes a rule division, and the management end can define different rules, different rules correspond to different configuration items, and users can configure different customization items to generate configuration scripts and files. It should be pointed out that each configuration class corresponds to a page, and there are multiple configuration items on a page.

[0068] For example, Figure 3 As shown, when there is a new model and firmware maintenance option, the corresponding YAML file is selected according to the model, and then the YAML file is parsed to generate the corresponding script file and document, and an md5 (message digest algorithm) file, and then tested. After the test passes, the operation is completed online.

[0069] Step S25: Generate a target compressed package based on the target configuration item and the configuration script, and send the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package.

[0070] For the specific content of the above step S25, reference may be made to the corresponding content disclosed in the above embodiments, which will not be repeated here.

[0071] It can be seen that the embodiment of the present application pre-writes the preset format file, and names each of the preset format files according to the preset naming rules to obtain the corresponding file name; determines a unique target file from the pre-written preset format file based on the current model, the current baseboard management controller version and the basic input and output system version; obtains the configuration information in the target file; generates pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class based on the target file and the predefined rules, so that the user end determines the target configuration item on the page and generates a corresponding configuration script; generates a target compressed package based on the target configuration item and the configuration script, and sends the target compressed package to the user end, so that the user end stores the target compressed package in a preset directory after confirming the target compressed package. It can be seen that by matching the current model, the current baseboard management controller version and the basic input and output system version with the file names of all YAML files in a certain order, the unique corresponding target file is determined in the YAML file that matches exactly the same, which reduces the pressure on the device and reduces resource waste, and improves the performance of the system.

[0072] See also Figure 4 As shown, the embodiment of the present invention discloses an information configuration method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0073] Step S31: Determine a target file from pre-written preset format files based on current device information.

[0074] Step S32: Generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script.

[0075] In this embodiment, after the corresponding page is generated based on the target file, all the generated pages are sent to the user terminal so that the user terminal can perform a custom selection and configuration operation on the page to obtain the target configuration item, and click the Generate button after the custom selection and configuration operation is completed to obtain the configuration script corresponding to the target configuration item.

[0076] It is understandable that each configuration item of the execution command in the YAML file contains the type of the configuration item, such as a drop-down box, input box, multiple-select box, etc.; the rules of the configuration item include mandatory verification, format verification, etc., such as Figure 5 As shown, the content of this configuration item is translated into an HTML (Hyper Text Markup Language) page according to predefined rules.

[0077] YAML is an intuitive data serialization format that can be recognized by computers. It is a programming language that is highly readable and easy for humans to read, easy to interact with scripting languages, and is used to express data sequences. Use YAML files to describe test items of different machine versions, as well as configuration item parameters of each item. For example, the server includes models such as 5456, 5458, and 5455. The configuration items of each model may be different, so the configuration items of the model can be defined separately in the YAML file. The YAML file describes configuration items of different models, BIOS versions, and BMC versions. For example, when the target configuration item is BMC, the list of target configuration items includes DNS (Domain Name System), DHCP (Dynamic Host Configuration Protocol), etc. Figure 6 The BMC translated page configuration items are shown as follows Figure 7As shown, it includes BMC, BIOS, RAID, FRU (Field Replace Unit), and LABLE (label); BMC includes DNS settings, IP settings, DHCP settings, NTP (Netword Time Protocol) settings, user settings, remote debugging, network card type, time zone, NCSI (network connectivity status indicator) settings, channel settings, KVM (keyboard video mouse, a type of port) settings, screenshot settings, SNMP (simple network management protocol) settings, SNMP Trap settings, SOL settings, web settings, service settings, and alarm settings.

[0078] Step S33: determining the configuration item to be called from the target configuration items based on the configuration script and the predefined rule.

[0079] In this embodiment, after the corresponding configuration script is generated, the configuration item to be called is determined from the target configuration item based on the configuration script and the predefined rule. It can be understood that the configuration item to be called is an item corresponding to the configuration script and satisfying the permission rule in the predefined rule.

[0080] Step S34: generating a target compressed package including the configuration script and the execution command corresponding to the calling configuration item based on the configuration item to be called.

[0081] In this embodiment, after the configuration item to be called is determined, a target compressed package including the configuration script and the execution command corresponding to the calling configuration item is generated based on the configuration item to be called.

[0082] Step S35: storing the target compressed package in a pre-selected file directory.

[0083] In this embodiment, after the target compressed package is generated, the target compressed package is stored in a pre-selected file directory (ie, a designated file directory).

[0084] Step S36: Send the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirmation.

[0085] In this embodiment, the target compressed package is sent to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirmation. It can be understood that the operation of the user terminal on the target compressed package only includes a download operation and a confirmation operation. After the confirmation operation is completed, the target compressed package is transferred to an FTP (File Transfer Protocol) directory.

[0086] It is understandable that configuration items are divided through rule management. Without changing the program, the YAML file developed by the firmware personnel is translated through predefined rules. Then the front-end user can customize the configuration items according to the translated page and generate a customized script command file. This reduces the cost of the approval process and the technical dependence of the front-end user on the script file, and improves the accuracy and ease of use of the platform.

[0087] It should be noted that the specific YAML file parsing rules are as follows Figure 8 As shown, bmc or bios contains id (primary key), pid (parent node primary key), description (label display), name (option name), options, type, min, max, rule, ascii, raw, help. Among them, options contains label (option display value), cmd (option corresponding command), value; type contains input (character input box), select (drop-down box), checkbox (radio box), inputnumber (number input box); min: the minimum length of the string when inputting a string, the minimum value of the number when inputting a number; max: the maximum length of the string when inputting a string, the maximum value of the number when inputting a number; rule corresponding to ip: when neither ipv4 nor ipv6 is used, the domain name is judged, and the conversion method is to remove the ip and then convert it. If neither is true, it is directly converted to hexadecimal ascii; ascii means that ascii needs to be converted; raw means it is a raw command; help is the text description of the input box.

[0088] For the specific content of the above step S31, reference may be made to the corresponding content disclosed in the above embodiments, which will not be repeated here.

[0089] It can be seen that the embodiment of the present application determines the target file from a pre-written preset format file based on the current device information; generates a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; determines the configuration item to be called from the target configuration item based on the configuration script and the predefined rule; generates a target compressed package containing the configuration script and the execution command corresponding to the called configuration item based on the configuration item to be called; stores the target compressed package in a pre-selected file directory; sends the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirmation, which reduces the pressure on the device and reduces resource waste, and improves the performance of the system. By generating customized script command files, the approval process cost and the technical dependence of front-end users on script files are reduced, and the accuracy and ease of use of the platform are improved.

[0090] See also Fig. 9 As shown, the embodiment of the present application also discloses an information configuration device, which is applied to the management end and includes:

[0091] A file determination module 11, used to determine a target file from a pre-written preset format file based on current device information;

[0092] A page generation module 12, used to generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script;

[0093] A compressed package generating module 13, configured to generate a target compressed package based on the target configuration item and the configuration script;

[0094] The compressed package sending module 14 is used to send the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package.

[0095] It can be seen that the present application includes: determining the target file from a pre-written preset format file based on the current device information; generating a corresponding page based on the target file so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; generating a target compressed package based on the target configuration item and the configuration script, and sending the target compressed package to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package. It can be seen that the present application determines the target file by acquiring the current device information, and then generates a page corresponding to the target file, so that the user terminal selects the target configuration item on the page and generates a configuration script, and then sends the target compressed package generated according to the configuration script and the target configuration item to the user terminal for confirmation, which reduces the pressure on the device and reduces the waste of resources, and improves the performance of the system.

[0096] In some specific embodiments, the file determination module 11 specifically includes:

[0097] A preset format file writing unit, used for pre-writing the preset format file;

[0098] A file naming unit, used to perform a naming operation on each of the preset format files according to a preset naming rule to obtain a corresponding file name; the preset format file contains folders corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class respectively;

[0099] An information matching unit, configured to match information with the file names of all pre-written files in the preset format using the current device information, and determine the file in the preset format with successful information matching as the target file;

[0100] A file determination unit, configured to determine a unique target file from a pre-written preset format file based on a current machine model, a current baseboard management controller version, and a basic input / output system version; the target file includes a corresponding execution command, and the execution command includes configuration parameters;

[0101] The configuration information acquisition unit is used to acquire the configuration information in the target file; the configuration information includes a disk array configuration class, a label configuration class, a firmware configuration class, and a fixed browser object model configuration class.

[0102] In some specific embodiments, the page generation module 12 specifically includes:

[0103] A page generating unit, configured to generate pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class respectively based on the target file and predefined rules;

[0104] The page sending unit is used to send all the generated pages to the user terminal, so that the user terminal can perform a custom selection and configuration operation on the page to obtain a target configuration item, and click a generate button after the custom selection and configuration operation is completed to obtain the configuration script corresponding to the target configuration item.

[0105] In some specific embodiments, the compressed package generation module 13 specifically includes:

[0106] a to-be-called configuration item determining unit, configured to determine a to-be-called configuration item from the target configuration item based on the configuration script and the predefined rule;

[0107] The target compressed package generating unit is used to generate a target compressed package including the configuration script and the execution command corresponding to the calling configuration item based on the configuration item to be called.

[0108] In some specific embodiments, the compressed packet sending module 14 specifically includes:

[0109] A first storage unit for a target compressed package, used for storing the target compressed package in a pre-selected file directory;

[0110] The target compressed package second storage unit is used to send the target compressed package to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirmation; wherein the operation of the user terminal on the target compressed package includes a download operation and a confirmation operation.

[0111] Furthermore, an embodiment of the present application also provides an electronic device. Fig.10 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0112] Fig.10 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the information configuration method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0113] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0114] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0115] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the information configuration method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0116] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the information configuration method steps disclosed in any of the aforementioned embodiments are implemented.

[0117] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0118] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0119] The above is a detailed introduction to an information configuration method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An information configuration method, characterized in that: Applied to the management side, including: Determine the target file from the pre-written preset format file based on the current device information; Generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; Generate a target compressed package based on the target configuration item and the configuration script, and send the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package; The step of determining the target file from a pre-written preset format file based on the current device information includes: Determine a unique target file from a pre-written preset format file based on the current machine model, the current baseboard management controller version, and the basic input and output system version; the target file includes a corresponding execution command, and the execution command includes a configuration parameter; After determining the target file from the pre-written preset format file based on the current device information, the method further includes: Acquire configuration information in the target file; the configuration information includes a disk array configuration class, a label configuration class, a firmware configuration class, and a fixed browser object model configuration class; Correspondingly, generating a corresponding page based on the target file includes: Generate pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class based on the target file and predefined rules; The step of sending the target compressed package to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package includes: After storing the target compressed package in a pre-selected file directory, the target compressed package is sent to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirmation; wherein the operation of the user terminal on the target compressed package includes a download operation and a confirmation operation.

2. The information configuration method according to claim 1, characterized in that: The generating a target compressed package based on the target configuration item and the configuration script includes: Determine a configuration item to be called from the target configuration item based on the configuration script and the predefined rule; A target compressed package including the configuration script and the execution command corresponding to the configuration item to be called is generated based on the configuration item to be called.

3. The information configuration method according to claim 1, characterized in that: Before determining the target file from the pre-written preset format file based on the current device information, the method further includes: The preset format file is pre-written, and each preset format file is named according to a preset naming rule to obtain a corresponding file name; the preset format file contains folders corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class respectively; Accordingly, the step of determining the target file from a pre-written preset format file based on the current device information includes: The current device information is used to match the file names of all pre-written files in the preset format, and the files in the preset format with successful information matching are determined as the target files.

4. The information configuration method according to claim 1, characterized in that: After the corresponding page is generated based on the target file, the method further includes: All the generated pages are sent to the user end, so that the user end can perform a custom selection configuration operation on the page to obtain a target configuration item, and click a generate button after the custom selection configuration operation is completed to obtain the configuration script corresponding to the target configuration item.

5. An information configuration device, characterized in that: Applied to the management side, including: A file determination module, used to determine a target file from a pre-written preset format file based on current device information; A page generation module, used to generate a corresponding page based on the target file, so that the user terminal determines the target configuration item on the page and generates a corresponding configuration script; A compressed package generation module, used to generate a target compressed package based on the target configuration item and the configuration script; A compressed package sending module, used for sending the target compressed package to the user terminal, so that the user terminal stores the target compressed package in a preset directory after confirming the target compressed package; Wherein, the file determination module is specifically used for: Determine a unique target file from a pre-written preset format file based on the current machine model, the current baseboard management controller version, and the basic input and output system version; the target file includes a corresponding execution command, and the execution command includes a configuration parameter; Wherein, the information configuration device is also used for: Acquire configuration information in the target file; the configuration information includes a disk array configuration class, a label configuration class, a firmware configuration class, and a fixed browser object model configuration class; Accordingly, the page generation module is specifically used for: Generate pages corresponding to the disk array configuration class, the label configuration class, the firmware configuration class, and the fixed browser object model configuration class based on the target file and predefined rules; Wherein, the compressed packet sending module is specifically used for: After storing the target compressed package in a pre-selected file directory, the target compressed package is sent to the user terminal so that the user terminal stores the target compressed package in a preset directory after confirmation; wherein the operation of the user terminal on the target compressed package includes a download operation and a confirmation operation.

6. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the information configuration method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the information configuration method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Automatic deployment method and device based on MySQL cluster and related equipment

    CN113138882A

  • Script language code debugging method and device, readable storage medium and electronic equipment

    CN113342654A