Method and device for determining high availability result of network equipment, equipment and medium
By obtaining the device information and historical connection relationships of alarm devices in the data center, determining associated devices and performing indicator collection and rule comparison, the problem of low accuracy and low efficiency of high-availability results in the existing technology is solved, and real-time and accurate high-level Available results are generated.
Patent Information
- Application Number
- CN202411202475.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-08-29
AI Technical Summary
The prior art relies on manual inspection in data centers, resulting in low accuracy and generation efficiency of high availability results of network equipment.
By obtaining the device information of the current alarm device and the historical device connection relationship, the associated device set is determined, and based on the attribute information and preset indicator definition set, the target indicator collection information and inspection rules are determined. Then, use the target configuration sub-item model to standardize and process the indicator information, conduct rule comparisons, and summarize the processing to obtain high-availability inspection results.
A real -time determination of the high availability of the network equipment was realized in real time, improved the accuracy and generating efficiency of the high availability results, and formed a systematic inspection index system.
Smart Images

Figure CN119363617A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of big data technology, and in particular to a method, device, equipment and medium for determining high availability results of a network device. Background Art
[0002] As the scale of network equipment within enterprise data centers gradually grows and the configuration of network equipment becomes increasingly complex, how to check the high availability indicators of network equipment and ensure the high availability of network equipment has become very important for the continuous and stable operation of data center services.
[0003] In the routine operation and maintenance of data centers, the existing technology usually relies on manual inspection by operation and maintenance personnel to determine the high availability results of network devices. However, the real-time performance of manual inspection is low, and the accuracy of the high availability results cannot be guaranteed. Therefore, how to determine the high availability results of network devices in real time and improve the accuracy and generation efficiency of the high availability results of network devices is a problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present invention provide a method, apparatus, device and medium for determining a high availability result of a network device, so as to solve the problem of low accuracy and generation efficiency of the high availability result of the network device.
[0005] In a first aspect, an embodiment of the present invention provides a method for determining a high availability result of a network device, comprising:
[0006] Obtaining current device information and historical device connection relationships corresponding to the current alarm device, and determining the associated device set corresponding to the current alarm device in the historical device connection relationships based on the current device information; wherein the historical device connection relationships include the association relationships between the current alarm device and the associated devices under each target association level;
[0007] Based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, determining the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information;
[0008] Determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target-associated device;
[0009] Based on the target inspection rule, the target configuration information is compared with the target configuration information to obtain the target comparison result corresponding to the target configuration information, and the target comparison results corresponding to the full amount of target configuration information under the target indicator category are summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category.
[0010] In a second aspect, an embodiment of the present invention further provides a device for determining a high availability result of a network device, the device comprising:
[0011] An associated device determination module, used to obtain current device information and historical device connection relationships corresponding to the current alarm device, and determine the associated device set corresponding to the current alarm device in the historical device connection relationships based on the current device information; wherein the historical device connection relationships include the association relationships between the current alarm device and the associated devices under each target association level;
[0012] A collection information determination module, used to determine target indicator collection information corresponding to the target associated device and a target inspection rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the associated device set and a preset indicator definition set;
[0013] A standardization processing module, used to determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device;
[0014] The inspection result determination module is used to perform rule comparison on the target configuration information based on the target inspection rule, obtain the target comparison result corresponding to the target configuration information, and summarize the target comparison results corresponding to the full amount of target configuration information under the target indicator category to obtain the target high availability inspection result of the current alarm device under the target indicator category.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for determining a high availability result of a network device as described in any one of the embodiments of the present invention is implemented.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for determining a high availability result of a network device as described in any one of the embodiments of the present invention.
[0017] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a method for determining a high availability result of a network device as described in any one of the embodiments of the present invention.
[0018] In the embodiment of the present invention, the current device information corresponding to the current alarm device is used to determine the associated device set corresponding to the current alarm device in the historical device connection relationship; then, based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information are determined; further, based on the target indicator category corresponding to the target indicator collection information, the target configuration sub-item model corresponding to the target indicator collection information is determined, and the target indicator collection information is standardized based on the target configuration sub-item model to obtain the target configuration information corresponding to the target associated device; finally, the target configuration information is compared based on the target inspection rule to obtain the target comparison result corresponding to the target configuration information, and the target comparison result corresponding to the full amount of target configuration information under the target indicator category is summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category. Since the collection indicators are divided according to the association level and indicator category, and the collected indicator information is standardized by using the configuration sub-item model, a systematic inspection indicator system can be formed. Therefore, the problem of low accuracy and generation efficiency of high availability results of network devices can be solved, the high availability results of network devices can be determined in real time, and the accuracy and generation efficiency of high availability results of network devices are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of a network device high availability result determination process provided by the prior art;
[0021] Figure 2 A flowchart of a method for determining a high availability result of a network device provided by an embodiment of the present invention;
[0022] Figure 3 A flowchart of another method for determining a high availability result of a network device provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a standardized processing flow provided by an embodiment of the present invention;
[0024] Figure 5 A flowchart of another method for determining a high availability result of a network device provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of the structure of a device for determining a high availability result of a network device provided by an embodiment of the present invention;
[0026] Figure 7 A schematic diagram of the structure of an electronic device for implementing a method for determining a high availability result of a network device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0028] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. The purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or must use the relevant content of the solution.
[0029] In order to ensure the continuous and stable operation of the internal services of the data center, it is very important to perform high availability inspection on the network devices in the data center. The existing technology usually relies on manual inspection to determine the high availability results of the network devices. Figure 1 A schematic diagram of a network device high availability result determination process provided by the prior art. Specifically, first, find the device in the high availability group corresponding to the alarm device, where the device in the high availability group includes n network devices. Then, manually collect the high availability indicator information of the devices in the high availability group, and perform manual comparison and verification. If all the checks pass, it indicates that the high availability is not affected. Otherwise, it indicates that the high availability is affected.
[0030] However, the manual troubleshooting method relies heavily on manual operation, and data comparison relies on manual inspection, which is prone to errors and has poor real-time performance. Therefore, in order to determine the high availability results of network devices in real time and improve the accuracy and generation efficiency of the high availability results of network devices, an embodiment of the present invention proposes a method for determining the high availability results of network devices.
[0031] Figure 2 A flowchart of a method for determining a high availability result of a network device provided by an embodiment of the present invention. This embodiment is applicable to the case where a high availability result of a network device is checked in real time. The method can be executed by a device for determining a high availability result of a network device. The device can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device. Figure 2 As shown, the method includes:
[0032] S101. Obtain current device information and historical device connection relationships corresponding to a current alarm device, and determine a set of associated devices corresponding to the current alarm device in the historical device connection relationships based on the current device information; wherein the historical device connection relationships include association relationships between the current alarm device and associated devices at each target association level.
[0033] The current alarm device may refer to a network device in the current data center that is in an alarm state. Usually, the data center's own monitoring system can be used to monitor the status of each network device. When a network device is in an abnormal state, an alarm is issued, thereby determining the alarm device in the data center. The current device information may refer to the basic device information of the current alarm device. For example, it may be the device name, routing information, or dedicated line occupancy information of the current alarm device.
[0034] Among them, the historical device connection relationship may refer to the association relationship between each network device stored in advance. Exemplarily, the historical device connection relationship may include device connection relationships at association levels such as single device level, high availability group level, network area level, network service level, line level and application system level. The target association level may refer to the association level selected for device query in the historical device connection relationship. In an optional embodiment, the target association level may include: single device level, high availability group level, network area level, network service level, line level and application system level. Generally, the single device level may include the device information of each network device itself. The high availability group level may include the high availability group information corresponding to each network device. The network area level may include the network area information where each network device is located. The network service level may include the network service information associated with each network device. Such as: Virtual Reality (VR) service or certificate service. The line level may include the dedicated line connection information corresponding to each network device. The application system level may include the association information between each network device and business systems such as physical machines or virtual machines.
[0035] Among them, the associated device may refer to a network device that has an associated relationship with the current alarm device in the historical device connection relationship. Exemplarily, if the target association level is a single device level, the network device in the single device level device connection relationship that is consistent with the current device information can be used as an associated device. If the target association level is a high-availability group level, the high-availability group where the device name is located can be determined in the high-availability group level device connection relationship based on the device name in the current device information, and other network devices in the high-availability group can be used as associated devices. If the target association level is a network area level, the network device in the network area level device connection relationship that is consistent with the routing information can be used as an associated device based on the routing information in the current device information. If the target association level is a network service level, the network device in the network service level device connection relationship that is consistent with the network service information can be used as an associated device based on the network service information in the current device information. If the target association level is a line level, the network device in the line level device connection relationship that is consistent with the dedicated line occupancy information can be used as an associated device based on the dedicated line occupancy information in the current device information. If the target association level is the application system level, then the network device in the application system level device connection relationship that is consistent with the business system association information in the current device information can be used as the associated device. The associated device set can refer to the set of associated devices under each target association level corresponding to the current alarm device.
[0036] S102: Based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, determine the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information.
[0037] The target associated device may refer to an associated device selected from the associated device set for the index query. The attribute information may refer to the corresponding attribute of the target associated device. For example, it may be product information, manufacturer information, or model information.
[0038] Among them, the preset indicator definition set may refer to a set composed of various preset indicator definitions. Usually, the indicator definition includes the indicator name and the basic information corresponding to the indicator name. The target indicator collection information may refer to the indicator information collection result corresponding to the target associated device. The target check rule may refer to the verification rule corresponding to the target indicator collection information.
[0039] In an optional implementation, before determining the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, the method further includes:
[0040] Step a1: obtaining preset indicator collection requirements corresponding to the current application scenario, analyzing and processing the preset indicator collection requirements to obtain a basic indicator set corresponding to the preset indicator collection requirements; wherein the basic indicator set includes various basic indicators.
[0041] Among them, the current application scenario may refer to the working scenario of the current business. Exemplarily, the current application scenario may be an equipment operation and maintenance scenario. The preset indicator collection requirements may refer to all indicator collection requirements covered by the current application scenario. Exemplarily, the preset indicator collection requirements may be the requirements for collecting deployment status, the requirements for collecting configuration status, the requirements for collecting operation status, and the requirements for collecting management status, etc. It is worth noting that in the embodiment of the present invention, the preset indicator collection requirements may include one indicator collection requirement or multiple indicator collection requirements, and the embodiment of the present invention is not limited to this.
[0042] Among them, the basic indicators can refer to the specific indicator collection items corresponding to each indicator collection requirement. Specifically, the corresponding standard attribute file can be determined by the indicator collection requirement, and then the field name of the standard attribute file is parsed as the basic indicator corresponding to the indicator collection requirement. Exemplarily, if the indicator collection requirement is the requirement for collecting the deployment status, the deployment file is used as the standard attribute file, and the field name of the standard attribute file is parsed, and the basic indicators obtained can be the number of power supplies, the number of fans, the number of boards, and the number of optical modules of the device. If the indicator collection requirement is the requirement for collecting the configuration status, the configuration file is used as the standard attribute file, and the field name of the standard attribute file is parsed, and the basic indicators obtained can be login configuration, authentication configuration, routing configuration, and virtual local area network (Virtual Local Area Network, VLAN) configuration, etc. If the indicator collection requirement is the requirement for collecting the running status, the running status file is used as the standard attribute file, and the field name of the standard attribute file is parsed, and the basic indicators obtained can be the power running status, the central processing unit (Central Processing Unit, CPU) running status, and the routing forwarding status, etc. If the indicator collection requirement is a requirement for collecting the management status, the management file is used as a standard attribute file, and the field name of the standard attribute file is parsed, and the basic indicators obtained can be management results and monitoring results, etc. The basic indicator set can refer to a set composed of various basic indicators corresponding to the preset indicator collection requirements.
[0043] Step a2: configure information for each basic indicator based on the preset indicator definition standard, generate standard indicator information corresponding to each basic indicator, and combine and process each standard indicator information to generate a preset indicator definition set.
[0044] The preset indicator definition standard may refer to a preset indicator definition format standard. Exemplarily, the preset indicator definition standard may be a basic information field format included in the indicator definition. Specifically, the preset indicator definition standard may include an indicator name, an indicator code, an indicator type, an indicator dimension, an indicator priority, product information, manufacturer information, and model information.
[0045] Among them, the indicator name can indicate the inspection name of the indicator. The indicator code can indicate the unique code of the indicator. The indicator type can indicate the indicator category to which the indicator belongs. The indicator dimension can indicate the association level to which the indicator belongs. The indicator priority can indicate the degree of attention paid to the indicator, and the indicator with a high degree of attention has a high priority. The product information can indicate which type of product the indicator belongs to. The manufacturer information can indicate which manufacturer the indicator belongs to. The model information can indicate which type of equipment the indicator is suitable for inspection.
[0046] The information configuration may refer to the operation of configuring the content of the corresponding basic information field for the basic indicator according to the preset indicator definition standard. The standard indicator information may refer to the indicator information generated after the information configuration of each basic indicator is performed based on the preset indicator definition standard.
[0047] Therefore, through the preset indicator collection requirements corresponding to the current application scenario, the basic indicator set corresponding to the preset indicator collection requirements is pre-determined, and the information of each basic indicator in the basic indicator set is configured based on the preset indicator definition standard to obtain the preset indicator definition set. This can provide an effective basis for the determination of subsequent target indicator collection information and target inspection rules, and ensure the accuracy of target indicator collection information and target inspection rules.
[0048] S103: Determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target-associated device.
[0049] Among them, the target indicator category may refer to the indicator classification category corresponding to the target indicator collection information. Usually, the indicator category can be divided according to the preset indicator collection requirements corresponding to the current application scenario. In an optional embodiment, the target indicator category includes: deployment category, configuration category, status category and management category. The deployment category may include device deployment status category indicators. The configuration category may include device configuration status category indicators. The status category may include device operation status category indicators. The management category may include device management status category indicators. Thus, the high availability inspection situation can be reflected from four different indicator dimensions.
[0050] It is worth noting that when generating the standard indicator information corresponding to each basic indicator, the indicator type corresponding to each basic indicator is already included. Therefore, after obtaining the target indicator collection information, the target indicator category corresponding to the target indicator collection information can be determined according to the indicator type corresponding to the basic indicator to which the target indicator collection information belongs.
[0051] Among them, the configuration sub-item may refer to the sub-item information corresponding to the basic indicators under each device configuration item. Generally, the configuration sub-items can be classified according to the indicator category. For example, if the configuration item is a switch, the corresponding configuration sub-item may be a configuration class indicator. Specifically, it may be Open Shortest Path First (OSPF) or a routing table. It is worth noting that one basic indicator usually corresponds to one configuration sub-item.
[0052] Among them, the target configuration sub-item model may refer to the modeling model corresponding to the configuration sub-item of the pre-built target indicator category. Exemplarily, the target configuration sub-item model may be a deployment class configuration sub-item model, a configuration class configuration sub-item model, a state class configuration sub-item model, and a management class configuration sub-item model. Standardization processing may refer to the operation of extracting standardized information from the target indicator collection information based on the target configuration sub-item model. The target configuration information may refer to the information obtained after the target indicator collection information is standardized based on the target configuration sub-item model.
[0053] S104. Perform rule comparison on the target configuration information based on the target inspection rule to obtain a target comparison result corresponding to the target configuration information, and summarize and process the target comparison results corresponding to the full amount of target configuration information under the target indicator category to obtain a target high availability inspection result of the current alarm device under the target indicator category.
[0054] Among them, the target comparison result may refer to the result obtained after comparing the target configuration information with the target inspection rules. Exemplarily, the target comparison result may be a pass or fail. The target high availability inspection result may refer to the statistical inspection view corresponding to the current alarm device generated according to the target indicator category. Specifically, the target high availability inspection result may be a device dimension inspection view, a network service dimension inspection view, a line dimension inspection view, and an application dimension inspection view. Usually, the target high availability inspection result includes how many devices are currently under the target indicator category, how many normal devices are there, how many abnormal devices are there, what are the normal indicators, and what are the abnormal indicators.
[0055] In an optional embodiment, after the target comparison result corresponding to the full target configuration information under the target indicator category is aggregated and processed to obtain the target high availability check result of the current alarm device under the target indicator category, it also includes: performing probability statistics on the target high availability check result to obtain the target association result of the current alarm device under the target indicator category, and sending the target association result to the preset disposal module, so that the preset disposal module generates a corresponding disposal strategy based on the target association result.
[0056] Among them, probability statistics may refer to the operation of performing probability calculation based on the total amount of data of the same type in the target high availability check result. Exemplarily, if the target high availability check result shows that there are currently 90 normal devices and 10 abnormal devices, then through probability statistics, it can be calculated that the probability of the current alarm device affecting the abnormal device is 10 / (10+90)×100%=10%. The target association result may refer to the impact result of the current alarm device under the target indicator category. Exemplarily, the target association result may be a probability result of probability statistics. The preset disposal module may refer to a preset association result disposal module. The disposal strategy may refer to an alarm device adjustment strategy generated based on the association result.
[0057] Therefore, by performing probability statistics on the target high availability inspection results, the target association results of the current alarm device under the target indicator category are obtained, and the target association results are sent to the preset disposal module. The preset disposal module can generate corresponding disposal strategies in a timely manner according to the target association results, providing an effective basis for subsequent network operation and maintenance.
[0058] In the embodiment of the present invention, the current device information corresponding to the current alarm device is used to determine the associated device set corresponding to the current alarm device in the historical device connection relationship; then, based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information are determined; further, based on the target indicator category corresponding to the target indicator collection information, the target configuration sub-item model corresponding to the target indicator collection information is determined, and the target indicator collection information is standardized based on the target configuration sub-item model to obtain the target configuration information corresponding to the target associated device; finally, the target configuration information is compared based on the target inspection rule to obtain the target comparison result corresponding to the target configuration information, and the target comparison result corresponding to the full amount of target configuration information under the target indicator category is summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category. Since the collection indicators are divided according to the association level and indicator category, and the collected indicator information is standardized by using the configuration sub-item model, a systematic inspection indicator system can be formed. Therefore, the problem of low accuracy and generation efficiency of high availability results of network devices can be solved, the high availability results of network devices can be determined in real time, and the accuracy and generation efficiency of high availability results of network devices are improved.
[0059] Figure 3A flowchart of another method for determining high availability results of network devices provided in an embodiment of the present invention. This embodiment is refined based on the above-mentioned embodiment, specifically, the operation of determining the associated device set corresponding to the current alarm device in the historical device connection relationship based on the current device information is refined, and specifically may include: determining the target connection relationship in the historical device connection relationship based on the hierarchical type of the target association hierarchy; determining the target associated device corresponding to the current alarm device in the target connection relationship based on the target information field of the current device information; and combining and processing each target associated device under each target association hierarchy to generate an associated device set corresponding to the current alarm device. Figure 3 As shown, the method includes:
[0060] S201. Obtain current device information and historical device connection relationships corresponding to the current alarm device.
[0061] S202: Determine a target connection relationship in the historical device connection relationship based on a level type of a target association level.
[0062] Among them, the target connection relationship may refer to a connection relationship in the historical device connection relationship that matches the target association level. Exemplarily, if the level type of the target association level is a single device level, the single device level device connection relationship in the historical device connection relationship may be used as the target connection relationship. If the level type of the target association level is a high availability group level, the high availability group level device connection relationship in the historical device connection relationship may be used as the target connection relationship. If the level type of the target association level is a network area level, the network area level device connection relationship in the historical device connection relationship may be used as the target connection relationship. If the level type of the target association level is a network service level, the network service level device connection relationship in the historical device connection relationship may be used as the target connection relationship. If the level type of the target association level is a line level, the line level device connection relationship in the historical device connection relationship may be used as the target connection relationship. If the level type of the target association level is an application system level, the application system level device connection relationship in the historical device connection relationship may be used as the target connection relationship.
[0063] S203: Determine a target associated device corresponding to the current alarm device in the target connection relationship based on the target information field of the current device information.
[0064] The target information field may refer to a field selected for device association in the current device information. Exemplarily, the target information field may be determined according to the level type of the target association level. Exemplarily, if the level type of the target association level is the network area level, the target information field may be an Internet Protocol (IP) address in the current device information.
[0065] Specifically, after determining the target connection relationship in the historical device connection relationship based on the hierarchical type of the target association hierarchy, the target information field in the current device information can be determined according to the hierarchical type of the target association hierarchy, and then, the target association device whose information field is consistent with the target information field can be determined in the target connection relationship.
[0066] S204: Combining and processing each target-associated device under each target-associated level to generate an associated device set corresponding to the current alarm device.
[0067] Specifically, after obtaining each target-associated device under each target-associated level, each target-associated device under each target-associated level may be combined and processed, thereby obtaining a set of associated devices corresponding to the current alarm device, providing an effective basis for subsequent indicator information collection.
[0068] S205: Determine target standard indicator information corresponding to the target associated device based on the attribute information corresponding to the target associated device in the associated device set and a preset indicator definition set.
[0069] The target standard indicator information may refer to the standard indicator information corresponding to the target associated device. Exemplarily, the product information of the target associated device may be used to match the consistent product information in the preset indicator definition set, the manufacturer information of the target associated device may be used to match the consistent manufacturer information in the preset indicator definition set, or the model information of the target associated device may be used to match the consistent model information in the preset indicator definition set, thereby matching and obtaining the target standard indicator information corresponding to the target associated device.
[0070] S206: Generate a target acquisition instruction corresponding to the target-associated device based on the attribute information and the target standard indicator information, and send the target acquisition instruction to the target-associated device to obtain the target indicator acquisition information corresponding to the target-associated device.
[0071] Among them, the target collection instruction can point to the indicator information collection command initiated by the target associated device.
[0072] Specifically, the target standard indicator information is used to generate a target collection instruction according to the manufacturer information corresponding to the target associated device, and the target collection instruction is sent to the target associated device to obtain the collection reverse display result corresponding to the target associated device as the target indicator collection information. In this way, different collection instructions can be generated according to different manufacturers corresponding to the target associated device, ensuring the accuracy of the collection instructions and providing an effective basis for the accuracy of subsequent target indicator collection information.
[0073] In an optional embodiment, before sending the target acquisition instruction to the target associated device, it also includes: verifying the target acquisition instruction according to a preset command verification rule, and filtering out the target acquisition instruction that does not meet the preset command verification rule. Among them, the preset command verification rule may refer to a preset acquisition command verification rule. Exemplarily, the preset command verification rule may be a rule that the target acquisition instruction does not contain data modification operations. Specifically, before sending the target acquisition instruction to the target associated device, the target acquisition instruction may be verified according to the preset command verification rule. If the target acquisition instruction contains data modification instructions such as data deletion, the target acquisition instruction is deleted and subsequent instructions are not issued. On the contrary, if the target acquisition instruction only contains operations such as data reading and does not contain data modification operations, the target acquisition instruction is sent to the target associated device. In this way, the security of the data in the target associated device can be guaranteed.
[0074] S207. Determine the target indicator coding information corresponding to the target standard indicator information based on the target indicator coding field in the target standard indicator information.
[0075] The target indicator coding field may refer to the indicator coding field header in the target standard indicator information. The target indicator coding information may refer to the specific coding content corresponding to the target indicator coding field.
[0076] Specifically, when defining indicators for each standard indicator information, information configuration is performed for each basic indicator, that is, a unique coding configuration is performed for each basic indicator. Therefore, after determining the target standard indicator information corresponding to the target associated device, the target indicator coding information corresponding to the target standard indicator information can be determined based on the target indicator coding field.
[0077] S208. Based on the target indicator coding information and the historical design state information set, determine the inspection rules corresponding to the target indicator coding information as the target inspection rules corresponding to the target indicator collection information; wherein the historical design state information set contains the inspection rules corresponding to each target standard indicator information.
[0078] The historical design state information may refer to pre-stored network device design state information. Exemplarily, the historical design state information may be deployment design state data, configuration design state data, status design state data, and management design state data. The historical design state information set may refer to a set of individual historical design state information.
[0079] Specifically, the indicator coding information of each basic indicator is bound to the corresponding inspection rule. Therefore, after determining the target indicator coding information corresponding to the target standard indicator information, the target indicator coding information can be used to determine the corresponding inspection rule in the historical design state information set as the target inspection rule corresponding to the target indicator collection information. Thus, the inspection rules of the four indicator category dimensions are determined for the standard indicator collection information, which expands the scope of high availability inspection, can reflect the high availability capability of network equipment from the overall application perspective, and provide an effective basis for subsequent indicator information inspection.
[0080] S209: Determine the target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information.
[0081] In an optional implementation, before determining the target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, the method further includes:
[0082] Step b1, obtain the preset indicator collection requirements corresponding to the current application scenario, divide the preset indicator collection requirements into dimension categories according to the preset indicator dimension division rules, and obtain the indicator category set corresponding to the preset indicator collection requirements; wherein the indicator category set contains each indicator category.
[0083] The preset indicator dimension division rule may refer to a preset dimension category division rule. Exemplarily, the preset indicator dimension division rule may be to divide an indicator collection requirement into an indicator category.
[0084] Specifically, if the preset indicator collection requirement is a requirement for collecting deployment status, the indicator category may be a deployment category. If the preset indicator collection requirement is a requirement for collecting configuration status, the indicator category may be a configuration category. If the preset indicator collection requirement is a requirement for collecting operation status, the indicator category may be a status category. If the preset indicator collection requirement is a requirement for collecting management status, the indicator category may be a management category.
[0085] Step b2: Based on the indicator type of each indicator category and the preset standard attribute file, determine the basic information set corresponding to each indicator category.
[0086] The preset standard attribute file may refer to a preset state storage standard format file. Exemplarily, if the indicator type of the indicator category is a configuration class, the corresponding preset standard attribute file may be a configuration file.
[0087] The basic information may refer to the attribute field information corresponding to each preset standard attribute file. For example, if the preset standard attribute file is a configuration file, and the attribute field information corresponding to the configuration file is routing configuration, login configuration, and authentication configuration, etc., then the basic information may be routing configuration, login configuration, and authentication configuration, etc. The basic information set may refer to a set consisting of various basic information corresponding to the same indicator category.
[0088] Step b3: Model each basic information set based on the preset indicator modeling standard to generate a configuration sub-item model corresponding to each indicator category.
[0089] The preset indicator modeling standard may refer to a preset standardized information configuration template. Generally, the preset indicator modeling standard defines standardized fields corresponding to each basic information. It is worth noting that the preset indicator modeling standards corresponding to different basic information under different indicator categories and different basic information under the same indicator category may be different.
[0090] Table 1 Routing table configuration sub-item model
[0091] Destination Address Subnet Mask Priority Next hop address Interface Information
[0092] Exemplarily, if the indicator type of the indicator category is a configuration class, and the basic information in the basic information set is a routing configuration, the standardized fields corresponding to the routing configuration are determined according to the preset indicator modeling standard, which may be the destination address, subnet mask, priority, next hop address, and interface information, respectively. Further, each standardized field is modeled and processed, and the generated routing table configuration sub-item model corresponding to the routing configuration may be as shown in Table 1.
[0093] Specifically, after determining the basic information set corresponding to each indicator category, each basic information in each basic information set can be modeled according to the preset indicator modeling standard to generate a configuration sub-item model corresponding to each indicator category. Therefore, by standardizing the definition of the configuration sub-items of the same indicator, the differences between manufacturers are shielded in the modeling, so that only when collecting data for the associated devices, different collection commands are bound to different manufacturers of the same indicator, so that the upper-level application can be unaware of the manufacturer when checking the indicator, which reduces the difficulty of adaptation, reduces the impact of the differences in the displayed information collected by devices from different manufacturers on information reading, and improves the efficiency of subsequent information comparison.
[0094] It is worth noting that the number of configuration sub-item models corresponding to each indicator category is consistent with the number of basic information contained in the basic information set corresponding to each indicator category. The embodiment of the present invention only divides the configuration sub-item models into indicator categories, which will not be described in detail.
[0095] S210: Determine target sub-item information in the target indicator collection information based on the target configuration field in the target configuration sub-item model.
[0096] The target configuration field may refer to a standardized field in the target configuration sub-item model. The target sub-item information may refer to information in the target indicator collection information that is consistent with the target configuration field.
[0097] Specifically, if the target configuration sub-item model is a routing table configuration sub-item model, the target configuration field in the target configuration sub-item model may be a destination address, a subnet mask, a priority, a next hop address, and an interface information, and then, according to the target configuration field, the target sub-item information whose field name is consistent with the target configuration field is determined in the target indicator collection information. Exemplarily, if the target configuration field is a destination address, the destination address information is determined in the target indicator collection information as the target sub-item information.
[0098] It is worth noting that before determining the target sub-item information in the target indicator collection information based on the target configuration field in the target configuration sub-item model, the target indicator collection information can also be formatted based on a preset structured script. Among them, the preset structured script can refer to a pre-set general script. Usually, each target indicator collection information has a corresponding preset structured script. The target indicator collection information can be parsed into a sub-item information structure corresponding to the target configuration field in the target configuration sub-item model through the preset structured script. As a result, it is convenient to determine the target sub-item information corresponding to the target configuration field in the target indicator collection information.
[0099] S211. Fill and process each target sub-item information based on the target field position of the target configuration field in the target configuration sub-item model as the target configuration information corresponding to the target-associated device.
[0100] The target field position may refer to the field position of the target configuration field in the target configuration sub-item model.
[0101] Specifically, after determining the target configuration field in the target configuration sub-item model and the target sub-item information in the target indicator collection information, the corresponding target sub-item information can be filled in according to the target field position of the target configuration field. Exemplarily, taking Table 1 as an example, after determining that the target configuration field is the destination address and the target sub-item information is the destination address information, the destination address information can be filled in the corresponding position under the field position according to the field position of the destination address, that is, the destination address information can be filled in the blank position of the column where the destination address is located. Until all the target sub-item information in the target indicator collection information is filled in, the target configuration information corresponding to the target-associated device is generated. It is worth noting that in the target configuration sub-item model, each target sub-item information corresponding to the same target indicator collection information should be in the same data row.
[0102] Figure 4 A schematic diagram of a standardized processing flow provided by an embodiment of the present invention. Specifically, if the target associated devices are associated devices 1 and associated devices 2, and the standard indicator information 1 corresponding to the associated device 1 and the standard indicator information 2 corresponding to the associated device 2 are the same indicator name. After determining the target standard indicator information corresponding to the associated device 1 and the associated device 2, first, based on the attribute information 1 and the standard indicator information 1, a collection instruction 1 corresponding to the associated device 1 is generated, based on the attribute information 2 and the standard indicator information 2, a collection instruction 2 corresponding to the associated device 2 is generated, and the collection instruction 1 is sent to the associated device 1 to obtain the indicator collection information 1 corresponding to the associated device 1, and the collection instruction 2 is sent to the associated device 2 to obtain the indicator collection information 2 corresponding to the associated device 2. Further, based on the indicator categories of the indicator collection information 1 and the indicator collection information 2, the corresponding target configuration sub-item model is determined, and finally, based on the target configuration field in the target configuration sub-item model, the target sub-item information in the indicator collection information 1 and the indicator collection information 2 is determined to obtain standardized structure data, and each target sub-item information is stored in the corresponding position in the target configuration sub-item model to generate the configuration information 1 corresponding to the associated device 1 and the configuration information 2 corresponding to the associated device 2. Therefore, by standardizing the processing of each indicator collection information through the target configuration sub-item model, different indicator collection information can have a unified data storage rule, providing an effective basis for subsequent data comparison.
[0103] S212: Perform rule comparison on the target configuration information based on the target inspection rule to obtain a target comparison result corresponding to the target configuration information.
[0104] Specifically, after determining the target configuration information corresponding to the target associated device and the target inspection rule corresponding to the target configuration information, the target configuration information can be compared according to the target inspection rule to determine whether the target configuration information passes the inspection and generate a corresponding target comparison result.
[0105] S213. Based on the result categories corresponding to the respective target comparison results, the target comparison results corresponding to the full amount of target configuration information under the target indicator category are classified and counted to obtain the target high availability inspection result of the current alarm device under the target indicator category.
[0106] Among them, the result category may refer to the inspection scenario dimension category corresponding to the target inspection rule. Exemplarily, the result category may include device dimension, network service dimension, line dimension and application dimension. The device dimension includes the high availability group level and the network area level. The network service dimension includes the network service level. The line dimension includes the line level. The application dimension includes the application system level.
[0107] Specifically, after comparing the target configuration information based on the target inspection rules and obtaining the target comparison results corresponding to the target configuration information, the target comparison results corresponding to the full amount of target configuration information under each target indicator category can be classified and counted according to the result categories corresponding to each target comparison result, to obtain the target high availability inspection results of the device dimension inspection view, the network service dimension inspection view, the line dimension inspection view, and the application dimension inspection view. Thus, it can be concluded from the device dimension inspection view whether the current alarm device has an impact on the devices in the high availability group and the network area class devices. It can be concluded from the network service dimension inspection view whether the current alarm device has an impact on the network service carried by the device. It can be concluded from the line dimension inspection view whether the current alarm device has an impact on the transmission of the dedicated line. It can be concluded from the application dimension inspection view whether the current alarm device has an impact on the application system of the business carried by the network device.
[0108] In an embodiment of the present invention, a target connection relationship in a historical device connection relationship is determined by a hierarchical type of a target association hierarchy, a target associated device in a target connection relationship is determined based on a target information field of current device information corresponding to a current alarm device, and each target associated device under each target association hierarchy is combined and processed to generate an associated device set corresponding to the current alarm device, and then, based on the attribute information and a preset indicator definition set corresponding to the target associated device in the associated device set, the target standard indicator information corresponding to the target associated device is determined, and a target collection instruction corresponding to the target associated device is generated based on the attribute information and the target standard indicator information, and the target collection instruction is sent to the target associated device to obtain the target indicator collection information corresponding to the target associated device, and further, based on the target indicator coding field in the target standard indicator information, the target indicator coding information corresponding to the target standard indicator information is determined, and based on the target indicator coding information and the historical device information, the target associated device is generated. The historical state information set is designed to determine the inspection rule corresponding to the target indicator coding information as the target inspection rule corresponding to the target indicator collection information. Further, the target configuration sub-item model corresponding to the target indicator collection information is determined based on the target indicator category corresponding to the target indicator collection information. The target sub-item information in the target indicator collection information is determined based on the target configuration field in the target configuration sub-item model, and each target sub-item information is filled and processed based on the target field position of the target configuration field in the target configuration sub-item model as the target configuration information corresponding to the target associated device. Finally, the target configuration information is compared based on the target inspection rule to obtain the target comparison result corresponding to the target configuration information, and based on the result category corresponding to each target comparison result, the target comparison result corresponding to the full amount of target configuration information under the target indicator category is classified and counted, and the target high availability inspection result of the current alarm device under the target indicator category is obtained. Since the collection indicators are divided according to the association level and indicator category, and the collected indicator information is standardized by using the configuration sub-item model, a systematic inspection indicator system can be formed. Therefore, the problem of low accuracy and generation efficiency of high availability results of network devices can be solved, the high availability results of network devices can be determined in real time, and the accuracy and generation efficiency of high availability results of network devices are improved.
[0109] Figure 5A flowchart of another method for determining the high availability result of a network device provided by an embodiment of the present invention. Specifically, first, at different target association levels such as single device level, high availability group level, network area level, network service level, line level and application system level, the associated device set corresponding to the current alarm device is determined based on the current device information corresponding to the current alarm device and the historical device connection relationship. Afterwards, based on the attribute information and preset indicator definition set corresponding to the target associated device in the associated device set, the target standard indicator information of the deployment class, configuration class, status class and management class corresponding to the target associated device is determined, and based on the attribute information and the target standard indicator information, a target collection instruction corresponding to the target associated device is generated, and the target collection instruction is sent to the target associated device to obtain the target indicator collection information of the deployment class, configuration class, status class and management class corresponding to the target associated device. Further, based on the target indicator coding field in the target standard indicator information, the target indicator coding information corresponding to the target standard indicator information is determined, and based on the target indicator coding information, in a historical design state information set including deployment type design state data, configuration type design state data, status type design state data and management type design state data, the inspection rules corresponding to the target indicator coding information are determined as the target inspection rules corresponding to the target indicator collection information. And, based on the target indicator category corresponding to the target indicator collection information, the target configuration sub-item model corresponding to the target indicator collection information is determined, wherein the target configuration sub-item model can be a deployment class configuration sub-item model, a configuration class configuration sub-item model, a state class configuration sub-item model, and a management class configuration sub-item model, and based on the target configuration field in the target configuration sub-item model, the target sub-item information in the target indicator collection information is determined, and based on the target field position of the target configuration field in the target configuration sub-item model, each target sub-item information is filled and processed as the target configuration information corresponding to the target associated device, and finally, based on the target inspection rule, the target configuration information is compared according to the rules to obtain the target comparison result corresponding to the target configuration information, and based on the result category corresponding to each target comparison result, the target comparison results corresponding to the full amount of target configuration information under the target indicator category are classified and counted to obtain the target high availability inspection result of the current alarm device under the target indicator category. Among them, the target high availability inspection result can be a device dimension inspection view, a network service dimension inspection view, a line dimension inspection view, and an application dimension inspection view.
[0110] Figure 6 A schematic diagram of a structure of a device for determining a high availability result of a network device provided by an embodiment of the present invention. Figure 6 As shown, the device includes: an associated device determination module 301, a collection information determination module 302, a standardization processing module 303 and an inspection result determination module 304;
[0111] The associated device determination module 301 is used to obtain the current device information and the historical device connection relationship corresponding to the current alarm device, and determine the associated device set corresponding to the current alarm device in the historical device connection relationship based on the current device information; wherein the historical device connection relationship includes the association relationship between the current alarm device and the associated devices under each target association level;
[0112] The collection information determination module 302 is used to determine the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set;
[0113] A standardization processing module 303 is used to determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and to standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device;
[0114] The inspection result determination module 304 is used to perform rule comparison on the target configuration information based on the target inspection rule to obtain the target comparison result corresponding to the target configuration information, and summarize the target comparison results corresponding to the full amount of target configuration information under the target indicator category to obtain the target high availability inspection result of the current alarm device under the target indicator category.
[0115] In the embodiment of the present invention, the current device information corresponding to the current alarm device is used to determine the associated device set corresponding to the current alarm device in the historical device connection relationship; then, based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information are determined; further, based on the target indicator category corresponding to the target indicator collection information, the target configuration sub-item model corresponding to the target indicator collection information is determined, and the target indicator collection information is standardized based on the target configuration sub-item model to obtain the target configuration information corresponding to the target associated device; finally, the target configuration information is compared based on the target inspection rule to obtain the target comparison result corresponding to the target configuration information, and the target comparison result corresponding to the full amount of target configuration information under the target indicator category is summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category. Since the collection indicators are divided according to the association level and indicator category, and the collected indicator information is standardized by using the configuration sub-item model, a systematic inspection indicator system can be formed. Therefore, the problem of low accuracy and generation efficiency of high availability results of network devices can be solved, the high availability results of network devices can be determined in real time, and the accuracy and generation efficiency of high availability results of network devices are improved.
[0116] Optionally, target association levels include: single device level, high availability group level, network area level, network service level, line level, and application system level.
[0117] Optionally, the associated device determination module 301 may be specifically used for:
[0118] Determining a target connection relationship in the historical device connection relationship based on a level type of the target association level;
[0119] Determine, based on the target information field of the current device information, a target associated device corresponding to the current alarm device in the target connection relationship;
[0120] Combine and process each target-associated device under each target-associated level to generate an associated device set corresponding to the current alarm device.
[0121] Optionally, the device for determining the high availability result of the network device may further include: an indicator definition module, which is used to obtain the preset indicator collection requirements corresponding to the current application scenario before determining the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, analyze and process the preset indicator collection requirements to obtain a basic indicator set corresponding to the preset indicator collection requirements; wherein the basic indicator set includes various basic indicators; information of each basic indicator is configured based on the preset indicator definition standard to generate standard indicator information corresponding to each basic indicator, and each standard indicator information is combined and processed to generate a preset indicator definition set.
[0122] Optionally, the collected information determination module 302 may be specifically used for:
[0123] Determine target standard indicator information corresponding to the target associated device based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set;
[0124] A target acquisition instruction corresponding to the target associated device is generated based on the attribute information and the target standard indicator information, and the target acquisition instruction is sent to the target associated device to obtain the target indicator acquisition information corresponding to the target associated device.
[0125] Optionally, the collected information determination module 302 may be specifically used for:
[0126] Determine the target indicator coding information corresponding to the target standard indicator information based on the target indicator coding field in the target standard indicator information;
[0127] Based on the target indicator coding information and the historical design state information set, the inspection rules corresponding to the target indicator coding information are determined as the target inspection rules corresponding to the target indicator collection information; wherein the historical design state information set contains the inspection rules corresponding to each target standard indicator information.
[0128] Optionally, target indicator categories include: deployment, configuration, status, and management.
[0129] Optionally, the device for determining the high availability result of the network device may further include: a model building module, which is used to obtain the preset indicator collection requirements corresponding to the current application scenario before determining the target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and divide the preset indicator collection requirements into dimension categories according to preset indicator dimension division rules to obtain an indicator category set corresponding to the preset indicator collection requirements; wherein the indicator category set includes each indicator category; based on the indicator type of each indicator category and the preset standard attribute file, determine the basic information set corresponding to each indicator category; model each basic information set based on the preset indicator modeling standard to generate a configuration sub-item model corresponding to each indicator category.
[0130] Optionally, the standardization processing module 303 may be specifically used for:
[0131] Determine the target sub-item information in the target indicator collection information based on the target configuration field in the target configuration sub-item model;
[0132] Based on the target field position of the target configuration field in the target configuration sub-item model, each target sub-item information is filled and processed as the target configuration information corresponding to the target-associated device.
[0133] Optionally, the inspection result determination module 304 can be specifically used to: based on the result category corresponding to each target comparison result, classify and count the target comparison results corresponding to the full target configuration information under the target indicator category, and obtain the target high availability inspection result of the current alarm device under the target indicator category.
[0134] Optionally, the device for determining the high availability result of a network device may further include: a post-processing module, which is used to perform probability statistics on the target high availability inspection result after obtaining the target comparison result corresponding to the full target configuration information under the summary processing target indicator category, and obtain the target high availability inspection result of the current alarm device under the target indicator category, and send the target association result to the preset disposal module, so that the preset disposal module generates a corresponding disposal strategy based on the target association result.
[0135] Optionally, the device for determining the high availability result of the network device may also include: an instruction verification module, which is used to verify and process the target acquisition instruction according to preset command verification rules before sending the target acquisition instruction to the target associated device, and screen out target acquisition instructions that do not meet the preset command verification rules.
[0136] The apparatus for determining the high availability result of a network device provided in the embodiment of the present invention can execute any of the methods for determining the high availability result of a network device described in the embodiments of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0137] Figure 7 A schematic diagram of the structure of an electronic device 410 for implementing a method for determining a high availability result of a network device according to an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0138] like Figure 7 As shown, the electronic device 410 includes at least one processor 420, and a memory connected to the at least one processor 420 in communication, such as a read-only memory (ROM) 430, a random access memory (RAM) 440, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 420 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 430 or the computer program loaded from the storage unit 490 to the random access memory (RAM) 440. In the RAM 440, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 420, the ROM 430, and the RAM 440 are connected to each other via a bus 450. An input / output (I / O) interface 460 is also connected to the bus 450.
[0139] Multiple components in the electronic device 410 are connected to the I / O interface 460, including: an input unit 470, such as a keyboard, a mouse, etc.; an output unit 480, such as various types of displays, speakers, etc.; a storage unit 490, such as a disk, an optical disk, etc.; and a communication unit 4100, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 4100 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0140] The processor 420 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 420 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 420 executes the various methods and processes described above, such as a method for determining a high availability result of a network device.
[0141] The method includes:
[0142] Obtaining current device information and historical device connection relationships corresponding to the current alarm device, and determining the associated device set corresponding to the current alarm device in the historical device connection relationships based on the current device information; wherein the historical device connection relationships include the association relationships between the current alarm device and the associated devices under each target association level;
[0143] Based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, determining the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information;
[0144] Determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target-associated device;
[0145] Based on the target inspection rule, the target configuration information is compared with the target configuration information to obtain the target comparison result corresponding to the target configuration information, and the target comparison results corresponding to the full amount of target configuration information under the target indicator category are summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category.
[0146] In some embodiments, the method for determining the high availability result of the network device may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 490. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 430 and / or the communication unit 4100. When the computer program is loaded into the RAM 440 and executed by the processor 420, one or more steps of the method for determining the high availability result of the network device described above may be performed. Alternatively, in other embodiments, the processor 420 may be configured to execute the method for determining the high availability result of the network device by any other appropriate means (e.g., by means of firmware).
[0147] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0148] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0149] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0150] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0151] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0152] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0153] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a method for determining a high availability result of a network device as described in any one of the embodiments of the present invention.
[0154] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0155] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for determining a high availability result of a network device, characterized in that: include: Obtaining current device information and historical device connection relationships corresponding to the current alarm device, and determining the associated device set corresponding to the current alarm device in the historical device connection relationships based on the current device information; wherein the historical device connection relationships include the association relationships between the current alarm device and the associated devices under each target association level; Based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, determining the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information; Determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target-associated device; Based on the target inspection rule, the target configuration information is compared with the target configuration information to obtain the target comparison result corresponding to the target configuration information, and the target comparison results corresponding to the full amount of target configuration information under the target indicator category are summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category.
2. The method according to claim 1, characterized in that The target association levels include: single device level, high availability group level, network area level, network service level, line level and application system level.
3. The method according to claim 2, characterized in that The determining, based on the current device information, in the historical device connection relationship, a set of associated devices corresponding to the current alarm device includes: Determining a target connection relationship in the historical device connection relationship based on a level type of the target association level; Determine, based on the target information field of the current device information, a target associated device corresponding to the current alarm device in the target connection relationship; Combine and process each target-associated device under each target-associated level to generate an associated device set corresponding to the current alarm device.
4. The method according to claim 1, characterized in that Before determining the target indicator collection information corresponding to the target associated device and the target inspection rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, the method further includes: Acquire the preset indicator collection requirements corresponding to the current application scenario, analyze and process the preset indicator collection requirements to obtain a basic indicator set corresponding to the preset indicator collection requirements; wherein the basic indicator set includes various basic indicators; Based on the preset indicator definition standard, information of each basic indicator is configured to generate standard indicator information corresponding to each basic indicator, and each standard indicator information is combined and processed to generate a preset indicator definition set.
5. The method according to claim 4, characterized in that The determining the target indicator collection information corresponding to the target associated device based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set includes: Determine target standard indicator information corresponding to the target associated device based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set; A target acquisition instruction corresponding to the target associated device is generated based on the attribute information and the target standard indicator information, and the target acquisition instruction is sent to the target associated device to obtain the target indicator acquisition information corresponding to the target associated device.
6. The method according to claim 5, characterized in that Based on the attribute information corresponding to the target associated device in the associated device set and the preset indicator definition set, determining the target inspection rule corresponding to the target indicator collection information includes: Determine the target indicator coding information corresponding to the target standard indicator information based on the target indicator coding field in the target standard indicator information; Based on the target indicator coding information and the historical design state information set, the inspection rules corresponding to the target indicator coding information are determined as the target inspection rules corresponding to the target indicator collection information; wherein the historical design state information set contains the inspection rules corresponding to each target standard indicator information.
7. The method according to claim 1, characterized in that The target indicator categories include: deployment category, configuration category, status category and management category.
8. The method according to claim 1, characterized in that Before determining the target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, the method further includes: Obtaining the preset indicator collection requirements corresponding to the current application scenario, dividing the preset indicator collection requirements into dimension categories according to the preset indicator dimension division rules, and obtaining an indicator category set corresponding to the preset indicator collection requirements; wherein the indicator category set includes each indicator category; Based on the indicator type and preset standard attribute files of each indicator category, determine the basic information set corresponding to each indicator category; Based on the preset indicator modeling standards, each basic information set is modeled and processed to generate the configuration sub-item model corresponding to each indicator category.
9. The method according to claim 1, characterized in that: The step of processing the target indicator collection information based on the target configuration sub-item model standardization to obtain target configuration information corresponding to the target associated device includes: Determine the target sub-item information in the target indicator collection information based on the target configuration field in the target configuration sub-item model; Based on the target field position of the target configuration field in the target configuration sub-item model, each target sub-item information is filled and processed as the target configuration information corresponding to the target-associated device.
10. The method according to claim 1, characterized in that The target comparison result corresponding to the full amount of target configuration information under the target indicator category is summarized and processed to obtain the target high availability inspection result of the current alarm device under the target indicator category, including: Based on the result categories corresponding to each target comparison result, the target comparison results corresponding to the full target configuration information under the target indicator category are classified and counted to obtain the target high availability inspection result of the current alarm device under the target indicator category.
11. The method according to claim 1, characterized in that: After the target comparison result corresponding to the full amount of target configuration information under the target indicator category is aggregated and processed to obtain the target high availability check result of the current alarm device under the target indicator category, the following further includes: Probabilistic statistics are performed on the target high availability inspection result to obtain the target association result of the current alarm device under the target indicator category, and the target association result is sent to the preset disposal module so that the preset disposal module generates a corresponding disposal strategy based on the target association result.
12. The method according to claim 5, characterized in that Before sending the target acquisition instruction to the target associated device, the method further includes: The target acquisition instructions are verified according to preset command verification rules, and target acquisition instructions that do not meet the preset command verification rules are screened out.
13. A device for determining a high availability result of a network device, characterized in that: include: An associated device determination module, used to obtain current device information and historical device connection relationships corresponding to the current alarm device, and determine the associated device set corresponding to the current alarm device in the historical device connection relationships based on the current device information; wherein the historical device connection relationships include the association relationships between the current alarm device and the associated devices under each target association level; A collection information determination module, used to determine target indicator collection information corresponding to the target associated device and a target inspection rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the associated device set and a preset indicator definition set; A standardization processing module, used to determine a target configuration sub-item model corresponding to the target indicator collection information based on the target indicator category corresponding to the target indicator collection information, and standardize the target indicator collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device; The inspection result determination module is used to perform rule comparison on the target configuration information based on the target inspection rule, obtain the target comparison result corresponding to the target configuration information, and summarize the target comparison results corresponding to the full amount of target configuration information under the target indicator category to obtain the target high availability inspection result of the current alarm device under the target indicator category.
14. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for determining the high availability result of a network device as described in any one of claims 1 to 12 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a method for determining a high availability result of a network device as described in any one of claims 1 to 12 is implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for determining a high availability result of a network device according to any one of claims 1 to 12.
Citation Information
Patent Citations
Database monitoring method, device and equipment and readable storage medium
CN109726073A
Alarm method and device, electronic equipment and medium
CN117493133A
Operation and maintenance processing method and system, computer storage medium and electronic equipment
CN117667608A
Message processing method, apparatus and device, and storage medium
WO2023041968A1