CN113946494A - Method and system for receiving configuration tool logs based on communication distributed control system background - Google Patents

Method and system for receiving configuration tool logs based on communication distributed control system background Download PDF

Info

Publication number
CN113946494A
CN113946494A CN202111257195.4A CN202111257195A CN113946494A CN 113946494 A CN113946494 A CN 113946494A CN 202111257195 A CN202111257195 A CN 202111257195A CN 113946494 A CN113946494 A CN 113946494A
Authority
CN
China
Prior art keywords
log
local server
maintenance
client
configuration tool
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
CN202111257195.4A
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.)
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
NR Electric Co Ltd
Xian Thermal Power Research Institute 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 NR Electric Co Ltd, Xian Thermal Power Research Institute Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202111257195.4A priority Critical patent/CN113946494A/en
Publication of CN113946494A publication Critical patent/CN113946494A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a system for receiving configuration tool logs based on a background of a communication decentralized control system, which comprises the steps of establishing communication connection between a local server of process communication and a client, recording operation or maintenance of configuration personnel in real time, and generating logs; the configuration tool software sends the log to a local server of the background system; the local server monitors and receives log information of the client, calls a callback function to analyze the log information, distinguishes operation logs and maintenance logs, sends log events to the background alarm receiving module in the log collection process, the alarm receiving module analyzes the operation events, and the display module displays the logs in the library. The method can realize the communication connection between the logic configuration tool and the background system, and realize the monitoring, analysis and forwarding of the operation log of the configuration software by the background system; by utilizing the local interprocess communication, the system is beneficial to positioning and recalling the problems in the configuration process when an operator operates and maintains the system.

Description

Method and system for receiving configuration tool logs based on communication distributed control system background
Technical Field
The invention relates to a distributed control system operation communication system, in particular to a method and a system for realizing background program receiving configuration tool logs of a distributed control system based on interprocess communication.
Background
In the operation process of the distributed control system, the operation log and the maintenance log of an engineer in the logic configuration tool are sent to the background system and displayed through the background interface, so that an operator can position and recall related problems in the configuration process when the system is operated and maintained.
However, the logic configuration tool and the background system in the distributed control system are two independent design frames, and the operation and maintenance of the logic configuration tool are performed independently, and the background system and the logic configuration tool are independent from each other, so that the communication between the operation log and the maintenance log cannot be performed, and the problem cannot be positioned and recalled during the operation and maintenance of the system.
In order to implement log forwarding between two independent applications, implement operation log and maintain log communication between a logic configuration tool and a background system, it is urgently needed to provide a method for implementing a background program to implement a configuration tool log receiving in a background of a distributed control system based on interprocess communication.
Disclosure of Invention
In order to solve the above-mentioned defects in the prior art, the present invention aims to provide a method and a system for implementing operations and log maintenance in the background program monitoring, parsing and forwarding logic configuration software based on inter-process communication.
The invention is realized by the following technical scheme.
In one aspect of the present invention, a method for receiving configuration tool logs based on a communication decentralized control system background is provided, which comprises the following steps:
establishing a local server and a client for process communication, and establishing communication connection;
generating a log in a client logic configuration tool; the configuration tool software sends the log to a local server of the background system;
a local server of the background system monitors and receives log messages sent by a client, calls a callback function to analyze the log messages, extracts logs in the log messages, and generates log events by using the logs;
the background system log collection process sends the log event to a background alarm receiving module;
the background alarm receiving module receives the log event, analyzes the log event, stores the log event into a database, and displays the log in the database through the alarm monitoring display module.
With respect to the above technical solutions, the present invention has a further preferable solution:
preferably, the establishing a local server and a client for process communication and establishing a communication connection includes:
starting a log collection process in a background system, establishing a local server based on a local socket in the process, and monitoring connection from the local socket;
in the logic configuration tool, a client based on a local socket is established and used as a client for monitoring and forwarding background logs;
the method comprises the steps that communication connection based on sockets is established between a client and a local server, the client sends out a communication connection request, the local server receives the connection request, and a callback function is appointed in the local server and used for receiving and analyzing log messages from the client.
Preferably, the configuration tool software is used as a client, is connected with the local server through a socket, and packages the log to generate a log message and sends the log message to the local server of the background system log collection process if the connection is successful.
Preferably, whether the local upper computer starts the local server or not needs to be checked, and only one local server in one upper computer runs.
Preferably, the log comprises an operation log and a maintenance log; the log event comprises an operation log event and a maintenance log event; each log event object includes operation mode, action content, process control station name, operator and operation time information.
Preferably, the operation log and the maintenance log are stored in a log hash table; the hash table has a key of the name of the process control station and a value of the operation and maintenance record list of the corresponding process control station.
Preferably, the operation log and the maintenance log include: operation mode, action content, process control station name, operator and operation time.
Preferably, in the operation log and the maintenance log:
the operation mode is used for distinguishing operation log records and maintenance log records;
the action content describes a specific operation or maintenance action;
the name of the process control station is the name of the process control station acted by the current operation or maintenance;
the operator is the user name of the present login of the configuration tool;
the operation time is the time at which the operation or maintenance action occurs.
Preferably, when the configuration tool software sends the operation log and the maintenance log to the local server of the background system, the operation log and the maintenance log are added to the operation and maintenance record list of the process control station corresponding to the log hash table.
In another aspect of the present invention, a system for receiving configuration tool logs based on a communication decentralized control system background is provided, which includes: the client is used for sending the log generated in the logic configuration tool to a local server of the background system;
the local server monitors and receives the log message sent by the client, calls a callback function to analyze the log message, extracts the log in the log message, and generates a log event by using the log;
the background system alarm receiving module is used for receiving the log event generated by the local server;
and the alarm monitoring display module is used for displaying the logs in the library.
Due to the adoption of the technical scheme, the invention has the following beneficial effects:
1. the communication connection between the logic configuration tool and the background system is realized based on the local inter-process communication, and the operation log record and the maintenance log record in the logic configuration tool are sent to the background system in real time, so that the problem that the operation log and the maintenance log cannot be directly forwarded between two independently maintained and operated design applications of the logic configuration tool and the background system is solved.
2. The invention realizes the forwarding of the operation log and the maintenance log of the logic configuration tool, sends the operation log and the maintenance log of an engineer in the logic configuration tool to the background system, and displays the operation log and the maintenance log through the alarm interface, thereby improving the efficiency of positioning and recalling the related problems in the configuration process when an operator operates and maintains the system.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention:
FIG. 1 is an interprocess communication flow diagram.
Detailed Description
The present invention will now be described in detail with reference to the drawings and specific embodiments, wherein the exemplary embodiments and descriptions of the present invention are provided to explain the present invention without limiting the invention thereto.
As shown in fig. 1, the present invention provides a method for receiving configuration tool logs by a background of a distributed control system based on communication, comprising the following steps:
step 1, establishing a local server and a client for process communication, and establishing communication connection. The local server is a background system, and the client is a logic configuration tool. Specifically, the method comprises the following steps:
101. starting a log collection process in a background system, wherein a local server based on a local socket is established in the process, and the established specific operation is established through a function; monitoring a connection from a local socket, checking (by a specific operation pass function) whether a local (upper computer) starts a local server, not allowing a plurality of local servers to run simultaneously, and only one local server in the upper computer to run.
102. In the logic configuration tool, a client based on a local socket is established as a client for monitoring and forwarding background logs.
103. The communication connection based on the socket is established between the client and the local server, the communication between the client and the local server is based on the local socket, the client sends out a communication connection request, the local server receives the connection request, and appoints a callback function in the local server for receiving and analyzing the log message from the client.
Step 2, generating a log in a logic configuration tool: the log comprises an operation log and a maintenance log; storing the operation log and the maintenance log in a log hash table; the key of the hash table is the name of the process control station, and the value is the operation record list on the corresponding process control station.
The configuration tool software records operation or maintenance work of configuration personnel in the configuration tool in real time and generates related logs, and the configuration tool software sends the operation logs and the maintenance logs to a local server of the background system and adds the operation logs and the maintenance logs into a log list of a corresponding process control station in an operation log hash table, so that the operation logs and the maintenance logs are stored in the configuration tool. The log content includes: operation mode, action content, process control station name, operator, operation time, and the like. The operation mode is used for distinguishing operation log records and maintenance log records, and the log is divided into the following logs according to the operation types: and operation log recording and maintenance log recording.
The action content describes specific operation or maintenance action, the name of the process control station is the name of the process control station acted by current operation or maintenance, the name of the user currently logged in by the operator-based configuration tool, and the operation time is the time when the operation or maintenance action occurs.
And 3, connecting the configuration tool software with a local server of the background system, and sending the operation log and the maintenance log to the local server of the background system, wherein the configuration tool software is used as a client and is connected with the local server through a socket, and if the connection is successful, the log content in the step 2 is used as a message and is sent to the local server of the log collection process of the background system.
Step 4, the local server of the background system monitors and receives the log message sent by the client, calls a callback function to analyze the log message, and extracts information about the log, such as an operation mode, action content, a process control station name, an operator, operation time and the like; according to the operation mode, distinguishing the operation log from the maintenance log, and generating log events by using the information about the log, wherein the log events comprise the operation log events and the maintenance log events; each log event object includes information such as an operation mode, action content, a process control station name, an operator, operation time, and the like.
And 5, the background system log collection process sends the log event to a background alarm receiving module.
And 6, after receiving the log event, the background alarm receiving module analyzes the log event, stores the operation log and the maintenance log into a database, and finally displays the operation log in the database through the alarm monitoring display module (the process is display).
The invention further provides a system for receiving configuration tool logs based on the background of the communication distributed control system, which comprises: and the client is used for sending the operation log and the maintenance log generated in the logic configuration tool to the local server of the background system.
The local server monitors and receives the operation log and the maintenance log information sent by the client, calls a callback function to analyze the log information, extracts the operation log and the maintenance log, and generates a log event by using the operation log and the maintenance log;
the background system alarm receiving module is used for receiving the log event generated by the local server;
and the alarm monitoring display module is used for displaying the operation log and the maintenance log in the library.
The invention is further illustrated by the following specific example.
Step 1, establishing a local server and a client for process communication, and establishing communication connection.
101, starting a log collection process in a background system, wherein a local server based on a local socket is established in the process, and the established specific operation is established through a function; listening for a connection from a local socket and checking if the local has started a local server, does not allow multiple local servers to run simultaneously.
102, in the logic configuration tool, a client based on a local socket is established as a client for background log monitoring and forwarding.
103. The communication connection based on the socket is established between the client and the local server, the communication between the client and the local server is based on the local socket, the customer service end sends out a communication connection request, the local server receives the connection request, and assigns a callback function (slotteadLocalsocket ()) in the local server for receiving and analyzing the log message from the client.
Step 2, generating a log in a logic configuration tool: storing the operation log and the maintenance log in a log hash table; the key of the hash table is the name of the process control station, and the value is the operation record list on the corresponding process control station. For the process control station with address 1001, the key of the log hash table is DPU1001, and the value is the operation record list on the process control station.
The configuration tool software records the operation or maintenance work of the configuration personnel in the configuration tool in real time and generates a relevant log. When a configurator ZhangSan performs downloading operation on a DPU1001 in a configuration tool, a relevant operation log is generated in a client logic configuration tool, and the log content is as follows: operation; downlink all tasks; a DPU 1001; ZhangSan; 2021-06-2114: 12:00, and adding the operation log into the operation log and the operation and maintenance record log list of which the key of the maintenance log hash table is the DPU 1001.
And 3, connecting the configuration tool software with a local server of the background system, and sending the operation and maintenance logs to the local server of the background system, wherein the configuration tool software is used as a client and is connected with the local server through a socket, and if the connection is successful, the operation logs in the step 2 are packaged into a message and sent to the local server of the log collection process of the background system.
Step 4, a local server of the background system monitors and receives log messages sent by a client, a callback function slotReadLocalSocket () is called to analyze the log messages, the Operation mode of extracting logs is Operation, the action content is Download all tasks, the name of a process control station is DPU1001, an operator Zhangsan, and the Operation time is 2021-06-2114: 12: 00; according to the Operation mode Operation, the log can be judged to be an Operation log, the log information is utilized to generate an Operation log event, and the event object comprises the Operation mode Operation, the action content Download all tasks, the process control station name DPU1001, the operator Zhangsan and the Operation time 2021-06-2114: 12: 00.
And 5, the background system log collection process sends the log event to a background alarm receiving module.
Step 6, after receiving the operation log event, the background alarm receiving module analyzes the operation log event, stores the operation log into a database, and finally displays the operation log in the database through the alarm monitoring display module: the operator: ZhangSan, class of operation: operation, Operation content: download all tasks, action time: 2021-06-2114: 12:00, etc.
It can be seen from the above embodiments that the method of the present invention implements communication connection between the logic configuration tool and the background system, and sends the operation log record in the logic configuration tool to the background system in real time, thereby improving the efficiency of positioning and recalling the related problems in the configuration process when the system is operated and maintained by the operator.
The present invention is not limited to the above-mentioned embodiments, and based on the technical solutions disclosed in the present invention, those skilled in the art can make some substitutions and modifications to some technical features without creative efforts according to the disclosed technical contents, and these substitutions and modifications are all within the protection scope of the present invention.

Claims (10)

1. A method for receiving configuration tool logs based on a communication distributed control system background is characterized by comprising the following steps:
establishing a local server and a client for process communication, and establishing communication connection;
generating a log in a client logic configuration tool; the configuration tool software sends the log to a local server of the background system;
a local server of the background system monitors and receives log messages sent by a client, calls a callback function to analyze the log messages, extracts logs in the log messages, and generates log events by using the logs;
the background system log collection process sends the log event to a background alarm receiving module;
the background alarm receiving module receives the log event, analyzes the log event, stores the log event into a database, and displays the log in the database through the alarm monitoring display module.
2. The method of claim 1, wherein the establishing a local server and a client in process communication and establishing communication connection comprises:
starting a log collection process in a background system, establishing a local server based on a local socket in the process, and monitoring connection from the local socket;
in the logic configuration tool, a client based on a local socket is established and used as a client for monitoring and forwarding background logs;
the method comprises the steps that communication connection based on sockets is established between a client and a local server, the client sends out a communication connection request, the local server receives the connection request, and a callback function is appointed in the local server and used for receiving and analyzing log messages from the client.
3. The method as claimed in claim 2, wherein the configuration tool software is used as a client, and is connected to the local server through a socket, and if the connection is successful, the log is packaged to generate a log message, and the log message is sent to the local server of the log collection process of the background system.
4. The method as claimed in claim 2, wherein the local host computer is checked to see if the local server is started, and only one local server in the host computer is running.
5. The method of claim 1, wherein the log comprises an operation log and a maintenance log; the log event comprises an operation log event and a maintenance log event; each log event object includes operation mode, action content, process control station name, operator and operation time information.
6. The method of claim 5, wherein the operation log and the maintenance log are stored in a log hash table; the hash table has a key of the name of the process control station and a value of the operation and maintenance record list of the corresponding process control station.
7. The method of claim 3, wherein the operation log and the maintenance log comprise: operation mode, action content, process control station name, operator and operation time.
8. The method of claim 7, wherein the operation log and the maintenance log comprise:
the operation mode is used for distinguishing operation log records and maintenance log records;
the action content describes a specific operation or maintenance action;
the name of the process control station is the name of the process control station acted by the current operation or maintenance;
the operator is the user name of the present login of the configuration tool;
the operation time is the time at which the operation or maintenance action occurs.
9. The method as claimed in claim 1, wherein when the configuration tool software sends the operation log and the maintenance log to the local server of the backend system, the operation log and the maintenance log are added to the operation and maintenance record list of the process control station corresponding to the log hash table.
10. A background receiving configuration tool log system based on a communication decentralized control system is characterized by comprising the following steps: the client is used for sending the log generated in the logic configuration tool to a local server of the background system;
the local server monitors and receives the log message sent by the client, calls a callback function to analyze the log message, extracts the log in the log message, and generates a log event by using the log;
the background system alarm receiving module is used for receiving the log event generated by the local server;
and the alarm monitoring display module is used for displaying the logs in the library.
CN202111257195.4A 2021-10-27 2021-10-27 Method and system for receiving configuration tool logs based on communication distributed control system background Pending CN113946494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111257195.4A CN113946494A (en) 2021-10-27 2021-10-27 Method and system for receiving configuration tool logs based on communication distributed control system background

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111257195.4A CN113946494A (en) 2021-10-27 2021-10-27 Method and system for receiving configuration tool logs based on communication distributed control system background

Publications (1)

Publication Number Publication Date
CN113946494A true CN113946494A (en) 2022-01-18

Family

ID=79332763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111257195.4A Pending CN113946494A (en) 2021-10-27 2021-10-27 Method and system for receiving configuration tool logs based on communication distributed control system background

Country Status (1)

Country Link
CN (1) CN113946494A (en)

Similar Documents

Publication Publication Date Title
US8135827B2 (en) Distributed capture and aggregation of dynamic application usage information
US6754707B2 (en) Secure computer support system
US7525422B2 (en) Method and system for providing alarm reporting in a managed network services environment
CN111193602B (en) Automatic operation and maintenance management system and method
CN101388903B (en) Mobile enterprise IT standardization management platform
CN113835911B (en) Intranet penetration agent method, system, host and computer readable storage medium
CN111984561B (en) IPMI command processing method, system, device and medium for BMC
US11709722B2 (en) Extensible communication framework and communication method supporting multiple communication protocols
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN108566317A (en) Business monitoring method, Cloud Server, storage medium and device
US20190384691A1 (en) Methods for providing an enterprise synthetic monitoring framework
CN107911496A (en) A kind of VPN service terminal acts on behalf of the method and device of DNS
JP2001306360A (en) Automated system for coping with computer fault and recording medium having fault coping automation program recorded thereon
CN113806187A (en) Intelligent one-stop operation and maintenance service method and platform
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN113946494A (en) Method and system for receiving configuration tool logs based on communication distributed control system background
CN114338347A (en) Ampere platform-based fault information out-of-band acquisition method and device
CN113570347A (en) RPA operation and maintenance method for micro-service architecture system
CN111354124A (en) Intelligent Internet of things vending system, service equipment and vending machine
KR20010108592A (en) Automatic Management For ATM Operating Information System
CN112714153A (en) Processing method and device compatible with multiple TCPs (Transmission control protocol) based on Internet of things system
US20070005756A1 (en) Shared data center monitor
CN110990237A (en) Information collection system, method and storage medium
GB2357169A (en) An automatic monitoring system for software installation in computers on a production line
CN107733697B (en) Log collection method and system and router

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