CN116578357A - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN116578357A
CN116578357A CN202310444183.5A CN202310444183A CN116578357A CN 116578357 A CN116578357 A CN 116578357A CN 202310444183 A CN202310444183 A CN 202310444183A CN 116578357 A CN116578357 A CN 116578357A
Authority
CN
China
Prior art keywords
configuration
information
target
edge node
attribute
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
CN202310444183.5A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202310444183.5A priority Critical patent/CN116578357A/en
Publication of CN116578357A publication Critical patent/CN116578357A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides an information processing method, an information processing device and electronic equipment, comprising the following steps: receiving first data; analyzing the first data to obtain attribute information and configuration template information, wherein the attribute information is an attribute for adjusting the configuration of target equipment, and the target equipment is equipment connected with the edge node; determining a first configuration template based on the configuration template information; modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file; and updating the configuration attribute of a monitoring module based on the target configuration file, wherein the monitoring module is used for monitoring the target equipment.

Description

Information processing method and device and electronic equipment
Technical Field
The present application relates to the field of information technologies, and in particular, to an information processing method, an information processing device, and an electronic device.
Background
In an edge computing environment, a cloud platform can manage numerous edge nodes, but lacks centralized and unified efficient monitoring management for newly added or existing devices such as switches, routers, cameras, air conditioners, etc. around the edge nodes. Thus, based on this state of the art, cloud platforms may require monitoring software or monitoring platforms for only certain specialty devices that integrate various different vendors and different solutions.
Because numerous peripheral devices are distributed on each business site of a customer, each node may not be connected with each other through a network, monitoring configuration of the peripheral devices on the distributed nodes is issued and updated, and staff is required to input various information related to configuration by aiming at the nodes needing to update the monitoring configuration, so that the input process is complex and the labor input amount is large.
Disclosure of Invention
In view of this, the present application provides an information processing method, apparatus, and electronic device, as follows:
an information processing method applied to an edge node, comprising:
receiving first data;
analyzing the first data to obtain attribute information and configuration template information, wherein the attribute information is an attribute for adjusting the configuration of target equipment, and the target equipment is equipment connected with the edge node;
determining a first configuration template based on the configuration template information;
modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
and updating the configuration attribute of a monitoring module based on the target configuration file, wherein the monitoring module is used for monitoring the target equipment.
Optionally, in the above method, the determining the first configuration template based on the configuration template identification information includes:
Analyzing the configuration template information to obtain protocol type information and configuration template identification, wherein the protocol type information characterizes the protocol type of the edge node matched with the target equipment;
and determining a first configuration template corresponding to the protocol type information and the configuration template identification in a preset template library.
Optionally, in the above method, the determining, in a preset template library, a first configuration template corresponding to the protocol type information and the configuration template identifier includes:
based on the protocol type being a first type, the determined first configuration template comprises a first configuration file, and the first configuration file comprises at least two preset configuration information corresponding to the first type;
based on the target running environment being of a second type, the determined first configuration template comprises a second configuration file and an associated file for performing monitoring, and the second configuration file comprises at least two preset configuration information corresponding to the second type.
Optionally, in the above method, the updating the configuration attribute of the monitoring module based on the target configuration file includes:
based on the protocol type being a first type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file so that the monitoring module operates based on the updated configuration attribute;
And based on the protocol type is a second type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file, so that the monitoring module starts to execute the association file after running based on the updated configuration attribute.
Optionally, the method further comprises:
obtaining device information of a first device based on the first device being connected to the edge node;
transmitting the device information to a cloud server, so that the cloud server determines a second configuration template based on the device information;
the second configuration template is received and stored.
Optionally, the method stores the second configuration template, including:
and adding a template identifier for the second configuration template based on a preset template identifier rule, and storing the second configuration template.
An information processing method applied to a cloud server comprises the following steps:
determining a target edge node corresponding to the attribute information based on the received attribute information, wherein the attribute information is information for changing configuration attributes of a monitoring module in the target edge node, and the monitoring module is used for monitoring target equipment connected with the target edge node;
Determining protocol type information of a monitoring module in the target edge node, wherein the protocol type information characterizes a protocol type matched with the target edge node and the target equipment;
determining a first configuration template based on the protocol type information;
generating first data based on the attribute information and the first configuration template;
and sending the first data to a target edge node so that the target edge node updates the configuration information of the monitoring module based on the first data.
An information processing apparatus, applied to an edge node, comprising:
the receiving module is used for receiving the first data;
the analyzing module is used for analyzing the first data to at least obtain attribute information and configuration template information, wherein the attribute information is an attribute for adjusting the configuration of target equipment, and the target equipment is equipment connected with the edge node;
a first determining module for determining a first configuration template based at least on the configuration template information;
the modification module is used for modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
and the updating module is used for updating the configuration attribute of the monitoring module based on the target configuration file, and the monitoring module is used for monitoring the target equipment.
An information processing apparatus applied to a cloud server, comprising:
the second determining module is used for determining a target edge node corresponding to the attribute information based on the received attribute information, wherein the attribute information is information for changing the configuration attribute of a monitoring module in the target edge node, and the monitoring module is used for monitoring target equipment connected with the target edge node;
a third determining module, configured to determine protocol type information of a monitoring module in the target edge node, where the protocol type information characterizes a protocol type of the target edge node matched with the target device;
a fourth determining module, configured to determine a first configuration template based on the protocol type information;
the generation module is used for generating first data based on the attribute information and the first configuration template;
and the sending module is used for sending the first data to a target edge node so that the target edge node updates the configuration information of the monitoring module based on the first data.
An electronic device, comprising: a memory, a processor;
wherein the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory, so as to implement the steps of the information processing method according to any one of the above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments 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 for a person skilled in the art.
FIG. 1 is a schematic diagram of an edge computing environment;
FIG. 2 is a flowchart of an embodiment 1 of an information processing method provided by the present application;
FIG. 3 is a flowchart of an embodiment 2 of an information processing method provided by the present application;
FIG. 4 is a flowchart of an embodiment 3 of an information processing method provided by the present application;
FIG. 5 is a flowchart of an embodiment 4 of an information processing method provided by the present application;
FIG. 6 is a flowchart of an embodiment 5 of an information processing method provided by the present application;
FIG. 7 is a flowchart of an embodiment 6 of an information processing method provided by the present application;
fig. 8 is a schematic structural view of an embodiment 1 of an information processing apparatus provided by the present application;
fig. 9 is a schematic structural view of an embodiment 2 of an information processing apparatus provided by the present application;
fig. 10 is a schematic diagram of an application scenario of an information processing method provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Shown in fig. 1 is a schematic diagram of an edge computing environment, comprising: cloud server 101, edge node 102, and device 103. The cloud server 101 is a platform of nodes, and is capable of managing a plurality of edge nodes 102, and one edge node is capable of connecting a plurality of devices 103.
As shown in fig. 2, a flowchart of an embodiment 1 of an information processing method according to the present application is applied to an electronic device, which is used as an edge node in an edge computing environment, and includes the following steps:
step S201: receiving first data;
wherein the first data is sent by a cloud server that manages the edge node.
Specifically, the first data may include related data managed by the cloud server for the edge node.
Step S202: analyzing the first data to obtain attribute information and configuration template information;
wherein the attribute information is an attribute for adjusting a configuration of a target device, the target device being a device connected to the edge node.
And analyzing the first data to obtain attribute information, configuration template information and other information contained in the first data.
The operator of the cloud server may adjust the configuration of a certain device in the edge node, and specifically, the attribute related to the adjustment operation is sent to the edge node as attribute information.
Specifically, the target device may be any device connected to the edge node, and the attribute information may be a device that is added, removed, or updated to the edge node.
The first data also comprises configuration template information.
In specific implementation, based on the difference of the operation environments corresponding to the monitoring of the connected equipment by the edge node, the attribute information can also comprise configuration attributes related to the operation environments.
For example, if the running environment is a host (host), the attribute information further includes configuration information of the host, if the running environment is a host container (container), the attribute information further includes configuration information of the host container, and if the running environment is a host and a container, the attribute information includes configuration information of the host and configuration information of the container.
Step S203: determining a first configuration template based on the configuration template information;
the edge node is provided with a configuration template library, and the configuration template library at least comprises configuration templates corresponding to various operation types which can be executed by the edge node.
The configuration template library is corresponding to various templates prefabricated in advance according to the monitoring module.
And determining a corresponding first configuration template in the configuration template library based on the configuration template information contained in the first data.
Of course, the process of determining the first configuration template will be described in detail in the following embodiments, which will not be described in detail in this embodiment.
Wherein, each configuration template in the configuration template library has a plurality of settable parameters, and the value of the settable parameters of the configuration templates in the configuration template library is an initial value, and the initial value can be null or other values.
Step S204: modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
wherein the settable parameter in the first configuration template is an initial parameter.
And modifying the corresponding attribute parameters in the first configuration template based on the attribute information in the first data to obtain a template configuration file.
Wherein the attribute information may include the name, type, and UUID (universally unique identification code (Universally Unique Identifier)) of the target device
The type of the target device may be a switch, a server, a router, or the like, which is not limited to this, and in the implementation, the type of the target device in the attribute information may be set according to the type of the device connected to the edge node.
The attribute information is information input by an operator on the cloud server side through an input device of the cloud server.
Step S205: and updating the configuration attribute of the monitoring module based on the target configuration file.
The monitoring module is used for monitoring the target equipment.
The edge node monitors the running conditions and the like of each connected device, a monitoring module is arranged in the edge node, and the monitoring module carries out attribute configuration on each device connected with the edge node.
In particular, the monitoring module may be a monitoring engine provided in the edge node.
The monitoring engine is used for monitoring update and maintenance of monitoring indexes of the currently existing monitoring equipment, and comprises alarming, fault generation and the like, which can be any third-party monitoring software, such as Prometheus, zabbix and the like.
In summary, according to the information processing method provided by the embodiment, the first data transmitted by the cloud server is analyzed to obtain attribute information and configuration template information, the first configuration template corresponding to the configuration template information is determined, the attribute parameters in the first configuration template are modified based on the attribute information to obtain the target configuration file, so that the configuration attribute in the monitoring module is updated based on the template configuration file, the problem that the remote monitoring configuration of the edge node equipment cannot be updated is solved by the cooperative architecture of the cloud server and the edge node, and the labor investment cost is saved by remote operation, automatic discovery and automatic generation.
As shown in fig. 3, a flowchart of an embodiment 2 of an information processing method provided by the present application includes the following steps:
step S301: receiving first data;
step S302: analyzing the first data to obtain attribute information and configuration template information;
steps S301 to 302 are identical to the corresponding steps in embodiment 1, and are not described in detail in this embodiment.
Step S303: analyzing the configuration template information to obtain protocol type information and configuration template identification;
wherein the protocol type information characterizes a protocol type of the edge node matching the target device.
Wherein the configuration template identifier (e.g., templateName) has uniqueness.
Wherein the attribute information includes various information related to the target device.
Specifically, a protocol type (protocol) adopted by the edge node and the target device can be determined based on the attribute information.
In specific implementation, the protocol type information, the attribute information and the configuration template identifier can be added into the first data, and the protocol type information can be obtained by analyzing the first data.
The protocol type includes ping protocol, ODBC (Open Database Connectivity, open database interconnection) database, etc., and the specific type of the protocol type is not limited in the present application, and may be set according to practical situations in specific implementation.
Step S304: determining a first configuration template corresponding to the protocol type information and the configuration template identification in a preset template library;
screening configuration templates in a preset template library according to protocol type information, determining whether the configuration templates are consistent with the screened configuration templates or not based on the identification of the configuration templates, and if so, taking the screened configuration templates as first configuration templates; otherwise, the data is wrong, and error information is fed back to the cloud server.
Specifically, if the protocol type information characterizes that the protocol type is a ping protocol, a name=ping basic template is retrieved from a preset template library, whether the basic template is a template corresponding to a configuration template identifier is determined, and if the two templates are corresponding to each other, the name=ping basic template is a first configuration template.
Step S305: modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
step S306: and updating the configuration attribute of a monitoring module based on the target configuration file, wherein the monitoring module is used for monitoring the target equipment.
Steps S305-306 are identical to the corresponding steps in embodiment 1, and are not described in detail in this embodiment.
In summary, according to the information processing method provided by the embodiment, based on various information carried in the first data sent by the cloud server, a corresponding first configuration template is determined at one end of the edge node, and the configuration template does not need to be sent between the cloud server and the edge node, so that the data transmission burden is reduced.
As shown in fig. 4, a flowchart of an embodiment 3 of an information processing method provided by the present application includes the following steps:
step S401: receiving first data;
Step S402: analyzing the first data to obtain attribute information and configuration template information;
step S403: analyzing the configuration template information to obtain protocol type information and configuration template identification;
steps S401 to 403 are identical to the corresponding steps in embodiment 2, and are not described in detail in this embodiment.
Step S404: based on the protocol type being a first type, the determined first configuration template includes a first configuration file;
wherein each template in the preset template library defines the format of a class of monitored device attributes.
Specifically, the configuration template may include a configuration file, a binary file for performing monitoring, a dock image, a container, and the like.
The first configuration file comprises at least two preset configuration information corresponding to the first type.
If a first type of protocol is adopted between the target device and the edge node, the edge node can monitor the target device only through the first configuration file.
Therefore, if the protocol type adopted between the target device corresponding to the first data and the edge node is the first type based on the analysis of the attribute information, it is determined that the first configuration template corresponding to the first type comprises a first configuration file.
Specifically, the first type may be a ping protocol, etc., and the system of the monitoring module runs kubernetes (k 8s for short) clusters.
Correspondingly, the first configuration file comprises a plurality of attribute parameters formed by preset formats, and specifically, the attribute parameters contained in the first configuration file are set according to the first type of protocol and the requirements of the monitoring module in the edge node.
For example, the first configuration file includes a template name (e.g., pingtenplate), an adoption protocol (ping), an attribute array (including a name, a type, and a UUID of the target device), a type of operation to be performed (add, delete, or change), a runtime environment, (k 8 s), a resource template type (deployment, configmap, etc.), a namespace of the execution, and the like.
If the monitoring system runs in kubernetes cluster, the first configuration template may further include configmap, deployment, service, etc., and it should be noted that what content the first configuration template specifically contains depends on the parameter values of the base class template.
Specifically, the parameter values of the base class template may include, in addition to the parameters included in the first configuration file, a host container, and other parameters.
In the subsequent step S406, the corresponding parameters in the first configuration file are modified based on the attribute information in the above step, so as to obtain the target configuration file.
Specifically, the first type may be a ping protocol, etc., and the system of the monitoring module runs kubernetes (k 8s for short) clusters.
It should be noted that, the first configuration module file includes a promethaus as a control component required to be filled in by the Ping protocol, and the protocol type is the Ping protocol, and then the first configuration module file includes promethaus Ping basic information, when the actual Ping type monitoring object is generated, only the first configuration file needs to be read, replaced by the current configuration information, and the target configuration file generated by the new configuration information is stored in the designated directory, so that the new addition of the Ping type monitoring object can be completed.
Step S405: based on the target running environment being of a second type, the determined first configuration template comprises a second configuration file and an associated file for performing monitoring;
the second configuration file comprises at least two preset configuration information corresponding to the second type.
If a second type of protocol is adopted between the target device and the edge node, the edge node needs to monitor the target device through the first configuration file and the associated file.
Therefore, if the protocol type adopted between the target device corresponding to the first data and the edge node is the second type based on the analysis of the attribute information, the first configuration template corresponding to the second type is determined to be a related file comprising the second configuration file and the execution monitoring.
Specifically, the second type may be an ODBC database, etc., and the corresponding second configuration template includes a second configuration file and an exporter binary file for performing monitoring.
Wherein, each parameter in the second configuration file is similar to the first configuration file, and the template name needs to be correspondingly adjusted by adopting a protocol and the like.
Step S406: modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
step S406 is identical to the corresponding step in embodiment 2, and is not described in detail in this embodiment.
Step S407: based on the protocol type being a first type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file so that the monitoring module operates based on the updated configuration attribute;
based on the first type of the protocol type, the corresponding file relevant to monitoring only has a target configuration file, so that the configuration attribute of the monitoring module is controlled to be updated based on the target configuration file, and the purpose that the monitoring module operates based on the configuration attribute in the target configuration file is achieved.
And modifying the attribute parameters of the configuration file based on the configuration information to obtain a target configuration file because the protocol type is the first type and is the configuration file based on the agreed format. Since only one operation is defined in one configuration file, data can be added only at configmap. The monitoring module realizes an automatic effective mechanism of configuration change for Prometheus, so that the monitoring component is not required to be actively restarted in the creation process, and the whole creation process is finished.
Step S408: and based on the protocol type is a second type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file, so that the monitoring module starts to execute the association file after running based on the updated configuration attribute.
Based on the second type of the protocol type, corresponding, the relevant files are monitored to have target configuration files and associated files, so that after the configuration attributes of the monitoring module are controlled to be updated based on the target configuration files, the associated files are started to be executed, and the purpose that the monitoring module operates based on the configuration attributes in the target configuration files is achieved.
In summary, according to the information processing method provided in this embodiment, based on different protocol types adopted by the edge node and the target device, the determined first configuration module includes different contents, so that the configuration attribute updating manner of the monitoring module is different, and the configuration attribute updating can be performed on the monitoring module corresponding to various protocol types.
As shown in fig. 5, a flowchart of an embodiment 4 of an information processing method provided by the present application, the method includes the following steps:
step S501: receiving first data;
step S502: analyzing the first data to obtain attribute information and configuration template information;
step S503: determining a first configuration template based on the configuration template information;
step S504: modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
step S505: updating configuration attributes of a monitoring module based on the target configuration file, wherein the monitoring module is used for monitoring the target equipment;
steps S501-505 are identical to the corresponding steps in embodiment 1, and are not described in detail in this embodiment.
Step S506: obtaining device information of a first device based on the first device being connected to the edge node;
when the edge node is connected with the first device for the first time, the device information of the first device is obtained.
The attribute information may include a name, a type, a UUID, and the like of the first device.
Step S507: transmitting the device information to a cloud server, so that the cloud server determines a second configuration template based on the device information;
The attribute information of the first device is sent to the cloud server, so that the cloud server records information and the like of each device connected with the edge node.
The cloud server has a large storage space and pre-stores various configuration templates.
The edge device may also send protocol information adopted by the edge device in connection with the first device to the cloud server, so that the cloud server can determine a second configuration template in combination with the device information of the first device and the protocol information, where the second configuration template is a configuration template corresponding to the first device, and then can perform operations such as configuration updating for a monitoring module of the first device in the edge device based on the second configuration template.
And recording the existing configuration templates in the edge node in the cloud server, and if the second configuration templates are not stored in the edge node, sending the second configuration templates to the edge node for subsequent operation.
It should be noted that, if the second configuration template is already present in the edge node, the cloud server may only feed back the received information, or feed back the identifier of the second configuration template, so that the edge node determines that the cloud server has recorded the relevant information of the first device.
Step S508: the second configuration template is received and stored.
After determining the second configuration template, if the cloud server determines that the edge node does not have the second configuration template, the cloud server sends the second configuration template to the edge node, and correspondingly, after receiving the second configuration template, the edge node stores the second configuration template so as to execute the process of updating the configuration attribute of the monitoring module in the previous step later.
When different devices are accessed to the edge node, reporting device information, and dynamically issuing a corresponding template to the target edge node by the cloud server. Therefore, the minimum consumption of edge resources can be achieved, templates can be prefabricated in advance according to requirements, and the requirements of subsequent monitoring configuration generation are met.
In summary, according to the information processing method provided by the embodiment, when the edge node is connected with a new device, device information of the new device is uploaded to the cloud server, the cloud server determines a second configuration template and feeds the second configuration template back to the edge node, so that a basis is provided for monitoring related configuration update of the new device in the edge node through the cloud server.
As shown in fig. 6, a flowchart of an embodiment 5 of an information processing method provided by the present application, the method includes the following steps:
Step S601: receiving first data;
step S602: analyzing the first data to obtain attribute information and configuration template information;
step S603: determining a first configuration template based on the configuration template information;
step S604: modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
step S605: updating configuration attributes of a monitoring module based on the target configuration file, wherein the monitoring module is used for monitoring the target equipment;
step S606: obtaining attribute information of a first device based on the first device being connected to the edge node;
step S607: transmitting the device information to a cloud server, so that the cloud server determines a second configuration template based on the device information;
steps S601-607 are identical to the corresponding steps in embodiment 4, and are not described in detail in this embodiment.
Step S608: receiving the second configuration template;
step S609: and adding a template identifier for the second configuration template based on a preset template identifier rule, and storing the second configuration template.
After receiving a second configuration template sent by the cloud server, adding a template identifier to the second configuration template based on a locally preset template identifier rule, so that the second configuration template is invoked when attribute information of attribute configuration of the first device in the monitoring module is received later.
In a specific implementation, the template identifier may also be fed back to the cloud server, so that the cloud server and the edge node unify the records for the second configuration template.
When the cloud server sends the second configuration template to the edge node, the edge node only needs to store the corresponding relation between the template identifier and the second configuration template.
In summary, in the information processing method provided in this embodiment, after receiving the second configuration template, a template identifier is added to the second configuration template based on a preset template identifier rule, and the second configuration template is stored, so as to provide a basis for subsequently calling the second configuration template.
The application also provides an embodiment of the information processing method applied to the cloud server, which corresponds to the embodiment of the information processing method applied to the edge equipment.
As shown in fig. 7, a flowchart of an embodiment 6 of an information processing method according to the present application is applied to an electronic device, which is a cloud server in an edge computing environment, and the method includes the following steps:
Step S701: determining a target edge node corresponding to the attribute information based on the received attribute information;
the attribute information is information for changing configuration attributes of a monitoring module in a target edge node, and the monitoring module is used for monitoring target equipment connected with the target edge node.
The attribute information includes information related to the target edge node and/or the target device, such as the target edge node information, information of the device monitored by the edge node, and operation information.
Specifically, the information of the target device includes: name, type, uuid, etc. of the target device.
The configuration attribute of the monitoring module is changed, including operations such as adding, deleting, changing and the like, performed on equipment connected with the target edge node.
In specific implementation, the information processing method is realized by different composition structures in the cloud server, so after the attribute information is received, the attribute information can be packaged into monitoring object information in a specific form and transmitted to the next composition structure for processing.
The attribute information is a unified input interface provided by the cloud server, and a user selects a remote edge node, a newly added or modified monitoring object type and specific attribute needing to be filled in, such as information of ip address, port, protocol version, user name, password and the like through the interface.
Of course, the process of generating the first data may be triggered manually by the user or according to a predetermined trigger rule.
The attribute information may be attribute information of an operation performed by a user on a plurality of devices connected to a plurality of edge nodes, or may be attribute information corresponding to an operation performed only on one device connected to one edge node.
Step S702: determining protocol type information of a monitoring module in the target edge node;
wherein the protocol type information characterizes a protocol type of the target edge node matching the target device.
The attribute information includes a target edge node and the target device, and based on the target edge node and the target device, a protocol type matching the second rule can be determined.
In a specific implementation, the attribute information may be pre-parsed, where the pre-parsing includes: vendor classification, protocol type, etc. that the target device should match.
Step S703: determining a first configuration template based on the protocol type information;
And determining a first configuration template corresponding to the protocol type based on the protocol type information.
Wherein, various configuration templates are stored in the cloud server, and corresponding configuration templates are determined based on the protocol type information.
Step S704: generating first data based on the attribute information and the first configuration template;
wherein the first data includes attribute information and information corresponding to the first configuration template.
For example, the information corresponding to the first configuration template includes protocol type information.
The cloud server is also provided with a configuration template library, and a configuration template identifier is correspondingly arranged in the configuration template library for each configuration template, and has uniqueness.
In a specific implementation, the identifier of the configuration template, the protocol type information and the attribute information may be packaged to obtain the first data.
Step S705: and sending the first data to a target edge node so that the target edge node updates the configuration information of the monitoring module based on the first data.
And sending the first data to a target edge node, wherein the target edge node updates the configuration information of the monitoring module based on the first data.
The process of the monitoring module by the target edge node based on the first data is referred to the foregoing embodiment applied to the edge node, which is not described in detail in this embodiment.
In the implementation, the first data is sent to a message queue of the cloud server, so as to be sequentially sent to the corresponding target edge node through the sending queue.
The cloud server can update configuration parameters of the monitoring modules in the plurality of edge nodes managed by the cloud server, and the cloud server can realize batch update of monitoring configuration in the plurality of edge nodes because the monitoring modules can realize monitoring of a plurality of devices.
It should be noted that, because the configuration analysis is completed in the cloud server, sufficient advantages of cloud computing resources can be fully utilized, and consumption of computing resources of the edge nodes can be reduced.
In summary, in the information processing method provided in this embodiment, a unified configuration template library is installed in a cloud server, based on received attribute information, protocol type information of a target edge node corresponding to the configuration template library is determined, a first configuration template is determined in the configuration template library based on the protocol type information, first data is automatically generated based on the first configuration template and the attribute information, and for enabling the target edge node to update according to the first data, automatic update of monitoring configuration parameters of a monitoring module in the target edge node is achieved.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides an embodiment of a device applying the information processing method.
As shown in fig. 8, a schematic structural diagram of an embodiment 1 of an information processing apparatus according to the present application includes the following structures: a receiving module 801, a parsing module 802, a first determining module 803, a modifying module 804 and an updating module 805;
wherein, the receiving module 801 is configured to receive first data;
the parsing module 802 is configured to parse the first data to obtain at least attribute information and a configuration template identifier, where the attribute information is an attribute for adjusting a configuration of a target device, and the target device is a device connected to the edge node;
wherein the first determining module 803 is configured to determine a first configuration template based at least on the configuration template identification;
the modification module 804 is configured to modify the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
the updating module 805 is configured to update a configuration attribute of a monitoring module, where the monitoring module is configured to monitor the target device, based on the target configuration file.
Optionally, the first determining module includes:
the analyzing unit is used for analyzing the attribute information to obtain protocol type information, and the protocol type information characterizes the protocol type matched with the target equipment by the edge node;
and the determining unit is used for determining a first configuration template corresponding to the protocol type information and the configuration template identification in a preset template library.
Optionally, the determining unit is configured to:
based on the protocol type being a first type, the determined first configuration template comprises a first configuration file, and the first configuration file comprises at least two preset configuration information corresponding to the first type;
based on the target running environment being of a second type, the determined first configuration template comprises a second configuration file and an associated file for performing monitoring, and the second configuration file comprises at least two preset configuration information corresponding to the second type.
Optionally, the updating module is specifically configured to:
based on the protocol type being a first type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file so that the monitoring module operates based on the updated configuration attribute;
and based on the protocol type is a second type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file, so that the monitoring module starts to execute the association file after running based on the updated configuration attribute.
Optionally, the method further comprises:
an obtaining module, configured to obtain device information of a first device based on the first device being connected to the edge node;
the device information sending module is used for sending the device information to a cloud server so that the cloud server can determine a second configuration template based on the device information;
the template receiving module is used for receiving the second configuration template;
and the storage module is used for storing the second configuration template.
Optionally, the storage module is specifically configured to:
and adding a template identifier for the second configuration template based on a preset template identifier rule, and storing the second configuration template.
It should be noted that, for explanation of each structural function in the information processing apparatus provided in this embodiment, please refer to the explanation in the foregoing method embodiment, and details are not described in this embodiment.
In summary, according to the information processing apparatus provided in this embodiment, first data transmitted by a cloud server is analyzed to obtain attribute information and a configuration template identifier, a first configuration template corresponding to the configuration template identifier is determined, attribute parameters in the first configuration template are modified based on the attribute information to obtain a target configuration file, so that configuration attributes in a monitoring module are updated based on the template configuration file, a problem that remote monitoring configuration of edge node equipment cannot be updated is solved by a cooperative architecture of the cloud server and the edge node, and labor investment cost is saved by remote operation, automatic discovery and automatic generation.
As shown in fig. 9, a schematic structural diagram of an embodiment 2 of an information processing apparatus according to the present application includes the following structures: a second determining module 901, a third determining module 902, a fourth determining module 903, a generating module 904, and a transmitting module 905;
the second determining module 901 is configured to determine, based on the received attribute information, a target edge node corresponding to the attribute information, where the attribute information is information for changing a configuration attribute of a monitoring module in the target edge node, and the monitoring module is configured to monitor a target device connected to the target edge node;
the third determining module 902 is configured to determine protocol type information of the monitoring module in the target edge node, where the protocol type information characterizes a protocol type that the target edge node matches with the target device;
wherein the fourth determining module 903 is configured to determine a first configuration template based on the protocol type information;
wherein, the generating module 904 is configured to generate first data based on the attribute information and the first configuration template;
the sending module 905 is configured to send the first data to a target edge node, so that the target edge node updates configuration information of a monitoring module based on the first data.
It should be noted that, for explanation of each structural function in the information processing apparatus provided in this embodiment, please refer to the explanation in the foregoing method embodiment, and details are not described in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, a unified configuration template library is installed in a cloud server, based on received attribute information, protocol type information that matches a target edge node corresponding to the configuration template library with a target device is determined, a first configuration template is determined in the configuration template library based on the protocol type information, first data is automatically generated based on the first configuration template and the attribute information, and for enabling the target edge node to update according to the first data, automatic update of monitoring configuration parameters of a monitoring module in the target edge node is implemented.
Corresponding to the embodiment of the information processing method and the device provided by the application, the application also provides an application scene embodiment applying the information processing method.
As shown in fig. 10, an application scenario of an information processing method provided by the present application is schematically shown, where the scenario includes a client 1001, a cloud server 1002, and an edge node 1003; the cloud server 1002 is provided with a device update service, a configuration analysis distribution service, a template library update service, a middleware MQ (Message queue), and a DB database; the edge node 1003 is provided with middleware MQ, a configuration generating service, a configuration template library, a monitoring engine, a firewall, a database and the like, wherein the configuration template library supports protocol independent configuration and updating, supports various protocols such as IPMI (Intelligent Platform Management Interface ), SSH (Secure Shell protocol), PING and the like, and can mount various devices such as a router, a switch, a server and the like.
The device updating service packages and encapsulates the input information (such as ip address, port, protocol version, user name, password and the like) into a unified monitoring object. The configuration analysis distribution service performs configuration pre-analysis on the monitoring object, determines a protocol type corresponding to the target device, calculates a matched configuration template, adds the unique attribute identification and the protocol type of the determined configuration template to the attribute of the monitoring object to obtain first data, adds the first data to a middleware message queue, and sends the first data to an edge node.
After the middleware of the edge node receives the first data, the configuration generation server analyzes the first data, searches a corresponding configuration template in a configuration template library based on the analyzed configuration template information, modifies attribute parameters in the configuration template by the analyzed attribute information to obtain a configuration file, and starts a monitoring exposure program after the configuration file is obtained, so that the monitoring engine is configured and updated based on the configuration file.
The monitoring engine can autonomously discover the configuration file, and can discover the configuration file when restarting, so that the monitoring engine can perform configuration updating and running based on the configuration file.
Wherein the configuration generation service of the edge node is connected with the firewall and the database. The database stores the received first data.
Corresponding to the embodiment of the control method provided by the application, the application also provides the electronic equipment and the readable storage medium corresponding to the control method.
Wherein, this electronic equipment includes: a memory, a processor;
wherein the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory, so as to implement the steps of the control method according to any one of the above.
The implementation control method of the electronic equipment is realized by referring to the embodiment of the control method.
Wherein the readable storage medium has stored thereon a computer program which is invoked and executed by a processor to implement the steps of the control method as set forth in any one of the preceding claims.
The computer program stored in the readable storage medium is executed to implement the control method, and the embodiment of the control method is referred to.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. The device provided in the embodiment corresponds to the method provided in the embodiment, so that the description is simpler, and the relevant points refer to the description of the method.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (10)

1. An information processing method applied to an edge node, comprising:
receiving first data;
analyzing the first data to obtain attribute information and configuration template information, wherein the attribute information is an attribute for adjusting the configuration of target equipment, and the target equipment is equipment connected with the edge node;
determining a first configuration template based on the configuration template information;
modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
and updating the configuration attribute of a monitoring module based on the target configuration file, wherein the monitoring module is used for monitoring the target equipment.
2. The method of claim 1, the determining a first configuration template based on the configuration template identification information, comprising:
analyzing the configuration template information to obtain protocol type information and configuration template identification, wherein the protocol type information characterizes the protocol type of the edge node matched with the target equipment;
and determining a first configuration template corresponding to the protocol type information and the configuration template identification in a preset template library.
3. The method of claim 2, wherein determining, in a preset template library, a first configuration template corresponding to the protocol type information and the configuration template identifier, comprises:
based on the protocol type being a first type, the determined first configuration template comprises a first configuration file, and the first configuration file comprises at least two preset configuration information corresponding to the first type;
based on the target running environment being of a second type, the determined first configuration template comprises a second configuration file and an associated file for performing monitoring, and the second configuration file comprises at least two preset configuration information corresponding to the second type.
4. The method of claim 3, the updating the configuration attributes of the monitoring module based on the target profile comprising:
Based on the protocol type being a first type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file so that the monitoring module operates based on the updated configuration attribute;
and based on the protocol type is a second type, controlling the configuration attribute of the monitoring module to be updated based on the target configuration file, so that the monitoring module starts to execute the association file after running based on the updated configuration attribute.
5. The method of claim 1, further comprising:
obtaining device information of a first device based on the first device being connected to the edge node;
transmitting the device information to a cloud server, so that the cloud server determines a second configuration template based on the device information;
the second configuration template is received and stored.
6. The method of claim 5, storing the second configuration template, comprising:
and adding a template identifier for the second configuration template based on a preset template identifier rule, and storing the second configuration template.
7. An information processing method applied to a cloud server comprises the following steps:
determining a target edge node corresponding to the attribute information based on the received attribute information, wherein the attribute information is information for changing configuration attributes of a monitoring module in the target edge node, and the monitoring module is used for monitoring target equipment connected with the target edge node;
Determining protocol type information of a monitoring module in the target edge node, wherein the protocol type information characterizes a protocol type matched with the target edge node and the target equipment;
determining a first configuration template based on the protocol type information;
generating first data based on the attribute information and the first configuration template;
and sending the first data to a target edge node so that the target edge node updates the configuration information of the monitoring module based on the first data.
8. An information processing apparatus, applied to an edge node, comprising:
the receiving module is used for receiving the first data;
the analyzing module is used for analyzing the first data to at least obtain attribute information and configuration template information, wherein the attribute information is an attribute for adjusting the configuration of target equipment, and the target equipment is equipment connected with the edge node;
a first determining module for determining a first configuration template based at least on the configuration template information;
the modification module is used for modifying the corresponding attribute parameters in the first configuration template based on the attribute information to obtain a target configuration file;
and the updating module is used for updating the configuration attribute of the monitoring module based on the target configuration file, and the monitoring module is used for monitoring the target equipment.
9. An information processing apparatus applied to a cloud server, comprising:
the second determining module is used for determining a target edge node corresponding to the attribute information based on the received attribute information, wherein the attribute information is information for changing the configuration attribute of a monitoring module in the target edge node, and the monitoring module is used for monitoring target equipment connected with the target edge node;
a third determining module, configured to determine protocol type information of a monitoring module in the target edge node, where the protocol type information characterizes a protocol type of the target edge node matched with the target device;
a fourth determining module, configured to determine a first configuration template based on the protocol type information;
the generation module is used for generating first data based on the attribute information and the first configuration template;
and the sending module is used for sending the first data to a target edge node so that the target edge node updates the configuration information of the monitoring module based on the first data.
10. An electronic device, comprising: a memory, a processor;
wherein the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory to implement the steps of the information processing method according to any one of the preceding claims 1 to 6 or 7.
CN202310444183.5A 2023-04-23 2023-04-23 Information processing method and device and electronic equipment Pending CN116578357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310444183.5A CN116578357A (en) 2023-04-23 2023-04-23 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310444183.5A CN116578357A (en) 2023-04-23 2023-04-23 Information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116578357A true CN116578357A (en) 2023-08-11

Family

ID=87544496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310444183.5A Pending CN116578357A (en) 2023-04-23 2023-04-23 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116578357A (en)

Similar Documents

Publication Publication Date Title
US11374826B2 (en) Systems and methods for enhanced monitoring of a distributed computing system
CN111277460B (en) ZooKeeper containerization control method and device, storage medium and electronic equipment
CN101621405B (en) Distributed type management monitoring system, monitoring method and establishing method thereof
US7249170B2 (en) System and method for configuration, management and monitoring of network resources
US8812636B2 (en) Network management apparatus and method based on simple network management protocol
EP1793529A1 (en) A method and system for configuring network devices through an operations support system interface
US7580936B2 (en) Extendable discovery of network device information
KR20110040934A (en) Intelligent mobile device management client
US20080178202A1 (en) Interface For Supporting an Element Management System
CN108696372A (en) A kind of method and system keeping system configuration consistency
US20090070425A1 (en) Data processing system, method of updating a configuration file and computer program product
CN113824801B (en) Intelligent integration terminal unified access management component system
CN110943968B (en) Equipment access control method and equipment access assembly
CN116578357A (en) Information processing method and device and electronic equipment
EP2445140B1 (en) Method for managing configuration information of outsourced part, and method and system for managing alarm
CN112764825A (en) Service integration system, corresponding device and storage medium
EP4277224A1 (en) Application status detection in the context of network abstraction
US12047451B2 (en) IoT system and data collection control method
EP4425864A1 (en) Method and system for use of custom data models in network device management
EP3709576B1 (en) Device telemetry control
CN113778628B (en) Edge node control method and system
US20230179483A1 (en) System and method for monitoring status of network components in a network configuration
WO2024008290A1 (en) Network device and method for tracing device configurations
CN118733853A (en) Data processing method, device, electronic equipment, medium and program product
CN118605961A (en) Device management method, device and computer readable 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