A Self-Adaptation Method, Device and Medium for System Management Software

By establishing a database table and a collection of modular functions of hardware devices, the adaptation problem of system software under different models or configurations is solved, adaptation and code simplification is achieved, and adaptation efficiency and flexibility are improved.

CN115145634BActive Publication Date: 2025-07-08JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210891131.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2025-07-08
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

In the prior art, system software needs to perform comprehensive underlying code adaptation and debugging when facing servers of different models or configurations, which makes it time-consuming and labor-consuming, and cannot automatically identify new configurations or new accessories, which increases code redundancy.

Method used

By establishing model tables, hardware adaptation scheme tables and hardware command tables, we obtain the machine model and target hardware adaptation schemes of the hardware device, and use preset modular functions to generate target adaptation schemes to simplify code redundancy and reduce duplicate work.

Benefits of technology

It realizes the adaptation of system software according to the hardware environment, reduces code redundancy, improves adaptation efficiency and flexibility, and saves manpower and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115145634B_ABST
    Figure CN115145634B_ABST
Patent Text Reader

Abstract

The present application discloses a self-adaptation method, device and medium for system management software, which relates to the field of computer application technologies, solves the problem that it is time-consuming and laborious to implement software adaptation and debugging by changing underlying codes, obtains the machine model of a hardware device, the target hardware adaptation solution corresponding to the machine model, and the corresponding solution hardware execution command, and according to the target hardware adaptation solution, obtains the corresponding target adaptation solution function from a preset modular function set, and generates a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command. By modularizing in advance the basic functions during the execution of the hardware device functions and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation solution functions. The standardized design will greatly simplify the code, reduce the code redundancy, and save a large amount of data to a database to facilitate data maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a system management software self-adaptation method, device and medium. Background Art

[0002] At present, the market is constantly moving towards the development direction of customized customer needs, so there are more and more types of servers, and the device information and operation commands of different models are different. This results in that every time the system software encounters a machine of a different model or different configuration, even if only a simple command needs to be modified, the storage system needs to be fully adapted and debugged from the bottom level code and released, which is very time-consuming and labor-intensive; at the same time, once the system software is adapted and developed and sent to the site, if the site later encounters the need to change the configuration or use different models of disks, the system itself cannot automatically identify the new configuration or new accessories, resulting in server management problems. At this time, targeted low-level adaptation and debugging of the new device or new configuration is also required. Even if only a hardware query command is modified, the lowest level code adaptation and modification is required.

[0003] Therefore, implementing adaptation and debugging by changing the underlying code is not only time-consuming and labor-intensive, but also continuously increases the redundancy of the underlying code.

[0004] It can be seen that providing a solution that allows system software to adapt itself according to the hardware environment is a technical problem that needs to be solved urgently by people in this field. Summary of the invention

[0005] The purpose of the present application is to provide a system management software self-adaptation method that enables system software to self-adapt according to the hardware environment.

[0006] In order to solve the above technical problems, the present application provides a system management software self-adaptation method, comprising:

[0007] Get the model of the hardware device;

[0008] Obtain the target hardware adaptation solution corresponding to the machine model;

[0009] Obtaining a corresponding solution hardware execution command according to the machine model and the target hardware adaptation solution;

[0010] According to the target hardware adaptation solution, a corresponding target adaptation solution function is obtained from a preset modular function set, wherein the preset modular function set is a set of basic functions when the hardware device function is executed;

[0011] A target adaptation solution is generated according to the target adaptation solution function and the parameters of the solution hardware execution command.

[0012] Preferably, in the above system management software self - adaptation method, before obtaining the model number of the hardware device, it further includes:

[0013] Establish a model table, a hardware adaptation plan table, a hardware command table, and a hardware information cache table; among them, the model table, the hardware adaptation plan table, and the hardware command table are associated with each other's information according to a unique identifier;

[0014] Correspondingly, obtaining the model number of the hardware device includes: obtaining the corresponding model number from the model table according to the node information of the hardware device;

[0015] Correspondingly, obtaining the target hardware adaptation plan corresponding to the model number includes: obtaining the corresponding target hardware adaptation plan from the hardware adaptation plan table associated with the model table according to the unique identifier;

[0016] Correspondingly, obtaining the corresponding plan hardware execution command according to the model number and the target hardware adaptation plan includes: obtaining the corresponding plan hardware execution command from the hardware command table associated with the hardware adaptation plan table according to the unique identifier.

[0017] Preferably, in the above system management software self - adaptation method, before establishing the model table, the hardware adaptation plan table, the hardware command table, and the hardware information cache table, it further includes:

[0018] Set up a model configuration interface, a hardware adaptation plan configuration interface, a hardware command configuration interface, and a hardware information cache configuration interface;

[0019] Set the node information and model information through the model configuration interface, and write the node information and the model information into the model table;

[0020] Set the hardware adaptation plan through the hardware adaptation plan configuration interface, and write the hardware adaptation plan into the hardware adaptation plan table;

[0021] Set the hardware function command through the hardware command configuration interface, and write the hardware function command into the hardware command table.

[0022] Preferably, in the above system management software self - adaptation method, after generating the target adaptation plan according to the target adaptation plan function and the parameters of the plan hardware execution command, it further includes:

[0023] Write the target adaptation plan into the hardware information cache table;

[0024] Control each business module to obtain relevant execution information from the hardware information cache table;

[0025] Control each business module to operate according to the relevant execution information;

[0026] Display the business operation result on the hardware information cache configuration interface.

[0027] Preferably, in the above system management software self-adaptation method, after generating the target adaptation plan according to the target adaptation plan function and the parameters of the plan hardware execution command, it further includes:

[0028] Write the target adaptation plan into the adaptation information library.

[0029] Preferably, in the above system management software self-adaptation method, after obtaining the machine model of the hardware device, it further includes:

[0030] Judge whether the pre-stored adaptation plan corresponding to the machine model is included in the adaptation information library;

[0031] If not, enter the step of obtaining the hardware adaptation plan according to the machine model;

[0032] If so, retrieve the pre-stored adaptation plan as the target adaptation plan.

[0033] Preferably, in the above system management software self-adaptation method, the step of generating the preset modular function set is:

[0034] Obtain the hardware adaptation plan recorded in the hardware adaptation plan table;

[0035] Split the functions of the hardware adaptation plan to obtain basic functions;

[0036] Write the basic functions into the preset modular function set.

[0037] To solve the above technical problems, the present application also provides a system management software self-adaptation device, including:

[0038] The first acquisition module is used to acquire the machine model of the hardware device;

[0039] The second acquisition module is used to acquire the target hardware adaptation plan corresponding to the machine model;

[0040] The third acquisition module is used to acquire the corresponding plan hardware execution command according to the machine model and the target hardware adaptation plan;

[0041] The fourth acquisition module is used to acquire the corresponding target adaptation plan function from the preset modular function set according to the target hardware adaptation plan, where the preset modular function set is a set of basic functions when the hardware device function is executed;

[0042] A generation module, configured to generate a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command.

[0043] To solve the above technical problems, the present application further provides a system management software self-adaptation device, including:

[0044] A memory, configured to store a computer program;

[0045] A processor, configured to implement the steps of the above system management software self-adaptation method when executing the computer program.

[0046] To solve the above technical problems, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above system management software self-adaptation method are implemented.

[0047] The system management software self-adaptation method provided by the present application includes: obtaining the machine model of a hardware device; obtaining the target hardware adaptation solution corresponding to the machine model; obtaining the corresponding solution hardware execution command according to the machine model and the target hardware adaptation solution; obtaining the corresponding target adaptation solution function from a preset modular function set according to the target hardware adaptation solution, where the preset modular function set is a set of basic functions when the hardware device function is executed; and generating a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command. By modularizing the basic functions when the hardware device function is executed in advance and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation solution function. The modular design can greatly simplify the code, reduce the code redundancy, and save a large amount of data in a database for convenient data maintenance.

[0048] In addition, the present application further provides a device and a medium, including the above system management software self-adaptation method, and the effect is the same. Description of the Drawings

[0049] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0050] Figure 1 It is a flowchart of a system management software self-adaptation method provided by an embodiment of the present application;

[0051] Figure 2 It is a schematic diagram of another system management software self-adaptation device provided by an embodiment of the present application;

[0052] Figure 3 This is a structural diagram of another system management software self - adaptation device provided by an embodiment of the present application. Specific embodiments

[0053] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0054] The core of the present application is to provide a system management software self - adaptation method, device and medium.

[0055] In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific embodiments.

[0056] Currently in the market, the types of server models are constantly developing towards meeting customer - customized requirements. Since the device information and operation commands of different models are different, even if the same system management software is installed, software configuration adaptation for the hardware device is still required. This results in that every time a different model or a machine with different configurations is encountered, even if only a simple command needs to be modified, a comprehensive adaptation and debugging release from the lowest - level code of the storage system is required, which is very time - consuming and laborious. In addition, new code is often generated for the operating system. For example, application program code applied to the operating system, code of operating system components applied to the operating system, code for updating system software in the operating system, and so on. In order to ensure that the newly generated code can run properly later, after the new code is developed, it is often necessary to first adapt the code file. At the same time, if the system software is once developed and adapted and sent to the field, when the field later encounters situations such as needing to change the configuration or use different models of disks, etc., the system itself cannot automatically recognize the new configuration or new accessories, resulting in server management problems. At this time, targeted low - level adaptation and debugging of the new device or new configuration are still required. Even if only a hardware query command is modified, the lowest - level code adaptation and modification are required. The current model adaptation mode is not only time - consuming and laborious, but also continuously increases the redundancy of the low - level code. The present invention can be applied to scenarios of hardware devices that need to install system management software. The present invention does not limit the form of the hardware device, which can be a smart phone, a tablet computer, a laptop computer or a desktop computer, etc.

[0057] Therefore, to solve the above problems, an embodiment of the present application provides a system management software self - adaptation method, Figure 1The flowchart of a system management software self - adaptation method provided by an embodiment of the present application is as follows: Figure 1 As shown, it includes:

[0058] S11: Obtain the model number of the hardware device;

[0059] S12: Obtain the target hardware adaptation solution corresponding to the model number;

[0060] S13: Obtain the corresponding solution hardware execution command according to the model number and the target hardware adaptation solution;

[0061] S14: Obtain the corresponding target adaptation solution function from the preset modular function set according to the target hardware adaptation solution, where the preset modular function set is a set of basic functions for the execution of the hardware device functions;

[0062] S15: Generate the target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command.

[0063] Step S11 to obtain the model number of the hardware device means to obtain the model number of the hardware device where the current system management software is installed. Step S12 obtains the target hardware adaptation solution according to the model number obtained in step S11, that is, under this model, which functions need to be executed and what operation solutions need to be implemented. Each target hardware adaptation solution is composed of one or more basic functions.

[0064] The preset modular function set mentioned in this embodiment is a set of basic functions for the execution of the hardware device functions, which means that the basic functions of the adaptation solutions of the hardware devices of different models are split in advance. For example, functions such as obtaining Serial Attached SCSI (SAS) card information, obtaining read card information, and functions for each disk - mounting solution on the PCI Mezzanine Card (PMC) backplane are split. This embodiment does not limit the specific types of basic functions and can be designed according to actual needs.

[0065] In this embodiment, the basic functions of the adaptation solution are split, and each basic function is modularized. For example, the preset modular function set includes four basic functions A, B, C, and D. The target hardware adaptation solution obtained according to the machine model in step S12 only involves three basic functions A, C, and D. In step S14, the corresponding three basic functions A, C, and D are obtained from the preset modular function set according to the target hardware adaptation solution, that is, the target adaptation solution function of the hardware adaptation solution corresponding to this machine model. If the target hardware adaptation solution obtained according to the machine model only involves two basic functions B and C, in step S14, the corresponding two basic functions B and C can be obtained from the preset modular function set according to the hardware adaptation solution as the target adaptation solution function of the hardware adaptation solution corresponding to this machine model.

[0066] In step S13 of this embodiment, the corresponding solution hardware execution command is obtained according to the machine model and the hardware adaptation solution. Different functions require corresponding use of different command information, and different machine models may require the use of different command information. It is necessary to obtain the solution hardware execution command corresponding to the machine model and the hardware adaptation solution.

[0067] Taking the solution hardware execution command as a parameter and calling the target adaptation solution function can generate the target adaptation solution of the hardware device.

[0068] The system management software self-adaptation method provided by this application includes: obtaining the machine model of the hardware device; obtaining the target hardware adaptation solution corresponding to the machine model; obtaining the corresponding solution hardware execution command according to the machine model and the target hardware adaptation solution; according to the target hardware adaptation solution, obtaining the corresponding target adaptation solution function from the preset modular function set, where the preset modular function set is a set of basic functions when the hardware device function is executed; generating the target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command. By modularizing the basic functions in advance when the hardware device function is executed and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation solution function. The standardized design will greatly simplify the code, reduce the code redundancy, and save a large amount of data in the database to facilitate data maintenance.

[0069] According to the above embodiment, this embodiment provides a preferred solution. Before obtaining the machine model of the hardware device, it further includes:

[0070] Establishing a machine model table, a hardware adaptation solution table, a hardware command table, and a hardware information cache table; among them, the machine model table, the hardware adaptation solution table, and the hardware command table are associated with each other's information according to the unique identifier;

[0071] Correspondingly, obtaining the machine model of the hardware device includes: obtaining the corresponding machine model from the machine model table according to the node information of the hardware device;

[0072] Correspondingly, obtaining a target hardware adaptation solution corresponding to the machine model number includes: obtaining the corresponding target hardware adaptation solution from the hardware adaptation solution table associated with the machine model table according to the unique identifier;

[0073] Correspondingly, obtaining a corresponding solution hardware execution command according to the machine model number and the target hardware adaptation solution includes: obtaining the corresponding solution hardware execution command from the hardware command table associated with the hardware adaptation solution table according to the unique identifier.

[0074] The machine model table mentioned in the embodiments of the present application records each node device and its machine model number in the current system cluster. The hardware adaptation solution table records the adaptation solutions corresponding to each type of machine model number. These adaptation solutions have been set according to their product characteristics during the production of the hardware device. The hardware command table mentioned in this embodiment stores different command information for different functions. The machine model table, the hardware adaptation solution table, and the hardware command table are associated with each other's information according to the unique identifier, such as the enable flag. Through the association by the unique identifier, the information recorded in one of the tables can be associated with other database tables.

[0075] The hardware information cache table mentioned in this embodiment refers to the database table that records relevant data when the system management software runs.

[0076] Preferably, obtain the machine model number from the machine model table according to the node information of the current hardware device; obtain the corresponding target hardware adaptation solution from the hardware adaptation solution table associated with the machine model table according to the unique identifier; obtain the corresponding solution hardware execution command from the hardware command table associated with the hardware adaptation solution table according to the unique identifier. According to the target hardware adaptation solution, obtain the corresponding target adaptation solution function from the preset modular function set, where the preset modular function set is a set of basic functions when the hardware device function is executed; generate the target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command. The present application facilitates the query and retrieval of data by establishing relevant database tables. By modularizing the basic functions included in the adaptation solution in advance and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation solution function. The standardized design will greatly simplify the code, reduce the code redundancy, and save a large amount of data in the database to facilitate data maintenance.

[0077] According to the above embodiments, for the convenience of timely management and setting, this embodiment provides a preferred solution. Before establishing the machine model table, the hardware adaptation solution table, the hardware command table, and the hardware information cache table, it further includes:

[0078] Set up the model configuration interface, hardware adaptation scheme configuration interface, hardware command configuration interface, and hardware information cache configuration interface;

[0079] Set the node information and model information through the model configuration interface, and write the node information and model information into the model table;

[0080] Set the hardware adaptation scheme through the hardware adaptation scheme configuration interface, and write the hardware adaptation scheme into the hardware adaptation scheme table;

[0081] Set the hardware function commands through the hardware command configuration interface, and write the hardware function commands into the hardware command table.

[0082] The model configuration interface, hardware adaptation scheme configuration interface, hardware command configuration interface, and hardware information cache configuration interface mentioned in this embodiment are respectively used to configure the model table, hardware adaptation scheme table, hardware command table, and hardware information cache table. This embodiment does not limit the specific configuration scheme, and it can be set according to actual needs.

[0083] For example, the node information and model information can be manually input by the user in the model configuration interface to complete the model table, or it can be configured according to the information obtained from fru.txt and saved to the model table. The hardware adaptation scheme can be configured manually, or selected from the optional schemes in the database and saved to the hardware adaptation scheme table. The hardware function commands can be configured manually, or selected from the existing commands in the database table and saved to the hardware command table. In this way, the configuration of the preset database table is realized, which is convenient for data query and retrieval.

[0084] For the above-mentioned hardware information cache table, this embodiment provides an application solution. After generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command, it further includes:

[0085] Write the target adaptation scheme into the hardware information cache table;

[0086] Control each business module to obtain relevant execution information from the hardware information cache table;

[0087] Control each business module to run the business according to the relevant execution information;

[0088] Save the business operation result to the hardware information cache table and display it on the hardware information cache configuration interface.

[0089] After obtaining the target adaptation solution, it is necessary to train the adaptation solution. First, write the target adaptation solution into the hardware information cache table. The hardware information cache table serves as a buffer area to control each business module to obtain relevant execution information from the hardware information cache table and run the business according to the relevant execution information. Finally, save the business operation result to the hardware information cache table and display it on the hardware information cache configuration interface. This business operation result can also be used as the data source for other business modules.

[0090] Preferably, regularly obtain the business operation results of each business module, save them to the hardware information cache table, and display them on the hardware information cache configuration interface.

[0091] Users can adjust the hardware device according to the business operation results displayed on the hardware information cache configuration interface and use the interface operation to perform model adaptation for the changed points, making the system flexible and convenient. By performing model adaptation through the interface operation, a large amount of hardware adaptation, debugging, and release work at the code level from the bottom layer can be omitted each time, saving a lot of manpower and material resources.

[0092] According to the above embodiments, each generated adaptation solution may also be applicable in subsequent other scenarios. To reduce the complexity of work, this embodiment provides a preferred solution. After generating the target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command, it further includes:

[0093] Write the target adaptation solution into the adaptation information library.

[0094] Write each generated target adaptation solution into the adaptation information library to facilitate subsequent direct retrieval and improve the efficiency of software adaptation.

[0095] Therefore, preferably, after obtaining the model number of the hardware device, it further includes:

[0096] Judge whether the pre-stored adaptation solution corresponding to the model number is included in the adaptation information library;

[0097] If not, enter the step of obtaining the hardware adaptation solution according to the model number;

[0098] If so, retrieve the pre-stored adaptation solution as the target adaptation solution.

[0099] If the pre-stored adaptation solution corresponding to the model number is included in the adaptation information library, there is no need to generate the target adaptation solution, and directly retrieve the pre-stored adaptation solution as the target adaptation solution. If the pre-stored adaptation solution corresponding to the model number is not included in the adaptation information library, then enter step S12 to obtain the hardware adaptation solution according to the model number.

[0100] According to the above embodiments, this embodiment provides a preferred solution for generating a preset modular function set. The steps for generating the preset modular function set are as follows:

[0101] Obtain the hardware adaptation solutions recorded in the hardware adaptation solution table;

[0102] Split the functions of the hardware adaptation solution to obtain basic functions;

[0103] Write the basic functions into a preset modular function set.

[0104] Obtain the hardware adaptation solutions recorded in the hardware adaptation solution table, that is, all the hardware adaptation solutions corresponding to the hardware devices of different models. Split the functions of the hardware adaptation solution to obtain basic functions. For example, split out the sas card information acquisition function, the read card information acquisition function, and the various functions of the pmc backplane disk mounting solution, etc.; write the basic functions into a preset modular function set. When calling the hardware adaptation solution, obtain the target hardware adaptation solution adapted to the model number from the hardware adaptation solution table according to the model number, and then sequentially call the corresponding functions from the preset modular function set according to the target hardware adaptation solution.

[0105] In the above embodiments, the self-adaptation method of the system management software is described in detail. The present application also provides embodiments corresponding to the self-adaptation device of the system management software. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is from the perspective of functional modules, and the other is from the perspective of hardware.

[0106] Figure 2 For another schematic diagram of the self-adaptation device of the system management software provided by the embodiments of the present application, as Figure 2 shown, the self-adaptation device of the system management software includes:

[0107] The first acquisition module 21 is used to acquire the model number of the hardware device;

[0108] The second acquisition module 22 is used to acquire the target hardware adaptation solution corresponding to the model number;

[0109] The third acquisition module 23 is used to acquire the corresponding solution hardware execution command according to the model number and the target hardware adaptation solution;

[0110] The fourth acquisition module 24 is used to acquire the corresponding target adaptation solution function from the preset modular function set according to the target hardware adaptation solution, where the preset modular function set is a set of basic functions when the hardware device function is executed;

[0111] The generation module 25 is used to generate a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command.

[0112] Specifically, the first acquisition module 21 acquires the model number of the hardware device, the second acquisition module 22 acquires the target hardware adaptation solution corresponding to the model number, the third acquisition module 23 acquires the corresponding solution hardware execution command according to the model number and the target hardware adaptation solution, and the fourth acquisition module 24 acquires the corresponding target adaptation solution function from the preset modular function set according to the target hardware adaptation solution. The preset modular function set is a set of basic functions when the hardware device function is executed. The generation module 25 generates a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command. By modularizing the basic functions in advance when the hardware device function is executed and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation solution functions. The standardized design will greatly simplify the code, reduce the code redundancy, and save a large amount of data in the database to facilitate data maintenance.

[0113] Since the embodiments in the device part correspond to the embodiments in the method part, please refer to the description of the embodiments in the method part for the embodiments in the device part, which will not be elaborated here for the time being.

[0114] Figure 3 The following is a structural diagram of another system management software self-adaptation device provided by the embodiments of the present application. As Figure 3 shown, the system management software self-adaptation device includes: a memory 30 for storing a computer program;

[0115] a processor 31 for implementing the steps of the method for acquiring user operation habit information as described in the above embodiments (system management software self-adaptation method) when executing the computer program.

[0116] The system management software self-adaptation device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer, etc.

[0117] Among them, the processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 31 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 31 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 31 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computing operations related to machine learning.

[0118] The memory 30 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 30 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 30 is at least used to store the following computer program 301. After the computer program is loaded and executed by the processor 31, it can implement the relevant steps of the system management software self-adaptation method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may further include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 302 may include Windows, Unix, Linux, etc. The data 303 may include, but is not limited to, the data involved in implementing the system management software self-adaptation method.

[0119] In some embodiments, the system management software self-adaptation device may further include a display screen 32, an input / output interface 33, a communication interface 34, a power supply 35, and a communication bus 36.

[0120] Those skilled in the art can understand that Figure 3 the structure shown in

[0121] The system management software self-adaptation device provided by the embodiments of the present application includes a memory and a processor. When the processor executes the program stored in the memory, the following method can be implemented: the system management software self-adaptation method, obtaining the machine model of the hardware device; obtaining the target hardware adaptation scheme corresponding to the machine model; obtaining the corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme; obtaining the corresponding target adaptation scheme function from the preset modular function set according to the target hardware adaptation scheme, where the preset modular function set is a set of basic functions when the hardware device function is executed; generating a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command. By modularizing the basic functions when the hardware device function is executed in advance and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation scheme functions. The standardized design will greatly simplify the code and reduce the code redundancy. A large amount of data is saved to the database to facilitate data maintenance.

[0122] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps recorded in the above-mentioned system management software self-adaptation method embodiment are implemented.

[0123] It can be understood that if the method in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.

[0124] The computer-readable storage medium provided by this embodiment stores a computer program. When the processor executes this program, the following method can be implemented: a system management software self-adaptation method, which obtains the machine model of a hardware device; obtains the target hardware adaptation solution corresponding to the machine model; obtains the corresponding solution hardware execution command according to the machine model and the target hardware adaptation solution; obtains the corresponding target adaptation solution function from a preset modular function set according to the target hardware adaptation solution, where the preset modular function set is a set of basic functions when the hardware device function is executed; and generates a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command. By modularizing the basic functions in advance when the hardware device function is executed and writing them into the preset modular function set, for different hardware devices, different modular basic functions are called from the preset modular function set as the target adaptation solution functions. The standardized design will greatly simplify the code, reduce the code redundancy, and save a large amount of data to the database for convenient data maintenance.

[0125] The above has introduced in detail the system management software self-adaptation method, device and medium provided by this application. Each embodiment in the specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among 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. For the relevant parts, please refer to the description in the method part. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0126] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the said element.

Claims

1. A method for self - adaptation of system management software, characterized in that, It includes: Obtain the model number of the hardware device; Obtain the target hardware adaptation scheme corresponding to the model number; Obtain the corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme; According to the target hardware adaptation scheme, obtain the corresponding target adaptation scheme function from the preset modular function set, where the preset modular function set is a set of basic functions when the hardware device function is executed; Generate a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command.

2. The system management software self-adaptation method according to claim 1, wherein Before obtaining the model number of the hardware device, it further includes: Establish a model table, a hardware adaptation scheme table, a hardware command table, and a hardware information cache table; wherein, the model table, the hardware adaptation scheme table, and the hardware command table are associated with each other's information according to a unique identifier; Correspondingly, obtaining the model number of the hardware device includes: obtaining the corresponding model number from the model table according to the node information of the hardware device; Correspondingly, obtaining the target hardware adaptation scheme corresponding to the model number includes: obtaining the corresponding target hardware adaptation scheme from the hardware adaptation scheme table associated with the model table according to the unique identifier; Correspondingly, obtaining the corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme includes: obtaining the corresponding scheme hardware execution command from the hardware command table associated with the hardware adaptation scheme table according to the unique identifier.

3. The system management software self-adaptation method according to claim 2, characterized in that Before establishing the model table, the hardware adaptation scheme table, the hardware command table, and the hardware information cache table, it further includes: Set a model configuration interface, a hardware adaptation scheme configuration interface, a hardware command configuration interface, and a hardware information cache configuration interface; Set the node information and the model information through the model configuration interface, and write the node information and the model information into the model table; Set the hardware adaptation scheme through the hardware adaptation scheme configuration interface, and write the hardware adaptation scheme into the hardware adaptation scheme table; Set the hardware function command through the hardware command configuration interface, and write the hardware function command into the hardware command table.

4. The system management software self-adaptation method according to claim 3, characterized in that, After generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command, it further includes: Write the target adaptation scheme into the hardware information cache table; Control each business module to obtain relevant execution information from the hardware information cache table; Control each business module to run the business according to the relevant execution information; Save the business operation result to the hardware information cache table and display it on the hardware information cache configuration interface.

5. The system management software self-adaptation method according to claim 1, characterized in that After generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command, it further includes: Write the target adaptation scheme into the adaptation information library.

6. The system management software self-adaptation method according to claim 5, characterized in that After obtaining the model number of the hardware device, it further includes: Judge whether the pre-stored adaptation scheme corresponding to the model number is included in the adaptation information library; If not, enter the step of obtaining the hardware adaptation scheme according to the model number; If so, retrieve the pre-stored adaptation scheme as the target adaptation scheme.

7. The system management software self-adaptation method according to claim 2, characterized in that The steps for generating the preset modular function set are as follows: Obtain the hardware adaptation solution recorded in the hardware adaptation solution table; Split the functions of the hardware adaptation solution to obtain basic functions; Write the basic functions into the preset modular function set.

8. A system management software self-adaptation device, characterized in that It includes: A first acquisition module, configured to acquire the model number of a hardware device; A second acquisition module, configured to acquire a target hardware adaptation solution corresponding to the model number; A third acquisition module, configured to acquire a corresponding solution hardware execution command according to the model number and the target hardware adaptation solution; A fourth acquisition module, configured to acquire a corresponding target adaptation solution function from a preset modular function set according to the target hardware adaptation solution, where the preset modular function set is a set of basic functions when the functions of the hardware device are executed; A generation module, configured to generate a target adaptation solution according to the target adaptation solution function and the parameters of the solution hardware execution command.

9. A system management software self-adaptation device, characterized in that It includes: A memory, configured to store a computer program; A processor, configured to implement the steps of the system management software self-adaptation method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the system management software self-adaptation method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Cloud adaptive processing method and device, terminal, and cloud server

    CN105812433A

  • Hardware compatibility knowledge base construction method

    CN110716873A