CN115145634A - System management software self-adaption method, device and medium - Google Patents

System management software self-adaption method, device and medium Download PDF

Info

Publication number
CN115145634A
CN115145634A CN202210891131.8A CN202210891131A CN115145634A CN 115145634 A CN115145634 A CN 115145634A CN 202210891131 A CN202210891131 A CN 202210891131A CN 115145634 A CN115145634 A CN 115145634A
Authority
CN
China
Prior art keywords
hardware
scheme
adaptation scheme
target
adaptation
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
CN202210891131.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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202210891131.8A priority Critical patent/CN115145634A/en
Publication of CN115145634A publication Critical patent/CN115145634A/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/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a system management software self-adaption method, a device and a medium, relates to the technical field of computer application, and solves the problem of time and labor consumption in software adaption debugging by changing a bottom layer code, obtains a target hardware adaption scheme corresponding to the machine type and the machine type number of hardware equipment and a corresponding scheme hardware execution command, obtains a corresponding target adaption scheme function from a preset modularized function set according to the target hardware adaption scheme, and generates a target adaption scheme according to the target adaption scheme function and parameters of the scheme hardware execution command. According to the method and the device, the basic functions during the function execution of the hardware equipment are modularized in advance, the preset modularized function sets are written, different modularized basic functions are called from the preset modularized function sets to serve as target adaptation scheme functions aiming at different hardware equipment, codes can be simplified in a large number due to standardized design, code redundancy is reduced, a large amount of data are stored in a database, and data maintenance is facilitated.

Description

System management software self-adaption method, device and medium
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method, an apparatus, and a medium for system management software self-adaptation.
Background
At present, the market continuously develops towards the development direction of customized requirements of customers, so that the types of the machine types of the servers are more and more, and the equipment information and the operation commands of different machine types are different, so that each time system software meets machines of different machine types or different configurations, even if only one simple command needs to be modified, the storage system needs to be comprehensively adapted, debugged and released from the bottommost code, and time and labor are consumed; meanwhile, if the system software is adapted, developed and sent to the site once, if the conditions that the configuration needs to be changed or the disks of different models need to be used and the like are met in the later stage of the site, the system cannot automatically identify the new configuration or the new components to cause the problem of server management, at this time, targeted bottom layer adaptation debugging needs to be carried out on the new equipment or the new configuration, and even if only one hardware query command is modified, the bottom layer code adaptation modification needs to be carried out.
Therefore, adaptive debugging is realized by changing the bottom layer code, time and labor are consumed, and meanwhile, the redundancy of the bottom layer code is continuously increased.
Therefore, it is an urgent technical problem to be solved by those skilled in the art to provide a scheme for enabling system software to be self-adaptive according to a hardware environment.
Disclosure of Invention
The application aims to provide a system management software self-adapting method which enables system software to be self-adapted according to hardware environment.
In order to solve the above technical problem, the present application provides a system management software self-adapting method, including:
acquiring the model number of the hardware equipment;
acquiring a target hardware adaptation scheme corresponding to the model number;
acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme;
acquiring a corresponding target adaptation scheme function from a preset modular function set according to the target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed;
and generating a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command.
Preferably, in the foregoing method for self-adapting system management software, before obtaining the model number of the hardware device, the method further includes:
establishing a machine type table, a hardware adaptation scheme table, a hardware command table and a hardware information cache table; the machine type table, the hardware adaptation scheme table and the hardware command table are associated with each other according to unique identification;
correspondingly, the obtaining of the model number of the hardware device includes: acquiring the corresponding model number from the model table according to the node information of the hardware equipment;
correspondingly, the obtaining of the target hardware adaptation scheme corresponding to the model number includes: acquiring the corresponding target hardware adaptation scheme from the hardware adaptation scheme table associated with the model table according to the unique identifier;
correspondingly, the obtaining of the corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme includes: and acquiring a corresponding scheme hardware execution command from the hardware command table associated with the hardware adaptation scheme table according to the unique identifier.
Preferably, in the foregoing method for self-adapting system management software, before the creating a model table, a hardware adaptation scheme table, a hardware command table, and a hardware information cache table, the method further includes:
setting a machine type configuration interface, a hardware adaptation scheme configuration interface, a hardware command configuration interface and a hardware information caching configuration interface;
setting node information and model information through the model configuration interface, and writing the node information and the model information into the model table;
setting a hardware adaptation scheme through the hardware adaptation scheme configuration interface, and writing the hardware adaptation scheme into the hardware adaptation scheme table;
and setting a hardware function command through the hardware command configuration interface, and writing the hardware function command into the hardware command table.
Preferably, in the foregoing method for self-adapting system management software, after generating a target adaptation scheme according to the target adaptation scheme function and the parameter of the scheme hardware execution command, the method further includes:
writing the target adaptation scheme into the hardware information cache table;
controlling each service module to acquire relevant execution information from the hardware information cache table;
controlling each service module to run service according to the relevant execution information;
and displaying the service operation result on the hardware information cache configuration interface.
Preferably, in the foregoing method for self-adapting system management software, after generating a target adaptation scheme according to the target adaptation scheme function and the parameter of the scheme hardware execution command, the method further includes:
and writing the target adaptation scheme into an adaptation information base.
Preferably, in the above method for self-adapting system management software, after obtaining the model number of the hardware device, the method further includes:
judging whether the adaptation information base comprises a pre-stored adaptation scheme corresponding to the machine model;
if not, entering the step of acquiring a hardware adaptation scheme according to the model number;
if so, calling the pre-stored adaptation scheme as the target adaptation scheme.
Preferably, in the above method for self-adapting system management software, the step of generating the preset modular function set includes:
acquiring the hardware adaptation scheme recorded in the hardware adaptation scheme table;
splitting the function of the hardware adaptation scheme to obtain a basic function;
and writing the basic function into the preset modularized function set.
In order to solve the above technical problem, the present application further provides a system management software self-adapting device, including:
the first acquisition module is used for acquiring the model number of the hardware equipment;
the second acquisition module is used for acquiring a target hardware adaptation scheme corresponding to the model number;
a third obtaining module, configured to obtain a corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme;
a fourth obtaining module, configured to obtain a corresponding target adaptation scheme function from a preset modular function set according to the target hardware adaptation scheme, where the preset modular function set is a set of basic functions when a hardware device function is executed;
and the generating module is used for generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command.
In order to solve the above technical problem, the present application further provides a system management software self-adapting device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the system management software self-adaption method when the computer program is executed.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above system management software self-adapting method.
The system management software self-adaption method provided by the application acquires the model number of hardware equipment; acquiring a target hardware adaptation scheme corresponding to the model number; acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme; acquiring a corresponding target adaptation scheme function from a preset modular function set according to a target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed; and generating a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command. According to the method and the device, the basic functions during the function execution of the hardware equipment are modularized in advance, the preset modularized function sets are written, different modularized basic functions are called from the preset modularized function sets to serve as target adaptation scheme functions aiming at different hardware equipment, codes can be simplified in a large number due to modularized design, code redundancy is reduced, a large amount of data are stored in a database, and data maintenance is facilitated.
In addition, the application also provides a device and a medium, which comprise the self-adaption method of the system management software, and the effects are the same as the above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a system management software self-adapting method according to an embodiment of the present application;
fig. 2 is a schematic diagram of another system management software self-adapting device according to an embodiment of the present application;
fig. 3 is a block diagram of another system management software self-adapting device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a system management software self-adaption method, device and medium.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
In the current market, the model types of servers are developing towards the direction of development of customized customer requirements, and due to differences between different model types of equipment information and operation commands, even if the same system management software is installed, the software configuration needs to be adapted to the hardware equipment. This results in time and effort consuming and requiring a complete adaptation and debugging of the storage system from the lowest level of code, even if a simple command is modified each time a different model or differently configured machine is encountered. In addition, new code is often generated for the operating system. For example, application code applied to the operating system, code applied to operating system components of the operating system, code used to update system software in the operating system, and so forth, may be developed. In order to ensure that the newly generated code can operate normally at a later stage, after the new code is developed, the code file needs to be adapted first. Meanwhile, if the system software is adapted, developed and sent to the site once, if the conditions that the configuration needs to be changed or the disks of different models need to be used and the like are met in the later stage of the site, the system cannot automatically identify the new configuration or the new components to cause the problem of server management, at this time, targeted bottom layer adaptation debugging needs to be carried out on the new equipment or the new configuration, and even if only one hardware query command is modified, the bottom layer code adaptation modification needs to be carried out. The current model adaptation mode is time-consuming and labor-consuming, and meanwhile, the redundancy of the underlying codes is also continuously increased. The method and the device can be applied to the scene of hardware equipment needing to install system management software. The invention is not limited to the form of hardware equipment, and can be a smart phone, a tablet computer, a notebook computer or a desktop computer and the like.
Therefore, in order to solve the above problem, an embodiment of the present invention provides a system management software self-adapting method, and fig. 1 is a flowchart of the system management software self-adapting method provided by the embodiment of the present invention, as shown in fig. 1, including:
s11: acquiring the model number of the hardware equipment;
s12: acquiring a target hardware adaptation scheme corresponding to the model number;
s13: acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme;
s14: acquiring a corresponding target adaptation scheme function from a preset modular function set according to a target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed;
s15: and generating a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command.
Step S11 obtains the model number of the hardware device, that is, obtains the model number of the hardware device installed in the current system management software, and step S12 obtains the target hardware adaptation scheme according to the model number obtained in step S11, that is, which functions need to be executed and which operation schemes need to be implemented in the model. And for each target hardware adaptation scheme, the target hardware adaptation scheme consists of one or more basic functions.
The preset modular function set mentioned in this embodiment is a basic function set executed by a function of a hardware device, and means that a basic function of an adaptation scheme of hardware devices of different models is split in advance, for example, a Serial Attached SCSI (SAS) Card information acquisition function, a read (read) Card information acquisition function, a peripheral component interface Mezzanine Card (PMC) backplane carries each function of a disk scheme, and the like.
In the embodiment, basic functions of an adaptation scheme are split, each basic function is modularized, for example, a preset modularized function set includes A, B, C, D four basic functions, a target hardware adaptation scheme acquired according to a model number in step S12 only involves A, C, D three basic functions, and a step S14 acquires corresponding A, C, D three basic functions from a preset modularized function set according to a target hardware adaptation scheme, that is, a target adaptation scheme function of a hardware adaptation scheme corresponding to the model number. If the target hardware adaptation scheme obtained according to the model number only involves B, C two basic functions, step S14 may obtain corresponding B, C two basic functions from a preset modular function set according to the hardware adaptation scheme as the target adaptation scheme function of the hardware adaptation scheme corresponding to the model number.
In this embodiment, in step S13, a corresponding solution hardware execution command is obtained according to the machine model and the hardware adaptation scheme, different functions need to use different command information correspondingly, different machine models may need to use different command information, and a solution hardware execution command corresponding to the machine model and the hardware adaptation scheme needs to be obtained.
The scheme hardware execution command is used as a parameter, and a target adaptation scheme function is called, so that a target adaptation scheme of the hardware equipment can be generated.
The self-adaption method of the system management software obtains the model number of the hardware equipment; acquiring a target hardware adaptation scheme corresponding to the model number; acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme; acquiring a corresponding target adaptation scheme function from a preset modular function set according to a target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed; and generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command. According to the method and the device, the basic functions during the function execution of the hardware equipment are modularized in advance, the preset modularized function sets are written, different modularized basic functions are called from the preset modularized function sets to serve as target adaptation scheme functions aiming at different hardware equipment, codes can be simplified in a large number due to standardized design, code redundancy is reduced, a large amount of data are stored in a database, and data maintenance is facilitated.
According to the foregoing embodiment, this embodiment provides a preferable scheme, before obtaining the model number of the hardware device, further including:
establishing a machine type table, a hardware adaptation scheme table, a hardware command table and a hardware information cache table; the system comprises a machine type table, a hardware adaptation scheme table and a hardware command table, wherein the information correlation among the tables is carried out according to a unique identifier;
correspondingly, obtaining the model number of the hardware device includes: acquiring a corresponding model number from a model table according to the node information of the hardware equipment;
correspondingly, the method for acquiring the target hardware adaptation scheme corresponding to the model comprises the following steps: acquiring a corresponding target hardware adaptation scheme from a hardware adaptation scheme table associated with the model table according to the unique identifier;
correspondingly, acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme, wherein the method comprises the following steps: and acquiring a corresponding scheme hardware execution command from a hardware command table associated with the hardware adaptation scheme table according to the unique identifier.
The model table mentioned in the embodiment of the present application records each node device and its model number in the current system cluster, the hardware adaptation scheme table records the adaptation scheme corresponding to the model number of each type, these adaptation schemes are already set and completed according to the product characteristics when the hardware device is produced, the hardware command table mentioned in this embodiment stores different function corresponding use different command information, and the model table, the hardware adaptation scheme table, and the hardware command table perform information association between tables according to the unique identifier, for example, enable flag enable. The association is performed through the unique identifier, and the information recorded in one table can be associated to other database tables.
The hardware information cache table mentioned in this embodiment refers to a database table that records related data when the system management software is running.
Preferably, the model number is obtained from a model table according to the node information of the current hardware equipment; acquiring a corresponding target hardware adaptation scheme from a hardware adaptation scheme table associated with the model table according to the unique identifier; and acquiring a corresponding scheme hardware execution command from a hardware command table associated with the hardware adaptation scheme table according to the unique identifier. Acquiring a corresponding target adaptation scheme function from a preset modular function set according to a target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed; and generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command. The application facilitates query and calling of data through establishing a related database table, the basic functions included by the adaptation scheme are modularized in advance, the preset modularized function set is written, different modularized basic functions are called from the preset modularized function set to serve as target adaptation scheme functions aiming at different hardware devices, codes can be simplified in a large number through standardized design, code redundancy is reduced, a large amount of data are stored in the database, and data are maintained conveniently.
According to the above embodiment, in order to facilitate timely management and setting, this embodiment provides a preferred scheme, before establishing the model table, the hardware adaptation scheme table, the hardware command table, and the hardware information cache table, the method further includes:
setting a machine type configuration interface, a hardware adaptation scheme configuration interface, a hardware command configuration interface and a hardware information caching configuration interface;
setting node information and model information through a model configuration interface, and writing the node information and the model information into a model table;
setting a hardware adaptation scheme through a hardware adaptation scheme configuration interface, and writing the hardware adaptation scheme into a hardware adaptation scheme table;
and setting a hardware function command through a hardware command configuration interface, and writing the hardware function command into a hardware command table.
The model configuration interface, the hardware adaptation scheme configuration interface, the hardware command configuration interface, and the hardware information cache configuration interface mentioned in this embodiment are respectively used to configure a model table, a hardware adaptation scheme table, a hardware command table, and a hardware information cache table.
For example, the user may manually input the node information and the model information on the model configuration interface to perfect the model table, or may obtain the configuration from fru. The hardware adaptation scheme can be manually configured, and can also be selected according to the alternative schemes in the database and stored in the hardware adaptation scheme table. The hardware function command can be manually configured, or the existing command can be selected from the database table for configuration and stored in the hardware command table. Therefore, the configuration of the preset database table is realized, and the query and the calling of the data are facilitated.
For the above-mentioned hardware information cache table, this embodiment provides an application scheme, and after generating a target adaptation scheme according to a target adaptation scheme function and a parameter of a scheme hardware execution command, the method further includes:
writing the target adaptation scheme into a hardware information cache table;
controlling each service module to acquire relevant execution information from the hardware information cache table;
controlling each service module to run the service according to the relevant execution information;
and storing the service operation result to a hardware information cache table and displaying the service operation result on a hardware information cache configuration interface.
After the target adaptation scheme is obtained, the adaptation scheme needs to be trained, the target adaptation scheme is written into a hardware information cache table which serves as a cache region, each service module is controlled to obtain relevant execution information from the hardware information cache table, a service is operated according to the relevant execution information, finally, a service operation result is stored in the hardware information cache table and displayed on a hardware information cache configuration interface, and the service operation result can also serve as a data source of other service modules.
Preferably, the service operation result of each service module is obtained at regular time, stored in the hardware information cache table and displayed on the hardware information cache configuration interface.
The user can use the interface operation to change the model adaptation of the point after adjusting the hardware equipment according to the service operation result displayed by the hardware information cache configuration interface, so that the system becomes flexible and convenient, the model adaptation is carried out through the interface operation, the hardware adaptation, debugging and version sending work of a large number of code layers from the bottommost layer at each time is saved, and a large amount of manpower and material resources are saved.
According to the above embodiments, each time the adaptive scheme is produced, it is possible to adapt to the same in other subsequent scenarios, and in order to reduce the complexity of work, the present embodiment provides a preferable scheme, and after the target adaptive scheme is generated according to the target adaptive scheme function and the parameter of the scheme hardware execution command, the method further includes:
and writing the target adaptation scheme into an adaptation information base.
And writing the target adaptation scheme generated each time into an adaptation information base so as to facilitate subsequent direct calling and improve the efficiency of software adaptation.
Therefore, preferably, after obtaining the model number of the hardware device, the method further includes:
judging whether the adaptation information base comprises a pre-stored adaptation scheme corresponding to the machine type number;
if not, the step of acquiring a hardware adaptation scheme according to the model number is carried out;
if yes, the pre-stored adaptation scheme is called as the target adaptation scheme.
If the adaptation information base comprises the pre-stored adaptation scheme corresponding to the machine type number, the generation of the target adaptation scheme is not needed, the pre-stored adaptation scheme is directly called to serve as the target adaptation scheme, and if the adaptation information base does not comprise the pre-stored adaptation scheme corresponding to the machine type number, the step S12 is carried out to obtain the hardware adaptation scheme according to the machine type number.
According to the foregoing embodiment, this embodiment provides a preferred scheme for generating a preset modular function set, where the step of generating the preset modular function set is:
acquiring a hardware adaptation scheme recorded in a hardware adaptation scheme table;
splitting a function of the hardware adaptation scheme to obtain a basic function;
and writing the basic function into a preset modularized function set.
Acquiring hardware adaptation schemes recorded in a hardware adaptation scheme table, namely all hardware adaptation schemes corresponding to different types of hardware equipment, splitting functions of the hardware adaptation schemes to obtain basic functions, such as splitting an sas card information acquisition function, a read card information acquisition function, functions of a pmc backboard carrying disk scheme and the like; writing the basic function into a preset modularized function set, acquiring a target hardware adaptation scheme adapted to the machine type number from a hardware adaptation scheme table according to the machine type number when calling the hardware adaptation scheme, and calling corresponding functions from the preset modularized function set in sequence according to the target hardware adaptation scheme.
In the foregoing embodiments, the system management software self-adapting method is described in detail, and the present application also provides embodiments corresponding to the system management software self-adapting device. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 2 is a schematic diagram of another system management software self-adapting device according to an embodiment of the present application, and as shown in fig. 2, the system management software self-adapting device includes:
a first obtaining module 21, configured to obtain a model number of a hardware device;
the second obtaining module 22 is configured to obtain a target hardware adaptation scheme corresponding to the model number;
a third obtaining module 23, configured to obtain a corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme;
a fourth obtaining module 24, configured to obtain a corresponding target adaptation scheme function from a 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 performs functions;
and a generating module 25, configured to generate the target adaptation scheme according to the target adaptation scheme function and the parameter of the scheme hardware execution command.
Specifically, the first obtaining module 21 obtains a machine model of the hardware device, the second obtaining module 22 obtains a target hardware adaptation scheme corresponding to the machine model, the third obtaining module 23 obtains a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme, the fourth obtaining module 24 obtains a corresponding target adaptation scheme function from a preset modular function set according to the target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware device functions are executed, and the generating module 25 generates the target adaptation scheme according to the target adaptation scheme function and parameters of the scheme hardware execution command. The basic functions when the functions of the hardware equipment are executed are modularized in advance, the preset modularized function sets are written, different modularized basic functions are called from the preset modularized function sets as target adaptation scheme functions aiming at different hardware equipment, a large number of codes can be simplified through standardized design, code redundancy is reduced, a large number of data are stored in a database, and data maintenance is facilitated.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 3 is a structural diagram of another system management software self-adapting device according to an embodiment of the present application, and as shown in fig. 3, the system management software self-adapting device includes: a memory 30 for storing a computer program;
and a processor 31, configured to implement the steps of the method for acquiring the user operation habit information according to the above-mentioned embodiment (system management software self-adapting method) when executing the computer program.
The system management software self-adapting device provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
The processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 31 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 31 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 31 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 31 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing the following computer program 301, wherein after being loaded and executed by the processor 31, the computer program 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 by the memory 30 may also include an operating system 302, data 303, and the like, and the storage may be transient storage or permanent storage. Operating system 302 may include Windows, unix, linux, etc. Data 303 may include, but is not limited to, data involved in implementing a system management software self-adaptation method, and the like.
In some embodiments, the system management software self-adapting device may further include a display screen 32, an input/output interface 33, a communication interface 34, a power source 35, and a communication bus 36.
Those skilled in the art will appreciate that the architecture shown in fig. 3 does not constitute a limitation of the system management software self-adapting means and may include more or fewer components than those shown.
The system management software self-adaption device provided by the embodiment of the application comprises a memory and a processor, and when the processor executes a program stored in the memory, the following method can be realized: the system management software self-adaption method is used for acquiring the model number of the hardware equipment; acquiring a target hardware adaptation scheme corresponding to the model number; acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme; acquiring a corresponding target adaptation scheme function from a preset modular function set according to a target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed; and generating a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command. According to the method and the device, the basic functions during the function execution of the hardware equipment are modularized in advance, the preset modularized function sets are written, different modularized basic functions are called from the preset modularized function sets to serve as target adaptation scheme functions aiming at different hardware equipment, codes can be simplified in a large number due to standardized design, code redundancy is reduced, a large amount of data are stored in a database, and data maintenance is facilitated.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program, when executed by the processor, implements the steps as described in the above embodiments of the system management software self-adapting method.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of: the system management software self-adaption method is used for acquiring the model number of the hardware equipment; acquiring a target hardware adaptation scheme corresponding to the model number; acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme; acquiring a corresponding target adaptation scheme function from a preset modular function set according to a target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed; and generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command. According to the method and the device, the basic functions during the function execution of the hardware equipment are modularized in advance, the preset modularized function sets are written in, different modularized basic functions are called from the preset modularized function sets as target adaptation scheme functions aiming at different hardware equipment, codes can be simplified greatly due to standardized design, the code redundancy is reduced, a large amount of data is stored in a database, and the data are maintained conveniently.
The system management software self-adapting method, device and medium provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and 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. It should be noted that, for those skilled in the art, without departing from the principle of the present application, the present application can also make several improvements and modifications, and those improvements and modifications also fall into the protection scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A system management software self-adapting method is characterized by comprising the following steps:
acquiring the model number of the hardware equipment;
acquiring a target hardware adaptation scheme corresponding to the model number;
acquiring a corresponding scheme hardware execution command according to the machine model and the target hardware adaptation scheme;
acquiring a corresponding target adaptation scheme function from a preset modular function set according to the target hardware adaptation scheme, wherein the preset modular function set is a set of basic functions when the hardware equipment functions are executed;
and generating a target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command.
2. The method for adapting system management software according to claim 1, wherein before obtaining the model number of the hardware device, the method further comprises:
establishing a machine type table, a hardware adaptation scheme table, a hardware command table and a hardware information cache table; the machine type table, the hardware adaptation scheme table and the hardware command table are associated with each other according to unique identification;
correspondingly, the obtaining of the model number of the hardware device includes: acquiring the corresponding model number from the model table according to the node information of the hardware equipment;
correspondingly, the obtaining of the target hardware adaptation scheme corresponding to the model number includes: acquiring the corresponding target hardware adaptation scheme from the hardware adaptation scheme table associated with the model table according to the unique identifier;
correspondingly, the obtaining of the corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme includes: and acquiring a corresponding scheme hardware execution command from the hardware command table associated with the hardware adaptation scheme table according to the unique identifier.
3. The method according to claim 2, wherein before the creating the model table, the hardware adaptation scheme table, the hardware command table, and the hardware information cache table, the method further comprises:
setting a machine type configuration interface, a hardware adaptation scheme configuration interface, a hardware command configuration interface and a hardware information caching configuration interface;
setting node information and model information through the model configuration interface, and writing the node information and the model information into the model table;
setting a hardware adaptation scheme through the hardware adaptation scheme configuration interface, and writing the hardware adaptation scheme into the hardware adaptation scheme table;
and setting a hardware function command through the hardware command configuration interface, and writing the hardware function command into the hardware command table.
4. The system management software self-adaptation method according to claim 3, wherein after generating the target adaptation scheme according to the target adaptation scheme function and the parameter of the scheme hardware execution command, the method further comprises:
writing the target adaptation scheme into the hardware information cache table;
controlling each service module to acquire relevant execution information from the hardware information cache table;
controlling each service module to run the service according to the related execution information;
and storing the service operation result to the hardware information cache table and displaying the service operation result on the hardware information cache configuration interface.
5. The system management software self-adaptation method according to claim 1, wherein after generating the target adaptation scheme according to the target adaptation scheme function and the parameter of the scheme hardware execution command, the method further comprises:
and writing the target adaptation scheme into an adaptation information base.
6. The method according to claim 5, further comprising, after obtaining the model number of the hardware device:
judging whether the adaptation information base comprises a pre-stored adaptation scheme corresponding to the machine model;
if not, entering the step of acquiring a hardware adaptation scheme according to the model number;
if so, calling the pre-stored adaptation scheme as the target adaptation scheme.
7. The system management software self-adapting method according to claim 2, wherein the generating step of the preset modular function set comprises:
acquiring the hardware adaptation scheme recorded in the hardware adaptation scheme table;
splitting a function of the hardware adaptation scheme to obtain a basic function;
writing the basic function into the preset modular function set.
8. A system management software self-adapting device, comprising:
the first acquisition module is used for acquiring the model number of the hardware equipment;
the second acquisition module is used for acquiring a target hardware adaptation scheme corresponding to the model number;
a third obtaining module, configured to obtain a corresponding scheme hardware execution command according to the model number and the target hardware adaptation scheme;
a fourth obtaining module, configured to obtain a corresponding target adaptation scheme function from a preset modular function set according to the target hardware adaptation scheme, where the preset modular function set is a set of basic functions when a hardware device function is executed;
and the generating module is used for generating the target adaptation scheme according to the target adaptation scheme function and the parameters of the scheme hardware execution command.
9. A system management software self-adapting device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the system management software self-adaptation method as claimed in any one of claims 1 to 7 when said computer program is executed.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the system management software self-adaptation method according to any one of claims 1 to 7.
CN202210891131.8A 2022-07-27 2022-07-27 System management software self-adaption method, device and medium Pending CN115145634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210891131.8A CN115145634A (en) 2022-07-27 2022-07-27 System management software self-adaption method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210891131.8A CN115145634A (en) 2022-07-27 2022-07-27 System management software self-adaption method, device and medium

Publications (1)

Publication Number Publication Date
CN115145634A true CN115145634A (en) 2022-10-04

Family

ID=83414341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210891131.8A Pending CN115145634A (en) 2022-07-27 2022-07-27 System management software self-adaption method, device and medium

Country Status (1)

Country Link
CN (1) CN115145634A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402496A (en) * 2023-06-08 2023-07-07 山东诚卓信息技术有限公司 Visual maintenance and control method and system for IT (information technology) assets

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402496A (en) * 2023-06-08 2023-07-07 山东诚卓信息技术有限公司 Visual maintenance and control method and system for IT (information technology) assets
CN116402496B (en) * 2023-06-08 2023-08-22 山东诚卓信息技术有限公司 Visual maintenance and control method and system for IT (information technology) assets

Similar Documents

Publication Publication Date Title
CN107491329B (en) Docker mirror image construction method, device, storage medium and electronic device
CN106293781B (en) The method and apparatus of online upgrading machine virtual machine
CN105045663A (en) Method and system for rapidly deploying virtual machine
CN111143039A (en) Virtual machine scheduling method and device and computer storage medium
CN110851307A (en) Method, system, terminal and storage medium for testing performance of hard disk in vibration environment
CN112084488A (en) Application authority management method, device and system
CN111176790A (en) Active maintenance method and device of cloud platform physical host and readable storage medium
CN115237436A (en) Application deployment method and device, electronic equipment and readable storage medium
CN115145634A (en) System management software self-adaption method, device and medium
CN114089889B (en) Model training method, device and storage medium
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN112732556A (en) Automatic testing method, device, equipment and storage medium for distributed system
CN103475521A (en) Method and device for deploying server
CN111124730B (en) Error positioning method and device of server and computer storage medium
CN110704241B (en) Method, device, equipment and medium for recovering file metadata
CN114138209A (en) OSD (on screen display) deploying method and device and computer readable storage medium
CN112114931B (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN114296882A (en) Method, device and medium for exporting memory snapshot of virtual machine
CN111858234A (en) Task execution method, device, equipment and medium
CN115470229B (en) Data table processing method and device, electronic equipment and storage medium
US20240134623A1 (en) Managing patched global assembly cache (gac) method for websites running in a .net framework environment
CN114936070A (en) Service rolling release method, device and medium based on container cluster scheduling technology
CN115509837A (en) BMC testing method, device and medium
CN117032734A (en) Software deployment method, device, equipment and medium
CN115618354A (en) Method, device, equipment and medium for reducing system upgrading risk

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