A method and device for monitoring a business system

By introducing important data monitoring mode, equipment inspection mode and firewall strategy cleaning mode into the business system, the problems of low operation and maintenance efficiency and poor effect in the existing technology are solved, and efficient monitoring and management of the business system is achieved.

CN114884835BActive Publication Date: 2024-11-08交通银行股份有限公司海南省分行
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210505377.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-11-08
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

The operation and maintenance efficiency of the existing monitoring business system is low and the operation and maintenance effect is poor, which causes operation and maintenance personnel to spend a lot of time processing complicated data and are prone to omissions.

Method used

Provide a method to monitor business systems, including important data monitoring mode, device inspection mode and firewall policy cleaning mode. By periodically obtaining and cleaning server key data, device information and firewall policies, useless, invalid and expired policies are selected. , output the processed data.

Benefits of technology

It improves operation and maintenance efficiency and operation and maintenance effects, reduces the need for operation and maintenance personnel to manually process data, and enhances the monitoring and management capabilities of the operation status of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114884835B_ABST
    Figure CN114884835B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for monitoring a business system. The scheme provides three data processing modes, namely, an important data monitoring mode, an equipment inspection mode and a firewall policy cleaning mode. The important data monitoring mode is used to obtain server key data and output server key data that has completed data cleaning. The equipment inspection mode is used to pull device information and output device information that has completed data cleaning. The firewall policy cleaning mode is used to screen and output useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to security areas. Operation and maintenance personnel do not need to manually process the operation data of the business system, thereby improving operation and maintenance efficiency and effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for monitoring a business system. Background Art

[0002] With the development of Internet technology, banks' business systems are also undergoing rapid changes in digital transformation. To ensure the stable operation of business systems, it is necessary to monitor the operating status of business systems and provide good operation and maintenance services for business systems.

[0003] The current way to monitor business systems is that operation and maintenance personnel log in to the business system through the bastion host to monitor the operating status of the business system. However, the data generated by dozens of business systems during operation is very complex, and operation and maintenance personnel need to spend a lot of time processing the operating data of the business system. In addition, mistakes are prone to occur in the process of processing a large amount of data, resulting in low operation and maintenance efficiency and poor operation and maintenance results. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and apparatus for monitoring a business system to solve the problems of low operation and maintenance efficiency and poor operation and maintenance effect existing in the existing method of monitoring a business system.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A first aspect of an embodiment of the present invention discloses a method for monitoring a business system, the method comprising:

[0007] Start important data monitoring mode, device inspection mode and / or firewall policy cleanup mode;

[0008] When the important data monitoring mode is started, obtaining the server key data periodically pushed by the designated server according to the first period;

[0009] Performing a first data cleaning operation on the server key data, and outputting and displaying the server key data after the first data cleaning operation is completed;

[0010] When the device inspection mode is started, periodically pulling device information from the core network device of the service system according to a second period;

[0011] Performing a second data cleaning operation on the device information, and outputting and displaying the device information after the second data cleaning operation is completed;

[0012] In the case of starting the firewall policy cleaning mode, based on the firewall policy files corresponding to the security zones of the business system, filtering out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zones;

[0013] The output displays useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to the security zone.

[0014] Preferably, performing a first data cleaning operation on the server key data, and outputting and displaying the server key data after the first data cleaning operation is completed, includes:

[0015] Adding an XML format tag to each of the server key data, and constructing a first XML file based on the server key data to which the XML format tag is added;

[0016] Adding a line break in a specific format to the end of any server key data of a specific category in the first XML file to obtain a second XML file;

[0017] The data contained in the second XML file is output and displayed on the first display page.

[0018] Preferably, when the device inspection mode is started, periodically pulling device information from the core network device of the service system according to the second period includes:

[0019] When the device inspection mode is started, according to the second period, the pipeline screening tool is periodically used to pull device information within a preset time limit from the core network device of the business system.

[0020] Preferably, performing a second data cleaning operation on the device information, and outputting and displaying the device information after the second data cleaning operation is completed, includes:

[0021] Adding the device information to the first file;

[0022] Using a preset data cleaning script, normalize the data labels and formats of the device information in the first file to obtain a second file;

[0023] When a viewing instruction carrying a device name parameter and a data type parameter is detected, the device information corresponding to the device name parameter and the data type parameter is located from the second file;

[0024] The device information corresponding to the device name parameter and the data type parameter is displayed in a second display page.

[0025] Preferably, based on the firewall policy file corresponding to the security zone of the business system, useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone are screened out, including:

[0026] For each security zone of the business system, based on a firewall policy file corresponding to the firewall policy of the security zone, determining the number of matches of the firewall policy of the security zone, and determining a firewall policy with a matching number of 0 as a useless firewall policy, wherein the firewall policy file of the firewall policy is collected periodically in advance according to a third period;

[0027] Obtain the address group name from the firewall policy file corresponding to the security zone, determine the number of matching lines of each address group name in the firewall configuration file of the security zone, and determine that the address group corresponding to the address group name with a matching line number of 1 is an invalid address group;

[0028] Get a preset invalid address file containing multiple invalid IP addresses;

[0029] Determine, from the firewall policy file corresponding to the security zone, an IP address that matches any invalid IP address in the invalid address file as an invalid address;

[0030] For each firewall policy of the security area, if the hit numbers of any two target firewall policy files corresponding to the firewall policy are the same, the firewall policy is determined to be an expired firewall policy, wherein the any two target firewall policy files are two firewall policy files whose collection time interval is greater than or equal to a preset interval.

[0031] Preferably, before filtering out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone, the method further comprises:

[0032] A third data cleaning operation is performed on the firewall policy file corresponding to the security area of ​​the business system to remove noise in the firewall policy file and add a specific field at the end of a specified line of the firewall policy file.

[0033] Preferably, the output displays useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to the security zone, including:

[0034] For each security zone, add the useless firewall policy, the invalid address group, the invalid address, and the expired firewall policy corresponding to the security zone to a third XML file, and add a line break in a specific format to the third XML file to obtain a fourth XML file;

[0035] In different sub-pages of the third display page, data contained in the fourth XML file corresponding to different security areas are displayed respectively.

[0036] A second aspect of an embodiment of the present invention discloses a device for monitoring a business system, the device comprising:

[0037] A startup unit, used to start an important data monitoring mode, a device inspection mode and / or a firewall policy clearing mode;

[0038] an acquisition unit, configured to acquire, when the important data monitoring mode is activated, server key data periodically pushed by the designated server according to a first period;

[0039] A first processing unit, configured to perform a first data cleaning operation on the server key data, and output and display the server key data after the first data cleaning operation is completed;

[0040] A pulling unit, configured to periodically pull device information from a core network device of the service system according to a second period when the device inspection mode is started;

[0041] A second processing unit, configured to perform a second data cleaning operation on the device information, and output and display the device information after the second data cleaning operation is completed;

[0042] A screening unit, configured to screen out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone based on the firewall policy files corresponding to the security zone of the business system when the firewall policy cleaning mode is started;

[0043] The third processing unit is used to output and display useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone.

[0044] Preferably, the first processing unit is specifically used to: add an XML format tag to each of the server key data, and construct a first XML file based on the server key data with the added XML format tags; add a line break of a specific format at the end of any server key data of a specific category in the first XML file to obtain a second XML file; and output and display the data contained in the second XML file in the first display page.

[0045] Preferably, the pulling unit is specifically used for: when the device inspection mode is started, periodically using a pipeline screening tool to pull device information within a preset time limit from the core network device of the business system according to a second period.

[0046] Based on the above-mentioned embodiment of the present invention, a method and device for monitoring a business system are provided. The method comprises: starting an important data monitoring mode, an equipment inspection mode and / or a firewall policy cleaning mode; when the important data monitoring mode is started, obtaining server key data periodically pushed by a designated server according to a first period; performing a first data cleaning operation on the server key data, and outputting and displaying the server key data after the first data cleaning operation is completed; when the equipment inspection mode is started, periodically pulling device information from a core network device of a business system according to a second period; performing a second data cleaning operation on the device information, and outputting and displaying the device information after the second data cleaning operation is completed; when the firewall policy cleaning mode is started, based on the firewall policy file corresponding to the security area of ​​the business system, filtering out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security area; and outputting and displaying useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security area. This solution provides three data processing modes: important data monitoring mode, equipment inspection mode and firewall policy cleanup mode. The important data monitoring mode is used to obtain server key data and output the server key data that has completed data cleansing. The equipment inspection mode is used to pull device information and output the device information that has completed data cleansing. The firewall policy cleanup mode is used to filter and output useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security area. It does not require operation and maintenance personnel to manually process the operating data of the business system, thereby improving operation and maintenance efficiency and results. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0048] Figure 1 A flowchart of a method for monitoring a business system provided by an embodiment of the present invention;

[0049] Figure 2 An example diagram of a system error log and a database error log provided by an embodiment of the present invention;

[0050] Figure 3 An example diagram of a first display page provided by an embodiment of the present invention;

[0051] Figure 4 Another example diagram of the first display page provided by the embodiment of the present invention;

[0052] Figure 5 An example diagram of a second display page provided by an embodiment of the present invention;

[0053] Figure 6 A line chart of daily inspection time for different daily inspection methods provided in an embodiment of the present invention;

[0054] Figure 7 An example diagram of a firewall policy file provided by an embodiment of the present invention;

[0055] Figure 8 An example diagram of a third display page provided by an embodiment of the present invention;

[0056] Fig. 9 A flowchart for screening and outputting expired firewall policies provided by an embodiment of the present invention;

[0057] Fig.10 A schematic diagram of the architecture of the operation and maintenance platform provided by an embodiment of the present invention;

[0058] Fig.11 A structural block diagram of a device for monitoring a business system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0061] As can be seen from the background technology, when it is necessary to monitor the business system, the operation and maintenance personnel usually log in to the business system through the bastion host to monitor the operating status of the business system. However, on the one hand, the data generated by the business system during operation is very complicated, and the operation and maintenance personnel need to spend a lot of time processing the operating data of the business system; on the other hand, the operation and maintenance personnel are prone to omissions in the process of processing a large amount of data, for example: the inspection results obtained by the operation and maintenance personnel after processing the data may have omissions, and thus cannot locate and eliminate system failures in the first time; on the third hand, it is difficult for the operation and maintenance personnel to filter out effective information from a large amount of data; in the above-mentioned cases, the method of manually monitoring the business system by the operation and maintenance personnel has problems such as low operation and maintenance efficiency and poor operation and maintenance effect.

[0062] Therefore, an embodiment of the present invention provides a method and device for monitoring a business system, and provides three data processing modes: an important data monitoring mode, an equipment inspection mode, and a firewall policy cleaning mode. The important data monitoring mode is used to obtain server key data and output the server key data that has completed data cleaning. The equipment inspection mode is used to pull device information and output the device information that has completed data cleaning. The firewall policy cleaning mode is used to screen and output useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to security areas. Operation and maintenance personnel are not required to manually process the operating data of the business system, so as to improve operation and maintenance efficiency and operation and maintenance effects.

[0063] See also Figure 1 , shows a flow chart of a method for monitoring a business system provided by an embodiment of the present invention, the method comprising:

[0064] Step S101: Start important data monitoring mode, device inspection mode and / or firewall policy clearing mode.

[0065] In the process of implementing step S101, important data monitoring mode, device inspection mode and firewall policy clearing mode are pre-set; in response to the mode start instruction, any one or more of the important data monitoring mode, device inspection mode and firewall policy clearing mode are started.

[0066] When starting the important data monitoring mode, execute step S102 and step S103; when starting the device inspection mode, execute step S104 and step S105; when starting the firewall policy clearing mode, execute step S106 and step S107.

[0067] Step S102: When the important data monitoring mode is started, the server key data periodically pushed by the designated server according to the first period is obtained.

[0068] It should be noted that when collecting data, there are usually two data collection methods: "push" and "pull". The "push" data collection method is that the device actively pushes its own data to a dedicated server for aggregation, and the "pull" data collection method is that the dedicated server pulls data from the device for aggregation.

[0069] In the specific implementation of step S102, when the important data monitoring mode is started, the server key data periodically pushed by the designated server according to the first cycle is obtained; that is, the designated server periodically pushes its own server key data to the dedicated server according to the first cycle.

[0070] Specifically, through shell scripts and scheduled tasks, each designated server periodically pushes its own server key data to the dedicated server according to the first cycle; for example, the designated server pushes its own server key data to the dedicated server every half an hour.

[0071] In some embodiments, the designated server of the business system may be an important server such as a business server, and the key server data includes but is not limited to: CPU load, abnormal storage links, system hot standby (Highly Available, HA) status, memory status, file system usage, branch integrated operation and maintenance platform (BIOP) monitoring process, database backup status, system problem log and data problem log, etc.

[0072] It is understandable that when collecting data from business systems, the collected data needs to be as concise as possible while meeting the work requirements of daily operation and maintenance inspections by operation and maintenance personnel. Since business servers (such as Linux servers) generate tens of thousands of log lines every day, most of these tens of thousands of log lines are logs generated when the business servers are running normally. In order to ensure data simplicity, only system logs related to alarms and the kernel can be collected. For example, only error logs and logs related to the kernel core can be collected; for example, system error logs and database error logs corresponding to business servers can be collected. For specific contents of the system error logs and database error logs, see Figure 2 The example diagram of the system error log and database error log provided. It is worth noting that the logs that need to be collected can also be determined according to actual needs, and no specific restrictions are made here.

[0073] Step S103: performing a first data cleaning operation on the server key data, and outputting and displaying the server key data after the first data cleaning operation is completed.

[0074] It should be noted that after receiving the server key data pushed by the designated server, the server key data needs to be cleaned. In the specific implementation of step S103, an extensible markup language (XML) format tag is added to each server key data, and a first XML file is constructed based on the server key data with the XML format tag added; a line break in a specific format is added to the end of any server key data of a specific category in the first XML file to obtain a second XML file; and the data contained in the second XML file is output and displayed in the first display page.

[0075] In some embodiments, in the process of processing the first XML file (such as adding line breaks) to determine the second XML file, noise characters in the first XML file may also be cleaned up, such as cleaning up noise characters such as EOF and END in the first XML file.

[0076] It is worth noting that when storing server key data in the data storage form of XML files, if the server key data is directly stored in the XML file, when the server key data in the XML file is displayed in the subsequent data, the web front-end page may not be able to recognize the line breaks; therefore, it is necessary to clean the server key data stored in the XML file.

[0077] Specifically, the server key data is stored in the XML file in the form of XML format tags, for example: <cpu>< / cpu> " This XML format tag stores the server CPU load information. In a specific implementation, the server key data is stored in an XML file that complies with a preset specification, and an XML format tag is added to each server key data to construct a first XML file.

[0078] In order to ensure that the server key data stored in the first XML file can be displayed in normal line breaks on the web front-end page (to ensure the neatness of the displayed content), it is necessary to add line breaks in a specific format to some of the server key data in the first XML file.

[0079] Specifically, an HTML line break is added at the end of any server key data of a specific category in the first XML file to obtain a second XML file. For example, an HTML line break is added at the end of server key data of a file system category in the first XML file to obtain a second XML file.

[0080] After obtaining the second XML file, the second XML file is uploaded to the web server through the File Transfer Protocol (FTP), so that the web server displays the server key data stored in each XML format tag in the second XML file on a designated static page (first display page).

[0081] For example Figure 3 An example diagram of a first display page is provided, in which server key data of categories such as file system and HA status are displayed on the first display page, wherein an HTML line break is added to the end of the server key data of the file system category.

[0082] Another example Figure 4 Another example diagram of the first display page is provided, in which server key data of categories such as database backup, BIOP-agent, file system and HA status are displayed on the first display page, wherein HTML line breaks are added to the end of specific categories of server key data such as the file system category.

[0083] Step S104: when the device inspection mode is started, device information is periodically pulled from the core network device of the service system according to the second period.

[0084] In the process of implementing step S104, when the equipment inspection mode is started, according to the second cycle, the equipment information is periodically pulled from the core network equipment of the business system using a specified interactive tool; for example: using interactive tools such as expect and tcl, the equipment information of the core network equipment is pulled from the core network equipment every 24 hours.

[0085] It should be noted that for device information such as network device logs of core network devices, the collected device information also needs to be simplified; device information from several months or even years ago is meaningless for daily operation and maintenance inspections. Therefore, when collecting device information, it is necessary to ensure that the device information is collected within the preset time limit, and it is also necessary to use pipeline screening tools to screen the device information to ensure the simplicity of the collected device information.

[0086] In some embodiments, when the device inspection mode is started, the pipeline screening tool is periodically used to pull device information within a preset time limit from the core network device of the business system according to the second period.

[0087] For example: Use pipeline screening tools to pull network device logs for the current month from core network devices every 24 hours.

[0088] In some embodiments, pipeline screening tools include but are not limited to grep, awk, and egrep, etc.; for example: when collecting problem logs of core network devices, the problem logs can be collected through the "cat / var / log / messages|egrep "kernel|error|eth" method.

[0089] In some embodiments, the device information includes but is not limited to network device configuration files, switch routing interface status, HA status, device operating environment status, and network device logs.

[0090] Step S105: performing a second data cleaning operation on the device information, and outputting and displaying the device information after the second data cleaning operation is completed.

[0091] In the specific implementation of step S105, after the device information of each core network device is pulled, the collected device information needs to be cleaned, and then according to the user's viewing instruction, the device information matching the viewing instruction is output and displayed.

[0092] That is to say, it can respond to the user's viewing instructions, query and display the network device configuration file, device operating environment status, switch routing interface status and network device log of the current month of a core network device.

[0093] In the specific implementation, the device information is added to the first file (the device information of different core network devices is added to different first files respectively); the data labels and formats of the device information in the first file are standardized using a preset data cleaning script to obtain a second file; when a viewing instruction carrying a device name parameter and a data type parameter is detected, the device information corresponding to the device name parameter and the data type parameter is located from the second file; and the device information corresponding to the device name parameter and the data type parameter is displayed in the second display page.

[0094] It should be noted that since different core network devices have the same data attributes (such as interface information and HA information), when querying the device information of a core network device, the viewing instruction needs to carry the device name parameter and data type parameter to accurately locate the device information of a specified category of a core network device.

[0095] If you need to view the device information of a specified category of any core network device, first use the device name of the arbitrary core network device as the device name parameter, and locate the device name of the arbitrary core network device in the second file (which can be located by selecting the corresponding data tag); use the specified category as the data type parameter, combined with the device name of the arbitrary core network device, and locate the device information of the specified category corresponding to the device name of the arbitrary core network device in the second file.

[0096] For example: assuming that you need to view the interface status information of the core switch, first locate the core switch name of the core switch (such as S0**-YW7K-***) in the second file set, and then locate the interface status information corresponding to the core switch name in the configuration file of "S0**-YW7K-***", where the core switch name is the device name parameter and the interface status information is the data type parameter; similarly, when viewing the version information or interface information of the core switch, you can locate and view it in the above manner.

[0097] As can be seen from the above content, the user can view the corresponding device information in the second display page by carrying the view instruction of the device name parameter and the data type parameter; for example Figure 5 An example diagram of the second display page is provided. When a user needs to view the current configuration information of a core network device, the user can view the current configuration information of the core network device in the second display page by carrying a viewing instruction with a device name parameter and a data type parameter.

[0098] By pulling and displaying the device information of the core network devices of the business system in the above way, it can significantly reduce the login frequency and daily inspection time of operation and maintenance personnel while meeting the daily inspection needs of network administrators. Figure 6 The daily inspection time line graphs of different daily inspection methods are provided. The daily inspection time consumed by using this solution for daily inspection is the "automatic daily inspection" line, the daily inspection time consumed by the operation and maintenance personnel for manual daily inspection is the "manual daily inspection" line, and the daily inspection time consumed by using VB scripts for daily inspection is the "VB script" line. Figure 6 It can be seen that compared with other daily inspection methods, the use of this solution for daily inspections can significantly reduce the time consumed in daily inspections.

[0099] Step S106: When the firewall policy cleanup mode is started, based on the firewall policy files corresponding to the security zones of the business system, useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zones are screened out.

[0100] It should be noted that banks currently have a problem of firewall security policy accumulation. For example, the provincial branch of a bank has 900 business firewall main policies, with about 100,000 lines of policy details; the OA firewall main policies exceed 1,000, with about 100,000 lines of policy details; the metropolitan area network firewall main policies exceed 1,000, with about 80,000 lines of policy details. In the above examples, when the firewall policies reach more than 500, it is basically impossible to analyze manually. Therefore, this solution filters out the firewall policy files corresponding to the security area of ​​the business system through the contents in step S106 and step S107, and filters out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security area.

[0101] It should be further explained that the business system is usually divided into multiple security areas, each of which is equipped with a corresponding firewall, so each security area has a corresponding firewall policy file. For example, a provincial bank has multiple security areas such as business areas, office areas, and external liaison areas, and each security area is equipped with a corresponding firewall.

[0102] In some embodiments, the firewall policy files and firewall configuration files of each security zone are periodically collected in advance according to the third period. The firewall policy file is an ACL file (show access-list), and the file content in the firewall configuration file can be obtained through the show run method. For example, the capture script is written into the timing plan, and the capture script is set to be executed once every half a month to collect the firewall policy files and firewall configuration files corresponding to each security zone.

[0103] It should be noted that when capturing firewall policy files and firewall configuration files, they can be captured through a privileged Linux server host with remote login permissions; specifically, after determining the security baseline and device access control for the privileged Linux server host, install the expect+tcl tool on the privileged Linux server host, and use the expect+tcl tool to capture firewall policy files and firewall configuration files. The expect+tcl tool is mainly used to achieve interactive network device access.

[0104] In some embodiments, after the firewall configuration file and the firewall policy file are captured, a text file "F******.LOG" is used to store the firewall configuration file, and the text file is updated each time a new firewall configuration file is obtained; the firewall policy files collected at different times are named in a progressive naming manner such as "***_acl.1", "***_acl.2" to "***_acl.n" to distinguish the firewall policy files collected at different times.

[0105] It should be noted that the collected firewall policy file contains line breaks "^M" that Linux cannot recognize and 8-bit hexadecimal noise data. To meet the needs of subsequent applications, it is necessary to clear the noise in the firewall policy file and add a specific field to the end of the specified line of the firewall policy file.

[0106] In some embodiments, a third data cleaning operation is performed on the firewall policy file corresponding to the security area of ​​the business system through a privileged Linux server host to remove noise in the firewall policy file and add a specific field at the end of a specified line of the firewall policy file.

[0107] In some embodiments, the noise data and unrecognizable characters of the firewall policy file are cleaned by using sed method in combination with regular expressions; specifically, the noise data such as "0x********" at the end of each line in the firewall policy file (or ACL file) is cleaned, for example: the noise data is cleaned by using the "sed-is / 0x........ / / g[file name]" method; for the line in the firewall policy file where hitcnt does not exist (the specified line of the firewall policy file), the "hitcnt=0" field is added to the line where hitcnt does not exist, wherein hitcnt=0 indicates that the number of matches (or hit counts) of the firewall policy file is 0, for example: the "hitcnt=0" field is added by using the "sed-i'hitcnt / !s / $ / (hitcnt=0)'[file name]" method; the character "^M" at the end of the line in the firewall policy file is cleaned, for example: the "^M" character is cleaned by using the "dos2unix[file name]" method.

[0108] Through the above method, the third data cleaning operation is performed on the collected firewall policy files of each security zone, and the firewall policy files of each security zone that have completed the third data cleaning operation are used to filter out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to each security zone.

[0109] For each security zone of the business system, taking the screening of useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to a certain security zone as an example, a detailed description is given through the following content. The screening process of useless firewall policies, invalid address groups, invalid addresses and expired firewall policies for other security zones can be found in the following content.

[0110] Instructions for filtering useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to a security zone:

[0111] Based on the firewall policy file corresponding to the firewall policy of the security zone, determine the number of matches of the firewall policy of the security zone, and determine that the firewall policy with a match number of 0 is a useless firewall policy. In the specific implementation, determine the maximum number of main policy lines corresponding to the firewall policy of the security zone (denoted as line x); it should be noted that each firewall policy has a corresponding line number identifier (line i is the line number identifier of a certain firewall policy), and line x is used to determine the number of loops; for each firewall policy, if the line number of line i in the firewall policy file of the firewall policy is equal to the line number of hitcnt=0, it means that the number of matches of the firewall policy is 0. For example Figure 7 In the example diagram of the firewall policy file provided, the line number of a certain firewall policy is marked as line 3. The line number of line 3 in the firewall policy file is equal to the line number of hitcnt=0, which indicates that none of the detailed policies in the firewall policy corresponding to line 3 is matched, so the number of matches of the firewall policy is 0. For each firewall policy, if the number of matches of the firewall policy is 0, it means that the firewall policy has not been used, so it can be determined that the firewall policy with a matching number of 0 is a useless firewall policy.

[0112] Through the above method, the unused firewall policies (that is, useless firewall policies) of each security zone can be screened out to tighten the firewall policies of each security zone.

[0113] Get the address group name from the firewall policy file corresponding to the security zone, determine the number of matching lines of each address group name in the firewall configuration file of the security zone, and determine that the address group corresponding to the address group name with a matching line number of 1 is an invalid address group (address group ID).

[0114] It should be noted that when defining an address group according to the firewall configuration information format, the address group name of the address group needs to be used (equivalent to the number of matching lines of the address group name being at least 1); if the address group has been applied, the number of matching lines of the address group name of the address group will be greater than 1. Therefore, the number of matching lines of the address group name of a certain address group can be used to determine whether the address group has been applied; if the number of matching lines of the address group name of the address group is 1, it means that the address group has only been defined but not applied (or the firewall policy corresponding to the address group has been recycled), and the address group can be determined to be an invalid address group; if the number of matching lines of the address group name of the address group is greater than 1, it means that the address group has been applied, and it can be determined that the address group is not an invalid address group.

[0115] In some embodiments, all address group names are obtained from the firewall policy file corresponding to the security zone, and the obtained address group names are stored in a temporary file by row; specifically, address group names in the form of "object-group network xxxxxxx" fields are sorted out from the firewall policy file, and the obtained address group names are stored in a temporary file by row.

[0116] Use show run to obtain the file content in the firewall configuration file of the security zone; read each address group name from the temporary file one by one by line; determine the number of matching lines of each address group name in the file content of the firewall configuration file of the security zone for the read address group name; determine that the address group corresponding to the address group name with a matching line number of 1 is an invalid address group. In other words, for a certain address group name, if the number of matching lines of the address group name in the file content of the firewall configuration file is 1, it can be determined that the address group corresponding to the address group name is an invalid address group.

[0117] It should be noted that in the process of adjusting the firewall policy, the following situation may occur: some firewall policies are recycled, but the address groups corresponding to the recycled firewall policies are not recycled, resulting in the problem of address group redundancy; for the aforementioned situation, the content of the above embodiment can be used to filter out invalid address groups for recycling and deletion, thereby solving the problem of address group redundancy.

[0118] Obtain a preset invalid address file containing multiple invalid IP addresses; and determine from the firewall policy file corresponding to the security zone that an IP address matching any invalid IP address in the invalid address file is an invalid address.

[0119] In some embodiments, an invalid address file (which may be a TXT file, equivalent to an invalid IP address list) containing multiple invalid IP addresses is pre-set, and the invalid address file is pre-uploaded to the web server front end. The back-end server is called to obtain the invalid address file in the "ftp get" manner. It is worth noting that the invalid IP address typed by the user can also be directly obtained, wherein the user types the invalid IP address after initiating the address offline process. The method for obtaining the invalid IP address is not limited here. From the firewall policy file corresponding to the security zone, the IP address that matches any invalid IP address in the invalid address file is determined to be an invalid address.

[0120] Specifically, each invalid IP address in the invalid address file is read cyclically; for each invalid IP address, the invalid IP address is cyclically matched with each line of data in the firewall policy file. If the invalid IP address can match a line of data in the firewall policy file, it means that the invalid IP address exists in the line of data, and the IP address in the line of data that matches the invalid IP address is determined to be an invalid address. The above operation is performed for each invalid IP address in the invalid address file until all invalid addresses in the firewall policy file are screened out.

[0121] For each firewall policy of the security zone, if the hit counts of any two target firewall policy files corresponding to the firewall policy are the same, the firewall policy is determined to be an expired firewall policy, wherein any two target firewall policy files are two firewall policy files whose collection time interval is greater than or equal to a preset interval.

[0122] It should be noted that the firewall policy files corresponding to the firewall policies of the security zones are collected periodically according to the third period, and the firewall policy files collected at different times are named according to the file name serial numbers; for example, the firewall policy files corresponding to the firewall policies are collected once every half month. After 10 months of continuous collection, 20 firewall policy files can be collected. The file names of the 20 firewall policy files are "***_acl.1", "***_acl.2" to "***_acl.20", respectively. Among them, the collection time interval between the two firewall policy files "***_acl.8" and "***_acl.20" is 6 months.

[0123] In some embodiments, for each firewall policy of the security zone, two firewall policy files corresponding to the firewall policy and having a collection time interval greater than or equal to a preset interval are determined as a group of target firewall policy files; for any group of target firewall policy files, if the hit numbers of two target firewall policy files in the group of target firewall policy files are the same, it means that the firewall policy has not been used for a long time, and the firewall policy can be judged to be an expired firewall policy.

[0124] For example: suppose the time interval is 6 months, and the firewall policy file corresponding to the firewall policy is collected once every half month. After 10 months of continuous collection, 20 firewall policy files can be collected; it is determined that multiple groups of target firewall policy files are obtained, and one group of target firewall policy files is "***_acl.8" and "***_acl.20"; if the hit count (hitcnt) of "***_acl.8" is the same as the hit count of "***_acl.20", it can be determined that the firewall policy is an expired firewall policy. Among them, the time interval can also be set to 3 months or other time according to actual conditions, which is not limited in the embodiment of the present invention.

[0125] It is worth noting that in the process of screening expired firewall policies, for recently added firewall policies, since the newly added firewall policies are not used or verified immediately, the match number of the firewall policy file of the newly added firewall policies will be 0. Therefore, when screening expired firewall policies, priority is given to cleaning up firewall policies with a smaller number of lines.

[0126] Through the above method, useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to each security zone are screened out.

[0127] Step S107: Output and display useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zones.

[0128] In the process of implementing step S107, for each security zone, the useless firewall policy, invalid address group, invalid address and expired firewall policy corresponding to the security zone are added to the third XML file, and a line break in a specific format is added to the third XML file to obtain a fourth XML file.

[0129] In some embodiments, when an invalid address is stored in a third XML file, the address group name of the address group to which the invalid address belongs is also saved in the third XML file; when an expired firewall policy is added to the third XML file, the expired firewall policy is added to the expiration time tag in the third XML file.

[0130] It should be noted that in order to ensure that the content of the displayed third XML file conforms to the web display format, it is necessary to add line breaks in the third XML file. In some embodiments, line breaks in a specific format (such as HTML line breaks) are added to the third XML file to obtain a fourth XML file, which contains the useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies that have been processed as described above. For example, the third XML file is the result.xml file, which is processed by "sed -i ' / < / !s / $ / \<;br\> ; / g'result.xml" to add an HTML line break to the third XML file to obtain a fourth XML file.

[0131] In different sub-pages of the third display page, the data contained in the fourth XML file corresponding to different security zones are displayed respectively; different sub-pages correspond to different security zones, and in a certain sub-page, useless firewall policies, invalid address groups, invalid addresses and expired firewall policies contained in the fourth XML file corresponding to the corresponding security zone are displayed.

[0132] In some embodiments, the third display page can be a web front-end page, which can be constructed using HTML static pages and JS scripts; by reading the fourth XML file, useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to each security zone are displayed on different sub-pages.

[0133] For example Figure 8 In the example diagram of the third display page provided, "YW Firewall", "OA Firewall", "LW Firewall" and "WL Firewall" correspond to a security zone respectively; the "Useless Policy Sorting" area is used to display useless firewall policies, the "Invalid Address Group Sorting" area is used to display invalid address groups, the "Disabled Address Related Policy Sorting" area is used to display invalid addresses, and the "Expired Related Policy Sorting" area is used to display expired firewall policies. By responding to the instruction for selecting "YW Firewall", "OA Firewall", "LW Firewall" or "WL Firewall", different sub-pages are switched to display the useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to "YW Firewall", "OA Firewall", "LW Firewall" or "WL Firewall".

[0134] In an embodiment of the present invention, three data processing modes are provided, namely, an important data monitoring mode, a device inspection mode and a firewall policy cleaning mode. The important data monitoring mode is used to obtain server key data and output server key data showing that data cleaning has been completed. The device inspection mode is used to pull device information and output device information showing that data cleaning has been completed. The firewall policy cleaning mode is used to screen and output useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to security areas. There is no need for operation and maintenance personnel to manually process the operating data of the business system, thereby improving operation and maintenance efficiency and effects.

[0135] To better explain the above filtering and outputting the useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zones, take filtering and outputting expired firewall policies as an example. Fig. 9 The flowchart provided for filtering and outputting expired firewall policies is used as an example. Fig. 9 The following steps are involved:

[0136] Step S901: Capture the firewall policy file through the privileged Linux server host.

[0137] It should be noted that the ACL files of the firewall policies of each security zone are captured using the privileged Linux server host.

[0138] Step S902: performing a third data cleaning operation on the firewall policy file through the privileged Linux server host.

[0139] Step S903: Based on the firewall policy file that has completed the third data cleaning operation, the useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to the screened security areas are added to the third XML file.

[0140] Step S904: adding a line break character of a specific format to the third XML file to obtain a fourth XML file.

[0141] Step S905: Display the content in the fourth XML file on the web front-end page.

[0142] It should be noted that the execution principles of steps S901 to S905 can be found in the contents of the above embodiments and will not be repeated here.

[0143] It can be seen from the contents of the above embodiments that this solution provides three data processing modes: important data monitoring mode, equipment inspection mode, and firewall policy cleanup mode. Each data processing mode can be constructed into a subsystem based on the construction concept of the application and data 3C model (Application & Triple-C Module, ATC), that is, each data processing mode constructs a corresponding subsystem; each subsystem has multiple functions such as data collection, data cleaning, data processing and application. By integrating the subsystems corresponding to the important data monitoring mode, the equipment inspection mode, and the firewall policy cleanup mode, an operation and maintenance platform based on the ATC model can be constructed. The architecture of the operation and maintenance platform is as follows: Fig.10 A schematic diagram of the architecture of the operation and maintenance platform provided.

[0144] Fig.10 In the operation and maintenance platform, there are multi-layer architectures including "data collection", "data cleaning", "core data processing" and "application"; among them, the "data collection" layer is mainly used to collect key server data, equipment information and firewall policy files, etc.; the "data cleaning" layer is mainly used to perform the first data cleaning operation, the second data cleaning operation and the third data cleaning operation mentioned above, etc.; the "core data processing" layer is mainly used to execute the specific contents of the important data monitoring mode, the equipment inspection mode and the firewall policy cleaning mode; the "application" layer is mainly used to provide functional modes such as the important data monitoring mode, the equipment inspection mode and the firewall policy cleaning mode, "configuration query" is the equipment inspection mode, "timely monitoring" is the important data monitoring mode, and "policy cleaning" is the firewall policy cleaning mode. Fig.10 The operation and maintenance platform provided monitors the operating status of the business system, which can greatly reduce the daily operation and maintenance workload of operation and maintenance personnel and improve operation and maintenance efficiency and results.

[0145] Corresponding to the method for monitoring a business system provided by the above embodiment of the present invention, see Fig.11, the embodiment of the present invention also provides a structural block diagram of a device for monitoring a business system, the device comprising: a starting unit 1101, an acquisition unit 1102, a first processing unit 1103, a pulling unit 1104, a second processing unit 1105, a screening unit 1106 and a third processing unit 1107;

[0146] The startup unit 1101 is used to start the important data monitoring mode, the equipment inspection mode and / or the firewall policy clearing mode.

[0147] The acquisition unit 1102 is used to acquire the server key data periodically pushed by the designated server according to the first period when the important data monitoring mode is started.

[0148] The first processing unit 1103 is used to perform a first data cleaning operation on the server key data, and output and display the server key data after the first data cleaning operation is completed.

[0149] In a specific implementation, the first processing unit 1103 is specifically used to: add an XML format tag to each server key data, and construct a first XML file based on the server key data with the XML format tag added; add a line break in a specific format to the end of any server key data of a specific category in the first XML file to obtain a second XML file; and output the data contained in the second XML file in the first display page.

[0150] The pulling unit 1104 is used to periodically pull device information from the core network device of the service system according to the second period when the device inspection mode is started.

[0151] In a specific implementation, the pulling unit 1104 is specifically used for: when the device inspection mode is started, according to the second period, periodically using the pipeline screening tool to pull the device information within a preset time limit from the core network device of the business system.

[0152] The second processing unit 1105 is used to perform a second data cleaning operation on the device information, and output and display the device information after the second data cleaning operation is completed.

[0153] In a specific implementation, the second processing unit 1105 is specifically used to: add device information to the first file; use a preset data cleaning script to normalize the data labels and formats of the device information in the first file to obtain a second file; when a viewing instruction carrying a device name parameter and a data type parameter is detected, locate the device information corresponding to the device name parameter and the data type parameter from the second file; and display the device information corresponding to the device name parameter and the data type parameter in the second display page.

[0154] The screening unit 1106 is used to screen out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zones based on the firewall policy files corresponding to the security zones of the business system when the firewall policy cleaning mode is started.

[0155] In a specific implementation, the screening unit 1106 is specifically used to: for each security zone of the business system, determine the number of matches of the firewall policy of the security zone based on the firewall policy file corresponding to the firewall policy of the security zone, and determine that the firewall policy with a match number of 0 is a useless firewall policy, wherein the firewall policy file of the firewall policy is pre-collected periodically according to the third period; obtain the address group name from the firewall policy file corresponding to the security zone, determine the number of matching lines of each address group name in the firewall configuration file of the security zone, and determine that the address group corresponding to the address group name with a matching line number of 1 is an invalid address group; obtain a preset invalid address file containing multiple invalid IP addresses; from the firewall policy file corresponding to the security zone, determine that the IP address that matches any invalid IP address in the invalid address file is an invalid address; for each firewall policy of the security zone, if the hit numbers of any two target firewall policy files corresponding to the firewall policy are the same, determine that the firewall policy is an expired firewall policy, wherein any two target firewall policy files are two firewall policy files whose collection time interval is greater than or equal to the preset interval.

[0156] Preferably, the screening unit 1106 is further used to: perform a third data cleaning operation on the firewall policy file corresponding to the security area of ​​the business system to remove noise in the firewall policy file and add a specific field at the end of a specified line of the firewall policy file.

[0157] The third processing unit 1107 is used to output useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone.

[0158] In a specific implementation, the third processing unit 1107 is specifically used to: for each security zone, add useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone to a third XML file, and add line breaks in a specific format to the third XML file to obtain a fourth XML file; in different sub-pages of the third display page, respectively display the data contained in the fourth XML files corresponding to different security zones.

[0159] In summary, the embodiments of the present invention provide a method and device for monitoring a business system, providing three data processing modes: an important data monitoring mode, a device inspection mode, and a firewall policy cleaning mode. The important data monitoring mode is used to obtain server key data and output the server key data that has completed data cleaning. The device inspection mode is used to pull device information and output the device information that has completed data cleaning. The firewall policy cleaning mode is used to filter and output useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to security areas. There is no need for operation and maintenance personnel to manually process the operating data of the business system, thereby improving operation and maintenance efficiency and effects.

[0160] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0161] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0162] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for monitoring a business system, characterized in that: The method comprises: At the same time, start the important data monitoring mode, equipment inspection mode and firewall policy cleaning mode; When the important data monitoring mode is started, obtaining server key data periodically pushed by the designated server according to the first period; Performing a first data cleaning operation on the server key data, and outputting and displaying the server key data after the first data cleaning operation is completed; When the device inspection mode is started, periodically pulling device information from the core network device of the service system according to a second period; Performing a second data cleaning operation on the device information, and outputting and displaying the device information after the second data cleaning operation is completed; In the case where the firewall policy cleaning mode is started, for each security zone of the business system, based on the firewall policy file corresponding to the firewall policy of the security zone, the number of matches of the firewall policy of the security zone is determined, and the firewall policy with a matching number of 0 is determined as a useless firewall policy, wherein the firewall policy file of the firewall policy is collected periodically in advance according to the third period; Obtain the address group name from the firewall policy file corresponding to the security zone, determine the number of matching lines of each address group name in the firewall configuration file of the security zone, and determine that the address group corresponding to the address group name with a matching line number of 1 is an invalid address group; Get a preset invalid address file containing multiple invalid IP addresses; Determine, from the firewall policy file corresponding to the security zone, an IP address that matches any invalid IP address in the invalid address file as an invalid address; For each firewall policy of the security zone, if the hit numbers of any two target firewall policy files corresponding to the firewall policy are the same, the firewall policy is determined to be an expired firewall policy, wherein the any two target firewall policy files are two firewall policy files whose collection time interval is greater than or equal to a preset time interval; The output displays useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to the security zone.

2. The method according to claim 1, characterized in that Performing a first data cleaning operation on the server key data, and outputting and displaying the server key data after the first data cleaning operation is completed, includes: Adding an XML format tag to each of the server key data, and constructing a first XML file based on the server key data to which the XML format tag is added; Adding a line break in a specific format to the end of any server key data of a specific category in the first XML file to obtain a second XML file; The data contained in the second XML file is output and displayed on the first display page.

3. The method according to claim 1, characterized in that When the device inspection mode is started, periodically pulling device information from the core network device of the service system according to the second period includes: When the device inspection mode is started, according to the second period, the pipeline screening tool is periodically used to pull device information within a preset time limit from the core network device of the business system.

4. The method according to claim 1, characterized in that Performing a second data cleaning operation on the device information, and outputting and displaying the device information after the second data cleaning operation is completed, includes: Adding the device information to the first file; Using a preset data cleaning script, normalize the data labels and formats of the device information in the first file to obtain a second file; When a viewing instruction carrying a device name parameter and a data type parameter is detected, the device information corresponding to the device name parameter and the data type parameter is located from the second file; The device information corresponding to the device name parameter and the data type parameter is displayed in a second display page.

5. The method according to claim 1, characterized in that Before filtering out useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to the security zone, the method further includes: A third data cleaning operation is performed on the firewall policy file corresponding to the security area of ​​the business system to remove noise in the firewall policy file and add a specific field at the end of a specified line of the firewall policy file.

6. The method according to any one of claims 1 to 5, characterized in that: The output shows useless firewall policies, invalid address groups, invalid addresses, and expired firewall policies corresponding to the security zone, including: For each security zone, add the useless firewall policy, the invalid address group, the invalid address, and the expired firewall policy corresponding to the security zone to a third XML file, and add a line break in a specific format to the third XML file to obtain a fourth XML file; In different sub-pages of the third display page, data contained in the fourth XML file corresponding to different security areas are displayed respectively.

7. A device for monitoring a business system, characterized in that: The device comprises: The startup unit is used to start the important data monitoring mode, equipment inspection mode and firewall policy cleaning mode at the same time; an acquisition unit, configured to acquire, when the important data monitoring mode is activated, server key data periodically pushed by a designated server according to a first period; A first processing unit, configured to perform a first data cleaning operation on the server key data, and output and display the server key data after the first data cleaning operation is completed; A pulling unit, configured to periodically pull device information from a core network device of the service system according to a second period when the device inspection mode is started; A second processing unit, configured to perform a second data cleaning operation on the device information, and output and display the device information after the second data cleaning operation is completed; A screening unit, configured to screen out useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone based on the firewall policy files corresponding to the security zone of the business system when the firewall policy cleaning mode is started; A third processing unit is used to output and display useless firewall policies, invalid address groups, invalid addresses and expired firewall policies corresponding to the security zone; The screening unit is specifically used to, when the firewall policy cleaning mode is started, determine the number of matches of the firewall policy of the security zone for each security zone of the business system based on the firewall policy file corresponding to the firewall policy of the security zone, and determine that the firewall policy with a matching number of 0 is a useless firewall policy, wherein the firewall policy file of the firewall policy is pre-collected periodically according to a third period; obtain the address group name from the firewall policy file corresponding to the security zone, determine the number of matching lines of each address group name in the firewall configuration file of the security zone, and determine that the address group corresponding to the address group name with a matching line number of 1 is an invalid address group; obtain a preset invalid address file containing multiple invalid IP addresses; determine from the firewall policy file corresponding to the security zone, an IP address that matches any invalid IP address in the invalid address file as an invalid address; for each firewall policy of the security zone, if the hit numbers of any two target firewall policy files corresponding to the firewall policy are the same, determine that the firewall policy is an expired firewall policy, wherein the any two target firewall policy files are two firewall policy files whose collection time interval is greater than or equal to a preset interval.

8. The device according to claim 7, characterized in that The first processing unit is specifically used to: add XML format tags to each of the server key data, and construct a first XML file based on the server key data with the XML format tags added; add a line break of a specific format at the end of any server key data of a specific category in the first XML file to obtain a second XML file; and output and display the data contained in the second XML file in a first display page.

9. The device according to claim 7, characterized in that The pulling unit is specifically used for: when the device inspection mode is started, periodically using the pipeline screening tool to pull device information within a preset time limit from the core network device of the business system according to the second period.