CN114363332B - Remote automatic operation and maintenance method based on distributed gateway - Google Patents
Remote automatic operation and maintenance method based on distributed gateway Download PDFInfo
- Publication number
- CN114363332B CN114363332B CN202111609734.6A CN202111609734A CN114363332B CN 114363332 B CN114363332 B CN 114363332B CN 202111609734 A CN202111609734 A CN 202111609734A CN 114363332 B CN114363332 B CN 114363332B
- Authority
- CN
- China
- Prior art keywords
- gateway
- server
- remote
- deployment
- information
- 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
- 238000012423 maintenance Methods 0.000 title claims abstract description 27
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000010076 replication Effects 0.000 claims abstract description 5
- 230000006978 adaptation Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
Abstract
The invention discloses a remote automatic operation and maintenance method based on a distributed gateway, which is characterized in that server information in remote deployment related information is recorded in a server management module of a local server; gateway attachment information in the related information of remote deployment is recorded in a file resource management module of an attachment server; according to the server information list in the server management module, establishing connection between the local server and all the remote servers; according to the established connection channels of the local server and all the remote servers, executing an mkdir creation folder instruction in ssh2 to create a deployment path; and calling SCP replication instructions according to the established connection channels of the local server and all the remote servers and the established deployment path, and dynamically uploading gateway attachment information in the file resource management module to realize automatic deployment. The invention greatly improves the working efficiency of operation and maintenance personnel, reduces the operation and maintenance cost and meets the requirements of the operation and maintenance personnel.
Description
Technical Field
The invention relates to a distributed gateway-based remote automatic operation and maintenance method, and belongs to the technical fields of remote deployment technology and gateway management systems.
Background
At present, the remote deployment technology is mostly that a remote address, a user name and a password are input manually through connection software and connected to a target server, and a gateway to be deployed is uploaded to a designated directory; for a distributed gateway, artificially recording a gateway deployment version number; and checking whether the gateway is started or stopped and down or not and checking logs, and enabling operation and maintenance personnel to operate on the server at regular time.
The traditional remote deployment technology is also operated remotely by a mechanical person through a connecting tool, and for operation and maintenance personnel, a great number of addresses, user names and passwords of the servers need to be memorized; for the distributed gateway, each deployment needs to manually record the gateway deployment version number, so that a unified gateway version is ensured; for the start and stop of the gateway, particularly whether the gateway is down or not and whether an abnormal log exists, operation and maintenance personnel are required to remotely check on each server at regular time, so that the labor cost is greatly wasted, and the requirements of the operation and maintenance personnel cannot be met.
Disclosure of Invention
The purpose is as follows: in order to overcome the defects in the prior art, the invention provides a remote automatic operation and maintenance method based on a distributed gateway.
The technical scheme is as follows: in order to solve the technical problems, the invention adopts the following technical scheme:
a remote automatic operation and maintenance method based on a distributed gateway comprises the following steps:
server information in the remotely deployed related information is recorded in a server management module of the local server.
Gateway attachment information in the remotely deployed related information is recorded in a file resource management module of an attachment server.
And establishing connection between the local server and all the remote servers according to the server information list in the server management module.
And executing an mkdir creation folder instruction in ssh2 according to the established connection channels of the local server and all the remote servers, and creating a deployment path.
And calling SCP replication instructions according to the established connection channels of the local server and all the remote servers and the established deployment path, and dynamically uploading gateway attachment information in the file resource management module to realize automatic deployment.
Preferably, the method further comprises: according to the gateway and the basic information of the gateway which are automatically deployed, the gateway is started and stopped by one key, and the starting and stopping states of the gateway are displayed in real time.
Preferably, the server information includes: server ip address, username, password, port number, or deployment path.
Preferably, the gateway attachment information includes: an attachment, version number, or remark.
Preferably, the remote deployment related information and the gateway basic information are stored in a database.
Preferably, the connection between the local server and all the remote servers is established, which comprises the following steps:
the local server dynamically inputs a server ip address, a port number, a user name and a password of the remote server by adopting a connect connection instruction in ssh2, calls an authpassphrase authentication user name password instruction, calls an openSession instruction to open a connection channel, and keeps the channel open.
As a preferred solution, the automated deployment comprises the steps of:
and dynamically selecting an accessory with a corresponding version number of the gateway to be deployed according to the established connection channels of the local server and all remote servers and the established deployment path, downloading the accessory to the local server from the accessory server, and uploading the accessory to the appointed deployment path of the remote server by adopting an SCP copying instruction in ssh 2.
As a preferred scheme, the one-key start-stop gateway displays the start-stop state of the gateway in real time, and the method comprises the following steps:
and executing a java-jar starting instruction and a kill-9 stopping instruction in the ssh2 according to the established connection channels of the local server and all the remote servers, so as to realize the starting or closing of the gateway.
And executing the temporary node service of the ZooKeeper according to the basic information of the gateway and the gateway which is automatically deployed, if the temporary node exists, the gateway is in a starting state, otherwise, the gateway is in a stopping state, and the gateway state is displayed in a gateway service module list in real time.
The beneficial effects are that: the remote automatic operation and maintenance method based on the distributed gateway can realize automatic deployment of the gateway by one key, start and stop of the gateway by one key and real-time monitoring of the operation state of the gateway according to the server information to be deployed by a user and the version number of the gateway accessory; according to the invention, remote automatic deployment of the gateway can be realized only by inputting relevant information such as server information to be deployed for the first time, gateway accessories and the like into the system, and the running state of the gateway can be monitored in real time by starting and stopping the gateway by one key; the operation and maintenance personnel do not need to manually memorize the related information (information such as ip address, user name, password and the like) of the server, one station of gateway accessory is not uploaded to the specific server, the gateway is not started and stopped manually to log in the specific server, then the operation state of the gateway is not checked on the server at regular time. The working efficiency of operation and maintenance personnel is greatly improved, the operation and maintenance cost is reduced, and the requirements of the operation and maintenance personnel are met.
Drawings
FIG. 1 is a flow diagram of gateway remote automated deployment in one embodiment.
Fig. 2 is a network topology diagram in an embodiment of the invention.
Detailed Description
The invention will be further described with reference to specific examples.
As shown in fig. 1, a remote automation operation and maintenance method based on a distributed gateway includes the following steps:
s10: and perfecting the related information of remote deployment.
The relevant information for remote deployment includes server information (ip address, username, password, port number, deployment path) and gateway attachment information (attachment, version number, remark). The specific method comprises the following steps:
s11: perfecting remote server information.
According to the actual requirement of the gateway to be operated and maintained, the server information (ip address, user name, password, port number and deployment path) of each station is recorded in a server management module.
S12: and uploading the gateway accessory.
And uploading the attachment to an attachment server according to the actual requirement of the gateway to be operated and maintained, filling in the version number and remarks corresponding to the attachment, and recording in a file resource management module.
S20: and filling in basic information of the gateway to be operated and maintained according to the related information of remote deployment and automatically deploying the gateway.
In order to reduce the labor cost of operation and maintenance personnel, one-key automatic remote deployment of the gateway and more quickly understand the running state of the server gateway, in the embodiment, the distributed gateway is automatically deployed by one-key by recording the related information of the remote server and the related information of gateway deployment. The specific method comprises the following steps:
s21: and establishing connection between the local server and all the remote servers according to the information list of all the remote servers.
For example: there are a total of N servers based on the list of all remote server information. And dynamically inputting an ip address, a port number, a user name and a password in remote server information of a specific remote server i by adopting a connect connection instruction in ssh2 in the background of the local server, calling an authPasteword to verify the user name password instruction, then calling an openSession instruction to open a connection channel, and keeping the channel open state to realize intercommunication between the local server and the specific server i.
S22: and executing an mkdir creation folder instruction in ssh2 according to the established connection channels of the local server and all the remote servers, and creating a deployment path.
S23: and calling SCP replication instructions according to the established connection channels of the local server and all the remote servers and the established deployment path, and dynamically uploading gateway accessory information to realize automatic deployment.
And dynamically selecting an accessory i with a corresponding version number of a gateway to be deployed according to the established connection channels of the local server and all remote servers and the established deployment path, downloading the accessory i from the accessory server to the local server, and uploading the accessory to the appointed deployment path of the remote server i by adopting an SCP replication instruction in ssh 2.
S30: according to the filled gateway basic information and the automatically deployed gateway, the gateway is quickly started and stopped by one key, and the starting and stopping states of the gateway are displayed in real time.
According to the basic information of the filled gateway and the gateway which is automatically deployed, the gateway is quickly started and stopped by one key, and the running state of the gateway is displayed in real time, and the specific method comprises the following steps:
s31: and establishing connection between the local server and all the remote servers according to the information list of all the remote servers, and starting and stopping the gateway by one key.
And executing a java-jar starting instruction and a kill-9 stopping instruction in the ssh2 according to the established connection channels of the local server and all the remote servers, so as to realize the starting or closing of the gateway.
S32: and displaying the running state of the gateway in real time according to the basic information of the gateway and the gateway which is automatically deployed.
And executing the temporary node service of the ZooKeeper according to the basic information of the gateway and the gateway which is automatically deployed, if the temporary node exists, the gateway is in a starting state, otherwise, the gateway is in a stopping state, and the gateway state is displayed in a gateway service module list in real time.
As shown in fig. 2, a distributed gateway-based remote automation operation and maintenance system includes: local server, database, attachment server, zooKeeper and N remote servers.
The local server: the service is used for recording server information (ip address, user name, password, port number and deployment path) of the gateway to be operated and maintained.
Database: for storing various types of information.
The accessory server: for storing gateway attachment information to be operated and maintained.
ZooKeeper: for monitoring gateway temporary node services.
Remote server: the gateway to be operated and maintained is located in the server.
The foregoing is only a preferred embodiment of the invention, it being noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the invention.
Claims (6)
1. A remote automatic operation and maintenance method based on a distributed gateway is characterized in that: the method comprises the following steps:
recording server information in the related information of remote deployment in a server management module of a local server;
gateway attachment information in the related information of remote deployment is recorded in a file resource management module of an attachment server;
according to the server information list in the server management module, establishing connection between the local server and all the remote servers;
according to the established connection channels of the local server and all the remote servers, executing an mkdir creation folder instruction in ssh2 to create a deployment path;
according to the established connection channels of the local server and all the remote servers and the established deployment path, calling SCP replication instructions, dynamically uploading gateway attachment information in a file resource management module, and realizing automatic deployment;
further comprises: according to the gateway and the basic information of the gateway which are automatically deployed, the gateway is started and stopped by one key, and the starting and stopping states of the gateway are displayed in real time;
the one-key start-stop gateway displays the start-stop state of the gateway in real time, and comprises the following steps:
according to the established connection channels of the local server and all the remote servers, executing a java-jar starting instruction and a kill-9 stopping instruction in the ssh2 to realize the starting or closing of the gateway;
and executing the temporary node service of the ZooKeeper according to the basic information of the gateway and the gateway which is automatically deployed, if the temporary node exists, the gateway is in a starting state, otherwise, the gateway is in a stopping state, and the gateway state is displayed in a gateway service module list in real time.
2. The distributed gateway-based remote automation operation and maintenance method according to claim 1, wherein: the server information includes: server ip address, username, password, port number, or deployment path.
3. The distributed gateway-based remote automation operation and maintenance method according to claim 1, wherein: the gateway attachment information includes: an attachment, version number, or remark.
4. The distributed gateway-based remote automation operation and maintenance method according to claim 1, wherein: and the related information of the remote deployment and the basic information of the gateway are stored in a database.
5. The distributed gateway-based remote automation operation and maintenance method according to claim 1, wherein: establishing connection between the local server and all the remote servers, comprising the following steps:
the local server dynamically inputs a server ip address, a port number, a user name and a password of the remote server by adopting a connect connection instruction in ssh2, calls an authpassphrase authentication user name password instruction, calls an openSession instruction to open a connection channel, and keeps the channel open.
6. The distributed gateway-based remote automation operation and maintenance method according to claim 1, wherein: an automated deployment comprising the steps of:
and dynamically selecting an accessory with a corresponding version number of the gateway to be deployed according to the established connection channels of the local server and all remote servers and the established deployment path, downloading the accessory to the local server from the accessory server, and uploading the accessory to the appointed deployment path of the remote server by adopting an SCP copying instruction in ssh 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111609734.6A CN114363332B (en) | 2021-12-27 | 2021-12-27 | Remote automatic operation and maintenance method based on distributed gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111609734.6A CN114363332B (en) | 2021-12-27 | 2021-12-27 | Remote automatic operation and maintenance method based on distributed gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114363332A CN114363332A (en) | 2022-04-15 |
CN114363332B true CN114363332B (en) | 2024-01-23 |
Family
ID=81102108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111609734.6A Active CN114363332B (en) | 2021-12-27 | 2021-12-27 | Remote automatic operation and maintenance method based on distributed gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114363332B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866338A (en) * | 2015-04-27 | 2015-08-26 | 努比亚技术有限公司 | Method and device for remotely deploying software |
CN105791354A (en) * | 2014-12-23 | 2016-07-20 | 中兴通讯股份有限公司 | Job scheduling method and cloud scheduling server |
CN108616384A (en) * | 2018-03-26 | 2018-10-02 | 山东昭元信息科技有限公司 | A kind of the service management deployment tool and method of centralization |
CN110275872A (en) * | 2019-07-18 | 2019-09-24 | 中国银行股份有限公司 | Version automatic deployment method, device, computer equipment and storage medium |
CN110569473A (en) * | 2019-09-12 | 2019-12-13 | 浪潮软件股份有限公司 | Method for remotely operating linux server based on SSH protocol |
CN112114939A (en) * | 2020-09-04 | 2020-12-22 | 青岛海信网络科技股份有限公司 | Distributed system deployment equipment and method |
CN112148315A (en) * | 2020-09-22 | 2020-12-29 | 京东数字科技控股股份有限公司 | Software deployment method, device, server and storage medium |
CN112882726A (en) * | 2021-01-26 | 2021-06-01 | 西安建筑科技大学 | Hadoop and Docker-based deployment method of environment system |
CN113590169A (en) * | 2021-09-30 | 2021-11-02 | 武汉四通信息服务有限公司 | Application deployment method, application deployment system, and computer-readable storage medium |
CN113746887A (en) * | 2020-11-05 | 2021-12-03 | 北京沃东天骏信息技术有限公司 | Cross-cluster data request processing method, device and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7657887B2 (en) * | 2000-05-17 | 2010-02-02 | Interwoven, Inc. | System for transactionally deploying content across multiple machines |
KR101367036B1 (en) * | 2012-05-21 | 2014-02-25 | 알서포트 주식회사 | Method for connecting a remote network and system for connecting a remote network |
JP6313185B2 (en) * | 2014-10-24 | 2018-04-18 | 株式会社東芝 | Remote monitoring system and remote monitoring device |
-
2021
- 2021-12-27 CN CN202111609734.6A patent/CN114363332B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791354A (en) * | 2014-12-23 | 2016-07-20 | 中兴通讯股份有限公司 | Job scheduling method and cloud scheduling server |
CN104866338A (en) * | 2015-04-27 | 2015-08-26 | 努比亚技术有限公司 | Method and device for remotely deploying software |
CN108616384A (en) * | 2018-03-26 | 2018-10-02 | 山东昭元信息科技有限公司 | A kind of the service management deployment tool and method of centralization |
CN110275872A (en) * | 2019-07-18 | 2019-09-24 | 中国银行股份有限公司 | Version automatic deployment method, device, computer equipment and storage medium |
CN110569473A (en) * | 2019-09-12 | 2019-12-13 | 浪潮软件股份有限公司 | Method for remotely operating linux server based on SSH protocol |
CN112114939A (en) * | 2020-09-04 | 2020-12-22 | 青岛海信网络科技股份有限公司 | Distributed system deployment equipment and method |
CN112148315A (en) * | 2020-09-22 | 2020-12-29 | 京东数字科技控股股份有限公司 | Software deployment method, device, server and storage medium |
CN113746887A (en) * | 2020-11-05 | 2021-12-03 | 北京沃东天骏信息技术有限公司 | Cross-cluster data request processing method, device and storage medium |
CN112882726A (en) * | 2021-01-26 | 2021-06-01 | 西安建筑科技大学 | Hadoop and Docker-based deployment method of environment system |
CN113590169A (en) * | 2021-09-30 | 2021-11-02 | 武汉四通信息服务有限公司 | Application deployment method, application deployment system, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114363332A (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100414890C (en) | Method and system for centrally configurating terminal equipment | |
EP1940077B1 (en) | Remote activation of home devices | |
AU2006235957B2 (en) | End-to-end test and diagnostic management system | |
CN100479405C (en) | A method for automatic opening of home gateway service | |
CN104052884B (en) | System and method for recording calls in a webrtc contact center | |
CN103840960B (en) | A kind of business collocation method and system of passive optical network | |
US20030033379A1 (en) | Intelligent central directory for soft configuration of IP services | |
CN101854647A (en) | Method for remotely monitoring and managing mobile agent server (MAS) through short message interface | |
CN102075339B (en) | VPN management platform, and implementation method and system for VPN service | |
EP3018577A1 (en) | Interface call system and method | |
JP2008505526A (en) | Management system monitoring and control | |
CN103259681A (en) | Method for automatic routing inspection of communication network host | |
CN109391516B (en) | Cloud third-party network management system for realizing centralized maintenance and management of multi-manufacturer UTN equipment | |
CN105262619B (en) | Scheduled maintenance method and apparatus and system | |
EP1786141B1 (en) | End-to-end test and diagnostic system and method | |
US20080112328A1 (en) | Methods of providing simulation for communications systems and related systems and computer program products | |
CN103095498A (en) | Method and system of phone bill collection | |
CN110213340A (en) | Cloud management method, interchanger, server and the platform of box interchanger | |
CN105915662B (en) | A kind of data transmission method and device | |
CN114363332B (en) | Remote automatic operation and maintenance method based on distributed gateway | |
CN101212346B (en) | Software version management method and device for network element management system | |
CN101827005A (en) | Method for automatically configuring home gateway and system | |
US20140211931A1 (en) | System and Method for Generating and Delivering Automated Reports Concerning the Performance of a Call Center | |
CN106533775B (en) | Virtualize member device and neighbor discovering method | |
CN101217757A (en) | A method for the operation of device maintenance |
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 |