CN114968337A - Information configuration method, device, equipment and storage medium - Google Patents

Information configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN114968337A
CN114968337A CN202210609504.8A CN202210609504A CN114968337A CN 114968337 A CN114968337 A CN 114968337A CN 202210609504 A CN202210609504 A CN 202210609504A CN 114968337 A CN114968337 A CN 114968337A
Authority
CN
China
Prior art keywords
configuration
target
file
information
user side
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.)
Pending
Application number
CN202210609504.8A
Other languages
Chinese (zh)
Inventor
王帅
张玉洁
李锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210609504.8A priority Critical patent/CN114968337A/en
Publication of CN114968337A publication Critical patent/CN114968337A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses an information configuration method, an information configuration device, information configuration equipment and a storage medium, which relate to the technical field of servers and comprise the following steps: determining a target file from pre-written files with preset formats based on current equipment information; generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script; and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet. According to the method and the device, the target file is determined through the current equipment information, the corresponding page is generated based on the target file, so that the target configuration item is determined through the page on the user side and the target script is obtained, then the target compression packet is generated and confirmed on the user side, the pressure of the device is reduced, the resource waste is reduced, and the system performance is improved.

Description

Information configuration method, device, equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to an information configuration method, apparatus, device, and storage medium.
Background
At present, more and more industries need servers to deploy own applications, the demand of the servers is increasing along with the sudden increase of data volume and information volume, and meanwhile, higher customization requirements are also put forward for the servers. The customization of the server generally needs to go through a customization process, and now the general customization needs to go through a plurality of reviews in the server manufacturer for ensuring the quality. Common customization scenarios include a customization tag, a Raid (Redundant Arrays of Independent Disks), firmware, a fixed BOM (Browser Object Model), and the like. Each type of customization can have various configured indexes, and each index can be set with different values for personalization. However, the setting of these resources is more uniformly managed by an administrator, and the setting of the values can be generally performed only uniformly. In some cases, for the same resource, there are some indexes that are not wanted to be seen by the user, for example, the user is only wanted to customize a Central Processing Unit (CPU) and a memory, and a read/write IO (Input/Output) of a disk and a network data are not wanted to be customized by the user. The current settings are uniformly processed by an administrator, and the user lacks authority control, so that the user side and the management side can only display the same configuration items and configuration values on the same resource. In addition, some configuration information and configuration values set by the administrator often come from the perspective of the administrator, and the user does not care about the configuration information and the configuration values, so that the customization of the data also causes resource waste of the system. When these configuration items are too many, the performance of the entire configuration system is also degraded.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an information configuring method, apparatus, device and storage medium, which can reduce the pressure of the apparatus, reduce the waste of resources and improve the performance of the system. The specific scheme is as follows:
in a first aspect, the present application discloses an information configuration method, applied to a management side, including:
determining a target file from pre-written files with preset formats based on current equipment information;
generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script;
and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet.
Optionally, the determining a target file from a pre-written preset format file based on the current device information includes:
determining a unique target file from pre-written files with preset formats based on the current model, the current version of the baseboard management controller and the version of the basic input/output system; the target file contains a corresponding execution command, and the execution command contains configuration parameters.
Optionally, after determining the target file from the pre-written preset format file based on the current device information, the method further includes:
acquiring configuration information in the target file; the configuration information comprises a disk array configuration class, a label configuration class, a firmware configuration class and a fixed browser object model configuration class;
correspondingly, the generating a corresponding page based on the target file includes:
and respectively generating pages corresponding to the disk array configuration class, the tag configuration class, the firmware configuration class and the fixed browser object model configuration class based on the target file and a predefined rule.
Optionally, the generating a target compressed package based on the target configuration item and the configuration script includes:
determining a configuration item to be called from the target configuration items based on the configuration script and the predefined rule;
and generating a target compression packet containing the configuration script and the execution command corresponding to the configuration item with the call based on the configuration item to be called.
Optionally, before determining the target file from the pre-written preset format file based on the current device information, the method further includes:
writing the preset format files in advance, and naming each preset format file according to a preset naming rule to obtain a corresponding file name; the preset format file comprises 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;
correspondingly, the determining a target file from the pre-written preset format file based on the current device information includes:
and performing information matching by using the current equipment information and the file names of all the pre-written files in the preset format, and determining the files in the preset format, the information of which is successfully matched, as the target files.
Optionally, after generating the corresponding page based on the target file, the method further includes:
and sending all the generated pages to the user side so as to perform user-defined selection configuration operation on the pages through the user side to obtain a target configuration item, and clicking a generation button after the user-defined selection configuration operation is completed to obtain the configuration script corresponding to the target configuration item.
Optionally, the sending the target compressed packet to the user side so that the user side stores the target compressed packet to a preset directory after confirming the target compressed packet includes:
after the target compression packet is stored in a pre-selected file directory, the target compression packet is sent to the user side, so that the user side can store the target compression packet in a preset directory after confirmation; and the operation of the user terminal on the target compression package comprises a downloading operation and a confirming operation.
In a second aspect, the present application discloses an information configuration apparatus, which is applied to a management side, and includes:
the file determining module is used for determining a target file from pre-written files with preset formats based on the current equipment information;
the page generation module is used for generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script;
the compressed packet generating module is used for generating a target compressed packet based on the target configuration item and the configuration script;
and the compressed packet sending module is used for sending the target compressed packet to the user side so that the user side can store the target compressed packet to a preset directory after confirming the target compressed packet.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the information configuring method as disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program realizes the information configuration method as disclosed in the foregoing when being executed by a processor.
Therefore, the present application provides an information configuration method, including: determining a target file from pre-written files with preset formats based on current equipment information; generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script; and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet. Therefore, the target file is determined through the acquired current equipment information, the page corresponding to the target file is generated, so that the user side can select the target configuration item on the page and generate the configuration script, and the target compression packet generated according to the configuration script and the target configuration item is sent to the user side for confirmation, so that the pressure of the device is reduced, the resource waste is reduced, and the system performance is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an information configuration method disclosed herein;
FIG. 2 is a flow chart of a specific information configuration method disclosed herein;
FIG. 3 is a schematic flow chart of an information configuration method disclosed in the present application;
FIG. 4 is a flow chart of a specific information configuration method disclosed herein;
FIG. 5 is a single exemplary diagram of a baseboard management controller configuration disclosed in the present application;
FIG. 6 is a diagram illustrating a plurality of examples of a baseboard management controller configuration according to the present disclosure;
FIG. 7 is a schematic illustration of a translated HTML page as disclosed herein;
FIG. 8 is a schematic view of a YAML document parsing rule disclosed in the present application;
FIG. 9 is a schematic structural diagram of an information distribution apparatus provided in the present application;
fig. 10 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The current settings are uniformly processed by an administrator, and the user lacks authority control, so that the user side and the management side can only display the same configuration items and configuration values on the same resource. In addition, some configuration information and configuration values set by the administrator often come from the perspective of the administrator, and the user does not care about the configuration information and the configuration values, so that the customization of the data also causes resource waste of the system. When these configuration items are too many, the performance of the entire configuration system is also degraded. Therefore, the application provides an information configuration method which can reduce the pressure of the device, reduce the resource waste and improve the performance of the system.
The embodiment of the invention discloses an information configuration method, which is shown in figure 1 and is applied to a management end, and the method comprises the following steps:
step S11: and determining a target file from the pre-written preset format files based on the current equipment information.
In this embodiment, the target file is determined from the 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 understood that the current device information is acquired and then matched with the directory of the YAML file using the current device information, and since the directory name of the YAML file is the current device information, the YAML file having the same directory name as the current device information is determined as the target file from among the plurality of YAML files. It is understood that each YAML file contains a plurality of configuration items, and the YAML file contains an execution command, and the execution command contains a plurality of configuration item parameters.
Step S12: and generating a corresponding page based on the target file so that the user side can determine a target configuration item on the page and generate a corresponding configuration script.
In this embodiment, after the target file is determined, a corresponding page is generated based on the target file, so that the user side determines the target configuration item on the page and generates a corresponding configuration script. It can be understood that, after the corresponding page is generated based on the target file, the management terminal sends all the generated pages to the user terminal, and after the user terminal receives all the pages, the user terminal can select a certain configuration item on the page as required, where the selected configuration item is the target configuration item, and after the target configuration item is selected, the generation button is clicked, and the configuration script corresponding to the target configuration item is generated.
Step S13: and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet.
In this embodiment, after the corresponding configuration script is generated, the management end generates a target compression packet based on the target configuration item and the configuration script, and sends the target compression packet to the user end, so that the user end stores the target compression packet to a preset directory after confirming the target compression packet. It will be appreciated that a compressed package containing the configuration script and execution command is generated within the system based on the configuration item parameters of the target configuration item.
It can be understood that the scheme performs regular division on configuration items of the same type of firmware, and different configuration items can be seen based on different firmware, so as to generate different configuration information. And the rule authority division is carried out on the configuration item level, so that an administrator (namely a management end) and a user (namely a user end) can check different configuration information according to the rule authority. Therefore, permission separation can be carried out, leakage of sensitive alarm information is avoided, meanwhile, a user can be enabled to be more concentrated on configuration information in the own demand range, and information flooding is prevented. On the other hand, due to the fact that the user-defined rule is approved and divided, an administrator can control the requirement rules of the user through an approval function (approval or returning or modification) so that not all configuration items are pushed to the user, pressure of the device is relieved to a certain extent, performance of the system is improved, and user experience is enhanced.
Therefore, the present application provides an information configuration method, including: determining a target file from pre-written files with preset formats based on current equipment information; generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script; and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet. Therefore, the target file is determined through the acquired current equipment information, the page corresponding to the target file is generated, so that the user side can select the target configuration item on the page and generate the configuration script, and the target compression packet generated according to the configuration script and the target configuration item is sent to the user side for confirmation, so that the pressure of the device is reduced, the resource waste is reduced, and the system performance is improved.
Referring to fig. 2, an embodiment of the present invention discloses an information configuration method, and the embodiment further describes and optimizes the technical solution with respect to the previous embodiment.
Step S21: and compiling the preset format files in advance, and naming each preset format file according to a preset naming rule to obtain a corresponding file name.
In this embodiment, the preset format files are written in advance, and each preset format file is named according to a preset naming rule to obtain a corresponding file name. It is understood that the firmware developer first writes YAML files in a specified format corresponding to different device information, and names each YAML file. The preset format file comprises folders respectively 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 noted that the file name rule of the YAML file is "model-BMC version-BIOS version", and folders such as bmc.yml, bios.yml, raid.yml, label and the like are stored after entering the directory.
It should be noted that, when the preset format file is written in advance, the obtained preset format file includes an execution command, the execution command includes configuration parameters, but at this time, a configuration script is not included, and the configuration script is generated only after a user selects a completion target configuration item at a user side and clicks a generation button.
Step S22: and determining a unique target file from the pre-written preset format files based on the current model, the current version of the baseboard management controller and the version of the basic input/output system.
In this embodiment, a unique target file is determined from a pre-written file in a preset format based on a current model, a current version of a baseboard management controller, and a version of a basic input/output system, so as to obtain a configuration item corresponding to the target file. It will be appreciated that all YAML files are obtained, and then the unique corresponding target file is determined from all YAML files based on the current model, current baseboard management controller version, and basic input output system version. For example, a file directory with the same model as a current model is first screened to obtain a first file directory, then a file directory with the same version as the current version of the baseboard management controller is screened from the first file directory to obtain a second file directory, and then a file directory with the same version as the current version of the basic input/output system is screened from the second file directory to obtain a target file. The target file comprises a corresponding execution command, and the execution command comprises a plurality of configuration parameters.
Specifically, the current device information is used for performing information matching with the file names of all the pre-written files with the preset format, that is, the current model, the current version of the baseboard management controller and the version of the basic input/output system are matched with each part of the file names, and a YAML file which is successfully matched is determined as the target file.
Step S23: and acquiring the configuration information in the target file.
In this embodiment, after the target file is determined, the configuration information in the target file is acquired. It is understood that the configuration information includes a disk array configuration class, a tag configuration class, a firmware configuration class, and a fixed browser object model configuration class. Wherein, the disk array configuration class comprises a block Raid __ of disk __; the label configuration class comprises a machine picture and a machine bar code; the firmware configuration class comprises BMC configuration and BIOS configuration, and the fixed browser object model configuration class comprises a hard disk, a display, a CPU and the like.
Step S24: and respectively generating pages corresponding to the disk array configuration class, the tag configuration class, the firmware configuration class and the fixed browser object model configuration class based on the target file and a predefined rule, so that a user side determines a target configuration item on the page and generates a corresponding configuration script.
In this embodiment, after the configuration information in the target file is obtained, pages corresponding to the disk array configuration class, the tag configuration class, the firmware configuration class, and the fixed browser object model configuration class are respectively generated based on the configuration information in the target file and a predefined rule, so that a user side determines a target configuration item on the page and generates a corresponding configuration script. It can be understood that the scheme provides a rule division, a management end can define different rules, the different rules correspond to different configuration items, and a user can configure different customized items to generate configuration scripts and files. It should be noted that each configuration class corresponds to a page, and a plurality of configuration items exist on a page.
For example, as shown in fig. 3, when there is a new model and firmware maintenance option, a corresponding YAML file is selected according to the model, then the YAML file is parsed, a corresponding script file and a corresponding document are generated, an md5 (message digest algorithm) file is generated, then a test is performed, and the operation is completed after the test is passed.
Step S25: and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet.
For details of the step S25, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the embodiment of the application obtains the corresponding file name by writing the preset format file in advance and naming each preset format file according to a preset naming rule; determining a unique target file from pre-written files with preset formats based on the current model, the current version of the baseboard management controller and the version of the basic input/output system; acquiring configuration information in the target file; respectively generating pages corresponding to the disk array configuration class, the tag configuration class, the firmware configuration class and the fixed browser object model configuration class based on the target file and a predefined rule so that a user side can determine a target configuration item on the page and generate a corresponding configuration script; and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet, and thus, matching the file names of the current model, the current version of the baseboard management controller and the version of the basic input/output system with all YAML files according to a certain sequence, determining the only corresponding target file in the identical YAML files, reducing the pressure of the device, reducing the resource waste, and improving the performance of the system.
Referring to fig. 4, an embodiment of the present invention discloses an information configuration method, and the present embodiment further describes and optimizes the technical solution with respect to the previous embodiment.
Step S31: and determining a target file from the pre-written preset format files based on the current equipment information.
Step S32: and generating a corresponding page based on the target file so that the user side can determine a target configuration item on the page and generate a corresponding configuration script.
In this embodiment, after the corresponding page is generated based on the target file, all the generated pages are sent to the user side, so that the user side performs the user-defined selection configuration operation on the page to obtain the target configuration item, and clicks the generation button after the user-defined selection configuration operation is completed to obtain the configuration script corresponding to the target configuration item.
It will be appreciated that the configuration item for each execution command of the YAML file contains the type of this configuration item, e.g., drop-down box, input box, multiple selection box, etc.; the rules of the configuration item include must-fail check, format check, etc. as shown in fig. 5, the content of the configuration item is translated into an HTML (hypertext Markup Language) page according to the predefined rules.
YAML is an intuitive computer-recognizable data serialization format, a programming language that is readable and readable by humans, and interacts easily with scripting languages to express material sequences. The YAML file is used for describing test items of different model versions and configuration item parameters of each item. For example, the server includes models 5456, 5458, 5455, etc., and the configuration items of each model may be different, so the configuration items of the models may be defined in YAML files respectively. 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 the target Configuration item includes DNS (Domain Name System), DHCP (Dynamic Host Configuration Protocol), and the like, as shown in fig. 6. The BMC translated page configuration item is shown in fig. 7, and includes BMC, BIOS, RAID, FRU (Field replaceable Unit), and ble (label); the BMC includes dns setting, ip setting, dhcp setting, ntp (network Time Protocol) setting, user setting, remote debugging, network card type, Time zone, ncsi (network connection status indicator) setting, channel setting, kvm (key video mouse, a port) setting, screenshot setting, snmp (simple network management Protocol) setting, snmp Trap setting, sol setting, web setting, service setting, alarm setting, and the like.
Step S33: and determining the configuration items to be called from the target configuration items based on the configuration scripts and the predefined rules.
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 which corresponds to the configuration script and meets the authority rule in the predefined rule.
Step S34: and generating a target compression packet containing the configuration script and the execution command corresponding to the configuration item with the call based on the configuration item to be called.
In this embodiment, after determining the configuration item to be called, a target compressed packet including the configuration script and the execution command corresponding to the configuration item with call is generated based on the configuration item to be called.
Step S35: and storing the target compressed packet to a preselected file directory.
In this embodiment, after the target compressed package is generated, the target compressed package is stored in a preselected file directory (i.e., a designated file directory).
Step S36: and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirmation.
In this embodiment, the target compressed packet is sent to the user side, so that the user side stores the target compressed packet to a preset directory after confirmation. It can be understood that the operation of the user end on the target compressed packet only includes a downloading operation and a confirmation operation, and after the confirmation operation is completed, the target compressed packet is transferred to an FTP (File Transfer Protocol) directory.
It can be understood that the configuration items are divided through rule management, under the condition that a program is not changed, the YAML file developed by 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, so that the cost of the approval process and the technical dependence of the front-end user on the script file are reduced, and the accuracy and the usability of the platform are improved.
It should be noted that, as shown in fig. 8, the specific YAML file parsing rule is that bmc or bios contains id (primary key), pid (parent node primary key), description (tag display), name (option name), options, type, min, max, rule, ascii, raw, and hellp. Wherein, options include table (option display value), cmd (command corresponding to option), value; type includes input (character input box), select (drop down box), checkbox, input number (number input box); min: the minimum length of a character string during input string and the minimum number of the number during input number; max: the maximum length of a character string during input string and the maximum number of a number during input number; rule corresponds to ip: judging the domain name when neither ipv4 nor ipv6 is true, wherein the conversion mode is conversion after ip is removed, and if neither is true, directly converting into 16-system ascii; ascii indicates that ascii needs to be converted; the raw representation is a raw command; help is the text description of the input box.
For details of the step S31, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the target file is determined from the pre-compiled file with the preset format based on the current equipment information; generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script; determining a configuration item to be called from the target configuration items based on the configuration script and the predefined rule; generating a target compression packet containing the configuration script and the execution command corresponding to the configuration item to be called based on the configuration item to be called; storing the target compressed packet to a preselected file directory; the target compression packet is sent to the user side, so that the user side can store the target compression packet to a preset directory after confirmation, the pressure of the device is reduced, the resource waste is reduced, the performance of the system is improved, the cost of the approval process and the technical dependence of a front-end user on the script file are reduced by generating a customized script command file, and the accuracy and the usability of the platform are improved.
Referring to fig. 9, an embodiment of the present application further discloses an information configuration apparatus correspondingly, which is applied to a management end, and includes:
the file determining module 11 is configured to determine a target file from a pre-written file with a preset format based on current device information;
the page generating module 12 is configured to generate a corresponding page based on the target file, so that the user side determines a target configuration item on the page and generates a corresponding configuration script;
a compressed package generating module 13, configured to generate a target compressed package based on the target configuration item and the configuration script;
a compressed packet sending module 14, configured to send the target compressed packet to the user side, so that the user side stores the target compressed packet in a preset directory after confirming the target compressed packet.
As can be seen, the present application includes: determining a target file from pre-compiled files in a preset format based on current equipment information; generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script; and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet. Therefore, the target file is determined through the acquired current equipment information, the page corresponding to the target file is generated, so that the user side can select the target configuration item on the page and generate the configuration script, and the target compression packet generated according to the configuration script and the target configuration item is sent to the user side for confirmation, so that the pressure of the device is reduced, the resource waste is reduced, and the system performance is improved.
In some specific embodiments, the file determining module 11 specifically includes:
the preset format file compiling unit is used for compiling the preset format file in advance;
the file naming unit is used for naming each preset format file according to a preset naming rule to obtain a corresponding file name; the preset format file comprises 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;
the information matching unit is used for performing information matching between the current equipment information and the file names of all pre-compiled files in the preset format and determining the files in the preset format, the information of which is successfully matched, as the target files;
the file determining unit is used for determining a unique target file from pre-written files in a preset format based on the current model, the current version of the baseboard management controller and the version of the basic input/output system; the target file comprises a corresponding execution command, and the execution command comprises configuration parameters;
a configuration information acquisition unit, configured to acquire configuration information in the target file; the configuration information comprises a disk array configuration class, a label configuration class, a firmware configuration class and a fixed browser object model configuration class.
In some specific embodiments, the page generating module 12 specifically includes:
a page generating unit, configured to generate pages corresponding to the disk array configuration class, the tag configuration class, the firmware configuration class, and the fixed browser object model configuration class, respectively, based on the target file and a predefined rule;
and the page sending unit is used for sending all the generated pages to the user side so as to carry out user-defined selection configuration operation on the pages through the user side to obtain a target configuration item, and clicking a generation button after the user-defined selection configuration operation is finished to obtain the configuration script corresponding to the target configuration item.
In some specific embodiments, the compressed packet generating module 13 specifically includes:
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;
and the target compression packet generating unit is used for generating a target compression packet containing the configuration script and the execution command corresponding to the configuration item with the call based on the configuration item to be called.
In some specific embodiments, the compressed packet sending module 14 specifically includes:
the first storage unit of the target compressed packet is used for storing the target compressed packet to a preselected file directory;
the second storage unit of the target compression packet is used for sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirmation; and the operation of the user terminal on the target compression package comprises a downloading operation and a confirming operation.
Further, the embodiment of the application also provides electronic equipment. FIG. 10 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 10 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. 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 for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the information configuration method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a 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 an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, Netware, Unix, Linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the information configuring method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, an embodiment of the present application further discloses a storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the information configuration method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is provided for an information configuration method, apparatus, device and storage medium, and the specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An information configuration method is applied to a management end and comprises the following steps:
determining a target file from pre-written files with preset formats based on current equipment information;
generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script;
and generating a target compression packet based on the target configuration item and the configuration script, and sending the target compression packet to the user side so that the user side can store the target compression packet to a preset directory after confirming the target compression packet.
2. The information configuration method according to claim 1, wherein the determining a target file from pre-written files in a preset format based on the current device information comprises:
determining a unique target file from pre-written files with preset formats based on the current model, the current version of the baseboard management controller and the version of the basic input/output system; the target file contains a corresponding execution command, and the execution command contains configuration parameters.
3. The information configuration method according to claim 2, wherein after determining the target file from the pre-written preset format file based on the current device information, the method further comprises:
acquiring configuration information in the target file; the configuration information comprises a disk array configuration class, a label configuration class, a firmware configuration class and a fixed browser object model configuration class;
correspondingly, the generating a corresponding page based on the target file includes:
and respectively generating pages corresponding to the disk array configuration class, the tag configuration class, the firmware configuration class and the fixed browser object model configuration class based on the target file and a predefined rule.
4. The information configuration method of claim 3, wherein the generating a target compressed package based on the target configuration item and the configuration script comprises:
determining a configuration item to be called from the target configuration items based on the configuration script and the predefined rule;
and generating a target compression packet containing the configuration script and the execution command corresponding to the configuration item with the call based on the configuration item to be called.
5. The information configuration method according to claim 3, wherein before determining the target file from the pre-written preset format file based on the current device information, the method further comprises:
writing the preset format files in advance, and naming each preset format file according to a preset naming rule to obtain a corresponding file name; the preset format file comprises 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;
correspondingly, the determining a target file from the pre-written preset format file based on the current device information includes:
and performing information matching by using the current equipment information and the file names of all the pre-written files in the preset format, and determining the files in the preset format, the information of which is successfully matched, as the target files.
6. The information configuration method according to claim 1, wherein after generating the corresponding page based on the target file, the method further comprises:
and sending all the generated pages to the user side so as to perform user-defined selection configuration operation on the pages through the user side to obtain a target configuration item, and clicking a generation button after the user-defined selection configuration operation is completed to obtain the configuration script corresponding to the target configuration item.
7. The information configuring method according to any one of claims 1 to 6, wherein the sending the target compressed packet to the user side so that the user side stores the target compressed packet in a preset directory after confirming the target compressed packet comprises:
after the target compression packet is stored in a pre-selected file directory, the target compression packet is sent to the user side, so that the user side can store the target compression packet in a preset directory after confirmation; and the operation of the user end on the target compressed packet comprises a downloading operation and a confirming operation.
8. An information configuration device, applied to a management side, includes:
the file determining module is used for determining a target file from pre-written files with preset formats based on the current equipment information;
the page generation module is used for generating a corresponding page based on the target file so that a user side can determine a target configuration item on the page and generate a corresponding configuration script;
a compressed package generating module, configured to generate a target compressed package based on the target configuration item and the configuration script;
and the compressed packet sending module is used for sending the target compressed packet to the user side so that the user side can store the target compressed packet to a preset directory after confirming the target compressed packet.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the information configuring method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the information configuring method of any one of claims 1 to 7.
CN202210609504.8A 2022-05-31 2022-05-31 Information configuration method, device, equipment and storage medium Pending CN114968337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210609504.8A CN114968337A (en) 2022-05-31 2022-05-31 Information configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210609504.8A CN114968337A (en) 2022-05-31 2022-05-31 Information configuration method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114968337A true CN114968337A (en) 2022-08-30

Family

ID=82958312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210609504.8A Pending CN114968337A (en) 2022-05-31 2022-05-31 Information configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114968337A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116679889A (en) * 2023-07-31 2023-09-01 苏州浪潮智能科技有限公司 Method and device for determining RAID equipment configuration information and storage medium
CN117112500A (en) * 2023-10-17 2023-11-24 天津市天河计算机技术有限公司 Resource management method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116679889A (en) * 2023-07-31 2023-09-01 苏州浪潮智能科技有限公司 Method and device for determining RAID equipment configuration information and storage medium
CN116679889B (en) * 2023-07-31 2023-11-03 苏州浪潮智能科技有限公司 Method and device for determining RAID equipment configuration information and storage medium
CN117112500A (en) * 2023-10-17 2023-11-24 天津市天河计算机技术有限公司 Resource management method, device, equipment and storage medium
CN117112500B (en) * 2023-10-17 2024-01-26 天津市天河计算机技术有限公司 Resource management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5052568B2 (en) Method, system, and program for managing devices in a network
CN114968337A (en) Information configuration method, device, equipment and storage medium
EP2893443B1 (en) Re-configuration in cloud computing environments
US8161140B2 (en) Interfacing between a command line interface-based application program and a remote network device
US10284418B2 (en) Network switch management via embedded management controller using management information base (MIB) to JSON parser
CN105337787A (en) Multi-server monitoring method, device and system
US9529578B2 (en) Automated service version upgrading
CN110011875B (en) Dial testing method, device, equipment and computer readable storage medium
CN111475161B (en) Method, device and equipment for accessing component
US20070022154A1 (en) Generating one or more clients for generating one or more synthetic transactions with one or more web service operations
CN109460268B (en) Application parameter configuration method, device and system
WO2013175560A1 (en) Information communicating system and information converting method
CN113961463A (en) Application environment switching method and system, storage medium and electronic equipment
JP5806688B2 (en) OpS equipment
US10649808B2 (en) Outcome-based job rescheduling in software configuration automation
US10430232B2 (en) Controllable workflow in software configuration automation
CN111367761B (en) Information management method, system and related components of universal server
CN105450449A (en) File operation methods and devices
JP2021530073A (en) Automatic control of distributed computing devices
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
US10592227B2 (en) Versioned intelligent offline execution of software configuration automation
CN114398213A (en) Method, device and equipment for testing functions of solid state disk and storage medium
CN114328026A (en) Virtual disk backup method, device, equipment and medium
CN112905467A (en) Test case execution management method, device, equipment and storage medium
CN106993036B (en) Running environment information processing method and switch

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