CN106657382A - Windows and Linux server information acquisition and management control model - Google Patents

Windows and Linux server information acquisition and management control model Download PDF

Info

Publication number
CN106657382A
CN106657382A CN201710020750.9A CN201710020750A CN106657382A CN 106657382 A CN106657382 A CN 106657382A CN 201710020750 A CN201710020750 A CN 201710020750A CN 106657382 A CN106657382 A CN 106657382A
Authority
CN
China
Prior art keywords
client
windows
script
service end
socat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710020750.9A
Other languages
Chinese (zh)
Inventor
范娟
常福刚
文盛
王峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Learning Technology Co Ltd
Original Assignee
Beijing Learning Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Learning Technology Co Ltd filed Critical Beijing Learning Technology Co Ltd
Priority to CN201710020750.9A priority Critical patent/CN106657382A/en
Publication of CN106657382A publication Critical patent/CN106657382A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a Windows and Linux server information acquisition and management control model. An access and control channel is built between a client and a server side; the server side provides an API of data release and version control and script downloading of a data acquisition module; a client API, that is an SOCAT tool, receives an information acquisition and management control (ICMC) instruction and feeds back a local script execution result to the server side; and automatic acquisition and control of the windows server information is realized by adopting an SOCAT remote data transmission and control tool, an SSL encryption protocol and a digital certificate.

Description

A kind of Windows and Linux server information gathering and management Controlling model
Technical field
The present invention relates to field of Internet communication, more particularly to a kind of Windows and Linux server information gathering and pipe Reason Controlling model.
Background technology
In O&M field, for existing Windows has the Internet firm of mashed up system as linux again, system The accurate unified access control interface of calibration, unified backstage script, can substantially reduce the complexity of heterogeneous system maintenance, letter Change development process, realize effectively management.Wherein, " information gathering and management Controlling model " both can apply to Linux, it is also possible to Windows is applied to, is that the core of whole system is located.
Existing windows management and control scheme:WMI(Windows Management Instrumentation Windows Management regulation) it is the management support technology for being built in core in Windows sequence of maneuvers systems.By it has access to that, configuration, Manage and monitor almost all of Windows resources.Most users are got used to being managed using numerous graphically managing instruments Windows resources, these instruments are all by Win32 application programming interface (Application before WMI Programming Interfaces, API) accessing and manage Windows resources.The appearance of WMI causes system manager Common script can be utilized by a kind of easy method.Generally needed using WMI and script such as WSH with VBScript combines, it is possible to achieve conventional system management tasks.Existing scheme mainly has following shortcoming;With The managerial style of Iinux is incompatible with, it is difficult to form unified interface;Management Windows difficulty is big;It is difficult to be tied with open source software Close.
The content of the invention
The invention discloses the unified information gathering under a kind of windows and the mashed up environment of linux servers and management Controlling model (Information Coll ection&ManagementControl, be abbreviated as ICMC).Set with management Linux Standby the same, the physical message of Windows equipment can support all kinds of pin by open source technology means in addition automation collection completely This change language carries out management and control, and " information gathering and management Controlling model ICMC " arises at the historic moment, the model constitute " Windows with The underlying basis part of the mashed up Environmental information management system WLSIMS of Linux server ".Its technical scheme is as follows:
A kind of Windows and Linux server information gathering and management Controlling model, including service end, it is client The API of data publication is provided and the Version Control of the built-in data acquisition module of client is downloaded with data acquisition script;Client End, receives information gathering and management control instruction, and data acquisition script implementing result is returned into service end;The client is led to Cross SOCAT instruments to carry out data transmission and control, information gathering adopts SSL encryption agreement with management control instruction, and supports number Word certificate verification, strengthens the security of instruction;
Further, described information gathering includes client hardware information gathering, system software information collection and runs State acquisition.
Further, described management control includes the Version Control and data acquisition pin of the data acquisition module of client This download, service end calls the data acquisition script in client by SOCAT instruments, and there is the data acquisition script version to believe Breath obtains function, during execution, initiates version checking request to service end first, and http modes ask a version at access service end This message file, service end adjusts every time the release content upgraded in time after script in this file, if there is service end and The inconsistent situation of version information of client script, client is downloaded newest script and is covered more by http methods from service end It is new to arrive local.So as to realize the Version Control of client-side data acquisition script.
Further, the service end sends SOCAT requests in the way of multithreading to client, improves efficiency, multi-thread Journey sending method writes script to realize using perl.
Further, described client-side data acquisition script is write using perl/shell/vbs.
Further, the script reality that the API of described service end is write by the apache services of service end itself with php It is existing, for receiving the data of client transmission.
7. Windows according to claim 1 and Linux server information gathering and management Controlling model, it is special Levy and be:Described SOCAT instrument usings method are as follows:
1) service end certificate is created;
2) client certificate is created;
3) cygwin environment deployment is carried out in windows servers, extracts following from cygwin installation files first Library file:
cygcrypto-1.0.0.dll
cyggcc_s-1.dll
cygncursesw-10.dll
cygreadline7.dll
cygssl-1.0.0.dll
cygwin1.dll
cygwrap-O.dll
cygz.dll
Under copying to the %SystemRoot%/system/ catalogues of windows servers;
Then, the % that socat.exe orders copy to windows servers is extracted from cygwin installation files Under SystemRoot%;
Finally, controlled terminal certificate file server.pemclient.crt is copied to the % of windows servers Under SystemRoot%;
4) socat is registered into windows services:First, SOCAT is encapsulated, in windows servers nssm instruments is passed through Registration socat services, and perform script is set up by SOCAT in service end.
The beneficial effects of the present invention is:Information dynamic collection, the artificial data inputting of reduction and maintenance, equipment physics letter Breath data are acquired by data information acquisition script, realize assets physical message data inputting, the automation for updating, and are solved The defect that artificial registration faces;Management control function, reduces artificial game server management control work, task deployment and Execution is carried out by MC, realizes the automation management and control of server, solves the trouble that artificial management and control faces
Description of the drawings
The present invention is described in further detail with reference to accompanying drawing:
Fig. 1 is the application system architecture diagram;
Fig. 2 is the application flow chart;
Specific embodiment
Below by preferred embodiment shown with reference to the accompanying drawings, the present invention is explained in detail, but be the invention is not restricted to The embodiment.
With reference to accompanying drawing 1-2, the technical program is introduced:
A kind of Windows and Linux server information gathering and management Controlling model, including service end, it is client The API of data publication is provided and the Version Control of the built-in data acquisition module of client is downloaded with data acquisition script;Client End, receives information gathering and management control instruction, and data acquisition script implementing result is returned into service end;The client is led to Cross SOCAT instruments to carry out data transmission and control, information gathering adopts SSL encryption agreement with management control instruction, and supports number Word certificate verification, strengthens the security of instruction;
Further, described information gathering includes client hardware information gathering, system software information collection and runs State acquisition.
Further, described management control includes the Version Control and data acquisition pin of the data acquisition module of client This download, service end calls the data acquisition script in client by SOCAT instruments, and there is the data acquisition script version to believe Breath obtains function, during execution, initiates version checking request to service end first, and http modes ask a version at access service end This message file, service end adjusts every time the release content upgraded in time after script in this file, if there is service end and The inconsistent situation of version information of client script, client is downloaded newest script and is covered more by http methods from service end It is new to arrive local.So as to realize the Version Control of client-side data acquisition script.
Further, the service end sends SOCAT requests in the way of multithreading to client, improves efficiency, multi-thread Journey sending method writes script to realize using perl.
Further, described client-side data acquisition script is write using perl/shell/vbs.
Further, the script reality that the API of described service end is write by the apache services of service end itself with php It is existing, for receiving the data of client transmission.
7. Windows according to claim 1 and Linux server information gathering and management Controlling model, it is special Levy and be:Described SOCAT instrument usings method are as follows:
1) service end certificate is created;
The > server.key of/usr/bin/opensslgenrsa 2048
/usr/bin/opensslreq -new -x509 -days 3653 -key server.key>Server.crt
cat server.key server.crt>server.pem
openssl dhparam -out dhparams.pem 2048
cat dhparams.pem>>server.pem
chmod 600 server.keyserver.pem
2) client certificate is created;
/usr/bin/opensslgenrsa 2048>client.key
/usr/bin/opensslreq -new -x509 -days 3653 -key client.key>client.crt
cat client.key client.crt>client.pem
openssldhparam -out dhparams.pem 2048
cat dhparams.pem>>client.pem
chmod 600 client.keyclient.pem
3) cygwin environment deployment is carried out in windows servers, extracts following from cygwin installation files first Library file:
cygcrypto-1.0.0.dll
cyggcc_s-1.dll
cygncursesw-10.dll
cygreadline7.dll
cygssl-1.0.0.dll
cygwin1.dll
cygwrap-0.dll
cygz.dll
Under copying to the %SystemRoot%/system/ catalogues of windows servers;
Then, the % that socat.exe orders copy to windows servers is extracted from cygwin installation files Under SystemRoot%;
Finally, controlled terminal certificate file server.pemclient.crt is copied to the % of windows servers Under SystemRoot%;
4) socat is registered into windows services:First, SOCAT is encapsulated:
Serviced by nssm tool registers socat in windows servers:
install.bat:
@echo off
Set NssPath=%SystemRoot%
Set SocatPath=%SystemRoot% system32 application
%NssPath% nssm install SocatService " %SocatPath% server.exe "
pause
Enclose service unloading script _ uninstall.bat:
@echo off
Set NssPath=%SystemRoot%
Rem to have added and both can fall the service with thorough cleaning without restarting server after confirm
Net stop SocatService&%NssPath% nssm remove SocatService confirm
pause
Can be managed into graphical editing interface by nssm edit SocatService;
And perform script is set up by SOCAT in service end;
5) script is set up on controlled terminal windows servers:
Example:rerun.cmd
Content is as follows:
Set JAVA_BIN=" C:\Program Files\Java\jdk1.7.071\bin″
%JAVA_BIN% java-Xms100m-Xmx500m-cp.;c:/agent;c:/agent/agent.jar
Cn.rtmap.bigdata.ingest.agent.PositionAgentDaemon%1 %2
Exit;
6) setting up pipeline by socat in management end carries out long-range perform script:
Example:It is long-range to perform rerun.cmd
echo″start rerun.cmd 2016-03-08 863200020061800001″|socat-openssl- connect:123.57.74.190:4433, cert=client.pem, cafile=server.crt.
Accessed and control passage by setting up between client and service end, we using SOCAT remote data transmissions and Control instrument, SSL encryption agreement, digital certificate realize the automatic acquisitiion and control of windows server infos.
Above specific embodiment is only unrestricted to illustrate technical scheme, although with reference to example to this It is bright to be described in detail, it will be understood by those within the art that, technical scheme can be modified Or equivalent, without deviating from the spirit and scope of technical solution of the present invention, it all should cover the claim in the present invention In the middle of scope.

Claims (7)

1. a kind of Windows and Linux server information gathering and management Controlling model, including service end, it is that client is carried Download for the Version Control and data acquisition script of the API and client of data publication built-in data acquisition module;Client, Receive information gathering and management control instruction, and data acquisition script implementing result is returned into service end;It is characterized in that:It is described Client is carried out data transmission and is controlled by SOCAT instruments, and information gathering adopts SSL encryption agreement with management control instruction, And digital certificate authentication is supported, strengthen the security of instruction.
2. Windows according to claim 1 exists with Linux server information gathering with Controlling model, its feature is managed In:Described information gathering includes client hardware information gathering, system software information collection and running status collection.
3. Windows according to claim 1 exists with Linux server information gathering with Controlling model, its feature is managed In:Described management control includes that the Version Control and data acquisition script of the data acquisition module of client is downloaded, service end The data acquisition script in client is called by SOCAT instruments, there is the data acquisition script version information to obtain function, hold During row, first version checking request is initiated to service end, http modes ask a version information file at access service end, take Business end adjusts every time the release content upgraded in time after script in this file, if there is service end and the version of client script The inconsistent situation of this information, client is downloaded newest script and is covered and updated to local by http methods from service end, so as to Realize the Version Control of client-side data acquisition script.
4. Windows according to claim 1 exists with Linux server information gathering with Controlling model, its feature is managed In:The service end sends SOCAT requests in the way of multithreading to client, improves efficiency, and multithreading sending method is adopted Perl writes script to realize.
5. Windows according to claim 3 exists with Linux server information gathering with Controlling model, its feature is managed In:Described client-side data acquisition script is write using perl/shell/vbs.
6. Windows according to claim 1 exists with Linux server information gathering with Controlling model, its feature is managed In:The AP I of described service end are realized by the apache services of service end itself and the script that php writes, for receiving visitor The data that family end sends.
7. Windows according to claim 1 exists with Linux server information gathering with Controlling model, its feature is managed In:Described SOCAT instrument usings method are as follows:
1) service end certificate is created;
2) client certificate is created;
3) cygwin environment deployment is carried out in windows servers, following library text is extracted from cygwin installation files first Part:
cygcrypto-1.0.0.dll
cyggcc_s-1.dll
cygncursesw-10.dll
cygreadline7.dll
cygssl-1.0.0.dll
cygwin1.dll
cygwrap-O.dll
cygz.dll
Under copying to the %SystemRoot%/system/ catalogues of windows servers;
Then, the % that socat.exe orders copy to windows servers is extracted from cygwin installation files Under SystemRoot%;
Finally, controlled terminal certificate file server.pem client.crt are copied to the % of windows servers Under SystemRoot%;
4) socat is registered into windows services:First, SOCAT is encapsulated, in windows servers nssm tool registers is passed through Socat is serviced, and sets up perform script by SOCAT in service end.
CN201710020750.9A 2017-01-11 2017-01-11 Windows and Linux server information acquisition and management control model Pending CN106657382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710020750.9A CN106657382A (en) 2017-01-11 2017-01-11 Windows and Linux server information acquisition and management control model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710020750.9A CN106657382A (en) 2017-01-11 2017-01-11 Windows and Linux server information acquisition and management control model

Publications (1)

Publication Number Publication Date
CN106657382A true CN106657382A (en) 2017-05-10

Family

ID=58844050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710020750.9A Pending CN106657382A (en) 2017-01-11 2017-01-11 Windows and Linux server information acquisition and management control model

Country Status (1)

Country Link
CN (1) CN106657382A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540532A (en) * 2018-03-13 2018-09-14 成都蓉兴伟业科技有限公司 A kind of network file access method and terminal
CN109063022A (en) * 2018-07-12 2018-12-21 郑州云海信息技术有限公司 A kind of extracting method of server system information
CN110868401A (en) * 2019-10-28 2020-03-06 上海爱数信息技术股份有限公司 Parallel persistent data encryption acquisition and issuing method suitable for network single-pass scene

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393820A (en) * 2011-11-09 2012-03-28 国电南瑞科技股份有限公司 Logical implementation method for controlling building monitoring system
CN102843539A (en) * 2011-11-30 2012-12-26 沈阳理工大学 Cable television data acquisition and maintenance system compatible with multiple GIS platforms
CN103188088A (en) * 2011-12-27 2013-07-03 北京新媒传信科技有限公司 Equipment information acquisition system and equipment information acquisition method
CN103812699A (en) * 2014-02-17 2014-05-21 无锡华云数据技术服务有限公司 Monitoring management system based on cloud computing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393820A (en) * 2011-11-09 2012-03-28 国电南瑞科技股份有限公司 Logical implementation method for controlling building monitoring system
CN102843539A (en) * 2011-11-30 2012-12-26 沈阳理工大学 Cable television data acquisition and maintenance system compatible with multiple GIS platforms
CN103188088A (en) * 2011-12-27 2013-07-03 北京新媒传信科技有限公司 Equipment information acquisition system and equipment information acquisition method
CN103812699A (en) * 2014-02-17 2014-05-21 无锡华云数据技术服务有限公司 Monitoring management system based on cloud computing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)谢码: "《反黑客工具大曝光 范例详解安全工具的使用策略与方法 (第4版)》", 31 May 2015 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540532A (en) * 2018-03-13 2018-09-14 成都蓉兴伟业科技有限公司 A kind of network file access method and terminal
CN109063022A (en) * 2018-07-12 2018-12-21 郑州云海信息技术有限公司 A kind of extracting method of server system information
CN110868401A (en) * 2019-10-28 2020-03-06 上海爱数信息技术股份有限公司 Parallel persistent data encryption acquisition and issuing method suitable for network single-pass scene

Similar Documents

Publication Publication Date Title
US11637837B2 (en) Secure, non-disruptive firmware updating
US10609112B2 (en) Method, server and system for converging desktop application and web application
US6986133B2 (en) System and method for securely upgrading networked devices
US9116776B2 (en) Updating software objects
EP3628080B1 (en) Systems and methods for updating and loading application
US9304755B2 (en) Prioritization of application component distribution
US20110173599A1 (en) Home network system, gateway device, and firmware update method
US7886292B2 (en) Methodology of individualized software deployment for hardware-independent personal computer mass development
CN110336871A (en) A kind of document handling method, device, storage medium and electronic equipment
US20220078264A1 (en) Multiple model injection for a deployment cluster
CN108958742A (en) A kind of method of batch installing operating system, relevant device and system
KR20060051932A (en) Updating software while it is running
US20060136872A1 (en) Integrated setup for generating customization XML
CN106657382A (en) Windows and Linux server information acquisition and management control model
CN104572227A (en) Method for refreshing CPLD FW through BMC based on Itanium platform
US8621077B2 (en) Distribution of security policies for small to medium-sized organizations
CN110716538A (en) Vehicle diagnosis method, device, equipment and readable storage medium
CN109522028A (en) A kind of installation method and system of operating system
US11226807B1 (en) Self-dependent upgrade of Java runtime environments
WO2016026329A1 (en) Terminal upgrade method and apparatus
US20120096453A1 (en) Software Package Management Mechanism
JPH08137768A (en) Remote distribution management network system
US7630988B2 (en) Computer product and session management method
CN112346765A (en) Application program upgrading method and device, electronic equipment and readable storage medium
CN113448793A (en) System monitoring method and device compatible with multiple operating systems

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication