CN112242909B - Method and device for generating management template, electronic equipment and storage medium - Google Patents

Method and device for generating management template, electronic equipment and storage medium Download PDF

Info

Publication number
CN112242909B
CN112242909B CN201910641436.1A CN201910641436A CN112242909B CN 112242909 B CN112242909 B CN 112242909B CN 201910641436 A CN201910641436 A CN 201910641436A CN 112242909 B CN112242909 B CN 112242909B
Authority
CN
China
Prior art keywords
parameters
parameter
public
sub
template
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.)
Active
Application number
CN201910641436.1A
Other languages
Chinese (zh)
Other versions
CN112242909A (en
Inventor
陈晓帆
陈钊毅
古亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910641436.1A priority Critical patent/CN112242909B/en
Publication of CN112242909A publication Critical patent/CN112242909A/en
Application granted granted Critical
Publication of CN112242909B publication Critical patent/CN112242909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Abstract

The application discloses a method for generating a management template, which divides configuration parameters of newly added network equipment into two parts of public parameters and individual parameters (the public parameters are part parameters for realizing the same basic functions in different network equipment), and finally obtains the management template of the current network equipment based on integration of public sub-templates and individual sub-templates respectively corresponding to the public parameters and the individual parameters. Although different network devices are produced and provided by different manufacturers following different standards, the parameters of the network devices provided by the different manufacturers are consistent. Therefore, the scheme based on the realization principle can be automatically executed by means of computer programming, so that manual operation is avoided to a large extent, and the efficiency is higher, the error rate is lower, and the cost is lower. The application also discloses a generation device of the management template, electronic equipment and a computer readable storage medium, which have the beneficial effects.

Description

Method and device for generating management template, electronic equipment and storage medium
Technical Field
The present invention relates to the field of device management technologies, and in particular, to a method and apparatus for generating a management template, an electronic device, and a computer readable storage medium.
Background
With the expansion of enterprise scale and the increase of service users, more and more network devices are required for bearing services. Meanwhile, enterprises tend to commonly acquire the required network devices through multiple channels so as to prevent loss caused by the fact that the required network devices cannot be in place in time due to the fact that a certain supply end is broken.
After each newly added network device is purchased, the newly added network device is required to be accessed into a management system of an enterprise, so that the control and management of the accessed network device by an upper management system are realized. The access process needs to enter various functional parameters of newly added network equipment into a management system to form a management template (also called as management middleware) which is convenient for docking the management system, so that the management of the network equipment is realized through the management template instead of directly calling the drivers of the network equipment by the management system for management, because the variables, addresses, interfaces and the like used in the network equipment provided by different network equipment manufacturers are inconsistent in the realization process of the same function, and because no unified standard exists, each manufacturer is administrative.
On this basis, the controllers in the enterprise management system cannot be directly compatible with the drivers provided by different manufacturers for respective network devices, so that in order to realize the management of different network devices of the same type through one controller, the prior art provides a mode of managing templates.
However, due to the different configuration parameters of different network devices, the existing mode of forming the management template matched with each network device is that the actual parameters of the current network device are judged to correspond to the standard parameters in the management system according to personal experience of an operator through manual input of the operator, and a corresponding relation between the actual parameters and the standard parameters is established, so that the control instruction issued by an upper layer is finally converted into an actual driving understandable control instruction through conversion of the management template. It can be seen that in the process of implementing the method, the unstable factor of people is greatly utilized, and the process needs to be repeated every time when newly added network equipment is accessed, so that the labor cost is greatly increased, the error rate is high due to the factor of people, and the efficiency is low.
Therefore, how to overcome the above technical drawbacks as much as possible, and to provide a management template generating method with more science, lower cost, higher efficiency and lower error rate is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device, electronic equipment and a computer readable storage medium for generating a management template, which aim to enable the generation process of the management template to be more scientific, lower in cost, higher in efficiency and lower in error rate.
In order to achieve the above object, the present application provides a method for generating a management template, including:
sending a configuration parameter query instruction to newly-added network equipment, and receiving configuration parameters returned by the newly-added network equipment;
extracting public parameters and individual parameters from the configuration parameters; wherein the common parameter is a parameter existing in a plurality of network devices of the same type including the newly added network device;
generating a public sub-template according to the public parameters;
generating a personality sub-template according to the personality parameters;
and integrating the public sub-templates and the personal sub-templates to obtain a management template.
Optionally, extracting the public parameter and the personalized parameter from the configuration parameter includes:
taking the parameters matched with preset public parameter keywords in the configuration parameters as the public parameters; wherein the public parameter key words are extracted from a plurality of network devices with the same type;
and taking other parameters except the common parameters in the configuration parameters as the personality parameters.
Optionally, extracting the public parameter and the personalized parameter from the configuration parameter includes:
taking the parameters matched with preset public parameter keywords in the configuration parameters as the public parameters;
taking parameters matched with preset personal parameter keywords in the configuration parameters as personal public parameters;
wherein, the public parameter key words and the personality parameter key words are extracted from a plurality of network devices with the same type.
Optionally, the generating method further includes:
and when the actual drive of the newly-added network equipment is updated, the public parameter keywords and/or the personalized parameter keywords are adjusted according to the updated actual drive parameters.
Optionally, when the configuration parameters further include other parameters than the public parameters and the individual parameters obtained by matching the corresponding keywords, the configuration parameters further include:
sending an abnormal parameter prompt containing the other parameters through a preset path;
receiving other parameter classification instructions fed back through the preset path;
and taking the corresponding other parameters as supplementary public parameters or supplementary personalized parameters according to the other parameter classification instructions.
Optionally, sending, through a preset path, an abnormal parameter alert including the other parameters, including:
and sending the abnormal parameter prompt containing the other parameters to a top-level UI interface of the abnormal parameter processing terminal.
Optionally, generating a common sub-template according to the common parameter includes:
taking a unified variable used by an upper management system as a Key;
taking an actual variable which has the same function as the unified variable in the common parameter as Value;
expressing the Key and the Value in the form of Key Value pairs;
and summarizing each key value pair to obtain the common sub-template.
In order to achieve the above object, the present application further provides a device for generating a management template, where the device includes:
the instruction issuing and parameter receiving unit is used for sending a configuration parameter query instruction to the newly-added network equipment and receiving configuration parameters returned by the newly-added network equipment;
the public and individual parameter extraction unit is used for extracting public parameters and individual parameters from the configuration parameters; wherein the common parameter is a parameter existing in a plurality of network devices of the same type including the newly added network device;
the public sub-template generating unit is used for generating a public sub-template according to the public parameters;
a personal sub-template generating unit for generating a personal sub-template according to the personality parameters;
and the management template generating unit is used for integrating the public sub-templates and the individual sub-templates to obtain a management template.
Optionally, the public and personal parameter extraction unit includes:
a first public parameter obtaining subunit, configured to use a parameter matched with a preset public parameter keyword in the configuration parameters as the public parameter; wherein the public parameter key words are extracted from a plurality of network devices with the same type;
and the first acquisition subunit of the personality parameters is used for taking other parameters except the public parameters in the configuration parameters as the personality parameters.
Optionally, the public and personal parameter extraction unit includes:
a public parameter second obtaining subunit, configured to use a parameter matched with a preset public parameter keyword in the configuration parameters as the public parameter;
a second obtaining subunit of personality parameters, configured to use parameters matched with preset personality parameter keywords in the configuration parameters as personality public parameters;
wherein, the public parameter key words and the personality parameter key words are extracted from a plurality of network devices with the same type.
Optionally, the generating device of the management template further includes:
and the keyword adjustment unit is used for adjusting the public parameter keywords and/or the personalized parameter keywords according to the updated actual driving parameters when the actual driving of the newly-added network equipment is updated.
Optionally, the generating device of the management device further includes:
the abnormal parameter reminding unit is used for sending abnormal parameter reminding containing other parameters through a preset path when the configuration parameters also contain other parameters except the public parameters and the individual parameters which are obtained by matching corresponding keywords;
the classification instruction receiving unit is used for receiving other parameter classification instructions fed back through the preset path;
and the parameter supplementing unit is used for taking the corresponding other parameters as supplementing public parameters or supplementing individual parameters according to the other parameter classification instructions.
Optionally, the abnormal parameter reminding unit includes:
and the UI interface display subunit is used for sending the abnormal parameter prompt containing the other parameters to a top-level UI interface of the abnormal parameter processing terminal.
Optionally, the common sub-template generating unit includes:
a Key acquisition subunit, configured to use a unified variable used by the upper management system as a Key;
a Value obtaining subunit, configured to use, as a Value, an actual variable that has the same function as the unified variable in the common parameter;
a Key Value pair representation subunit, configured to represent the Key and the Value in a Key Value pair form;
and the public sub-template generation sub-unit is used for summarizing each key value pair to obtain the public sub-template.
To achieve the above object, the present application further provides an electronic device, including:
a memory for storing a computer program;
and a processor for implementing the method of generating a management template as described above when executing the computer program.
To achieve the above object, the present application further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of generating a management template as described in the above.
The application provides a method for generating a management template, which comprises the following steps: sending a configuration parameter query instruction to newly-added network equipment, and receiving configuration parameters returned by the newly-added network equipment; extracting public parameters and individual parameters from the configuration parameters; wherein the common parameter is a parameter existing in a plurality of network devices of the same type including the newly added network device; generating a public sub-template according to the public parameters; generating a personality sub-template according to the personality parameters; and integrating the public sub-templates and the personal sub-templates to obtain a management template.
Based on the prior art, the configuration parameters of the newly added network equipment are divided into two parts, namely public parameters and personality parameters (the public parameters are part parameters for realizing the same basic functions in different network equipment), and finally the management template of the current network equipment is integrated based on the public sub-templates and the personality sub-templates respectively corresponding to the public parameters and the personality parameters. Although different network devices are produced and provided by different manufacturers following different standards, the parameters of the network devices provided by the different manufacturers are consistent. Therefore, the scheme based on the realization principle can be automatically executed by means of computer programming, so that manual operation is avoided to a large extent, and the efficiency is higher, the error rate is lower, and the cost is lower.
The application also provides a device for generating the management template, an electronic device and a computer readable storage medium, which have the beneficial effects and are not described in detail herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a flowchart of a method for generating a management template according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for obtaining public parameters and individual parameters in a method for generating a management template according to an embodiment of the present application;
FIG. 3 is a flowchart of another method for obtaining a personalized parameter of a public parameter in the method for generating a management template according to the embodiment of the present application;
FIG. 4 is a flowchart of a method for generating a public template according to public parameters in the method for generating a management template according to an embodiment of the present application;
fig. 5 is a block diagram of a device for generating a management template according to an embodiment of the present application.
Detailed Description
The invention aims to provide a method, a device, electronic equipment and a computer readable storage medium for generating a management template, which aim to enable the generation process of the management template to be more scientific, lower in cost, higher in efficiency and lower in error rate.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Example 1
Referring to fig. 1, fig. 1 is a flowchart of a method for generating a management template according to an embodiment of the present application, which includes the following steps:
s101: sending a configuration parameter query instruction to the newly-added network equipment, and receiving configuration parameters returned by the newly-added network equipment;
this step aims at obtaining its configuration parameters from the newly added network device to be accessed to the management system, in order to facilitate the management templates automatically generated by the subsequent steps. In order to obtain the configuration parameters, the step first establishes a data connection with the newly added network device, and issues a configuration parameter query instruction (the configuration parameter query instruction is an instruction that can be resolved by the newly added network device) to the newly added network device through the data connection, so that the newly added network device returns its configuration parameters in response to the configuration parameter query instruction.
Specifically, there are various ways of establishing the data connection with the newly added network device, for example, the data connection may be directly established by the data communication protocol supported by the newly added network device, or the data connection may be transferred by a specially configured protocol conversion device or program under the condition that the data communication protocol supported by the newly added network device is not supported by the newly added network device. Furthermore, in some special application scenarios, a brand new network device may be required to actively search available interfaces around after the first power-on, and actively trigger a mechanism for sending its configuration parameters to the management system, so as to further increase the efficiency of acquiring the configuration parameters. Of course, in order to prevent the configuration parameters from being sent to the wrong interface, the verification information for verifying the target interface may also be preset in the network device by the manufacturer in advance, and any verification mechanism is not listed here.
S102: extracting public parameters and individual parameters from the configuration parameters;
on the basis of S101, this step aims at extracting common parameters and individual parameters from the received configuration parameters. Wherein the common parameter refers to a parameter having consistency existing in a different network device by a different manufacturer having the same basic function as the newly added network device and the newly added network device. It should be understood that, since they have the same basic functions and, although different manufacturers may implement the basic functions in different manners, they are all adjusted according to the characteristics of different manufacturers on the basis of the unchanged core principle, they must have parameters referring to the same functions or meanings, and this part of the parameters are common parameters described in the present application. The meaning of a personality parameter is exactly opposite in comparison to a common parameter, which refers to a part of the parameters that are owned by each network device alone, which is referred to herein as a personality parameter, since this part of the parameters can be used to highlight the "personality" of the corresponding network device.
In particular, how to extract the public parameters and the individual parameters from the configuration parameters is also various, for example, the same parts in different network device configuration parameters can be selected in advance according to some real samples, and keyword features or keyword features of the same parts can be obtained from the same parts, so that the keywords can be directly used for determining which of the actual configuration parameters are public parameters. In order that some parameters refer to the same function but do not have the same keywords or keywords, some other feature classification methods can be used to find common features hidden behind the surface layer, for example, the convolution layer and pooling layer specific to the convolutional neural network can perform deeper analysis on the features.
In any of the above modes, a corresponding extraction or discrimination rule can be made by combining with the actual situation on the basis of the criteria, so that the public parameters and the individual parameters can be selected and obtained by a mode of not only comprising consistency determination, for example, certain inconsistency is allowed (the degree of the allowed inconsistency is set), the discrimination result of the program is allowed to be artificially modified, and the like, and the method can be flexibly adjusted according to the complex actual situation.
It should be noted that, the matching method based on the keyword is more suitable for the common parameter with consistency, because the individual parameter is unique to different network devices, if the opposite side of the common parameter is obtained by comparing the parameters in different network devices by the keyword, the opposite side of the common parameter is also required to be compared with the configuration parameters of the network devices of the same manufacturer to confirm, and therefore, more analysis is required.
S103: generating a public sub-template according to the public parameters;
after the common parameters in the configuration parameters of the newly added network device are acquired, this step aims to generate a common sub-template according to the common parameters. It should be noted that, the common sub-template is a part of the management template in the present application, and is aimed at providing management of the basic functions corresponding to the common parameters for the management system, and for achieving the purpose of management, it is also required to achieve binding of the functions implemented by the common parameters of the newly added network device with the corresponding functions of the upper management system, so that the management instruction from the upper management system can trigger the actual operation of the newly added network device to execute the management instruction through the common sub-template part in the management template.
Specifically, there are various ways of implementing the binding of the two, for example, a one-to-one correspondence can be simply established, or the purpose can be indirectly achieved by using regular expressions to perform conversion and replacement, or the correspondence can be expressed by using a Key-Value (Key Value pair) specifically, and in this way, the characteristic of using the Key Value to the way itself is brought in addition.
S104: generating a personality sub-template according to the personality parameters;
in the same way as S103, this step only changes the object to the personality parameters, and the corresponding generated personality sub-templates will be used as another part of the management template, so as to implement management and control of the personality functions corresponding to the personality parameters by the management system.
It should be further noted that, when the public parameters and the individual parameters can be obtained separately and relatively independently in S103 and S104, the two steps are two parallel steps, and there is no fixed sequence, if the obtaining of the individual parameters needs to be established on the basis of the previous public parameters, the step of generating the individual sub-templates should be located after the public sub-templates under the condition of sequentially generating the sub-templates.
S105: and integrating the public sub-templates and the individual sub-templates to obtain the management template.
On the basis of S103 and S104, this step aims at obtaining a management template containing all configuration parameters of the newly added network device by integrating the common sub-template and the individual sub-template. The management template is an aggregate of a public sub-template and a personal sub-template, and can be understood as that the two sub-templates are packaged in one layer, so that the two sub-templates are externally (i.e. the management system) presented as one template, and the control instruction issued by the management system is internally implemented by reusing the public sub-template or the personal sub-template according to the target management operation.
In particular, the integration can use various related algorithms, and under the condition of not considering the cost, the algorithm which can be faster is used, so that the user cannot perceive the process, and the user experience is improved.
Based on the prior art, the configuration parameters of the newly added network equipment are divided into two parts, namely public parameters and personality parameters (the public parameters are part parameters for realizing the same basic functions in different network equipment), and finally the management template of the current network equipment is integrated based on the public sub-templates and the personality sub-templates respectively corresponding to the public parameters and the personality parameters. Although different network devices are produced and provided by different manufacturers following different standards, the parameters of the network devices provided by the different manufacturers are consistent. Therefore, the scheme based on the realization principle can be automatically executed by means of computer programming, so that manual operation is avoided to a large extent, and the efficiency is higher, the error rate is lower, and the cost is lower.
Meanwhile, when newly added network equipment is accessed to the management system, the scheme can be directly repeated to sequentially finish the generation of the public sub-templates and the individual sub-templates, and the corresponding management templates can be obtained quickly and conveniently.
Example two
Referring to fig. 2 and 3, fig. 2 is a flowchart of a method for obtaining a public parameter and a personal parameter in a method for generating a management template provided in an embodiment of the present application, and fig. 3 is a flowchart of another method for obtaining a public parameter and a personal parameter in a method for generating a management template provided in an embodiment of the present application, which aims to provide two specific and advantageous implementation manners for S102 on the basis of the first embodiment, so as to adapt to more practical application scenarios, and includes the following steps:
s201: taking parameters matched with preset public parameter keywords in the configuration parameters as public parameters;
wherein the common parameter key is extracted from a plurality of network devices of the same type. The types mentioned here are the same because they can satisfy the basic functions of the user, but they are developed by different manufacturers based on the respective standards, and thus are regarded as different network devices in the same type.
In particular, keyword extraction may be performed through various channels, for example, keyword extraction applications commonly used in the art may be directly used, but it is less effective because extraction is performed only from the surface layer based on consistency between characters; it is also possible to combine more advantageous feature classification algorithms and thus obtain corresponding keywords, i.e. find the different characters actually corresponding to the same meaning and use them as keywords.
S202: and taking other parameters except the public parameters in the configuration parameters as personality parameters.
On the basis of obtaining the public parameters in S201, this step directly classifies all other parameters except the public parameters in the configuration parameters as the individual parameters. The method can screen the public parameters and the individual parameters more simply, but if the public parameters and the individual parameters are not only present in the configuration parameters (such as messy codes or abnormal parameters caused by errors in the data transmission process), the individual parameters can contain some unknown or erroneous parameters, so that potential problems can be caused. The method is more suitable for network equipment with simpler functions and different parameter types.
Another implementation, as shown in fig. 3, is also provided herein, as compared to the simpler implementation shown in fig. 2:
s301: taking parameters matched with preset public parameter keywords in the configuration parameters as public parameters;
s302: and taking the parameters matched with the preset personal parameter keywords in the configuration parameters as personal public parameters.
Wherein, the public parameter key words and the individual parameter key words are extracted from a plurality of network devices with the same type.
Compared with fig. 2, fig. 3 provides a method for extracting public parameters and individual parameters by using different keywords, instead of simply classifying all configuration parameters into two types, which is more suitable for application scenarios with high requirements on recognition accuracy, although more generalized analysis is needed in the early stage.
Further, with the development of technology, the drivers of the network devices are updated continuously, and the update of the drivers may adjust and optimize the implementation process of the original functions, including adding new or deleting the existing partial functions, so that it is necessary to adjust the existing keywords by combining the configuration parameters of the new drivers after the drivers are adjusted, so as to maintain the validity and accuracy of the extracted common parameters and/or individual parameters.
Furthermore, when the configuration parameters also include other parameters besides the public parameters and the individual parameters obtained by matching the corresponding keywords, the configuration parameters can also send an abnormal parameter prompt including other parameters through a preset path, so that a manager who receives the abnormal parameter prompt can timely judge whether the abnormal parameters belong to the public parameters and the abnormal parameters according to own experience or with the help of a person seeking more professionals, or determine whether the abnormal parameters actually belong to the abnormal parameters, and return corresponding classification instructions according to classification results. And then, according to other parameter classification instructions fed back from the preset path, corresponding other parameters can be used as supplementary public parameters or supplementary individual parameters, and other parameters which are determined to belong to abnormal parameters can be processed in other suitable modes.
The preset path may be embodied as a mailbox, an IM-type instant messaging application, a short message, a popup window of a terminal display interface, and the like, and may further include an accompanying audible and visual reminder for highlighting. One specific way may be: and sending the abnormal parameter prompt containing other parameters to a top-level UI interface of the abnormal parameter processing terminal, so that a person operating the abnormal parameter processing terminal can judge the abnormal parameters displayed in the top-level UI interface by combining own experience or with the help of other people.
On the basis of the first embodiment, the embodiment provides two implementation schemes with different implementation difficulties and different accuracy of parameter class determination for the S102, and provides more and proper alternatives for all possible special requirements in a complex practical application scene.
Example III
Referring to fig. 4, fig. 4 is a flowchart of a method for generating a common template according to a common parameter in a method for generating a management template according to an embodiment of the present application, and on the basis of any of the foregoing embodiments, the embodiment provides a specific method for generating a common sub-template according to a common parameter for S103, which includes the following steps:
s401: taking a unified variable used by an upper management system as a Key;
s402: taking an actual variable which has the same function as the unified variable in the common parameter as Value;
s403: expressing Key and Value in the form of Key Value pairs;
s404: and summarizing the key value pairs to obtain a common sub-template.
According to the above steps, it can be seen that the common sub-template is a set of a plurality of Key-Value pairs, each Key-Value pair has a Key and a Value, in this embodiment, the Key is a unified variable used by the upper management system, and the Value corresponding to each Key is an actual variable in the common parameter that represents the same function as the unified variable. Therefore, the variables used by the upper management system and the variables used by the configuration parameters of the actual network equipment can be communicated through the constituted key value pairs, and the network equipment can execute corresponding operations according to the management instructions issued by the management system.
It should also be appreciated that, according to the solution of this embodiment, keys of common sub-templates in management templates of different network devices should be identical (i.e., an upper management system uses a unified set of variables), while Value may be different according to the manufacturer.
Because of the complexity and cannot be illustrated by one, those skilled in the art will recognize that many examples exist in accordance with the basic method principles provided herein in combination with actual situations, which are within the scope of the present application without significant inventive effort.
Example IV
Referring to fig. 5, fig. 5 is a block diagram of a management template generating apparatus according to an embodiment of the present application, where the apparatus may include:
the instruction issuing and parameter receiving unit 100 is configured to send a configuration parameter query instruction to the newly added network device, and receive a configuration parameter returned by the newly added network device;
a public and personal parameter extraction unit 200, configured to extract public parameters and personal parameters from the configuration parameters; wherein the common parameter is a parameter existing in a plurality of network devices of the same type including the newly added network device;
a common sub-template generating unit 300 for generating a common sub-template according to the common parameters;
a personality sub-template generating unit 400, configured to generate a personality sub-template according to personality parameters;
and a management template generating unit 500 for integrating the public sub-template and the personal sub-template to obtain a management template.
The public and personal parameter extraction unit 200 may include:
the first public parameter obtaining subunit is used for taking parameters matched with preset public parameter keywords in the configuration parameters as public parameters; wherein, the public parameter key words are extracted from a plurality of network devices with the same type;
the first acquisition subunit of the personality parameters is used for taking other parameters except the public parameters in the configuration parameters as personality parameters.
The public and personal parameter extraction unit 200 may include:
the public parameter second acquisition subunit is used for taking parameters matched with preset public parameter keywords in the configuration parameters as public parameters;
the second acquisition subunit of the personality parameters is used for taking parameters matched with preset personality parameter keywords in the configuration parameters as personality public parameters;
wherein, the public parameter key words and the individual parameter key words are extracted from a plurality of network devices with the same type.
Further, the generating device of the management template may further include:
and the keyword adjustment unit is used for adjusting the public parameter keywords and/or the personalized parameter keywords according to the updated parameters of the actual drive when the actual drive of the newly added network equipment is updated.
Further, the generating device of the management template may further include:
the abnormal parameter reminding unit is used for sending abnormal parameter reminding containing other parameters through a preset path when the configuration parameters also contain other parameters except the public parameters and the individual parameters which are obtained by matching the corresponding keywords;
the classification instruction receiving unit is used for receiving other parameter classification instructions fed back through a preset path;
and the parameter supplementing unit is used for taking the corresponding other parameters as supplementing public parameters or supplementing individual parameters according to the other parameter classification instructions.
The abnormal parameter reminding unit may include:
and the UI interface display subunit is used for sending the abnormal parameter prompt containing other parameters to the top-level UI interface of the abnormal parameter processing terminal.
Wherein, the common sub-template generating unit 300 may include:
a Key acquisition subunit, configured to use a unified variable used by the upper management system as a Key;
the Value obtaining subunit is used for taking the actual variable which has the same function as the unified variable in the common parameter as Value;
the Key Value pair representation subunit is used for representing the Key and the Value in the form of Key Value pairs;
and the public sub-template generation sub-unit is used for summarizing each key value pair to obtain a public sub-template.
The present embodiment exists as an embodiment of the apparatus corresponding to the above-described method embodiment, and has all the beneficial effects of the method embodiment, and the functions implemented by each unit will not be repeated.
Based on the above embodiment, the present application further provides an electronic device, where the electronic device may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided in the above embodiment when calling the computer program in the memory. Of course, the electronic device may also include various necessary network interfaces, power supplies, and other components, etc.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by an execution terminal or a processor, can implement the steps provided by the above embodiments. The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the principles of the application, which are intended to be covered by the appended claims.
It should also be noted that in this 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.

Claims (8)

1. A method for generating a management template, comprising:
sending a configuration parameter query instruction to newly-added network equipment, and receiving configuration parameters returned by the newly-added network equipment;
extracting public parameters and individual parameters from the configuration parameters; wherein the common parameter is a parameter existing in a plurality of network devices of the same type including the newly added network device;
generating a public sub-template according to the public parameters;
generating a personality sub-template according to the personality parameters;
integrating the public sub-templates and the personalized sub-templates to obtain a management template;
wherein, extracting public parameters and individual parameters from the configuration parameters comprises:
taking the parameters matched with preset public parameter keywords in the configuration parameters as the public parameters; wherein the public parameter key words are extracted from a plurality of network devices with the same type;
taking other parameters except the public parameters in the configuration parameters as the personality parameters; or alternatively, the first and second heat exchangers may be,
taking the parameters matched with preset public parameter keywords in the configuration parameters as the public parameters;
taking parameters matched with preset personal parameter keywords in the configuration parameters as personal parameters;
wherein, the public parameter key words and the personality parameter key words are extracted from a plurality of network devices with the same type.
2. The generating method according to claim 1, characterized by further comprising:
and when the actual drive of the newly-added network equipment is updated, the public parameter keywords and/or the personalized parameter keywords are adjusted according to the updated actual drive parameters.
3. The generating method according to claim 1, wherein when the configuration parameters further include other parameters than the common parameters and the individual parameters obtained by matching the corresponding keywords, the generating method further comprises:
sending an abnormal parameter prompt containing the other parameters through a preset path;
receiving other parameter classification instructions fed back through the preset path;
and taking the corresponding other parameters as supplementary public parameters or supplementary personalized parameters according to the other parameter classification instructions.
4. A method of generating as claimed in claim 3, wherein sending an abnormal parameter alert containing said other parameter through a preset path comprises:
and sending the abnormal parameter prompt containing the other parameters to a top-level UI interface of the abnormal parameter processing terminal.
5. The network device management template generation method according to any one of claims 1 to 4, wherein generating a common sub-template from the common parameters comprises:
taking a unified variable used by an upper management system as a Key;
taking an actual variable which has the same function as the unified variable in the common parameter as Value;
expressing the Key and the Value in the form of Key Value pairs;
and summarizing each key value pair to obtain the common sub-template.
6. A network device management template generation apparatus, comprising:
the instruction issuing and parameter receiving unit is used for sending a configuration parameter query instruction to the newly-added network equipment and receiving configuration parameters returned by the newly-added network equipment;
the public and individual parameter extraction unit is used for extracting public parameters and individual parameters from the configuration parameters; wherein the common parameter is a parameter existing in a plurality of network devices of the same type including the newly added network device;
the public sub-template generating unit is used for generating a public sub-template according to the public parameters;
a personal sub-template generating unit for generating a personal sub-template according to the personality parameters;
the management template generation unit is used for integrating the public sub-templates and the personalized sub-templates to obtain a management template;
wherein, public and individual parameter extraction element includes:
a first public parameter obtaining subunit, configured to use a parameter matched with a preset public parameter keyword in the configuration parameters as the public parameter; wherein the public parameter key words are extracted from a plurality of network devices with the same type;
a first obtaining subunit of personality parameters, configured to use other parameters in the configuration parameters except the public parameters as the personality parameters; or comprises:
a public parameter second obtaining subunit, configured to use a parameter matched with a preset public parameter keyword in the configuration parameters as the public parameter;
a second obtaining subunit of personality parameters, configured to use parameters matched with preset personality parameter keywords in the configuration parameters as personality parameters;
wherein, the public parameter key words and the personality parameter key words are extracted from a plurality of network devices with the same type.
7. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the method of generating a management template according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, which when executed by a processor implements the method of generating a management template according to any one of claims 1 to 5.
CN201910641436.1A 2019-07-16 2019-07-16 Method and device for generating management template, electronic equipment and storage medium Active CN112242909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910641436.1A CN112242909B (en) 2019-07-16 2019-07-16 Method and device for generating management template, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910641436.1A CN112242909B (en) 2019-07-16 2019-07-16 Method and device for generating management template, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112242909A CN112242909A (en) 2021-01-19
CN112242909B true CN112242909B (en) 2023-07-14

Family

ID=74167197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910641436.1A Active CN112242909B (en) 2019-07-16 2019-07-16 Method and device for generating management template, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112242909B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024065112A1 (en) * 2022-09-26 2024-04-04 华为技术有限公司 Packet conversion method and apparatus, and packet receiving method and apparatus
CN115904572B (en) * 2022-10-26 2023-07-28 北京力控元通科技有限公司 Template creation method, calling method, program product, system and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118887A (en) * 2010-01-05 2011-07-06 中兴通讯股份有限公司 Method, device and system for dynamically managing cell data
CN102984716A (en) * 2012-12-14 2013-03-20 大唐移动通信设备有限公司 Production method for ENB configuration file of TD-LTE system
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
CN109409793A (en) * 2018-09-27 2019-03-01 广东电网有限责任公司 A kind of management method and relevant apparatus of life period of an equipment
CN109471676A (en) * 2018-10-30 2019-03-15 中国建设银行股份有限公司 Parameter configuration processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118887A (en) * 2010-01-05 2011-07-06 中兴通讯股份有限公司 Method, device and system for dynamically managing cell data
CN102984716A (en) * 2012-12-14 2013-03-20 大唐移动通信设备有限公司 Production method for ENB configuration file of TD-LTE system
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
CN109409793A (en) * 2018-09-27 2019-03-01 广东电网有限责任公司 A kind of management method and relevant apparatus of life period of an equipment
CN109471676A (en) * 2018-10-30 2019-03-15 中国建设银行股份有限公司 Parameter configuration processing method and device

Also Published As

Publication number Publication date
CN112242909A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
US10601739B2 (en) Smart messaging for computer-implemented devices
CN109710236B (en) Service development and implementation method, device, platform and medium based on shared service
US11922094B2 (en) Database systems and methods for conversation-driven dynamic updates
JP2018525751A (en) Interactive control method and apparatus for voice and video calls
JPWO2015011867A1 (en) Information management method
CN110708358B (en) Session message processing method, electronic device and computer-readable storage medium
CN112242909B (en) Method and device for generating management template, electronic equipment and storage medium
CN112579891A (en) Cloud resource recommendation method and device, electronic terminal and storage medium
US20160112572A1 (en) Conference call management system
CN113556695B (en) Information interaction method and information interaction system based on 5G message
CN113807955A (en) Information auditing method and related equipment
KR102017541B1 (en) Method for processing request of user by using chatbot
CN1649299B (en) Comlex management system and complex conversation management server for applicating programme
US20230305527A1 (en) Method and apparatus for determining product manufacturing program, device and storage medium
JP2020140276A (en) Network requirement generation system, and network requirement generation method
CN113347062A (en) SIP performance test method, device, equipment and storage medium
CN112799744A (en) Calling method and device of industrial APP, computer readable medium and electronic equipment
CN112669000A (en) Government affair item processing method and device, electronic equipment and storage medium
US20230297957A1 (en) Telecommunication System
CN109189912A (en) The update method and device of user's consulting statement library
JP7444430B2 (en) Communication support server, communication support system, communication support method, and communication support program
CN117950822A (en) Task processing, resource registration, task updating method and electronic equipment
CN115187322A (en) Order processing method and device, electronic equipment and storage medium
CN115964556A (en) Content recommendation method, device, computer equipment and computer readable storage medium
CN116596690A (en) Account processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant