A method, device, and medium for determining high availability of a network device
By acquiring the associated device set and standardized processing index information of network devices, the problems of low accuracy and low generation efficiency of high availability results for network devices are solved, and real-time high availability results are determined.
Patent Information
- Application Number
- CN202411202475.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-08-29
AI Technical Summary
Existing technologies rely on manual checks of network equipment availability in data centers, resulting in low real-time performance and unreliable accuracy.
By acquiring the device information and historical connection relationships of the current alarm devices, the set of associated devices is determined. Based on attribute information and a set of preset indicator definitions, target indicator information is collected and standardized. The configuration sub-item model is used for rule comparison to generate high availability check results.
This has improved the real-time accuracy and efficiency of generating high availability results for network devices, and established a systematic inspection indicator system.
Smart Images

Figure CN119363617B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of big data, and particularly relate to a method and device for determining high-availability result of network equipment, and a medium. BACKGROUND
[0002] With the gradual increase in the scale of network equipment in enterprise data centers and the increasing complexity of network equipment configuration, how to check the high-availability indicators of network equipment and ensure the high-availability operation of network equipment becomes very important for the continuous and stable operation of data center services.
[0003] In the daily operation and maintenance work of the prior art in data centers, the high-availability result of network equipment is usually determined by manual troubleshooting by operation and maintenance personnel. However, the real-time performance of manual checking is low, and the accuracy of the high-availability result cannot be guaranteed. Therefore, how to determine the high-availability result of network equipment in real time and improve the accuracy and generation efficiency of the high-availability result of network equipment is a problem to be solved at present. SUMMARY
[0004] Embodiments of the present application provide a method and device for determining high-availability result of network equipment, and a medium, to solve the problem of low accuracy and generation efficiency of the high-availability result of network equipment.
[0005] In a first aspect, embodiments of the present application provide a method for determining high-availability result of network equipment, comprising:
[0006] obtaining current device information corresponding to a current alarm device and a historical device connection relationship, and determining a set of associated devices 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 an association relationship between the current alarm device and associated devices at each target association level;
[0007] determining target indicator collection information corresponding to a target associated device in the set of associated devices and a target checking rule corresponding to the target indicator collection information based on attribute information corresponding to the target associated device and a set of pre-defined indicator definitions;
[0008] determining a target configuration sub-item model corresponding to the target indicator collection information based on a target indicator category corresponding to the target indicator collection information, and standardizing 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] The target configuration information is compared with the target check rule based on the target check rule to obtain a target comparison result corresponding to the target configuration information, and the target comparison results corresponding to all target configuration information under a target index category are summarized to obtain a target high-availability check result of the current alarm device under the target index category.
[0010] In a second aspect, the embodiment of the present application further provides a device for determining a high-availability result of a network device, which comprises:
[0011] An associated device determination module is configured to acquire current device information corresponding to a current alarm device and a historical device connection relationship, and determine a set of associated devices corresponding to the current alarm device based on the current device information in the historical device connection relationship, wherein the historical device connection relationship comprises an association relationship between the current alarm device and associated devices under each target association level.
[0012] An acquisition information determination module is configured to determine target index acquisition information corresponding to a target associated device and a target check rule corresponding to the target index acquisition information based on attribute information corresponding to the target associated device in the set of associated devices and a preset index definition set.
[0013] A standardization processing module is configured to determine a target configuration sub-item model corresponding to the target index acquisition information based on a target index category corresponding to the target index acquisition information, and standardize the target index acquisition information based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device.
[0014] An check result determination module is configured to compare the target configuration information with the target check rule based on the target check rule to obtain a target comparison result corresponding to the target configuration information, and summarize the target comparison results corresponding to all target configuration information under a target index category to obtain a target high-availability check result of the current alarm device under the target index category.
[0015] In a third aspect, the embodiment of the present application further provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method for determining a high-availability result of a network device according to any of the embodiments of the present application when executing the program.
[0016] In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the program is executable on a processor to implement the method for determining a high-availability result of a network device according to any of the embodiments of the present application.
[0017] In a fifth aspect, an embodiment of the present application further provides a computer program product comprising a computer program which, when executed by a processor, implements the method for determining a network device high availability result according to any of the embodiments of the present application.
[0018] In the embodiment of the present application, the current device information corresponding to the current alarm device is determined in the historical device connection relationship to determine a set of associated devices corresponding to the current alarm device; then, based on the attribute information corresponding to the target associated device in the set of associated devices and the set of predefined index definitions, target index collection information corresponding to the target associated device and a target check rule corresponding to the target index collection information are determined; further, based on the target index category corresponding to the target index collection information, a target configuration sub-item model corresponding to the target index collection information is determined, and the target index collection information is standardized based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device; finally, the target configuration information is compared based on the target check rule to obtain a target comparison result corresponding to the target configuration information, and the target comparison results corresponding to the full-amount target configuration information under the target index category are summarized to obtain a target high availability check result of the current alarm device under the target index category. Since the collected indexes are divided according to the association level and the index category, and the collected index information is standardized by using the configuration sub-item model, a system check index system can be formed. Therefore, the accuracy and the generation efficiency of the network device high availability result can be improved, and the network device high availability result can be determined in real time. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[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 network device high availability result determination method provided by an embodiment of the present application;
[0022] Figure 3 A flowchart of another network device high availability result determination method provided by an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a standardization process provided by an embodiment of the present application;
[0024] Figure 5 A flow chart of a method for determining a high-availability result of a network device according to an embodiment of the present application is provided;
[0025] Figure 6 A structural diagram of a device for determining a high-availability result of a network device according to an embodiment of the present application is provided;
[0026] Figure 7 A structural diagram 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 application is provided. DETAILED DESCRIPTION
[0027] The present application will be further described below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are intended to be merely illustrative of the present application and not in limitation thereof. It should also be noted that, for the purpose of description, only the parts related to the present application are shown in the accompanying drawings rather than all the parts.
[0028] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", etc. are merely used for distinguishing description and cannot be understood as indicating or implying relative importance. The acquisition, storage, use, processing, etc. of data in the technical solution of the present application all comply with the relevant provisions of the national laws and regulations. It should be noted that, in the embodiments of the present application, some industry existing solutions, components, models, etc. may be mentioned, which should be considered as exemplary, and the purpose is merely to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the related content of the solution.
[0029] In order to ensure the continuous and stable operation of the services inside the data center, it is very important to perform high-availability checking on the network devices in the data center. The prior art usually relies on manual checking to determine the high-availability result of the network devices. Figure 1 A structural diagram of a process for determining a high-availability result of a network device according to the prior art is provided. Specifically, first, the devices in the high-availability group corresponding to the alarm device are found, wherein the devices in the high-availability group contain n network devices. Then, the high-availability index information of the devices in the high-availability group is collected respectively through manual operation, and manual comparison and checking are performed, if all the checking passes, it indicates that the high-availability is not affected, otherwise, it indicates that the high-availability is affected.
[0030] However, the manual checking method is heavily dependent on manual operation, and the data comparison relies on manual checking, which is prone to errors and has poor real-time performance. Therefore, in order to determine the high availability result of the network device in real time and improve the accuracy and generation efficiency of the high availability result of the network device, an embodiment of the present application provides a method for determining the high availability result of the network device.
[0031] Figure 2 A flowchart of a method for determining the high availability result of the network device is provided in an embodiment of the present application. The embodiment can be applied to the case of real-time checking of the high availability result of the network device. The method can be executed by a device for determining the high availability result of the network device. The device can be realized in the form of hardware and / or software, and can be configured in an electronic device. As shown in the figure, the method comprises the following steps. Figure 2
[0032] S101, obtaining current device information corresponding to a current alarm device and a historical device connection relationship, and determining a set of associated devices corresponding to the current alarm device in the historical device connection relationship based on the current device information, wherein the historical device connection relationship comprises an association relationship between the current alarm device and associated devices at each target associated level.
[0033] The current alarm device can refer to a network device in the current data center that has an alarm state. Generally, the state of each network device can be monitored by a monitoring system provided in the data center. When the network device has a state anomaly, an alarm is sent, and thus the alarm device in the data center is determined. The current device information can refer to the basic device information of the current alarm device. For example, the device name, routing information, or dedicated line occupation information of the current alarm device.
[0034] The historical device connection relationship can refer to a pre-stored association relationship between each network device. For example, the historical device connection relationship can include device connection relationships at association levels of a single device, a high-availability group, a network area, a network service, a line, and an application system. The target association level can refer to an association level selected for device query in the historical device connection relationship. In an optional embodiment, the target association level can include a single device, a high-availability group, a network area, a network service, a line, and an application system. Generally, the single device level can include device information of each network device itself. The high-availability group level can include high-availability group information corresponding to each network device. The network area level can include network area information in which each network device is located. The network service level can include network service information associated with each network device. For example, a virtual reality (VR) service or a certificate service. The line level can include dedicated line connection information corresponding to each network device. The application system level can include association information of each network device and a business system such as a physical machine or a virtual machine.
[0035] The associated device can refer to a network device associated with the current alarm device in the historical device connection relationship. For example, if the target association level is a single device level, a network device with consistent device information in the single device level device connection relationship can be used as an associated device. If the target association level is a high-availability group level, a high-availability group in which the device name in the current device information is located can be determined in the high-availability group level device connection relationship, 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, a network device with consistent routing information in the network area level device connection relationship can be used as an associated device according to the routing information in the current device information. If the target association level is a network service level, a network device with consistent network service information in the network service level device connection relationship can be used as an associated device according to the network service information in the current device information. If the target association level is a line level, a network device with consistent dedicated line occupation information in the line level device connection relationship can be used as an associated device according to the dedicated line occupation information in the current device information. If the target association level is an application system level, a network device with consistent business system association information in the application system level device connection relationship can be used as an associated device according to the business system association information in the current device information. The associated device set can refer to a set of associated devices at 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 pre-set index definition set, determine the target index collection information corresponding to the target associated device and the target checking rule corresponding to the target index collection information.
[0037] The target associated device can refer to an associated device selected for index query in the associated device set. The attribute information can refer to the self attribute corresponding to the target associated device. For example, the attribute information can be product information, manufacturer information, model information, and the like.
[0038] The preset index definition set can refer to a set composed of various index definitions set in advance. Generally, the index definition contains an index name and basic information corresponding to the index name. The target index collection information can refer to the index information collection result corresponding to the target associated device. The target check rule can refer to the check rule corresponding to the target index collection information.
[0039] In an optional embodiment, before the target associated device corresponding attribute information in the associated device set and the preset index definition set are used to determine the target index collection information corresponding to the target associated device and the target check rule corresponding to the target index collection information, the method further comprises:
[0040] In step a1, the preset index collection requirement corresponding to the current application scenario is obtained, and the preset index collection requirement is analyzed and processed to obtain a basic index set corresponding to the preset index collection requirement. The basic index set contains various basic indexes.
[0041] The current application scenario can refer to the working scenario of the current business. For example, the current application scenario can be a device operation and maintenance scenario. The preset index collection requirement can refer to all index collection requirements covered by the current application scenario. For example, the preset index collection requirement can be a requirement for collecting deployment status, a requirement for collecting configuration status, a requirement for collecting running status, and a requirement for collecting tube state, and the like. It is worth noting that the preset index collection requirement in the embodiment of the application can contain one index collection requirement, or can contain multiple index collection requirements, which is not limited in the embodiment of the application.
[0042] The basic index can refer to a specific index collection item corresponding to each index collection requirement. Specifically, the corresponding standard attribute file can be determined through the index collection requirement, and the field name of the standard attribute file is parsed as the basic index corresponding to the index collection requirement. For example, if the index collection requirement is to collect the deployment state requirement, the deployment file is taken as the standard attribute file, and the field name of the standard attribute file is parsed. The obtained basic index 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 index collection requirement is to collect the configuration state requirement, the configuration file is taken as the standard attribute file, and the field name of the standard attribute file is parsed. The obtained basic index can be login configuration, authentication configuration, routing configuration, and virtual local area network (VLAN) configuration. If the index collection requirement is to collect the running state requirement, the running state file is taken as the standard attribute file, and the field name of the standard attribute file is parsed. The obtained basic index can be the power supply running state, the central processing unit (CPU) running state, and the routing forwarding state. If the index collection requirement is to collect the tube state requirement, the tube file is taken as the standard attribute file, and the field name of the standard attribute file is parsed. The obtained basic index can be the tube result and the monitoring result. The basic index set can refer to a set composed of each basic index corresponding to the preset index collection requirement.
[0043] In step a2, each basic index is information configured based on a preset index definition standard, a standard index information corresponding to each basic index is generated, and each standard index information is combined to generate a preset index definition set.
[0044] The preset index definition standard can refer to a pre-set index definition format standard. For example, the preset index definition standard can be the basic information field format contained in the index definition. Specifically, the preset index definition standard can include index name, index code, index type, index dimension, index priority, product information, manufacturer information, and model information.
[0045] The index name can represent the inspection name embodied by the index. The index code can represent the unique code of the index. The index type can represent the index category to which the index belongs. The index dimension can represent the associated level to which the index belongs. The index priority can represent the degree of attention of the index, and the index priority level is high when the degree of attention is high. The product information can represent which product the index belongs to. The manufacturer information can represent which manufacturer the index belongs to. The model information can represent which type of device the index is suitable for inspection.
[0046] The information configuration can refer to an operation of configuring a corresponding basic information field content of a basis index based on a preset index definition standard. The standard index information can refer to index information generated after information configuration of each basis index based on the preset index definition standard.
[0047] Thus, by the preset index collection requirement corresponding to the current application scenario, the basis index set corresponding to the preset index collection requirement is determined in advance, and each basis index in the basis index set is configured with information based on the preset index definition standard, and the preset index definition set is obtained. This can provide an effective basis for subsequent determination of target index collection information and target check rules, and ensure the accuracy of the target index collection information and the target check rules.
[0048] S103, determining a target configuration sub-item model corresponding to the target index collection information based on a target index category corresponding to the target index collection information, and standardizing the target index collection information based on the target configuration sub-item model to obtain target configuration information corresponding to a target associated device.
[0049] The target index category can refer to an index classification of the target index collection information. Generally, the index classification can be divided according to the preset index collection requirement corresponding to the current application scenario. In an optional embodiment, the target index category includes a deployment category, a configuration category, a state category, and a management category. The deployment category can include a device deployment state category index. The configuration category can include a device configuration state category index. The state category can include a device running state category index. The management category can include a device management state category index. Thus, the high availability check situation can be reflected from four different index dimensions.
[0050] It is worth noting that the index type corresponding to each basis index is already included in the standard index information corresponding to each basis index when the standard index information is generated. Therefore, after obtaining the target index collection information, the target index category corresponding to the target index collection information can be determined according to the index type corresponding to the basis index to which the target index collection information belongs.
[0051] The configuration sub-item can refer to sub-item information corresponding to a basis index under each device configuration item. Generally, the configuration sub-item can be classified according to the index category. For example, if the configuration item is a switch, the corresponding configuration sub-item can be a configuration category index. Specifically, it can be an Open Shortest Path First (OSPF) or a routing table, etc. It is worth noting that one basis index usually corresponds to one configuration sub-item.
[0052] The target configuration sub-item model can refer to a modeling model corresponding to a configuration sub-item of a target index category. For example, 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. The standardization processing can refer to an operation of extracting standardized information from the target index collection information according to the target configuration sub-item model. The target configuration information can refer to information obtained by performing standardization processing on the target index collection information based on the target configuration sub-item model.
[0053] In S104, rule comparison is performed on the target configuration information based on the target check rule, a target comparison result corresponding to the target configuration information is obtained, and target comparison results corresponding to all the target configuration information under the target index category are summarized to obtain a target high-availability check result of the current alarm device under the target index category.
[0054] The target comparison result can refer to a result obtained by performing rule comparison on the target configuration information based on the target check rule. For example, the target comparison result can be a check pass or a check fail. The target high-availability check result can refer to a statistical class check view corresponding to the current alarm device generated according to the target index category. Specifically, the target high-availability check result can be a device dimension check view, a network service dimension check view, a line dimension check view, and an application dimension check view. Generally, the target high-availability check result includes how many devices under the target index category, how many normal devices, how many abnormal devices, which indexes are normal, and which indexes are abnormal.
[0055] In an optional embodiment, after the target comparison results corresponding to all the target configuration information under the target index category are summarized to obtain the target high-availability check result of the current alarm device under the target index category, the method further includes: performing probability statistics on the target high-availability check result to obtain a target association result of the current alarm device under the target index category, and sending the target association result to a preset handling module, so that the preset handling module generates a corresponding handling strategy according to the target association result.
[0056] The probability statistics can refer to an operation of probability calculation according to all data amounts of the same type in the target high-availability checking result. For example, if the target high-availability checking result shows that there are 90 normal devices and 10 abnormal devices, the influence probability of the current alarm device on the abnormal device can be calculated by the probability statistics as 10 / (10+90) * 100% = 10%. The target association result can refer to the influence result of the current alarm device under the target index category. For example, the target association result can be the probability result of the probability statistics. The preset disposition module can refer to a pre-set association result disposition module. The disposition strategy can refer to an alarm device adjustment strategy generated according to the association result.
[0057] Therefore, by performing the probability statistics on the target high-availability checking result, the target association result of the current alarm device under the target index category is obtained, and the target association result is sent to the preset disposition module. The preset disposition module can generate a corresponding disposition strategy in time according to the target association result, thereby providing an effective basis for subsequent network operation and maintenance.
[0058] In the embodiment of the application, the associated device set corresponding to the current alarm device is determined through the current device information corresponding to the current alarm device in the historical device connection relationship. Then, the target index collection information corresponding to the target associated device and the target checking rule corresponding to the target index collection information are determined based on the attribute information corresponding to the target associated device in the associated device set and the pre-set index definition set. Further, the target configuration sub-item model corresponding to the target index collection information is determined based on the target index category corresponding to the target index collection information, and the target index collection information is standardized by using the target configuration sub-item model, so as to obtain the target configuration information corresponding to the target associated device. Finally, the target comparison result corresponding to the target configuration information is obtained by performing rule comparison on the target configuration information based on the target checking rule, and the target comparison results corresponding to the full-amount target configuration information under the target index category are summarized and processed, so as to obtain the target high-availability checking result of the current alarm device under the target index category. Since the collection index is divided according to the association level and the index category, and the collected index information is standardized by using the configuration sub-item model, a system checking index system can be formed. Therefore, the accuracy and the generation efficiency of the network device high-availability result can be improved, and the high-availability result of the network device can be determined in real time.
[0059] Figure 3Another flowchart of a method for determining a high-availability result of a network device is provided. The embodiment is based on the above-mentioned embodiment and is refined, specifically, the operation of determining the set of associated devices corresponding to the current alarm device in the historical device connection relationship based on the current device information is refined, and specifically can include: determining a target connection relationship in the historical device connection relationship based on the level type of the target association level; determining a target associated device corresponding to the current alarm device in the target connection relationship based on a target information field of the current device information; and combining each target associated device under each target association level to generate the set of associated devices corresponding to the current alarm device. As shown in FIG. 13, the method includes: Figure 3
[0060] S201, obtaining current device information corresponding to a current alarm device and a historical device connection relationship.
[0061] S202, determining a target connection relationship in the historical device connection relationship based on a level type of a target association level.
[0062] The target connection relationship can refer to a connection relationship in the historical device connection relationship that matches the target association level. For example, 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 can 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 can be used as the target connection relationship. If the level type of the target association level is a network region level, the network region level device connection relationship in the historical device connection relationship can 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 can 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 can 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 can be used as the target connection relationship.
[0063] S203, determining a target associated device corresponding to the current alarm device in the target connection relationship based on a target information field of the current device information.
[0064] The target information field can refer to a field in the current device information that is selected for device association. For example, the target information field can be determined according to the level type of the target association level. For example, if the level type of the target association level is a network region level, the target information field can 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 hierarchy type of the target association hierarchy, the target information field in the current device information can be determined according to the hierarchy type of the target association hierarchy, and then the target associated device with the target information field consistent with the information field in the target connection relationship is determined.
[0066] S204, combine each target associated device under each target association hierarchy to generate an associated device set corresponding to the current alarm device.
[0067] Specifically, after obtaining each target associated device under each target association hierarchy, each target associated device under each target association hierarchy can be combined and processed, thereby obtaining an associated device set corresponding to the current alarm device, providing an effective basis for subsequent index information collection.
[0068] S205, based on the attribute information corresponding to the target associated device in the associated device set and the preset index definition set, determine the target standard index information corresponding to the target associated device.
[0069] The target standard index information can refer to the standard index information corresponding to the target associated device. For example, the product information of the target associated device can be matched with the product information in the preset index definition set, the manufacturer information of the target associated device can be matched with the manufacturer information in the preset index definition set, or the model information of the target associated device can be matched with the model information in the preset index definition set, thereby matching the target standard index information corresponding to the target associated device.
[0070] S206, based on the attribute information and the target standard index information, generate a target collection instruction corresponding to the target associated device, and send the target collection instruction to the target associated device, to obtain target index collection information corresponding to the target associated device.
[0071] The target collection instruction can be a target index information collection command initiated by the target associated device.
[0072] Specifically, the target standard index information is generated into 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, and the collection result corresponding to the target associated device is obtained as the target index collection information. Therefore, different collection instructions can be generated according to different manufacturers corresponding to the target associated device, ensuring the accuracy of the collection instruction and providing an effective basis for the accuracy of the subsequent target index collection information.
[0073] In an optional implementation, before the target collection instruction is sent to the target associated device, the method further includes: performing verification processing on the target collection instruction according to a preset command verification rule, and screening out the target collection instruction that does not meet the preset command verification rule. The preset command verification rule can refer to a pre-set collection command verification rule. For example, the preset command verification rule can be a rule that the target collection instruction does not contain a data modification operation. Specifically, before the target collection instruction is sent to the target associated device, the target collection instruction can be verified according to the preset command verification rule. If the target collection instruction contains a data modification instruction such as data deletion, the target collection instruction is deleted, and the subsequent instruction is not issued. Otherwise, if the target collection instruction only contains an operation such as data reading and does not contain a data modification operation, the target collection instruction is sent to the target associated device. In this way, the security of data in the target associated device can be ensured.
[0074] S207, determining target index code information corresponding to the target standard index information based on a target index code field in the target standard index information.
[0075] The target index code field can refer to an index code field header in the target standard index information. The target index code information can refer to specific code content corresponding to the target index code field.
[0076] Specifically, when each standard index information is defined, each basic index is configured with information, that is, each basic index is configured with unique coding. Therefore, after the target standard index information corresponding to the target associated device is determined, the target index code information corresponding to the target standard index information can be determined based on the target index code field.
[0077] S208, determining an inspection rule corresponding to the target index code information as a target inspection rule corresponding to the target index collection information based on the target index code information and a historical design state information set. The historical design state information set contains inspection rules corresponding to each target standard index information.
[0078] The historical design state information can refer to pre-stored network device design state information. For example, the historical design state information can be deployment type design state data, configuration type design state data, state type design state data, and management type design state data. The historical design state information set can refer to a set composed of each historical design state information.
[0079] Specifically, the index code information of each basic index is bound to the corresponding check rule. Therefore, after the target index code information corresponding to the target standard index information is determined, the target index code information can be used to determine the corresponding check rule in the historical design state information set as the target check rule corresponding to the target index collection information. Thus, the determination of the check rule of the four index category dimensions for the target index collection information expands the high availability check range and can reflect the high availability capability of the network equipment from the overall application perspective, providing an effective basis for subsequent index information checking.
[0080] S209, determining a target configuration sub-item model corresponding to the target index collection information based on the target index category corresponding to the target index collection information.
[0081] In an optional implementation, before the target index collection information corresponding to the target index collection information is determined based on the target index category corresponding to the target index collection information, the method further includes:
[0082] Step b1, obtaining a preset index collection requirement corresponding to a current application scenario, performing dimension category division on the preset index collection requirement according to a preset index dimension division rule to obtain an index category set corresponding to the preset index collection requirement; wherein the index category set includes each index category.
[0083] The preset index dimension division rule can refer to a pre-set dimension category division rule. For example, the preset index dimension division rule can divide one index collection requirement into one index category.
[0084] Specifically, if the preset index collection requirement is a requirement for collecting deployment state, the index category can be deployment category. If the preset index collection requirement is a requirement for collecting configuration state, the index category can be configuration category. If the preset index collection requirement is a requirement for collecting running state, the index category can be state category. If the preset index collection requirement is a requirement for collecting management state, the index category can be management category.
[0085] Step b2, determining a basic information set corresponding to each index category based on the index type of each index category and a preset standard attribute file.
[0086] The preset standard attribute file can refer to a pre-set state storage standard format file. For example, if the index type of the index category is configuration category, the corresponding preset standard attribute file can be a configuration file.
[0087] The basic information can refer to attribute field information corresponding to each preset standard attribute file. For example, if the preset standard attribute file is a configuration file, the attribute field information corresponding to the configuration file is routing configuration, login configuration, and authentication configuration, etc., and the basic information can be routing configuration, login configuration, and authentication configuration, etc. The basic information set can refer to a set composed of each basic information corresponding to the same index category.
[0088] In step b3, modeling processing is performed on each basic information set based on a preset index modeling standard to generate a configuration sub-item model corresponding to each index category.
[0089] The preset index modeling standard can refer to a pre-set standardized information configuration template. Generally, the preset index modeling standard defines a standardized field corresponding to each basic information. It is worth noting that the preset index modeling standards corresponding to different basic information under different index categories and different basic information under the same index category can be different.
[0090] Table 1: Routing table configuration sub-item model
[0091] Destination Address Subnet Mask Priority Next Hop Address Interface Information
[0092] For example, if the index type of the index category is the configuration category and the basic information in the basic information set is the routing configuration, the standardized field corresponding to the routing configuration is determined according to the preset index modeling standard, which can be the destination address, subnet mask, priority, next hop address, and interface information in turn. Further, the routing table configuration sub-item model corresponding to the routing configuration generated by modeling processing each standardized field can be as shown in Table 1.
[0093] Specifically, after determining the basic information set corresponding to each index category, modeling processing can be performed on each basic information in each basic information set according to the preset index modeling standard to generate a configuration sub-item model corresponding to each index category. Thus, by standardizing the definition of the configuration sub-item of the same index, the manufacturer difference is shielded in modeling, so that when the upper layer application checks the index, the manufacturer is not perceived, the adaptation difficulty is reduced, the influence of the difference of the reverse information collected by different manufacturer devices on information reading is reduced, and the efficiency of subsequent information comparison is improved.
[0094] It is worth noting that the number of configuration sub-item models corresponding to each index category is consistent with the number of basic information contained in the basic information set corresponding to each index category. The present embodiment only divides the configuration sub-item model by index category, and will not be described again.
[0095] S210, determining target sub-item information in the target index collection information based on a target configuration field in the target configuration sub-item model.
[0096] The target configuration field can refer to a standardized field in the target configuration sub-item model. The target sub-item information can refer to information in the target index 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 can be a destination address, a subnet mask, a priority, a next hop address, and interface information. Then, the target sub-item information in the target index collection information that is consistent with the target configuration field in terms of field name is determined according to the target configuration field. For example, if the target configuration field is a destination address, the destination address information in the target index collection information is determined as the target sub-item information.
[0098] It is worth noting that before determining the target sub-item information in the target index collection information based on the target configuration field in the target configuration sub-item model, the target index collection information can also be format-converted based on a preset structured script. The preset structured script can refer to a general script that is preset in advance. Generally, each target index collection information has a corresponding preset structured script. The target index 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. Thus, it is convenient to determine the target sub-item information corresponding to the target configuration field in the target index collection information.
[0099] S211, filling each target sub-item information as target configuration information corresponding to the target associated device based on a target field position of the target configuration field in the target configuration sub-item model.
[0100] The target field position can 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 index collection information, the corresponding target sub-item information can be filled according to the target field position of the target configuration field. For example, 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 into the corresponding position under the field position of the destination address, that is, the destination address information is filled into the blank position in the column where the destination address is located. Until all the target sub-item information in the target index collection information is filled, the target configuration information corresponding to the target associated device is generated. It should be noted that in the target configuration sub-item model, the target sub-item information corresponding to the same target index collection information should be in the same data row.
[0102] Figure 4 A schematic diagram of a standardized processing procedure is provided for the embodiments of the present application. Specifically, if the target associated device is associated device 1 and associated device 2, and the standard index information 1 corresponding to the associated device 1 and the standard index information 2 corresponding to the associated device 2 are the same index name. After determining the target standard index information corresponding to the associated device 1 and the associated device 2, first, the collection instruction 1 corresponding to the associated device 1 is generated based on the attribute information 1 and the standard index information 1, the collection instruction 2 corresponding to the associated device 2 is generated based on the attribute information 2 and the standard index information 2, the collection instruction 1 is sent to the associated device 1 to obtain the index collection information 1 corresponding to the associated device 1, and the collection instruction 2 is sent to the associated device 2 to obtain the index collection information 2 corresponding to the associated device 2. Further, the target configuration sub-item model is determined based on the index category of the index collection information 1 and the index collection information 2, and finally, the target sub-item information in the index collection information 1 and the index collection information 2 is determined based on the target configuration field in the target configuration sub-item model, the standardized structure data is obtained, 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. Thus, by standardizing each index collection information through the target configuration sub-item model, different index collection information can have a unified data storage rule, providing an effective basis for subsequent data comparison.
[0103] S212, performing rule comparison on the target configuration information based on the target check 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 check rule corresponding to the target configuration information, the target configuration information can be compared according to the target check rule to determine whether the target configuration information passes the check and generate a corresponding target comparison result.
[0105] S213, based on the result category corresponding to each target comparison result, classifying and counting the target comparison results corresponding to the full-amount target configuration information under the target index category, to obtain the target high-availability checking result of the current alarm device under the target index category.
[0106] The result category can refer to the checking scene dimension category corresponding to the target checking rule. For example, the result category can include device dimension, network service dimension, line dimension, and application dimension. The device dimension includes high-availability group level and network area level. The network service dimension includes network service level. The line dimension includes line level. The application dimension includes application system level.
[0107] Specifically, after comparing the target configuration information based on the target checking rule to obtain the target comparison result corresponding to the target configuration information, the target comparison results corresponding to the full-amount target configuration information under each target index category can be classified and counted according to the result category corresponding to each target comparison result, to obtain the target high-availability checking result of the device dimension checking view, the network service dimension checking view, the line dimension checking view, and the application dimension checking view. Thus, it can be determined whether the current alarm device has an impact on the devices in the high-availability group and the network area class devices according to the device dimension checking view. It can be determined whether the current alarm device has an impact on the network service carried by the device according to the network service dimension checking view. It can be determined whether the current alarm device has an impact on the transmission of the dedicated line according to the line dimension checking view. It can be determined whether the current alarm device has an impact on the application system of the business carried by the network device according to the application dimension checking view.
[0108] In the embodiment of the present application, the target connection relationship in the historical device connection relationship is determined through the level type of the target association level, the target associated device in the target connection relationship is determined based on the target information field of the current device information corresponding to the current alarm device, and each target associated device under each target association level is combined and processed to generate an associated device set corresponding to the current alarm device. Further, based on the attribute information corresponding to the target associated device in the associated device set and the preset index definition set, target standard index information corresponding to the target associated device is determined, target collection instructions corresponding to the target associated device are generated based on the attribute information and the target standard index information, and the target collection instructions are sent to the target associated device to obtain target index collection information corresponding to the target associated device. Further, based on the target index code field in the target standard index information, target index code information corresponding to the target standard index information is determined, and based on the target index code information and the historical design state information set, an inspection rule corresponding to the target index code information is determined as a target inspection rule corresponding to the target index collection information. Further, based on the target index category corresponding to the target index collection information, a target configuration sub-item model corresponding to the target index collection information is determined, target sub-item information in the target index 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 based on the target field position of the target configuration field in the target configuration sub-item model as target configuration information corresponding to the target associated device. Finally, the target configuration information is compared based on the target inspection rule to obtain a target comparison result corresponding to the target configuration information, and the target comparison result corresponding to the full-amount target configuration information under the target index category is classified and counted based on the result category corresponding to each target comparison result to obtain a target high-availability check result of the current alarm device under the target index category. Since the collection index is divided according to the association level and the index category, and the collected index information is standardized by using the configuration sub-item model, a system inspection index system can be formed. Therefore, the problem of low accuracy and generation efficiency of the network device high-availability result can be solved, the high-availability result of the network device can be determined in real time, and the accuracy and generation efficiency of the network device high-availability result are improved.
[0109] Figure 5A flowchart of another method for determining high-availability results of network devices is provided for embodiments of the present application. Specifically, first, a set of associated devices corresponding to a current alarm device is determined based on current device information and historical device connection relationships of the current alarm device at different target association levels, such as a single-device level, a high-availability group level, a network region level, a network service level, a line level, and an application system level. Then, target standard index information corresponding to a target associated device in the set of associated devices is determined based on attribute information of the target associated device and a set of predefined index definitions, and target collection instructions corresponding to the target associated device are generated based on the attribute information and the target standard index information. The target collection instructions are sent to the target associated device to obtain target index collection information of the target associated device in the deployment class, the configuration class, the state class, and the management class. Further, target index code information corresponding to the target standard index information is determined based on a target index code field in the target standard index information, and a check rule corresponding to the target index code information is determined in a set of historical design state information including deployment class design state data, configuration class design state data, state class design state data, and management class design state data based on the target index code information, as a target check rule corresponding to the target index collection information. In addition, a target configuration sub-item model corresponding to the target index collection information is determined based on a target index category of the target index collection information, where 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. Target sub-item information in the target index collection information is determined based on a target configuration field in the target configuration sub-item model, and each target sub-item information is filled in based on a target field position of the target configuration field in the target configuration sub-item model as target configuration information corresponding to the target associated device. Finally, a target comparison result corresponding to the target configuration information is obtained by comparing the target configuration information based on the target check rule, and a target comparison result corresponding to all target configuration information in the target index category is classified and counted based on a result category corresponding to each target comparison result to obtain a target high-availability check result of the current alarm device in the target index category. The target high-availability check result can be a device-dimension check view, a network service-dimension check view, a line-dimension check view, and an application-dimension check view.
[0110] Figure 6 A structural diagram of a device for determining high-availability results of network devices is provided for embodiments of the present application. As shown in Figure 6 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 association device determination module 301 is configured to acquire current device information corresponding to a current alarm device and a historical device connection relationship, and determine a set of associated devices corresponding to the current alarm device in the historical device connection relationship based on the current device information.
[0112] The collection information determination module 302 is configured to determine target index collection information corresponding to a target associated device in the set of associated devices and a target check rule corresponding to the target index collection information based on attribute information corresponding to the target associated device and a set of preset index definitions.
[0113] The standardization processing module 303 is configured to determine a target configuration sub-item model corresponding to the target index collection information based on a target index category corresponding to the target index collection information, and standardize the target index collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device.
[0114] The check result determination module 304 is configured to perform rule comparison on the target configuration information based on the target check rule to obtain a target comparison result corresponding to the target configuration information, and aggregate and process target comparison results corresponding to full-amount target configuration information under a target index category to obtain a target high-availability check result of the current alarm device under the target index category.
[0115] In the embodiment of the application, the set of associated devices corresponding to the current alarm device is determined in the historical device connection relationship based on the current device information corresponding to the current alarm device. Then, the target index collection information corresponding to the target associated device and the target check rule corresponding to the target index collection information are determined based on the attribute information corresponding to the target associated device in the set of associated devices and the set of preset index definitions. Further, the target configuration sub-item model corresponding to the target index collection information is determined based on the target index category corresponding to the target index collection information, and the target index 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 comparison result corresponding to the target configuration information is obtained by performing rule comparison on the target configuration information based on the target check rule, and the target comparison result corresponding to the full-amount target configuration information under the target index category is aggregated and processed to obtain the target high-availability check result of the current alarm device under the target index category. Since the collection index is divided according to the association level and the index category, and the collected index information is standardized by using the configuration sub-item model, a system check index system can be formed. Therefore, the accuracy and generation efficiency of the network device high-availability result can be improved, and the high-availability result of the network device can be determined in real time.
[0116] Optionally, the target correlation hierarchy comprises a single-device level, a high-availability group level, a network area level, a network service level, a line level, and an application system level.
[0117] Optionally, the correlation device determination module 301 can be specifically used for:
[0118] determining a target connection relationship in the historical device connection relationship based on a hierarchy type of the target correlation hierarchy;
[0119] determining a target correlation device corresponding to the current alarm device in the target connection relationship based on a target information field of the current device information;
[0120] combining each target correlation device under each target correlation hierarchy to generate a correlation device set corresponding to the current alarm device.
[0121] Optionally, the network device high-availability result determination apparatus can further comprise an index definition module, configured to: before determining target index collection information corresponding to a target correlation device in the correlation device set and a target checking rule corresponding to the target index collection information based on attribute information of the target correlation device and a preset index definition set, acquire a preset index collection requirement corresponding to a current application scenario, and analyze and process the preset index collection requirement to obtain a basic index set corresponding to the preset index collection requirement; wherein the basic index set comprises each basic index; perform information configuration on each basic index based on a preset index definition standard, to generate standard index information corresponding to each basic index, and combine and process each standard index information to generate the preset index definition set.
[0122] Optionally, the collection information determination module 302 can be specifically used for:
[0123] determining target standard index information corresponding to a target correlation device in the correlation device set based on attribute information of the target correlation device and a preset index definition set;
[0124] generating a target collection instruction corresponding to the target correlation device based on the attribute information and the target standard index information, and sending the target collection instruction to the target correlation device to obtain target index collection information corresponding to the target correlation device.
[0125] Optionally, the collection information determination module 302 can be specifically used for:
[0126] determining target index code information corresponding to the target standard index information based on a target index code field in the target standard index information;
[0127] Determine the inspection rule corresponding to the target index coding information as the target inspection rule corresponding to the target index collection information based on the target index coding information and the historical design state information set. The historical design state information set contains the inspection rule corresponding to each target standard index information.
[0128] Optionally, the target index category includes a deployment category, a configuration category, a state category, and a management category.
[0129] Optionally, the network device high availability result determination apparatus can further include a model construction module configured to, before determining the target configuration sub-item model corresponding to the target index collection information based on the target index category corresponding to the target index collection information, acquire a preset index collection requirement corresponding to a current application scenario, perform dimension category division on the preset index collection requirement according to a preset index dimension division rule to obtain an index category set corresponding to the preset index collection requirement, wherein the index category set contains each index category, determine a basic information set corresponding to each index category based on the index type of each index category and a preset standard attribute file, and perform modeling processing on each basic information set based on a preset index modeling standard to generate a configuration sub-item model corresponding to each index category.
[0130] Optionally, the standardization processing module 303 can be specifically configured to:
[0131] Determine the target sub-item information in the target index collection information based on the target configuration field in the target configuration sub-item model.
[0132] Fill in each target sub-item information as target configuration information corresponding to the target associated device based on the target field position of the target configuration field in the target configuration sub-item model.
[0133] Optionally, the inspection result determination module 304 can be specifically configured to: based on the result category corresponding to each target comparison result, classify and count the target comparison result corresponding to the full-amount target configuration information under the target index category to obtain the target high availability inspection result of the current alarm device under the target index category.
[0134] Optionally, the network device high availability result determination apparatus can further include a post-processing module configured to, after the target high availability inspection result of the current alarm device under the target index category is obtained by aggregating and processing the target comparison result corresponding to the full-amount target configuration information under the target index category, perform probability statistics on the target high availability inspection result to obtain a target association result of the current alarm device under the target index category, and send the target association result to a preset disposal module so that the preset disposal module generates a corresponding disposal strategy according to the target association result.
[0135] Optionally, the network device high-availability result determination apparatus can further include an instruction verification module configured to verify the target acquisition instruction according to a preset instruction verification rule before sending the target acquisition instruction to the target associated device, and filter out the target acquisition instruction that does not satisfy the preset instruction verification rule.
[0136] The network device high-availability result determination apparatus provided by the embodiment of the present application can execute the network device high-availability result determination method described in any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.
[0137] Figure 7 A structural schematic diagram of an electronic device 410 for implementing the network device high-availability result determination method of the embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (such as headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections, and their functions, as well as the software implemented by the electronic device, are merely examples and are not intended to limit the present application as described and / or claimed herein.
[0138] As shown in Figure 7 The electronic device 410 includes at least one processor 420, and a memory, such as a read-only memory (ROM) 430, a random access memory (RAM) 440, etc., which is communicatively connected to the at least one processor 420, wherein the memory stores a computer program executable by the at least one processor, and the processor 420 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 430 or loaded into the random access memory (RAM) 440 from the storage unit 490. 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 through a bus 450. An input / output (I / O) interface 460 is also connected to the bus 450.
[0139] A plurality of 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 magnetic 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 can be various general-purpose and / or special-purpose 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 special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 420 performs various methods and processes described above, such as the determination method of network device high availability results.
[0141] The method comprises:
[0142] Obtaining current device information corresponding to the current alarm device and a historical device connection relationship, and determining a set of associated devices corresponding to the current alarm device in the historical device connection relationship based on the current device information; wherein the historical device connection relationship contains an association relationship between the current alarm device and associated devices at each target associated level;
[0143] Based on the attribute information corresponding to the target associated device in the set of associated devices and a set of pre-set index definitions, determine target index collection information corresponding to the target associated device and a target check rule corresponding to the target index collection information;
[0144] Determine a target configuration sub-item model corresponding to the target index collection information based on a target index category corresponding to the target index collection information, and standardize the target index 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 check rule, perform rule comparison on the target configuration information to obtain a target comparison result corresponding to the target configuration information, and aggregate and process target comparison results corresponding to full-amount target configuration information under a target index category to obtain a target high availability check result of the current alarm device under the target index category.
[0146] In some embodiments, the method of determining network device high availability outcome can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 490. In some embodiments, parts or all of the computer program can be loaded and / or installed onto electronic device 410 via, e.g., ROM 430 and / or communication unit 4100. When the computer program is loaded onto RAM 440 and executed by processor 420, one or more steps of the method of determining network device high availability outcome as described above can be performed. Alternatively, in other embodiments, processor 420 can be configured to perform the method of determining network device high availability outcome by way of other means, e.g., with the aid of firmware.
[0147] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0148] Computer programs implementing methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0149] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0150] To provide for interaction with a user, the systems and techniques described here can 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 a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0151] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can 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] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can 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 large management difficulty and weak business scalability in traditional physical host and VPS service.
[0153] The embodiment of the present application further provides a computer program product comprising a computer program which, when executed by a processor, implements the method for determining network device high availability result as any of the embodiments of the present application.
[0154] The computer program code implementing the application can be written in one or more programming languages or combinations of languages including object oriented languages such as Java, Smalltalk, C++ or conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, 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 the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0155] Note that the above only describes the preferred embodiments of the present application and the applied technical principles. Those skilled in the art will understand that the present application 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 the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for determining high availability results of network devices, characterized in that, The method comprises the following steps: obtaining current device information corresponding to a current alarm device and a historical device connection relationship, and determining a set of associated devices corresponding to the current alarm device in the historical device connection relationship based on the current device information; wherein the historical device connection relationship comprises an association relationship between the current alarm device and associated devices at each target associated level; based on attribute information corresponding to a target associated device in the set of associated devices and a set of pre-defined indicators, determining target indicator collection information corresponding to the target associated device and a target checking rule corresponding to the target indicator collection information; wherein the target associated device refers to an associated device in the set of associated devices selected for indicator query; based on a target indicator category corresponding to the target indicator collection information, determining a target configuration sub-item model corresponding to the target indicator collection information, and based on the target configuration sub-item model, standardizing the target indicator collection information to obtain target configuration information corresponding to the target associated device; wherein a configuration sub-item refers to sub-item information corresponding to a basic indicator under each device configuration item; the target configuration sub-item model refers to a modeling model corresponding to a configuration sub-item of the target indicator category pre-constructed; based on the target checking rule, performing rule comparison on the target configuration information to obtain a target comparison result corresponding to the target configuration information, and processing the target comparison result corresponding to the full amount of target configuration information under the target indicator category to obtain a target high-availability checking result of the current alarm device under the target indicator category; wherein, before the step of determining the target indicator collection information corresponding to the target associated device and the target checking rule corresponding to the target indicator collection information based on the attribute information corresponding to the target associated device in the set of associated devices and the set of pre-defined indicators, the method further comprises the steps of: obtaining a pre-defined indicator collection requirement corresponding to a current application scenario, and processing the pre-defined indicator collection requirement to obtain a set of basic indicators corresponding to the pre-defined indicator collection requirement; wherein the set of basic indicators comprises each basic indicator; based on a pre-defined indicator definition standard, information configuration is performed on each basic indicator to generate standard indicator information corresponding to each basic indicator, and each standard indicator information is combined to generate the set of pre-defined indicators.
2. The method of claim 1, wherein, The target associated level comprises a single device level, a high-availability group level, a network region level, a network service level, a line level, and an application system level.
3. The method of claim 2, wherein, The step of determining the set of associated devices corresponding to the current alarm device in the historical device connection relationship based on the current device information comprises the steps of: determining a target connection relationship in the historical device connection relationship based on a level type of the target associated level; determining a target associated device corresponding to the current alarm device in the target connection relationship based on a target information field of the current device information; combining each target associated device under each target associated level to generate the set of associated devices corresponding to the current alarm device.
4. The method of claim 1, wherein, The step of 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 set of associated devices and the set of pre-defined indicators comprises the steps of: Determine target standard index information corresponding to the target associated device based on the attribute information of the target associated device in the set of associated devices and the set of predefined index definitions; Generate a target collection instruction corresponding to the target associated device based on the attribute information and the target standard index information, and send the target collection instruction to the target associated device to obtain target index collection information corresponding to the target associated device.
5. The method of claim 4, wherein, Determine a target inspection rule corresponding to the target index collection information based on the attribute information of the target associated device in the set of associated devices and the set of predefined index definitions, including: Determine target index code information corresponding to the target standard index information based on a target index code field in the target standard index information; Determine an inspection rule corresponding to the target index code information as a target inspection rule corresponding to the target index collection information based on the target index code information and a set of historical design state information; the set of historical design state information includes inspection rules corresponding to each target standard index information.
6. The method of claim 1, wherein, The target index category includes deployment, configuration, state, and management.
7. The method of claim 1, wherein, Before determining the target configuration sub-item model corresponding to the target index collection information based on the target index category corresponding to the target index collection information, the method further includes: Obtain a preset index collection requirement corresponding to a current application scenario, perform dimension category division on the preset index collection requirement according to a preset index dimension division rule to obtain a set of index categories corresponding to the preset index collection requirement; the set of index categories includes each index category; Determine a set of basic information corresponding to each index category based on an index type of each index category and a preset standard attribute file; Perform modeling processing on each set of basic information based on a preset index modeling standard to generate a configuration sub-item model corresponding to each index category.
8. The method of claim 1, wherein, The target configuration information corresponding to the target associated device is obtained by performing standardization processing on the target index collection information based on the target configuration sub-item model, including: Determine target sub-item information in the target index collection information based on a target configuration field in the target configuration sub-item model; Fill in each target sub-item information as target configuration information corresponding to the target associated device based on a target field position of the target configuration field in the target configuration sub-item model.
9. The method of claim 1, wherein, The target high-availability inspection result of the current alarm device under the target index category is obtained by performing summary processing on a target comparison result corresponding to the full-amount target configuration information under the target index category, including: Classify and count the target comparison result corresponding to the full-amount target configuration information under the target index category based on a result category corresponding to each target comparison result to obtain the target high-availability inspection result of the current alarm device under the target index category.
10. The method of claim 1, wherein, After obtaining the target high-availability inspection result of the current alarm device under the target index category by performing summary processing on the target comparison result corresponding to the full-amount target configuration information under the target index category, the method further includes: The target high-availability check result is subjected to probability statistics to obtain a target association result of the current alarm device under a target index category, and the target association result is sent to a preset disposal module, so that the preset disposal module generates a corresponding disposal strategy according to the target association result.
11. The method of claim 4, wherein, Before the target collection instruction is sent to the target association device, the method further includes: The target collection instruction is subjected to check processing according to a preset command check rule, and a target collection instruction that does not satisfy the preset command check rule is filtered out.
12. A network device high availability outcome determination apparatus, comprising: It includes: The association device determination module is configured to obtain current device information corresponding to the current alarm device and a historical device connection relationship, and determine a set of associated devices 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 an association relationship between the current alarm device and associated devices at each target association level. The collection information determination module is configured to determine target index collection information corresponding to a target associated device and a target check rule corresponding to the target index collection information based on attribute information corresponding to the target associated device in the set of associated devices and a preset index definition set, wherein the target associated device refers to an associated device in the set of associated devices that is selected for index query. The standardization processing module is configured to determine a target configuration sub-item model corresponding to the target index collection information based on a target index category corresponding to the target index collection information, and standardize the target index collection information based on the target configuration sub-item model to obtain target configuration information corresponding to the target associated device, wherein a configuration sub-item refers to sub-item information corresponding to a basic index under each device configuration item, and a target configuration sub-item model refers to a modeling model corresponding to a configuration sub-item of a target index category that is constructed in advance. The check result determination module is configured to compare the target configuration information based on the target check rule to obtain a target comparison result corresponding to the target configuration information, and aggregate and process target comparison results corresponding to full-amount target configuration information under a target index category to obtain a target high-availability check result of the current alarm device under the target index category. The device further includes an index definition module configured to, before the determination of the target index collection information corresponding to the target associated device and the target check rule corresponding to the target index collection information based on the attribute information corresponding to the target associated device in the set of associated devices and the preset index definition set, obtain a preset index collection requirement corresponding to a current application scenario, analyze and process the preset index collection requirement to obtain a set of basic indexes corresponding to the preset index collection requirement, wherein the set of basic indexes includes each basic index, each basic index is subjected to information configuration based on a preset index definition standard to generate standard index information corresponding to each basic index, and the standard index information is combined to generate the preset index definition set.
13. An electronic device, comprising: Computer programs stored on a memory and run on a processor, comprising a memory, a processor and computer programs stored on the memory and run on the processor, characterized in that the processor implements the method for determining the high-availability result of a network device as claimed in any one of claims 1-11 when running the computer programs.
14. A computer readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method for determining the high-availability result of a network device as claimed in any one of claims 1-11.
15. A computer program product comprising a computer program, characterized in that, The computer programs are executed by the processor to implement the method for determining the high-availability result of a network device as claimed in any one of claims 1-11.
Citation Information
Patent Citations
Database monitoring method, device and equipment and readable storage medium
CN109726073A
Alarm method and device, electronic equipment and medium
CN117493133A