CN109710605B - Automatic equipment information acquisition device and method - Google Patents

Automatic equipment information acquisition device and method Download PDF

Info

Publication number
CN109710605B
CN109710605B CN201711010732.9A CN201711010732A CN109710605B CN 109710605 B CN109710605 B CN 109710605B CN 201711010732 A CN201711010732 A CN 201711010732A CN 109710605 B CN109710605 B CN 109710605B
Authority
CN
China
Prior art keywords
acquisition
script
result
task
layer
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
CN201711010732.9A
Other languages
Chinese (zh)
Other versions
CN109710605A (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.)
Aspire Technologies Shenzhen Ltd
Original Assignee
Aspire Technologies Shenzhen 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 Aspire Technologies Shenzhen Ltd filed Critical Aspire Technologies Shenzhen Ltd
Priority to CN201711010732.9A priority Critical patent/CN109710605B/en
Publication of CN109710605A publication Critical patent/CN109710605A/en
Application granted granted Critical
Publication of CN109710605B publication Critical patent/CN109710605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an automatic acquisition device and method for equipment information, wherein the device comprises the following steps: the device management layer is used for configuring an acquisition task for the acquired target device and uploading an acquisition script; the task processing layer is used for analyzing the configuration of the acquisition task and distributing the acquisition script for each target device through the interface of the script access layer according to the analysis result; acquiring an acquisition result from the script access layer and analyzing the acquisition result; the script access layer is used for storing the acquisition script distributed by the task processing layer and the acquisition result uploaded by the information acquisition layer; and the information acquisition layer is used for acquiring and executing the acquisition script corresponding to the target equipment by using the interface of the script access layer to obtain an acquisition result and uploading the acquisition result to the script access layer. The invention solves the acquisition and distribution performance bottleneck when the number of acquisition equipment is large; the 22-port is bypassed, and the method has universality and good expansibility in a computer room network with higher safety specification requirements.

Description

Automatic equipment information acquisition device and method
Technical Field
The invention relates to the field of mobile internet operation and maintenance, in particular to an automatic equipment information acquisition device and method.
Background
For an automatic information acquisition system, the basic functions of the automatic information acquisition system are to realize the management of an equipment information acquisition script, the issuing of an acquisition task and the acquisition of equipment information data, and the existing acquisition method has the following defects:
firstly, a performance bottleneck is that, at a task processing layer, a task processing program needs to issue and process acquisition tasks of all devices in real time, and the process of task acquisition, instruction issue, instruction execution waiting, instruction result returning, result processing and result storage of each device needs to be time-consuming, and especially when some devices have failure in executing, the performance of the task processing layer is increasingly poor along with the increase of the number of the devices.
Secondly, the expansibility is poor, and with the change of field information acquired by the equipment, corresponding acquisition scripts and acquisition result processing programs need to be correspondingly modified, so that the maintenance cost is high.
Thirdly, the universality is poor, the task processing layer generally uses a 22 port of an equipment operating system to issue an instruction and acquire equipment information, and a machine room network with higher requirement of general safety specifications can forbid the use of the 22 port, so that the prior equipment information acquisition device has no use.
Disclosure of Invention
The present invention provides an apparatus and method for automatically acquiring device information, aiming at the above-mentioned defects in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows: an automatic equipment information acquisition device is constructed, and the automatic equipment information acquisition device comprises:
the device management layer is used for configuring an acquisition task for the acquired target device and uploading an acquisition script;
the task processing layer is used for analyzing the configuration of the acquisition task and distributing acquisition scripts for each target device through the interface of the script access layer according to the analysis result; acquiring an acquisition result from the script access layer and analyzing the acquisition result;
the script access layer is used for storing the acquisition script distributed by the task processing layer and the acquisition result uploaded by the information acquisition layer;
and the information acquisition layer is used for acquiring and executing the acquisition script corresponding to the target equipment by using the interface of the script access layer to obtain an acquisition result and uploading the acquisition result to the script access layer.
In the device information automatic acquisition apparatus according to the present invention, the script access layer includes:
the task script storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition script storage catalog of each target device for storing the acquisition script corresponding to the target device;
and the acquisition result storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition result storage catalog of each target device for storing the corresponding acquisition result.
In the device information automatic acquisition apparatus according to the present invention, the task processing layer includes:
the task analysis unit is used for acquiring and analyzing the configuration of the acquisition task, acquiring grouping information, reading all target equipment information under grouping, and pulling an acquisition script corresponding to the acquisition task from a script storage unit of the equipment management layer;
the script distribution unit is used for respectively generating a task script storage directory for each target device in the task configuration in the task script storage unit through an interface of the task script storage unit of the script access layer and distributing the acquisition script of each target device to the corresponding task script storage directory;
the result file acquisition unit is used for acquiring a result file corresponding to the acquisition result through an interface of the acquisition result storage unit of the script access layer;
and the acquisition result processing unit is used for analyzing the acquisition result of the result file according to the standard of the restrictive definition, analyzing the database table information and generating table data from the acquisition result, splicing the table information and the table data into corresponding database records, and then uniformly and durably warehousing the database records.
In the device information automatic acquisition apparatus of the present invention, the information acquisition layer includes:
the task script acquisition unit is used for acquiring an acquisition script corresponding to the target equipment through an interface of the task script storage unit of the script access layer;
the task script processing unit is used for executing the acquired acquisition script;
the result format adapting unit is used for adapting the acquisition items in the execution result of the acquisition script according to the constrained definition of the format and the content of the acquisition items;
the result file generating unit is used for splicing all the adapted acquisition items and generating a result file;
and the result file uploading unit is used for uploading the generated result file to a corresponding acquisition result storage directory of the target equipment in the acquisition result storage unit through an interface of the acquisition result storage unit of the script access layer.
In the device information automatic acquisition apparatus of the present invention, the device management layer includes:
the device management unit is used for providing a visual configuration interface, grouping the acquired target devices, and configuring the target devices with the same acquisition type into one group;
the acquisition task configuration unit is used for configuring acquisition tasks aiming at the groups and configuring and uploading corresponding acquisition scripts to the script storage unit aiming at each acquisition task;
and the script storage unit is used for providing the acquisition task configuration unit with functions of uploading and storing the acquisition script.
The invention also discloses an automatic acquisition method of the equipment information, which comprises the following steps:
s100, configuring an acquisition task for the acquired target equipment and uploading an acquisition script by an equipment management layer;
s200, the task processing layer analyzes the configuration of the acquisition task, distributes acquisition scripts for each target device through the interface of the script access layer according to the analysis result, and the script access layer stores the acquisition scripts distributed by the task processing layer;
s300, the information acquisition layer acquires and executes an acquisition script corresponding to the target equipment by using an interface of the script access layer to obtain an acquisition result, and uploads the acquisition result to the script access layer, and the script access layer stores the acquisition result uploaded by the information acquisition layer;
and S400, the task processing layer acquires the acquisition result from the script access layer, analyzes the acquisition result and stores the analysis result.
In the method for automatically acquiring device information according to the present invention, the script access layer includes:
the task script storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition script storage catalog of each target device for storing the acquisition script corresponding to the target device;
and the acquisition result storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition result storage catalog of each target device for storing the corresponding acquisition result.
In the automatic acquisition method of the equipment information of the invention,
the step S200 includes:
s210, a task processing layer obtains and analyzes the configuration of the acquisition task, obtains grouping information, reads all target equipment information under the grouping, and pulls an acquisition script corresponding to the acquisition task from an equipment management layer;
s220, respectively generating a task script storage directory for each target device in the task configuration in the task script storage unit through an interface of a task script storage unit of the script access layer, and distributing an acquisition script of each target device to the corresponding task script storage directory;
step S400 includes:
s410, the task processing layer obtains a result file corresponding to the acquisition result through an interface of an acquisition result storage unit of the script access layer;
and S420, analyzing the acquisition result of the result file according to the standard of the constraint definition, analyzing the database table information from the acquisition result, generating table data, splicing into corresponding database records, and then uniformly and persistently warehousing.
In the method for automatically acquiring device information according to the present invention, step S300 includes:
s310, the information acquisition layer acquires an acquisition script corresponding to target equipment through an interface of a task script storage unit of the script access layer;
s320, executing the acquired acquisition script;
s330, adapting the acquisition items in the execution result of the acquisition script according to the constraint definition;
s340, assembling all the adaptive acquisition items and generating a result file;
and S350, uploading the generated result file to a collection result storage directory corresponding to the target equipment in the collection result storage unit through an interface of the collection result storage unit of the script access layer.
In the method for automatically acquiring device information according to the present invention, step S100 includes:
s110, the equipment management layer is used for providing a visual configuration interface, grouping the acquired target equipment, and configuring the target equipment with the same acquisition type into a group;
and S120, configuring acquisition tasks aiming at the groups, and configuring and storing a corresponding acquisition script aiming at each acquisition task.
The device and the method for automatically acquiring the equipment information have the following beneficial effects that: the script access layer can realize that the two functions of script distribution and acquisition result synchronous acquisition which cause acquisition task execution performance bottleneck are separated independently, and the task processing layer directly acquires the acquisition result through the script access layer instead of waiting for result return in a synchronous or asynchronous scheduling mode and the like, so that the stability and fault tolerance of acquisition task execution are improved, and the acquisition and distribution performance bottleneck of an acquisition device when the number of acquisition equipment is large is solved; similarly, the information acquisition layer only needs to directly acquire the acquisition script and store the acquisition result through the interface of the script access layer, so that the complexity of the information acquisition layer is greatly simplified; the script access layer can be deployed as an independent application, and only an interface meeting the requirements of script storage and acquisition result storage needs to be provided externally, so that the operating pressure of the acquisition device can be better decomposed; furthermore, the script access layer can be realized by using protocols such as FTP (file transfer protocol), the 22-port is bypassed, the universality is higher in a machine room network with higher safety specification requirement, and in addition, all requests are initiated outwards by an internal network of the acquired target equipment, so that the safety of the machine room network is further improved;
furthermore, the invention carries out constraint definition of format and content on the script acquisition result, and the task processing layer can directly analyze the database table information and generate table data from the acquisition result only according to the specification of the constraint definition to carry out uniform acquisition result persistence database entry operation; when an acquisition service is newly added, a database table is established, a self-defined acquisition script is compiled, and an acquisition task is configured and generated for the acquisition service in the acquisition device, so that the new acquisition service can be applied, and the method has good expansibility.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts:
FIG. 1 is a schematic structural diagram of an automatic information acquisition device according to a preferred embodiment of the present invention;
FIG. 2 is a call flow during operation of the preferred embodiment;
fig. 3 is a flow chart of the automatic information acquisition method of the device of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Exemplary embodiments of the invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It is noted that the terms "equal," "same," "simultaneously," or other similar terms are not limited to the absolute equality or equality in mathematical terms, but may be similar in engineering sense or within an acceptable error range when practicing the claims of this patent.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The general idea of the invention is to construct an automatic acquisition device of equipment information, comprising:
the device management layer is used for configuring an acquisition task for the acquired target device and uploading an acquisition script;
the task processing layer is used for analyzing the configuration of the acquisition task and distributing the acquisition script for each target device through the interface of the script access layer according to the analysis result; acquiring an acquisition result from the script access layer and analyzing the acquisition result;
the script access layer is used for storing the acquisition script distributed by the task processing layer and the acquisition result uploaded by the information acquisition layer;
and the information acquisition layer is used for acquiring and executing the acquisition script corresponding to the target equipment by using the interface of the script access layer to obtain an acquisition result and uploading the acquisition result to the script access layer.
The script access layer can realize that the two functions of script distribution and acquisition result synchronous acquisition which cause the execution performance bottleneck of the acquisition task are separated independently, and the task processing layer directly acquires the acquisition result through the script access layer instead of waiting for the result to return in a synchronous or asynchronous scheduling mode and the like, so that the execution stability and fault tolerance of the acquisition task are improved, and the acquisition and issuing performance bottleneck of an acquisition device when the number of acquisition equipment is large is solved; similarly, the information acquisition layer only needs to directly acquire the acquisition script and store the acquisition result through the interface of the script access layer, so that the complexity of the information acquisition layer is greatly simplified; the script access layer can be deployed as an independent application, and only an interface meeting the requirements of script storage and acquisition result storage is required to be provided externally, so that the operating pressure of the acquisition device can be better decomposed;
furthermore, the script access layer can be realized by using protocols such as FTP (file transfer protocol), the protocol bypasses 22 ports, the universality is higher in the machine room network with higher requirements on safety specifications, and in addition, all requests are initiated from the inside to the outside of the acquired target equipment, so that the safety of the machine room network is further improved;
in order to better understand the technical solutions, the technical solutions will be described in detail below with reference to the drawings and the specific embodiments of the specification, and it should be understood that the embodiments and specific features of the embodiments of the present invention are detailed descriptions of the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features of the embodiments and examples of the present invention may be combined with each other without conflict.
Referring to fig. 1, in a preferred embodiment, the acquisition apparatus includes a device management layer 10, a task processing layer 20, a script access layer 30, and an information acquisition layer 40, wherein the device management layer 10 is connected to the task processing layer 20, and the task processing layer 20 and the information acquisition layer 40 are connected to the script access layer 30. The individual layers are explained in detail below.
Device management layer 10:
the device management layer 10 mainly includes a device management unit 11, an acquisition task configuration unit 12, and a script storage unit 13, where the functions of each unit are as follows:
the device management unit 11 is configured to provide a visual configuration interface, group the acquired target devices, and configure the target devices of the same acquisition type into one group;
the acquisition task configuration unit 12 is configured to configure acquisition tasks for groups, configure and upload a corresponding acquisition script to the script storage unit 13 for each acquisition task; the configuration of the acquisition task can be cached in the acquisition device, and can be persisted into a database;
and the script storage unit 13 is used for providing the acquisition task configuration unit 12 with functions of uploading and storing acquisition scripts. The script storage unit 13 may be a computer storage medium such as a magnetic disk.
The task processing layer 20:
the task processing layer 20 includes a task parsing unit 21, a script distributing unit 22, a result file obtaining unit 23, and a collected result processing unit 24, where the functions of each unit are as follows:
the task analysis unit 21 is configured to obtain the configuration of the acquisition task from the database, analyze the configuration, and provide the target device information and the acquisition script for the script distribution unit 22, where the analyzing specifically includes: acquiring grouping information, reading all target equipment information under grouping, and pulling an acquisition script corresponding to an acquisition task from a script storage unit 13 of the equipment management layer 10;
the script distribution unit 22 is configured to generate a task script storage directory for each target device in the task configuration in the task script storage unit 31 through an interface of the task script storage unit 31 of the script access layer 30, and distribute the acquisition script of each target device to the corresponding task script storage directory;
a result file obtaining unit 23, configured to obtain a result file corresponding to the acquisition result through an interface of the acquisition result storage unit 32 of the script access layer 30;
and the acquisition result processing unit 24 is used for analyzing the acquisition results of the result files according to the standard of the restrictive definition, analyzing the database table information from the acquisition results, generating table data, splicing the table data into corresponding database records, and then performing unified persistent storage.
Script access layer 30:
the script access layer 30 includes a task script storage unit 31 and an acquisition result storage unit 32, wherein the functions of the units are as follows:
the task script storage unit 31 is configured to provide an interface of the task processing layer 20 and an interface of the information acquisition layer 40, and provide an acquisition script storage directory of each target device, where the acquisition script storage directory is used to store the acquisition script corresponding to each target device;
the acquisition result storage unit 32 provides an interface of the task processing layer 20 and an interface of the information acquisition layer 40, and provides an acquisition result storage directory for storing corresponding acquisition results of each target device.
The information acquisition layer 40:
the information acquisition layer 40 includes a task script acquisition unit 41, a task script processing unit 42, a result format adaptation unit 43, a result file generation unit 44, and a result file uploading unit 45, where the functions of the units are as follows:
a task script obtaining unit 41, configured to obtain, through an interface of the task script storage unit 31 of the script access layer 30, a collection script corresponding to a target device;
a task script processing unit 42, configured to execute the acquired collection script;
a result format adapting unit 43, configured to adapt the acquisition items in the execution result of the acquisition script according to the constrained definitions of the format and the content of the acquisition items;
a result file generating unit 44, configured to assemble all the adapted collection items and generate a result file;
and the result file uploading unit 45 is configured to upload the generated result file to a collection result storage directory corresponding to the target device in the collection result storage unit through an interface of the collection result storage unit 32 of the script access layer 30.
As can be seen, by performing constrained definition of format and content on the script acquisition result, the task processing layer 20 can directly analyze the database table information and generate table data from the acquisition result only according to the specification of the constrained definition, and perform uniform persistent entry operation on the acquisition result; when an acquisition service is newly added, a database table is established, a self-defined acquisition script is compiled, and an acquisition task is configured and generated for the acquisition service in the acquisition device, so that the new acquisition service can be applied, and the method has good expansibility.
Referring to fig. 2, the call flow of each unit in this embodiment is summarized in the following order: the acquisition task configuration unit 12, the script storage unit 13, the task analysis unit 21, the script distribution unit 22, the task script storage unit 31, the task script acquisition unit 41, the task script processing unit 42, the result format adaptation unit 43, the result file generation unit 44, the result file uploading unit 45, the acquisition result storage unit 32, the result file acquisition unit 23, and the acquisition result processing unit 24. As shown in fig. 2, the virtual box a and the virtual box B respectively represent the work of the task processing layer 20 and the information acquisition layer 40, and it can be seen that due to the existence of the script access layer 30, the task processing layer 20 and the information acquisition layer 40 can work independently, and it is not through the synchronous or asynchronous scheduling or other manners to wait for the result to return, the operating pressure of the task processing layer 20 and the information acquisition layer 40 is relieved, and the complexity of the task processing layer 20 and the information acquisition layer 40 is greatly reduced.
Based on the unified invention concept, the invention also discloses an automatic equipment information acquisition method, and referring to fig. 3, the method comprises the following steps:
s100, the equipment management layer 10 configures an acquisition task for the acquired target equipment and uploads an acquisition script;
s200, the task processing layer 20 analyzes the configuration of the acquisition task, distributes acquisition scripts for each target device through the interface of the script access layer 30 according to the analysis result, and the script access layer 30 stores the acquisition scripts distributed by the task processing layer 20;
s300, the information acquisition layer 40 acquires and executes an acquisition script corresponding to the target equipment by using an interface of the script access layer 30 to obtain an acquisition result, and uploads the acquisition result to the script access layer 30, and the script access layer 30 stores the acquisition result uploaded by the information acquisition layer 40;
s400, the task processing layer 20 obtains the acquisition result from the script access layer 30, analyzes the acquisition result and stores the analysis result.
Wherein the script access layer 30 comprises:
the task script storage unit 31 is configured to provide an interface of the task processing layer 20 and an interface of the information acquisition layer 40, and provide an acquisition script storage directory of each target device, where the acquisition script storage directory is used to store the acquisition script corresponding to each target device;
the acquisition result storage unit 32 provides an interface of the task processing layer 20 and an interface of the information acquisition layer 40, and provides an acquisition result storage directory for storing corresponding acquisition results of each target device.
Specifically, step S100 includes:
s110, the device management layer 10 is used for providing a visual configuration interface, grouping the acquired target devices, and configuring the target devices of the same acquisition type into a group;
and S120, configuring collection tasks aiming at the grouping, configuring and storing corresponding collection scripts aiming at each collection task.
Specifically, step S200 includes:
s210, the task processing layer 20 obtains and analyzes the configuration of the acquisition task, obtains grouping information, reads all target equipment information under grouping, and pulls an acquisition script corresponding to the acquisition task from the equipment management layer 10;
s220, respectively generating a task script storage directory for each target device in the task configuration in the task script storage unit 31 through an interface of the task script storage unit 31 of the script access layer 30, and distributing the acquisition script of each target device to a corresponding task script storage directory;
specifically, step S300 includes:
s310, the information acquisition layer 40 acquires an acquisition script corresponding to the target device through an interface of the task script storage unit 31 of the script access layer 30;
s320, executing the acquired acquisition script;
s330, adapting the acquisition items in the execution result of the acquisition script according to the constraint definition;
s340, assembling all the adapted acquisition items and generating a result file;
and S350, uploading the generated result file to a collection result storage directory corresponding to the target equipment in the collection result storage unit 32 through an interface of the collection result storage unit 32 of the script access layer 30.
Specifically, step S400 includes:
s410, the task processing layer 20 obtains a result file corresponding to the acquisition result through an interface of the acquisition result storage unit 32 of the script access layer 30;
and S420, analyzing the acquisition result of the result file according to the standard of the restrictive definition, analyzing the database table information and generating table data from the acquisition result, splicing the table information and the table data into corresponding database records, and then performing unified persistent warehousing.
In summary, the device and method for automatically acquiring device information of the present invention have the following advantages: the script access layer 30 of the invention can realize that the two functions of script distribution and acquisition result synchronous acquisition which cause the execution performance bottleneck of the acquisition task are separated independently, and because the task processing layer 20 directly acquires the acquisition result through the script access layer 30 instead of waiting for the result to return in a synchronous or asynchronous scheduling mode and the like, the stability and fault tolerance of the execution of the acquisition task are improved, and the acquisition and distribution performance bottleneck of the acquisition device when the number of acquisition devices is large is solved; similarly, the information acquisition layer 40 only needs to directly acquire the acquisition script and store the acquisition result through the interface of the script access layer 30, which greatly simplifies the complexity of the information acquisition layer 40; the script access layer 30 can be deployed as an independent application, and only an interface meeting the requirements of script storage and acquisition result storage needs to be provided externally, so that the operating pressure of the acquisition device can be better decomposed; furthermore, the script access layer 30 can be implemented by using protocols such as FTP (file transfer protocol), the protocol bypasses 22 ports, and has universality in a machine room network with higher requirements on safety specifications, and in addition, all requests are initiated outwards from the internal network of the acquired target equipment, so that the safety of the machine room network is further improved; furthermore, the invention carries out constraint definition of format and content on the script acquisition result, and the task processing layer 20 can directly analyze the database table information and generate table data from the acquisition result only according to the specification of the constraint definition to carry out uniform acquisition result persistence database entry operation; when an acquisition service is newly added, a database table is established, a self-defined acquisition script is compiled, and an acquisition task is configured and generated for the acquisition service in the acquisition device, so that the new acquisition service can be applied, and the method has good expansibility.
While the present invention has been described with reference to the particular illustrative embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but is intended to cover various modifications, equivalent arrangements, and equivalents thereof, which may be made by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. The utility model provides an automatic collection system of equipment information which characterized in that includes:
the device management layer is used for configuring an acquisition task for the acquired target device and uploading an acquisition script;
the task processing layer is used for analyzing the configuration of the acquisition task and distributing acquisition scripts for each target device through an interface of the script access layer according to an analysis result; acquiring an acquisition result from the script access layer and analyzing the acquisition result;
the script access layer is used for storing the acquisition script distributed by the task processing layer and the acquisition result uploaded by the information acquisition layer;
the information acquisition layer is used for acquiring and executing an acquisition script corresponding to the target equipment by using an interface of the script access layer to obtain an acquisition result, and uploading the acquisition result to the script access layer;
wherein the script access layer comprises:
the task script storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition script storage catalog of each target device for storing the acquisition script corresponding to the target device;
the acquisition result storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition result storage directory of each target device for storing the corresponding acquisition result;
the task processing layer comprises:
the task analysis unit is used for acquiring and analyzing the configuration of the acquisition task, acquiring grouping information, reading all target equipment information under the grouping, and pulling an acquisition script corresponding to the acquisition task from a script storage unit of an equipment management layer;
the script distribution unit is used for respectively generating a task script storage directory for each target device in the task script storage unit through an interface of the task script storage unit of the script access layer and distributing the acquisition script of each target device to the corresponding task script storage directory;
the result file acquisition unit is used for acquiring a result file corresponding to the acquisition result through an interface of the acquisition result storage unit of the script access layer;
and the acquisition result processing unit is used for analyzing the acquisition result of the result file according to the standard of the restrictive definition, analyzing the database table information and generating table data from the acquisition result, splicing the table information and the table data into corresponding database records, and then uniformly and durably warehousing the database records.
2. The device information automated acquisition apparatus of claim 1, wherein the information acquisition layer comprises:
the task script acquisition unit is used for acquiring an acquisition script corresponding to the target equipment through an interface of the task script storage unit of the script access layer;
the task script processing unit is used for executing the acquired acquisition script;
the result format adapting unit is used for adapting the acquisition items in the execution result of the acquisition script according to the constrained definition of the format and the content of the acquisition items;
the result file generating unit is used for splicing all the adapted acquisition items and generating a result file;
and the result file uploading unit is used for uploading the generated result file to a corresponding acquisition result storage directory of the target equipment in the acquisition result storage unit through an interface of the acquisition result storage unit of the script access layer.
3. The device information automatic acquisition apparatus according to claim 1, wherein the device management layer comprises:
the device management unit is used for providing a visual configuration interface, grouping the acquired target devices, and configuring the target devices with the same acquisition type into a group;
the acquisition task configuration unit is used for configuring acquisition tasks aiming at the groups and configuring and uploading corresponding acquisition scripts to the script storage unit aiming at each acquisition task;
and the script storage unit is used for providing the acquisition task configuration unit with functions of uploading and storing the acquisition script.
4. An automatic acquisition method for equipment information is characterized by comprising the following steps:
s100, configuring an acquisition task for the acquired target equipment and uploading an acquisition script by an equipment management layer;
s200, the task processing layer analyzes the configuration of the acquisition task, distributes acquisition scripts for each target device through an interface of the script access layer according to an analysis result, and the script access layer stores the acquisition scripts distributed by the task processing layer;
s300, the information acquisition layer acquires and executes an acquisition script corresponding to the target equipment by using an interface of the script access layer to obtain an acquisition result, and uploads the acquisition result to the script access layer, and the script access layer stores the acquisition result uploaded by the information acquisition layer;
s400, the task processing layer acquires the acquisition result from the script access layer, analyzes the acquisition result and stores the analysis result;
wherein the script access layer comprises:
the task script storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition script storage directory of each target device for storing the acquisition script corresponding to each target device;
the acquisition result storage unit is used for providing an interface of the task processing layer and an interface of the information acquisition layer and providing an acquisition result storage directory of each target device for storing the corresponding acquisition result;
the step S200 includes:
s210, a task processing layer obtains and analyzes the configuration of the acquisition task, obtains grouping information, reads all target equipment information under the grouping, and pulls an acquisition script corresponding to the acquisition task from an equipment management layer;
s220, respectively generating a task script storage directory for each target device in the task script storage unit through an interface of the task script storage unit of the script access layer, and distributing the acquisition script of each target device to the corresponding task script storage directory;
step S400 includes:
s410, the task processing layer obtains a result file corresponding to the acquisition result through an interface of an acquisition result storage unit of the script access layer;
and S420, analyzing the acquisition result of the result file according to the standard of the restrictive definition, analyzing the database table information and generating table data from the acquisition result, splicing the table information and the table data into corresponding database records, and then performing unified persistent warehousing.
5. The automatic acquisition method of the device information according to claim 4, wherein the step S300 comprises:
s310, the information acquisition layer acquires an acquisition script corresponding to the target equipment through an interface of a task script storage unit of the script access layer;
s320, executing the acquired acquisition script;
s330, adapting the acquisition items in the execution result of the acquisition script according to the constraint definition;
s340, assembling all the adapted acquisition items and generating a result file;
and S350, uploading the generated result file to a collection result storage directory corresponding to the target equipment in the collection result storage unit through an interface of the collection result storage unit of the script access layer.
6. The automatic acquisition method of the device information according to claim 4, wherein the step S100 comprises:
s110, the device management layer is used for providing a visual configuration interface, grouping the acquired target devices, and configuring the target devices of the same acquisition type into a group;
and S120, configuring collection tasks aiming at the grouping, configuring and storing corresponding collection scripts aiming at each collection task.
CN201711010732.9A 2017-10-25 2017-10-25 Automatic equipment information acquisition device and method Active CN109710605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711010732.9A CN109710605B (en) 2017-10-25 2017-10-25 Automatic equipment information acquisition device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711010732.9A CN109710605B (en) 2017-10-25 2017-10-25 Automatic equipment information acquisition device and method

Publications (2)

Publication Number Publication Date
CN109710605A CN109710605A (en) 2019-05-03
CN109710605B true CN109710605B (en) 2022-12-16

Family

ID=66252527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711010732.9A Active CN109710605B (en) 2017-10-25 2017-10-25 Automatic equipment information acquisition device and method

Country Status (1)

Country Link
CN (1) CN109710605B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008346A (en) * 2019-11-13 2020-04-14 苏宁云计算有限公司 Data acquisition method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0818559A (en) * 1994-07-04 1996-01-19 Matsushita Electric Ind Co Ltd Management processor
CN102456026A (en) * 2010-10-21 2012-05-16 ***通信集团浙江有限公司 Data acquisition device and method
CN104461856A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Performance test method, device and system based on cloud computing platform
CN104536809A (en) * 2014-11-26 2015-04-22 上海瀚之友信息技术服务有限公司 Distributed timing task scheduling system based on client and server system
CN105094961A (en) * 2015-08-11 2015-11-25 北京思特奇信息技术股份有限公司 Task scheduling management system based on quartz frame and method thereof
CN105933139A (en) * 2016-03-30 2016-09-07 广东凯通软件开发有限公司 Data processing method and device
CN106294852A (en) * 2016-08-22 2017-01-04 上海华力微电子有限公司 A kind of method that monitors for a long time to storage data
CN106775799A (en) * 2016-01-29 2017-05-31 新华三技术有限公司 A kind of script acquisition methods and device
CN106990770A (en) * 2015-11-06 2017-07-28 横河电机株式会社 Event resolver, event resolution system, event analytic method and event analysis program
WO2017166644A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Data acquisition method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0818559A (en) * 1994-07-04 1996-01-19 Matsushita Electric Ind Co Ltd Management processor
CN102456026A (en) * 2010-10-21 2012-05-16 ***通信集团浙江有限公司 Data acquisition device and method
CN104461856A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Performance test method, device and system based on cloud computing platform
CN104536809A (en) * 2014-11-26 2015-04-22 上海瀚之友信息技术服务有限公司 Distributed timing task scheduling system based on client and server system
CN105094961A (en) * 2015-08-11 2015-11-25 北京思特奇信息技术股份有限公司 Task scheduling management system based on quartz frame and method thereof
CN106990770A (en) * 2015-11-06 2017-07-28 横河电机株式会社 Event resolver, event resolution system, event analytic method and event analysis program
CN106775799A (en) * 2016-01-29 2017-05-31 新华三技术有限公司 A kind of script acquisition methods and device
CN105933139A (en) * 2016-03-30 2016-09-07 广东凯通软件开发有限公司 Data processing method and device
WO2017166644A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Data acquisition method and system
CN106294852A (en) * 2016-08-22 2017-01-04 上海华力微电子有限公司 A kind of method that monitors for a long time to storage data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
分布式JS解析在web信息采集***中的研究与应用;郑学通;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20160315(第3期);第1-62页 *
天津联通信息采集监控***的研究;胡雅楠;《万方博硕士论文库》;20111229;第1-78页 *

Also Published As

Publication number Publication date
CN109710605A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
EP3047376B1 (en) Type-to-type analysis for cloud computing technical components
CN108073402A (en) Kafka clusters automatic deployment method and device based on linux system
CN102880503A (en) Data analysis system and data analysis method
CN103927331A (en) Data querying method, data querying device and data querying system
CN101694626A (en) Script execution system and method
CN105930417B (en) A kind of big data ETL interactive process platform based on cloud computing
CN108365967A (en) Method, system, terminal and the computer readable storage medium of dynamic configuration communications parameter
CN102708232B (en) Processing method and device for distributed simulation data
CN103853585A (en) Method for implementing centralized management of versions through cloud
CN107609061A (en) A kind of method and apparatus of data syn-chronization
CN103200199A (en) Out of band (OOB) data collection system
CN104468274A (en) Cluster monitor and management method and system
CN110851234A (en) Log processing method and device based on docker container
CN109710263A (en) Compilation Method, device, storage medium and the electronic equipment of code
CN115480753A (en) Application integration system and corresponding computer device and storage medium
CN106708573A (en) System and method used for automatic installation of Hadoop cluster
CN106302864A (en) A kind of IP in order arranges system
CN112363809A (en) System and method for realizing micro-service link collection based on kubernets
CN104050003A (en) Method for starting Nutch collecting system with shell script
CN109710605B (en) Automatic equipment information acquisition device and method
CN110011827A (en) Towards doctor conjuncted multi-user's big data analysis service system and method
CN111435329A (en) Automatic testing method and device
CN107045538B (en) A kind of web terminal exchange management method based on kettle
CN108696559A (en) Method for stream processing and device
CN105743709A (en) Management device, complete cabinet management system and management method

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
CB02 Change of applicant information

Address after: 518057 w601, Shenzhen Hong Kong industry university research base, No. 015, Gaoxin South seventh Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Applicant after: ASPIRE TECHNOLOGIES (SHENZHEN) LTD.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high tech Industrial Park, ier building six floor West Wing

Applicant before: ASPIRE TECHNOLOGIES (SHENZHEN) LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant