CN114553930B - System integration method, device, computer equipment and storage medium - Google Patents
System integration method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114553930B CN114553930B CN202210094690.6A CN202210094690A CN114553930B CN 114553930 B CN114553930 B CN 114553930B CN 202210094690 A CN202210094690 A CN 202210094690A CN 114553930 B CN114553930 B CN 114553930B
- Authority
- CN
- China
- Prior art keywords
- cloud
- execution
- interface
- edge
- local
- 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
Links
- 230000010354 integration Effects 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000013515 script Methods 0.000 claims abstract description 108
- 238000004590 computer program Methods 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 10
- 150000001875 compounds Chemical class 0.000 claims description 9
- 238000004806 packaging method and process Methods 0.000 claims description 5
- 238000005336 cracking Methods 0.000 abstract description 14
- 238000004891 communication Methods 0.000 description 13
- 238000009434 installation Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 230000004044 response Effects 0.000 description 7
- 238000012827 research and development Methods 0.000 description 4
- 230000009466 transformation Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/30—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a system integration method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: calling a cloud execution interface A and a cloud query interface B to acquire Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file; and calling the cloud query interface B and acquiring a return result of the cloud interface A by accessing the cloud database. By applying the scheme of the invention, the security is high when the system is integrated, the cloud end and the edge end are based on an RSA login mode, so that the security access is ensured, and the risks of losing, stealing and brute force cracking of the user password are reduced.
Description
Technical Field
The present invention relates to the field of system integration technologies, and in particular, to a system integration method, apparatus, computer device, and storage medium.
Background
At present, the system scale of an integrated system is larger and larger, the integrated call between systems is more and more frequent, and the information processing between systems is not only limited to simple data form submission, analysis and query. In addition, many highly specialized software often have poor security, in terms of supporting only local operations, language biasing to the bottom, and not supporting network remote invocation. Therefore, if the software is subjected to secondary research and development transformation, the problems of high technical difficulty and high personnel cost are obviously faced. Therefore, how to safely, quickly and conveniently enable a user to automatically load a model, update driving software and execute artificial intelligence tasks through simple operation of the edge equipment becomes a problem to be solved in the industry.
Disclosure of Invention
The invention aims to solve the technical problems that: in the prior art, system integrated software is subjected to secondary research and development transformation, and the problems of high technical difficulty and high personnel cost are faced.
In order to solve the above technical problems, the present invention provides a system integration method, applied to a cloud, comprising:
Calling a cloud execution interface A and a cloud query interface B to acquire Shell scripts of the edge terminal equipment;
The cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file;
and calling the cloud query interface B and acquiring a return result of the cloud interface A by accessing the cloud database.
Optionally, the calling the cloud execution interface a and the cloud query interface B to obtain Shell scripts of the edge device includes:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
Optionally, the cloud execution interface a connects to an edge server based on RSA, and invokes a Shell script of the edge device, including:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
Optionally, the calling the cloud query interface B and obtaining the returned result of the cloud interface a by accessing the cloud database includes:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
In order to solve the above technical problems, the present invention provides a system integration method, applied to an edge, comprising:
Responding to the cloud execution interface A and the cloud query interface B to be called, and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
encapsulating the Shell script of the edge terminal equipment with a local command, executing an operation, and writing an execution result into a local designated file;
After the edge terminal device writes the execution result into the local designated file, periodically and asynchronously writing data into a cloud database so as to call the cloud query interface B and acquire a returned result of the cloud interface A by accessing the cloud database.
Optionally, the encapsulating the Shell script of the edge device with a local command and executing an operation, and writing an execution result into a local designated file, including:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
Optionally, after the edge device writes the execution result to the local designated file, writing the data to the cloud database periodically and asynchronously, including:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
In order to solve the above technical problems, the present invention provides a system integration device, applied to a cloud, comprising:
The first call acquisition module is used for calling the cloud execution interface A and the cloud inquiry interface B to acquire Shell scripts of the edge terminal equipment;
The cloud end device comprises a first execution module, a cloud end execution interface A, a cloud end database and a cloud end database, wherein the first execution module is used for enabling a cloud end execution interface A to be connected with an edge end server based on RSA and calling Shell scripts of the edge end device so as to package local commands and execute operations of the Shell scripts of the edge end device, writing execution results into a local designated file, and writing data into the cloud end database periodically and asynchronously after the execution results are written into the local designated file by the edge end device;
The first result return module is used for calling the cloud query interface B and obtaining a return result of the cloud interface A by accessing the cloud database.
Optionally, the first call acquisition module is specifically configured to:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
Optionally, the first execution module is specifically configured to:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
Optionally, the first result return module is configured to:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
In order to solve the above technical problems, the present invention provides a system integration device, which is applied to an edge, and includes:
The second call acquisition module is used for responding to the cloud execution interface A and the cloud query interface B to be called and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
The second execution module is used for packaging the Shell script of the edge terminal equipment into a local command and executing the operation, and writing the execution result into a local designated file;
The second execution result returning module is used for writing the execution result into the cloud database periodically and asynchronously after the edge terminal equipment writes the execution result into the local designated file, so as to call the cloud query interface B and acquire a returned result of the cloud interface A by accessing the cloud database.
Optionally, the second execution module is configured to:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
Optionally, the second execution result returning module is configured to:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
To solve the above technical problem, the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the above method when executing the computer program.
To solve the above technical problem, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method.
One or more embodiments of the above-described solution may have the following advantages or benefits compared to the prior art:
By applying the system integration method, the system integration device, the computer equipment and the storage medium, the cloud call cloud execution interface A and the cloud query interface B to acquire Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file; and calling the cloud query interface B and acquiring a return result of the cloud interface A by accessing the cloud database.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The drawings included herein are:
FIG. 1 is a flowchart of a system integration method according to an embodiment of the present invention;
FIG. 2 is an overall schematic diagram of a system integration provided by an embodiment of the present invention;
FIG. 3 is another flowchart of a system integration method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a system integration device according to an embodiment of the present invention;
FIG. 5 is another block diagram of a system integration device according to an embodiment of the present invention;
Fig. 6 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the implementation method of the present invention will be given with reference to the accompanying drawings and examples, by which the technical means are applied to solve the technical problems, and the implementation process for achieving the technical effects can be fully understood and implemented accordingly.
At present, the system scale of an integrated system is larger and larger, the integrated call between systems is more and more frequent, and the information processing between systems is not only limited to simple data form submission, analysis and query. In addition, many highly specialized software often have poor security, in terms of supporting only local operations, language biasing to the bottom, and not supporting network remote invocation. Therefore, if the software is subjected to secondary research and development transformation, the problems of high technical difficulty and high personnel cost are obviously faced. Therefore, how to safely, quickly and conveniently enable a user to automatically load a model, update driving software and execute artificial intelligence tasks through simple operation of the edge equipment is needed to be solved in the industry.
In view of the above, in order to solve the problems of great technical difficulty and high personnel cost in the prior art of performing secondary research and development transformation on system integrated software, the invention provides a system integration method, a device, computer equipment and a storage medium.
The system integration method provided by the embodiment of the invention is described below.
Example 1
As shown in fig. 1, a flowchart of a system integration method provided by an embodiment of the present invention is applied to a cloud, and referring to fig. 2, the method may include the following steps:
Step S101: and calling a cloud execution interface A and a cloud query interface B to acquire Shell scripts of the edge terminal equipment.
In an implementation manner, the call cloud execution interface a and cloud query interface B obtain Shell scripts of the edge device, including:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
It should be noted that the Spring Boot is a brand new framework provided by Pivotal team, and its design purpose is to simplify the initial building and development process of the new Spring application. The framework is configured in a particular manner so that developers no longer need to define a templated configuration. In this way, spring boot is dedicated to be the leader in the rapidly developing field of rapid application development (rapid application development).
Step S102: the cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file.
An RSA public key cryptosystem is a cryptosystem that uses different encryption keys and decryption keys, and "deriving a decryption key from a known encryption key is computationally infeasible". One of the pair of RSA keys is a secret key which is stored by the user; the other is a public key, which can be disclosed externally and even registered in a network server. To increase security, RSA keys are at least 500 bits long, and 1024 bits are generally recommended.
In one implementation manner, the cloud execution interface a connects to an edge server based on RSA and invokes a Shell script of the edge device, including:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
It should be noted that UUID is an abbreviation of universal unique identification code (Universally Unique Identifier), which is a standard for software construction and is also a part of the organization of open software foundation in the field of distributed computing environments. The purpose is to make all elements in the distributed system have unique identification information without the need of specifying the identification information by a central control terminal. In this way, everyone can create a UUID that does not conflict with others. In such a case, the name duplication problem at the time of database creation need not be considered. The most widely used UUID is microsoft corporation's Globally Unique Identifier (GUID), while other important applications are linux ext2/ext3 file system, LUKS encrypted partitions, GNOME, KDE, macOSX, etc.
Step S103: and calling the cloud query interface B and acquiring a return result of the cloud interface A by accessing the cloud database.
In one implementation manner, the calling the cloud query interface B and obtaining the returned result of the cloud interface a by accessing the cloud database includes:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
Wherein the edge device (EDGE DEVICE) is a device that provides an entry point to an enterprise or service provider core network. They are for example: routers, routing switches, integrated Access Devices (IADs), multiplexers, and various Metropolitan Area Network (MAN) and Wide Area Network (WAN) access devices. The edge devices also provide connectivity to the carrier and service provider networks.
Wherein an edge port (portfast) refers to a port that is not directly connected to any switch, nor is it indirectly connected to any switch through the network to which the port is connected. The ports may be configured as edge ports or non-edge ports by the following two approaches. If a user designates a port as an edge port, then when the port transitions from a blocked state to a forwarding state, the port can be quickly migrated without waiting for a delay time. The user can only set the port connected to the terminal as an edge port. This parameter is valid for all spanning tree instances, that is, when a port is configured as an edge port or a non-edge port, the port is set as an edge port or a non-edge port on all spanning tree instances.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example two
As shown in fig. 3, another flowchart of the system integration method provided in the embodiment of the present invention, applied to an edge, please refer to fig. 2, may include the following steps:
Step S201: responding to the cloud execution interface A and the cloud query interface B to be called, and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device.
Step S202: and packaging the Shell script of the edge terminal equipment into a local command, executing the operation, and writing the execution result into a local designated file.
In one implementation manner, the encapsulating the Shell script of the edge device with a local command and executing an operation, and writing an execution result into a local designated file includes:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
Step S203: after the edge terminal device writes the execution result into the local designated file, periodically and asynchronously writing data into a cloud database so as to call the cloud query interface B and acquire a returned result of the cloud interface A by accessing the cloud database.
In one implementation manner, after the edge device writes the execution result to the local designated file, writing the data to the cloud database periodically and asynchronously, including:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
The system integration device provided by the invention is further described below.
Example III
As shown in fig. 4, a block diagram of a system integration device provided by an embodiment of the present invention is applied to a cloud, and the device includes:
the first call obtaining module 310 is configured to call the cloud execution interface a and the cloud query interface B to obtain Shell scripts of the edge device;
The first execution module 320 is configured to connect the cloud execution interface a to the edge server based on RSA, and call the Shell script of the edge device, so as to encapsulate the Shell script of the edge device into a local command and execute an operation, write an execution result into a local designated file, and write data into the cloud database periodically and asynchronously after the edge device writes the execution result into the local designated file;
the first result return module 330 is configured to invoke the cloud query interface B and obtain a return result of the cloud interface a by accessing the cloud database.
In one case, the first call acquisition module 310 is specifically configured to:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
In one case, the first execution module 320 is specifically configured to:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
In one case, the first result return module 330 is configured to:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example IV
As shown in fig. 5, another block diagram of a system integration device provided by an embodiment of the present invention is applied to an edge, and corresponds to the method embodiment shown in fig. 3, where the device includes:
The second call acquisition module 410 is configured to acquire a Shell script of the edge device in response to the cloud execution interface a and the cloud query interface B being called; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
The second execution module 420 is configured to encapsulate the Shell script of the edge device into a local command and execute an operation, and write an execution result into a local designated file;
The second execution result returning module 430 is configured to write, after the edge device writes the execution result to the local designated file, data to the cloud database periodically and asynchronously, so as to call the cloud query interface B and obtain a returned result of the cloud interface a by accessing the cloud database.
In one case, the second execution module 410 is configured to:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
In one case, the second execution result returning module 430 is configured to:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example five
To solve the above technical problem, the present invention provides a computer device, as shown in fig. 6, including a memory 510, a processor 520, and a computer program stored on the memory and executable on the processor, where the processor implements the method as described above when executing the computer program.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer devices may include, but are not limited to, a processor 520, a memory 510. It will be appreciated by those skilled in the art that fig. 6 is merely an example of a computer device and is not intended to be limiting, and that more or fewer components than shown may be included, or certain components may be combined, or different components may be included, for example, in a computer device that may also include input-output devices, network access devices, buses, etc.
The processor 520 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-programmable gate array (field-programmable GATE ARRAY, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 510 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory 510 may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc. that are provided on the computer device. Further, the memory 510 may also include both internal storage units and external storage devices of the computer device. The memory 510 is used to store the computer program and other programs and data required by the computer device. The memory 510 may also be used to temporarily store data that has been output or is to be output.
A method implemented when the processor executes the computer program, comprising the steps of:
the system integration method provided by the embodiment of the invention is described below.
Example 1
As shown in fig. 1, a flowchart of a system integration method provided by an embodiment of the present invention is applied to a cloud, and referring to fig. 2, the method may include the following steps:
Step S101: and calling a cloud execution interface A and a cloud query interface B to acquire Shell scripts of the edge terminal equipment.
In an implementation manner, the call cloud execution interface a and cloud query interface B obtain Shell scripts of the edge device, including:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
Step S102: the cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file.
In one implementation manner, the cloud execution interface a connects to an edge server based on RSA and invokes a Shell script of the edge device, including:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
Step S103: and calling the cloud query interface B and acquiring a return result of the cloud interface A by accessing the cloud database.
In one implementation manner, the calling the cloud query interface B and obtaining the returned result of the cloud interface a by accessing the cloud database includes:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
Wherein the edge device (EDGE DEVICE) is a device that provides an entry point to an enterprise or service provider core network. They are for example: routers, routing switches, integrated Access Devices (IADs), multiplexers, and various Metropolitan Area Network (MAN) and Wide Area Network (WAN) access devices. The edge devices also provide connectivity to the carrier and service provider networks.
Wherein an edge port (portfast) refers to a port that is not directly connected to any switch, nor is it indirectly connected to any switch through the network to which the port is connected. The ports may be configured as edge ports or non-edge ports by the following two approaches. If a user designates a port as an edge port, then when the port transitions from a blocked state to a forwarding state, the port can be quickly migrated without waiting for a delay time. The user can only set the port connected to the terminal as an edge port. This parameter is valid for all spanning tree instances, that is, when a port is configured as an edge port or a non-edge port, the port is set as an edge port or a non-edge port on all spanning tree instances.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example two
As shown in fig. 3, another flowchart of the system integration method provided in the embodiment of the present invention, applied to an edge, please refer to fig. 2, may include the following steps:
Step S201: responding to the cloud execution interface A and the cloud query interface B to be called, and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device.
Step S202: and packaging the Shell script of the edge terminal equipment into a local command, executing the operation, and writing the execution result into a local designated file.
In one implementation manner, the encapsulating the Shell script of the edge device with a local command and executing an operation, and writing an execution result into a local designated file includes:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
Step S203: after the edge terminal device writes the execution result into the local designated file, periodically and asynchronously writing data into a cloud database so as to call the cloud query interface B and acquire a returned result of the cloud interface A by accessing the cloud database.
In one implementation manner, after the edge device writes the execution result to the local designated file, writing the data to the cloud database periodically and asynchronously, including:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
The system integration device provided by the invention is further described below.
Example III
As shown in fig. 4, a block diagram of a system integration device provided by an embodiment of the present invention is applied to a cloud, and the device includes:
the first call obtaining module 310 is configured to call the cloud execution interface a and the cloud query interface B to obtain Shell scripts of the edge device;
The first execution module 320 is configured to connect the cloud execution interface a to the edge server based on RSA, and call the Shell script of the edge device, so as to encapsulate the Shell script of the edge device into a local command and execute an operation, write an execution result into a local designated file, and write data into the cloud database periodically and asynchronously after the edge device writes the execution result into the local designated file;
the first result return module 330 is configured to invoke the cloud query interface B and obtain a return result of the cloud interface a by accessing the cloud database.
In one case, the first call acquisition module 310 is specifically configured to:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
In one case, the first execution module 320 is specifically configured to:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
In one case, the first result return module 330 is configured to:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example IV
As shown in fig. 5, another block diagram of a system integration device provided by an embodiment of the present invention is applied to an edge, and corresponds to the method embodiment shown in fig. 3, where the device includes:
The second call acquisition module 410 is configured to acquire a Shell script of the edge device in response to the cloud execution interface a and the cloud query interface B being called; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
The second execution module 420 is configured to encapsulate the Shell script of the edge device into a local command and execute an operation, and write an execution result into a local designated file;
The second execution result returning module 430 is configured to write, after the edge device writes the execution result to the local designated file, data to the cloud database periodically and asynchronously, so as to call the cloud query interface B and obtain a returned result of the cloud interface a by accessing the cloud database.
In one case, the second execution module 410 is configured to:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
In one case, the second execution result returning module 430 is configured to:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example six
The embodiment of the present application also provides a computer readable storage medium, which may be a computer readable storage medium contained in the memory in the above embodiment; or a computer readable storage medium, alone, that is not assembled into a computer device. The computer readable storage medium stores one or more computer programs which when executed by a processor implement the methods described above.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory 510, a read-only memory (ROM), a random access memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
A method implemented when the processor executes the computer program, comprising the steps of:
the system integration method provided by the embodiment of the invention is described below.
Example 1
As shown in fig. 1, a flowchart of a system integration method provided by an embodiment of the present invention is applied to a cloud, and referring to fig. 2, the method may include the following steps:
Step S101: and calling a cloud execution interface A and a cloud query interface B to acquire Shell scripts of the edge terminal equipment.
In an implementation manner, the call cloud execution interface a and cloud query interface B obtain Shell scripts of the edge device, including:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
Step S102: the cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file.
In one implementation manner, the cloud execution interface a connects to an edge server based on RSA and invokes a Shell script of the edge device, including:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
Step S103: and calling the cloud query interface B and acquiring a return result of the cloud interface A by accessing the cloud database.
In one implementation manner, the calling the cloud query interface B and obtaining the returned result of the cloud interface a by accessing the cloud database includes:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
Wherein the edge device (EDGE DEVICE) is a device that provides an entry point to an enterprise or service provider core network. They are for example: routers, routing switches, integrated Access Devices (IADs), multiplexers, and various Metropolitan Area Network (MAN) and Wide Area Network (WAN) access devices. The edge devices also provide connectivity to the carrier and service provider networks.
Wherein an edge port (portfast) refers to a port that is not directly connected to any switch, nor is it indirectly connected to any switch through the network to which the port is connected. The ports may be configured as edge ports or non-edge ports by the following two approaches. If a user designates a port as an edge port, then when the port transitions from a blocked state to a forwarding state, the port can be quickly migrated without waiting for a delay time. The user can only set the port connected to the terminal as an edge port. This parameter is valid for all spanning tree instances, that is, when a port is configured as an edge port or a non-edge port, the port is set as an edge port or a non-edge port on all spanning tree instances.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example two
As shown in fig. 3, another flowchart of the system integration method provided in the embodiment of the present invention, applied to an edge, please refer to fig. 2, may include the following steps:
Step S201: responding to the cloud execution interface A and the cloud query interface B to be called, and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device.
Step S202: and packaging the Shell script of the edge terminal equipment into a local command, executing the operation, and writing the execution result into a local designated file.
In one implementation manner, the encapsulating the Shell script of the edge device with a local command and executing an operation, and writing an execution result into a local designated file includes:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
Step S203: after the edge terminal device writes the execution result into the local designated file, periodically and asynchronously writing data into a cloud database so as to call the cloud query interface B and acquire a returned result of the cloud interface A by accessing the cloud database.
In one implementation manner, after the edge device writes the execution result to the local designated file, writing the data to the cloud database periodically and asynchronously, including:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
The system integration device provided by the invention is further described below.
Example III
As shown in fig. 4, a block diagram of a system integration device provided by an embodiment of the present invention is applied to a cloud, and the device includes:
the first call obtaining module 310 is configured to call the cloud execution interface a and the cloud query interface B to obtain Shell scripts of the edge device;
The first execution module 320 is configured to connect the cloud execution interface a to the edge server based on RSA, and call the Shell script of the edge device, so as to encapsulate the Shell script of the edge device into a local command and execute an operation, write an execution result into a local designated file, and write data into the cloud database periodically and asynchronously after the edge device writes the execution result into the local designated file;
the first result return module 330 is configured to invoke the cloud query interface B and obtain a return result of the cloud interface a by accessing the cloud database.
In one case, the first call acquisition module 310 is specifically configured to:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
In one case, the first execution module 320 is specifically configured to:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
In one case, the first result return module 330 is configured to:
and the cloud interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
Example IV
As shown in fig. 5, another block diagram of a system integration device provided by an embodiment of the present invention is applied to an edge, and corresponds to the method embodiment shown in fig. 3, where the device includes:
The second call acquisition module 410 is configured to acquire a Shell script of the edge device in response to the cloud execution interface a and the cloud query interface B being called; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
The second execution module 420 is configured to encapsulate the Shell script of the edge device into a local command and execute an operation, and write an execution result into a local designated file;
The second execution result returning module 430 is configured to write, after the edge device writes the execution result to the local designated file, data to the cloud database periodically and asynchronously, so as to call the cloud query interface B and obtain a returned result of the cloud interface a by accessing the cloud database.
In one case, the second execution module 410 is configured to:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
In one case, the second execution result returning module 430 is configured to:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
Therefore, by applying the system integration scheme provided by the invention, the system integration is high in safety, and the cloud end and the edge end are based on an RSA login mode, so that the safety access is ensured, and the risks of losing, stealing and violently cracking the user password are reduced. In addition, the invention is extremely simple and convenient when the inter-system interface integration is carried out, has no reconstruction requirement on the original execution program and has no destructiveness. Moreover, the responsibility boundary is clear when the system is used for system integration. In addition, the scheme of the invention has wide applicability, and can be widely applied to application scenes such as communication between a cloud end and an edge end, remote interface call, automatic installation and deployment, artificial intelligent software integration, remote automatic control of a specialized system and the like.
For system or apparatus embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the description of method embodiments in part.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
It is to be understood that the terminology used in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a condition or event is determined" or "if a condition or event is detected" may be interpreted in the context to mean "upon determination" or "in response to determination" or "upon detection of a condition or event, or" in response to detection of a condition or event.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (11)
1. The system integration method is characterized by being applied to a cloud end and comprising the following steps of:
Calling a cloud execution interface A and a cloud query interface B to acquire Shell scripts of the edge terminal equipment;
The cloud execution interface A is connected with an edge server based on RSA, and invokes Shell scripts of the edge device so as to package local commands and execute operations of the Shell scripts of the edge device, write execution results into a local designated file, and write data into a cloud database periodically and asynchronously after the edge device writes the execution results into the local designated file;
and calling the cloud query interface B and acquiring a return result of the cloud execution interface A by accessing the cloud database.
2. The system integration method according to claim 1, wherein before the cloud execution interface a and the cloud query interface B are called to obtain Shell scripts of the edge device, the system integration method further comprises:
And developing a cloud execution interface A and a cloud query interface B based on an HTTP (hyper text transport protocol) by using SpringBoot frames.
3. The system integration method according to claim 1, wherein the cloud execution interface a connects to an edge server based on RSA and invokes a Shell script of the edge device, and the method comprises:
Responding to the call of the cloud execution interface A, generating UUID task codes, writing the UUID task codes into a cloud database, and combining the UUID task codes with input parameters to call Shell scripts of the edge terminal equipment;
And after the cloud execution interface A calls the Shell script of the edge terminal equipment, returning the UUID task code so as to be used when the cloud inquiry interface B inquires a return result.
4. The system integration method according to claim 3, wherein the calling the cloud query interface B and obtaining the returned result of the cloud execution interface a by accessing the cloud database includes:
And the cloud query interface B searches the cloud database according to the UUID task code and returns an execution result corresponding to the UUID task code.
5. A system integration method, applied to an edge, comprising:
Responding to the cloud execution interface A and the cloud query interface B to be called, and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
encapsulating the Shell script of the edge terminal equipment with a local command, executing an operation, and writing an execution result into a local designated file;
after the edge terminal device writes the execution result into the local designated file, periodically and asynchronously writing data into a cloud database so as to call the cloud query interface B and acquire a return result of the cloud execution interface A by accessing the cloud database.
6. The system integration method according to claim 5, wherein the encapsulating the Shell script of the edge device with a local command and performing an operation, and writing the result of the execution into a local specification file, includes:
And responding to the call of the shell script of the edge terminal equipment, executing the corresponding function according to the input parameters, redirecting the execution result to a local file under the designated directory, and encoding the UUID task as the file name of the local file.
7. The system integration method according to claim 5, wherein writing data to the cloud database periodically and asynchronously after the edge device writes the execution result to the local designated file includes:
Acquiring a local file under the use collection appointed directory of the edge terminal equipment;
And writing an execution result into the cloud database by taking the file name and the file line number of the local file as a compound primary key and the line information as a value.
8. A system integration device, applied to a cloud, comprising:
The first call acquisition module is used for calling the cloud execution interface A and the cloud inquiry interface B to acquire Shell scripts of the edge terminal equipment;
The cloud end device comprises a first execution module, a cloud end execution interface A, a cloud end database and a cloud end database, wherein the first execution module is used for enabling a cloud end execution interface A to be connected with an edge end server based on RSA and calling Shell scripts of the edge end device so as to package local commands and execute operations of the Shell scripts of the edge end device, writing execution results into a local designated file, and writing data into the cloud end database periodically and asynchronously after the execution results are written into the local designated file by the edge end device;
the first result return module is used for calling the cloud query interface B and obtaining a return result of the cloud execution interface A by accessing the cloud database.
9. A system integration apparatus, for use at an edge, comprising:
The second call acquisition module is used for responding to the cloud execution interface A and the cloud query interface B to be called and acquiring Shell scripts of the edge terminal equipment; the cloud execution interface A is connected with an edge server based on RSA and calls Shell scripts of the edge device;
The second execution module is used for packaging the Shell script of the edge terminal equipment into a local command and executing the operation, and writing the execution result into a local designated file;
The second execution result return module is used for writing the data into the cloud database periodically and asynchronously after the execution result is written into the local designated file by the edge terminal equipment so as to call the cloud query interface B and acquire the return result of the cloud execution interface A by accessing the cloud database.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-4 or 5-7 when the computer program is executed.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any one of claims 1-4 or claims 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094690.6A CN114553930B (en) | 2022-01-26 | 2022-01-26 | System integration method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094690.6A CN114553930B (en) | 2022-01-26 | 2022-01-26 | System integration method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114553930A CN114553930A (en) | 2022-05-27 |
CN114553930B true CN114553930B (en) | 2024-04-16 |
Family
ID=81674387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210094690.6A Active CN114553930B (en) | 2022-01-26 | 2022-01-26 | System integration method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114553930B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006026686A1 (en) * | 2004-08-31 | 2006-03-09 | Ascential Software Corporation | User interfaces for data integration systems |
WO2017177769A1 (en) * | 2016-04-11 | 2017-10-19 | 平安科技(深圳)有限公司 | Ogg version deployment method and system, server, and storage medium |
CN110275872A (en) * | 2019-07-18 | 2019-09-24 | 中国银行股份有限公司 | Version automatic deployment method, device, computer equipment and storage medium |
CN110795125A (en) * | 2019-10-21 | 2020-02-14 | 上海器魂智能科技有限公司 | Software updating method, system, device and readable storage medium based on DevOps framework |
CN112433899A (en) * | 2020-11-27 | 2021-03-02 | 中国建设银行股份有限公司 | Cloud server batch detection method, device, equipment and storage medium |
CN112685051A (en) * | 2020-12-31 | 2021-04-20 | 北京华胜天成科技股份有限公司 | Method, device, platform and storage medium for automatically executing shell script |
CN113422683A (en) * | 2021-03-04 | 2021-09-21 | 上海数道信息科技有限公司 | Edge cloud cooperative data transmission method, system, storage medium and terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8521808B2 (en) * | 2010-07-27 | 2013-08-27 | International Business Machines Corporation | Uploading and executing command line scripts |
US10686596B2 (en) * | 2018-03-01 | 2020-06-16 | Microsoft Technology Licensing, Llc | Mutually authenticated adaptive management interfaces for interaction with sensitive infrastructure |
-
2022
- 2022-01-26 CN CN202210094690.6A patent/CN114553930B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006026686A1 (en) * | 2004-08-31 | 2006-03-09 | Ascential Software Corporation | User interfaces for data integration systems |
WO2017177769A1 (en) * | 2016-04-11 | 2017-10-19 | 平安科技(深圳)有限公司 | Ogg version deployment method and system, server, and storage medium |
CN110275872A (en) * | 2019-07-18 | 2019-09-24 | 中国银行股份有限公司 | Version automatic deployment method, device, computer equipment and storage medium |
CN110795125A (en) * | 2019-10-21 | 2020-02-14 | 上海器魂智能科技有限公司 | Software updating method, system, device and readable storage medium based on DevOps framework |
CN112433899A (en) * | 2020-11-27 | 2021-03-02 | 中国建设银行股份有限公司 | Cloud server batch detection method, device, equipment and storage medium |
CN112685051A (en) * | 2020-12-31 | 2021-04-20 | 北京华胜天成科技股份有限公司 | Method, device, platform and storage medium for automatically executing shell script |
CN113422683A (en) * | 2021-03-04 | 2021-09-21 | 上海数道信息科技有限公司 | Edge cloud cooperative data transmission method, system, storage medium and terminal |
Non-Patent Citations (2)
Title |
---|
基于BerkeleyDB的嵌入式实时数据库研究;黄建岗;李孝忠;;天津科技大学学报;20100625(03);全文 * |
基于智能化集成设备的医院大数据信息化云测试***设计;谈永奇;王换换;阳媛;张鑫;;计算机测量与控制;20200825(08);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114553930A (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109558748B (en) | Data processing method and device, electronic equipment and storage medium | |
US10768919B2 (en) | Package installation on a host file system using a container | |
US6871223B2 (en) | System and method for agent reporting in to server | |
US8386608B1 (en) | Service scripting framework | |
CN110601880A (en) | Cloud platform, service processing method, command interface and computer equipment | |
WO2016033966A1 (en) | Protection method and device for application data | |
CN113867913A (en) | Business request processing method, device, equipment and storage medium for microservice | |
CN111881473B (en) | Privacy file protection method, device, computer equipment and readable storage medium | |
CN111026367A (en) | Micro-service arranging method and device, terminal equipment and storage medium | |
CN109995523B (en) | Activation code management method and device and activation code generation method and device | |
CN110070360B (en) | Transaction request processing method, device, equipment and storage medium | |
CN107368339B (en) | Container entrance program operation method, system, device and storage medium | |
US9942267B1 (en) | Endpoint segregation to prevent scripting attacks | |
US8627434B2 (en) | Cross security-domain identity context projection within a computing environment | |
WO2020006911A1 (en) | Hybrid app interface calling method and device, and computer-readable storage medium | |
CN102132267A (en) | Dynamic metadata | |
US20210234686A1 (en) | Information processing device, information processing method, and storage medium | |
CN114553930B (en) | System integration method, device, computer equipment and storage medium | |
US7779139B2 (en) | Normalization of binary data | |
US8418170B2 (en) | Method and system for assessing deployment and un-deployment of software installations | |
CN108021801B (en) | Virtual desktop-based anti-leakage method, server and storage medium | |
US10044728B1 (en) | Endpoint segregation to prevent scripting attacks | |
CN112130900B (en) | User information management method, system, equipment and medium for BMC | |
CN108509229A (en) | Method, terminal device and the computer readable storage medium of the cross-domain control of window | |
US11379268B1 (en) | Affinity-based routing and execution for workflow service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |