A configuration file automatic checking method and system of a power grid dispatching control system

By generating and issuing configuration file inspection rules and commands in the power grid dispatch and control system, the automatic collection and inspection of configuration files is achieved, solving the problem of low efficiency of manual inspection, realizing fast and accurate configuration file inspection and fault alarm, and providing support for fault tracing.

CN116319333BActive Publication Date: 2025-12-16NARI TECH CO LTD +3
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211099515.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-09
Publication Date
2025-12-16
Estimated Expiration
2042-09-09

AI Technical Summary

Technical Problem

In the existing power grid dispatch and control system, configuration file checks rely on manual methods, which results in a large workload, low efficiency, and a tendency for omissions and errors, making it difficult to quickly locate and resolve faults caused by configuration file errors.

Method used

An automated method is used to generate configuration file inspection rules and commands. These rules and commands are then distributed to the data collection agent via the servers in the information management and production control zones. The agent collects and uploads the configuration file information, performs the inspection using the server, and sends alarms, thus achieving automated configuration file inspection.

Benefits of technology

It enables automatic checking of configuration files for the power grid dispatch and control system, reducing the workload of manual checks, quickly and accurately identifying problems and issuing alarms, and providing historical records to support fault tracing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319333B_ABST
    Figure CN116319333B_ABST
Patent Text Reader

Abstract

The application discloses a kind of power grid dispatching control system's configuration file automatic inspection method and system.Method includes: generating configuration file inspection rule and inspection command;Configuration file inspection rule and inspection command are issued to push to the acquisition agent of each server;Each acquisition agent according to inspection rule and inspection command will be the corresponding configuration file information on the server and upload to the server of information management area;Server is checked according to the correct value of configuration item in inspection rule and the actual value uploaded, and the configuration item information that is not consistent is sent to alarm system to alarm.The application can realize the automatic inspection of power grid dispatching control system configuration file, reduce the workload of manually checking configuration file, quickly and accurately find the problem of configuration file and alarm, while retaining all the history record of checking, provide data support for subsequent statistical analysis and fault tracing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of power system automation, and particularly relates to a configuration file automatic checking method and system of a power grid dispatching control system. BACKGROUND

[0002] A new generation of power grid dispatching control system adopts a brand-new architecture of "physical distribution and logical unification", and simultaneously uses a large number of new technologies such as cloud computing, artificial intelligence and big data analysis, so that the number of application programs in the system increases and the complexity increases. Since the application programs need to configure different configuration files according to different running environments, and due to the complexity of the configuration files, once a configuration file configuration error occurs in the deployment and running process of the application programs, the function of the application programs cannot be normally run, and then the stability of the new generation of power grid dispatching control system is affected. Therefore, it is urgent to check the configuration files of each application program in the new generation of power grid dispatching control system to ensure the correctness and avoid causing system failure.

[0003] At present, the configuration file checking of the new generation of power grid dispatching control system depends on the operation and maintenance personnel to log in to the Linux server through the command line tool, and manually check whether the configuration parameters in each configuration file of each application program are correct. This checking method requires the operation and maintenance personnel to be very familiar with the configuration files of the entire dispatching control system, and the path of each configuration file and the correct value of each configuration item cannot be mistaken in the checking process.

[0004] This manual checking method has a large amount of work, low efficiency, and is easy to miss and make errors. Once the dispatching control system fails due to a configuration file error, it is difficult to quickly locate and solve the problem. SUMMARY

[0005] The application aims to provide a configuration file automatic checking method and system of a power grid dispatching control system to solve the problems of timeliness, completeness and accuracy of the existing configuration file manual checking method, and ensure the safe and stable operation of the power grid dispatching control system.

[0006] To achieve the above-mentioned purpose, the application adopts the following technical solutions:

[0007] On the one hand, a configuration file automatic checking method of a power grid dispatching control system comprises:

[0008] generating configuration file checking rules and checking commands in an information management area, and transmitting the configuration file checking rules and checking commands to a production control area through reverse cross-isolation transmission;

[0009] the server of the information management area and the server of the production control area push the configuration file checking rules and checking commands to the collection agents of each server in the area.

[0010] Each collection agent collects corresponding configuration file information on the server according to the configuration file check rule and the check command and uploads to the service end of the information management area;

[0011] The service end of the information management area checks the correct configuration value of the configuration item in the configuration file check rule and the actual configuration value of the configuration item in the uploaded configuration file information, and sends the inconsistent configuration item information to the alarm system for alarm.

[0012] Further, each generated check rule file is composed of multiple rules, each rule corresponds to a configuration file, including configuration file name, grouping information, configuration item and host information; the configuration file name contains the absolute path of the configuration file, the grouping information includes operating system or specific business system, and the configuration item includes the name of the configuration item and the value that the configuration item should be configured with;

[0013] Each check command file includes a globally unique id, a time of triggering the check command and a type of triggering the check command.

[0014] Further, before the service end of the information management area and the service end of the production control area push the configuration file check rule and the check command to the collection agent of each server in the area, it further includes:

[0015] The service end of the information management area and the service end of the production control area respectively parse the check rule file and store it in the rule table, the rule host relationship table and the rule item table of the database in the area, and respectively parse the check command file and store it in the check command table of the database in the area.

[0016] Further, the service end of the information management area and the service end of the production control area push the configuration file check rule and the check command to the collection agent of each server in the area, including:

[0017] The service end of the information management area and the service end of the production control area each load the check rule and the check command from the database in the area, and each collection agent in the area acquires all configuration file names and check commands that need to be checked from the service end at a set time interval.

[0018] Further, each collection agent collects corresponding configuration file information on the server according to the configuration file check rule and the check command and uploads to the service end of the information management area, including:

[0019] According to the acquired configuration file name and the check command, each acquisition agent of the information management area and the production control area reads the configuration file content of the server, filters out the file annotation in the file content, encodes and transmits the file content after format compression to the server of the information management area.

[0020] Further, after each acquisition agent of the production control area acquires the configuration file information of the server, the acquisition agent transmits the configuration file information to the gateway in the area, and the gateway forwards the configuration file information to the server of the information management area through the forward cross-isolation.

[0021] Further, after each acquisition agent acquires the configuration file name and the check command of the server, the acquisition agent needs to determine whether the check command is checked or not, and if not, the acquisition agent reads the configuration file content of the server.

[0022] Further, the server of the information management area checks the configuration item according to the correct configuration value of the configuration item in the configuration file check rule and the actual configuration value of the configuration item in the uploaded configuration file information, including:

[0023] The server of the information management area stores the received configuration file information of all servers in the production control area and the information management area into the configuration item check table in the database in the area, and the configuration item check table contains the configuration item name of the configuration file to be checked, the actual configuration value and the correct configuration value of the configuration item, and if the actual configuration value and the correct configuration value are inconsistent, the configuration item check fails.

[0024] On the other hand, a configuration file automatic check system of a power grid dispatching control system, including: a server in an information management area and an acquisition agent arranged on each server in the information management area, and a server in a production control area and an acquisition agent arranged on each server in the production control area, and a forward isolation device and a reverse isolation device arranged between the information management area and the production control area,

[0025] The server of the information management area is used to generate a configuration file check rule and a check command, and transmit the configuration file check rule and the check command to the production control area through the reverse isolation device; push the configuration file check rule and the check command to the acquisition agent of each server in the area; and receive the configuration file information uploaded by each acquisition agent in the area and the configuration file information uploaded by each acquisition agent in the production control area, check the configuration item according to the correct configuration value of the configuration item in the check rule and the actual configuration value of the configuration item in the uploaded configuration file information, and send the inconsistent configuration item information to an alarm system for alarm;

[0026] The server of the production control area is used to push the configuration file check rule and the check command to the acquisition agent of each server in the area.

[0027] The collection agent of the information management area and the collection agent of the production control area collect corresponding configuration file information on the server according to the configuration file checking rule and the checking command and upload to the server of the information management area.

[0028] Further, the server of the information management area comprises a checking rule generating module, a checking command generating module, a first checking rule file parsing module and a first checking command file parsing module, and the server of the production control area comprises a second checking rule file parsing module and a second checking command file parsing module,

[0029] The checking rule generating module is used to generate a checking rule file of a configuration file to be checked in the dispatching control system and a configuration item in the configuration file;

[0030] The checking command generating module is used to generate a configuration file checking command;

[0031] The first checking rule file parsing module is used to parse the generated checking rule file and store in the rule table, the rule host relationship table and the rule item table in the database of the area;

[0032] The first checking command file parsing module is used to parse the generated checking command file and store in the checking command table in the database of the area;

[0033] The second checking rule file parsing module is used to parse the received checking rule file and store in the rule table, the rule host relationship table and the rule item table in the database of the area;

[0034] The second checking command file parsing module is used to parse the received checking command file and store in the checking command table in the database of the area.

[0035] Further, the server of the information management area and the server of the production control area each comprise a loading module for loading the checking rule and the checking command from the database of the area respectively, and the collection agent of the information management area and the collection agent of the production control area acquire all configuration file names to be checked and checking commands whether to be checked from the server of the area every set time.

[0036] Further, the collection agent is also used to judge whether the checking command is checked or not, and if not, collect corresponding configuration file information on the server according to the configuration file checking rule and the checking command.

[0037] Further, the server of the information management area further comprises a configuration file information receiving module for receiving the configuration file information collected by the collection agent in the information management area and the configuration file information collected by the collection agent in the production control area and storing in the configuration item checking table in the database.

[0038] Further, the production control area is further provided with a gateway for forwarding the configuration file information collected by the collection agents in the area to the configuration file information receiving module of the service end of the information management area through the forward isolation device.

[0039] An electronic device comprising one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the preceding methods.

[0040] A readable storage medium, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the preceding methods.

[0041] Compared with the prior art, the beneficial technical effects of the present application are:

[0042] The present application can realize automatic checking of the configuration file of the power grid dispatching control system, reduce the workload of manual checking of the configuration file, quickly and accurately find problems of the configuration file and issue an alarm, and can also retain all the historical records of the checking, providing data support for subsequent statistical analysis and fault tracing. BRIEF DESCRIPTION OF DRAWINGS

[0043] Figure 1 A configuration file automatic checking method of a power grid dispatching control system according to the present application is shown in the overall flowchart.

[0044] Figure 2 A data flow direction diagram of the configuration file automatic checking method of the power grid dispatching control system according to the present application is shown.

[0045] Figure 3 A configuration file automatic checking system structure diagram of the power grid dispatching control system according to the present application is shown. DETAILED DESCRIPTION

[0046] The present application will be further described below in combination with specific embodiments. The following embodiments are only used to more clearly illustrate the technical solutions of the present application, and cannot be used to limit the protection scope of the present application.

[0047] As shown in the configuration file automatic checking method of a power grid dispatching control system, the following steps are included: Figure 1 Step 1, generating configuration file checking rules and checking commands in the information management area, and transmitting to the production control area through reverse cross-isolation;

[0048]

[0049] As shown in the configuration file automatic checking method of a power grid dispatching control system, the following steps are included: Figure 2 ​As shown, the power grid dispatch control system is divided into a production control area and an information management area, and each of the production control area and the information management area starts a server. An acquisition agent runs on each server that needs to be checked in the production control area and the information management area.

[0050] 1) Configuration file check rule generation:

[0051] In the information management area, the check rules of the configuration files and the configuration items in the configuration files in the dispatch control system are generated, including check rule file generation and check rule file parsing into a database.

[0052] The generated check rule file is in json format, and the specific format is as follows:

[0053]

[0054] Each rule file is composed of multiple rules, and each rule corresponds to a configuration file, including a configuration file name (including a Linux absolute path), grouping information (an operating system or a specific business system, facilitating subsequent statistical analysis), a configuration item (recorded in the form of a key and a value, the key is the name of the configuration item, and the value is the value that the configuration item should be configured, and the configuration item can have multiple), and host information (i.e., the server host name to which the configuration file is applicable, and there can be multiple).

[0055] The check rule file is in json format, which is beneficial for data transmission but not conducive to frequent reading and searching of programs. It is also necessary to parse the check rule file and store it in a table in the database.

[0056] Specifically, the generated check rule file is parsed and stored in the rule table, the rule host relationship table, and the rule item table in the database in the information management area.

[0057] The information management area provides a check rule configuration interface, which provides functions of entering, modifying, and deleting check rules based on a web browser.

[0058] After the check rule file is generated in the information management area, it is synchronized to the production control area through the file service of the power grid dispatch control system.

[0059] 2) Configuration file check command generation:

[0060] The configuration file check command is generated in the information management area. The configuration file check command controls when to check the configuration file in the system, including check command triggering, check command file generation, and check command file parsing into a database.

[0061] The check command is triggered by the operations and maintenance personnel clicking the "Check" button on the operation interface, or by the scheduled check script program configured by the operations and maintenance personnel.

[0062] The generated inspection command file is in JSON format, with the following specific format:

[0063] {"checkid":1802,"checkTime":1636379500740,"checkType":Timed Trigger}

[0064] The check command file only saves the latest check commands. If a new check command is generated, the existing command will be overwritten. `checkid` is a globally unique ID, and each check result is bound to this ID. `checkTime` is a 13-bit timestamp with millisecond precision, recording the time the check command was triggered. `checkType` specifies the type of check command trigger, which can be either timed or manual.

[0065] Similar to the check rule file, the generated check command file is also parsed and stored in the check command table of the local database.

[0066] Similar to the inspection rule file, the inspection command file, after being generated in the information management area, is synchronized back to the production control area via the file service of the power grid dispatch control system across isolation.

[0067] After receiving the configuration file check rules and check commands transmitted from the information management region, the production control region's server also needs to parse the check rule file and store it in the region's database rule table, rule host relationship table, and rule item table, and parse the check command file and store it in the region's database check command table.

[0068] Step 2: The server-side of the information management region and the server-side of the production control region will send the configuration file check rules and check commands to the collection agents of each server in their respective regions.

[0069] The servers in the Information Management and Production Control zones load inspection rules and commands from their respective zone databases. Inspection rules are stored in memory using a map...<key,value> The format is stored such that the key is the hostname and the value is an array of complete configuration file names containing absolute paths.

[0070] In the Information Management and Production Control regions, on all servers that require configuration file checks, start the data collection agent. Every minute, the agent retrieves from the server the names of all configuration files under its hostname that need to be checked, along with the check command indicating whether to check them.

[0071] Step 3, each collection agent checks the rules and check commands according to the configuration file to collect the corresponding configuration file information on the server and upload to the service end of the information management area;

[0072] After each agent obtains the configuration file name and check command to be checked under the host name, it is judged whether the check command checkid has been checked. If not, a new round of configuration file information acquisition and uploading is started.

[0073] Each agent reads the configuration file content according to the configuration file name, filters out the file annotations in the file content, performs base64 encoding and zip format compression, and sends the configuration file information to the service end of the configuration file information receiving (transfer) module.

[0074] The configuration file checking function is unified in the information management area, and the configuration file upload of the host in the production control area needs to be forwarded to the information management area through the gateway (gateway) across the isolation, as shown in Figure 2 .

[0075] Step 4, the service end of the information management area checks the configuration items according to the correct configuration value of the configuration item in the configuration file checking rule and the actual configuration value of the configuration item in the uploaded configuration file information, and sends the inconsistent configuration item information to the alarm system for alarm.

[0076] After the transfer module receives the configuration file information of all servers in the production control area and the information management area, the information is stored in the configuration item checking table in the database of the area. The configuration item checking table includes the configuration item name of the configuration file to be checked, the actual configuration value and the correct configuration value of the configuration item. If the actual configuration value and the correct configuration value are different, the configuration item checking is not passed. The configuration item information that does not pass the check is sent to the alarm system for alarm.

[0077] The configuration item checking table stores the record of each configuration file checking. Different batches of checking records are distinguished by the checkid of the check command. The configuration item checking table stores the history record of the configuration file checking, which provides data support for subsequent statistical analysis and fault tracing.

[0078] Embodiment

[0079] In the information management area, the rule configuration interface based on the Web browser is used to generate the check rule file params.json. The example file is as follows:

[0080]

[0081]

[0082] The check rule file examines two configuration files. The first, / etc / sysctl.conf, is the operating system's configuration file, checking two configuration items: kernel.shmmax and fs.file-max. The correct values ​​are 8589934592x and 3205350x, respectively. This configuration file should be checked on both host1 and host2 servers. The second, / home / nusp / conf / msg_node.conf, is the scheduling and control system's configuration file, checking two configuration items: db2 and db3. The correct values ​​are 2x and 3x, respectively. This configuration file should be checked on host3 server.

[0083] host1 and host3 are in the Information Management Zone, and host2 is in the Production Control Zone. The params.json file is transmitted back across the isolation zone to the Production Control Zone through the file service of the scheduling and control system.

[0084] After the above inspection rule file is parsed in the two regions, it inserts 2 records in the rule table of each region's database, 3 records in the rule host relationship table, and 4 records in the rule item table.

[0085] In the Information Management area, click the "Check" button through the web browser interface to generate the check command file check.json. An example file is shown below:

[0086] {"checkid":1,"checkTime":1655175728000,"checkType":Manual trigger}

[0087] The check.json file is transmitted back across the isolation zone to the production control area via the file service of the scheduling control system.

[0088] After the above check command file is parsed in both regions, one record is inserted into the check command table of each region's database.

[0089] The servers in the Information Management zone and the Production Control zone load inspection rules and commands from their respective zone databases. The memory structure of the inspection rules is shown in Table 1.

[0090] Table 1

[0091]

[0092]

[0093] The agent started on Host1 server acquires information from the server every minute, and the current acquired configuration file name to be checked by the host is / etc / sysctl.conf, and the checkid of the check command is 1. Similarly, the agents of Host2 and Host3 acquire the configuration file names to be checked by the host as / etc / sysctl.conf and / home / nusp / conf / msg_node.conf, and the checkid of the check command is 1.

[0094] The agent of Host1 judges that the checkid is 1 and has not been checked, and then reads the / etc / sysctl.conf configuration file of the server, filters out the file comments in the file content, performs base64 encoding and zip format compression, and sends to the transfer module of the server. Similarly, the agent of Host3 reads the / home / nusp / conf / msg_node.conf file content and sends to the transfer module of the server. Host2 is located in the production control area, and after reading the / etc / sysctl.conf configuration file information, it is first sent to the gateway, and then the gateway is transmitted to the transfer module of the server in the information management area in the forward cross-isolation mode.

[0095] After the transfer module receives the configuration file information of all servers in the production control area and the information management area, the information is stored in the configuration item check table in the database in the area. In the above example, the configuration item check table has the following 6 records, as shown in Table 2.

[0096] Table 2

[0097]

[0098]

[0099] From Table 2, it can be seen that the actual configuration value and the correct configuration value of the fs.file-max configuration item of Host2 are not the same, so the configuration item check fails, and the configuration item information is sent to the alarm system for alarm.

[0100] As shown in Figure 3 A configuration file automatic checking system of a power grid dispatching control system, comprising: a server in an information management area and an acquisition agent running on each server in the information management area, and a server in a production control area and an acquisition agent running on each server in the production control area, and a forward isolation device and a reverse isolation device are arranged between the information management area and the production control area.

[0101] The service end of the information management area is configured to generate configuration file checking rules and checking commands, transmit the checking rules and commands to the production control area through the reverse isolation device, push the checking rules and commands to the agents of the servers in the area, and receive the configuration file information collected by the agents in the area and the configuration file information collected by the agents in the production control area, check the configuration items according to the correct configuration values in the checking rules and the actual configuration values in the uploaded configuration file information, and send the inconsistent configuration item information to the alarm system for alarm.

[0102] The service end of the production control area is configured to push the configuration file checking rules and checking commands to the agents of the servers in the area.

[0103] The agents in the information management area and the production control area are configured to collect the corresponding configuration file information of the servers according to the configuration file checking rules and checking commands and upload the configuration file information to the service end of the information management area.

[0104] The service end of the information management area includes a checking rule generation module, a checking command generation module, a first checking rule file analysis module and a first checking command file analysis module. The service end of the production control area includes a second checking rule file analysis module and a second checking command file analysis module.

[0105] The checking rule generation module is configured to generate a checking rule file of a configuration file to be checked in the dispatching control system and configuration items in the configuration file.

[0106] The checking command generation module is configured to generate a configuration file checking command.

[0107] The first checking rule file analysis module is configured to analyze the generated checking rule file and store the checking rule file in a rule table, a rule host relationship table and a rule item table in a database in the area.

[0108] The first checking command file analysis module is configured to analyze the generated checking command file and store the checking command file in a checking command table in the database in the area.

[0109] The second checking rule file analysis module is configured to analyze the received checking rule file and store the checking rule file in the rule table, the rule host relationship table and the rule item table in the database in the area.

[0110] The second checking command file analysis module is configured to analyze the received checking command file and store the checking command file in the checking command table in the database in the area.

[0111] The service end of the information management area and the service end of the production control area each include a loading module for loading the checking rules and the checking commands from the database of the area, and each agent of the information management area and the production control area acquires all the configuration file names to be checked and the checking commands from the service end every set time.

[0112] Each agent is also used for judging whether the checking command is checked or not, and if not, collecting the corresponding configuration file information on the server according to the configuration file checking rules and the checking command.

[0113] The service end of the information management area further includes a configuration information transfer module for receiving the configuration file information collected by each agent of the information management area and the configuration file information collected by each collection agent of the production control area, and storing the configuration file information into the configuration item checking table in the database.

[0114] The production control area is provided with a gateway for forwarding the configuration file information collected by each collection agent in the area to the transfer module of the service end of the information management area through the forward isolation device.

[0115] Correspondingly, the application also provides an electronic device, including one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods.

[0116] The application also provides a readable storage medium, and the one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any of the methods.

[0117] Those skilled in the art should understand that the embodiments of the application can be provided as a method, a system or a computer program product. Therefore, the application can be in the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0118] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0119] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0120] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks. Figure 1 one or more flow or blocks.

[0121] The above has been disclosed with the preferred embodiments of the present application, but it is not intended to limit the present application, and any technical solution obtained by taking equivalent substitution or equivalent transformation falls within the protection scope of the present application.

Claims

1. A configuration file automatic check method of a power grid dispatching control system, characterized in that, Comprise: Generating configuration file checking rules and checking commands in the information management area and transmitting to the production control area through reverse cross-isolation transmission; Respectively parsing the checking rule file by the service end of the information management area and the service end of the production control area and storing in the rule table, rule host relationship table and rule item table of the database of the area, and respectively parsing the checking command file and storing in the checking command table of the database of the area; The service end of the information management area and the service end of the production control area push the configuration file checking rules and checking commands to the collection agents of each server in the area, including: the service end of the information management area and the service end of the production control area each load the checking rules and checking commands from the database of the area, and each collection agent in the area acquires all the configuration file names and checking commands that need to be checked from the service end at a set time interval; Each collection agent collects the corresponding configuration file information on the server according to the configuration file checking rules and checking commands and uploads to the service end of the information management area; wherein each collection agent of the production control area sends the collected configuration file information of the server to the gateway in the area, and the gateway forwards to the service end of the information management area through forward cross-isolation transmission; The service end of the information management area checks the configuration items according to the correct configuration value of the configuration items in the configuration file checking rules and the actual configuration value of the configuration items in the uploaded configuration file information, and sends the inconsistent configuration item information to the alarm system for alarm.

2. The method of claim 1, wherein the configuration file of the grid dispatch control system is automatically checked. Each generated checking rule file is composed of multiple rules, each rule corresponds to a configuration file, including configuration file name, grouping information, configuration item and host information; the configuration file name contains the absolute path of the configuration file, the grouping information includes operating system or specific business system, and the configuration item includes the name of the configuration item and the value that the configuration item should be configured with; Each checking command file includes a globally unique id, a time when the checking command is triggered and a type of the checking command.

3. The method of claim 1, wherein the configuration file of the grid dispatch control system is automatically checked. The collection agent of each area acquires the configuration file name and checking command that need to be checked according to the acquired configuration file name and checking command, respectively reads the configuration file content of the server, filters out the file annotations in the file content, encodes and sends to the service end of the information management area after format compression. After the collection agent of each area acquires the configuration file name and checking command that need to be checked, it also needs to judge whether the checking command has been checked, if not, it reads the configuration file content of the server.

4. The method of claim 3, wherein the configuration file of the grid dispatch control system is automatically checked. The service end of the information management area checks the configuration items according to the correct configuration value of the configuration items in the configuration file checking rules and the actual configuration value of the configuration items in the uploaded configuration file information, including:

5. The method of claim 1, wherein the configuration file of the grid dispatch control system is automatically checked. ​ The server in the information management area stores the configuration file information of all servers in the production control area and the information management area received into a configuration item check table in the database of the area, which contains the configuration item name of the configuration file to be checked, the actual configuration value and the correct configuration value of the configuration item, and if the actual configuration value and the correct configuration value are inconsistent, the configuration item check fails.

6. A configuration file automatic check system of a power grid dispatching control system, characterized in that, Comprise: The server in the information management area and the collection agent arranged on each server in the information management area, and the server in the production control area and the collection agent arranged on each server in the production control area, and a forward isolation device and a reverse isolation device arranged between the information management area and the production control area, The server in the information management area is used to generate configuration file check rules and check commands, and transmit them to the production control area through the reverse isolation device; push the configuration file check rules and check commands to the collection agent of each server in the area; and receive the configuration file information uploaded by each collection agent in the area and the configuration file information uploaded by each collection agent in the production control area, check the correct configuration value of the configuration item in the check rule and the actual configuration value of the configuration item in the uploaded configuration file information, and send the inconsistent configuration item information to the alarm system for alarm; The server in the production control area is used to push the configuration file check rules and check commands to the collection agent of each server in the area; The collection agent in the information management area and the collection agent in the production control area collect the corresponding configuration file information on the server according to the configuration file check rules and check commands and upload them to the server in the information management area; the server in the information management area comprises: A check rule generation module for generating a configuration file check rule file of the configuration file to be checked in the dispatching control system and the configuration item in the configuration file; A check command generation module for generating a configuration file check command; A first check rule file parsing module for parsing the generated check rule file and storing it in a rule table, a rule host relationship table and a rule item table in the database of the area; A first check command file parsing module for parsing the generated check command file and storing it in a check command table in the database of the area; The server in the production control area comprises: A second check rule file parsing module for parsing the received check rule file and storing it in a rule table, a rule host relationship table and a rule item table in the database of the area; A second check command file parsing module for parsing the received check command file and storing it in a check command table in the database of the area; the server in the information management area and the server in the production control area each comprise a loading module for loading the check rule and the check command from the database of the area, respectively, and each collection agent in the information management area and the production control area acquires all configuration file names to be checked and check commands whether to be checked from the server in the area at a set time interval. The production control area is further provided with a gateway for forwarding the configuration file information collected by each collection agent in the area to a configuration file information receiving module of a service end of the information management area through a forward isolation device.

7. The automatic configuration file check system of a grid dispatch control system according to claim 6, wherein, Each collection agent is further configured to judge whether the check command has been checked, and if not, collect corresponding configuration file information on the server according to the configuration file check rule and the check command.

8. The automatic profile check system of a grid dispatch control system according to claim 6, characterized in that, The service end of the information management area further comprises a configuration file information receiving module for receiving the configuration file information collected by each collection agent in the information management area and the configuration file information collected by each collection agent in the production control area, and storing the configuration file information in a configuration item check table in a database.

9. An electronic device, comprising: One or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods of claims 1-5.

10. A readable storage medium, having stored thereon one or more programs, wherein the one or more programs comprise instructions, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1-9. The one or more programs include instructions that, when executed by a computing device, cause the computing device to perform any of the methods of claims 1-5.

Citation Information

Patent Citations

  • Method and system for automatically checking configuration of plant station network security equipment

    CN114612264A