Management method and device for cross-brand switch device, and medium
By automatically parsing and adapting the private MIB and configuration files of the switches, and combining SSH and SNMP protocols, unified management and monitoring of cross-brand switches are achieved, solving the management complexity problem of different brand switch devices and improving the compatibility and efficiency of network management.
Patent Information
- Application Number
- CN202411501513.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-10-25
AI Technical Summary
How to effectively manage and monitor switch devices from different brands, especially given the challenges of traditional management software failing to provide global management, configuration translation failing to achieve integrated monitoring and maintenance, and the need for manual maintenance and updates to the translation library.
By importing the switch's private MIB into the MIB analysis module, using OID keywords to match monitoring metrics, and determining the function configuration lines through the configuration file parsing module, the system combines SSH protocol for configuration interaction and SNMP protocol for monitoring data collection, thus building a southbound communication channel to achieve unified management and monitoring of cross-brand switches.
It enables unified configuration and monitoring of cross-brand switches, improving management efficiency, reducing management costs and technical difficulty, enhancing the compatibility and flexibility of network management, and supporting automatic resolution and adaptation of multiple brands.
Smart Images

Figure CN119383071A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of switch equipment, and in particular to a management method, equipment and medium for cross-brand switch equipment. Background Art
[0002] In today's highly information-based society, network technology is changing with each passing day, and the application of network equipment, especially switches, is becoming more and more widespread. With the continuous expansion and upgrading of enterprise networks, switch devices of different brands are widely used in various network environments. However, this also brings a significant problem: how to effectively manage and monitor these switch devices from different brands?
[0003] Traditionally, each brand of switch equipment is equipped with its own management software, which is usually able to manage the same brand of equipment well. However, when there are multiple brands of switches in the network environment, the situation becomes complicated. Since switches of different brands use different communication protocols, management interfaces and configuration methods, compatibility between them becomes a prominent issue. Network administrators have to face the use of multiple management software to manage switches of different brands separately, which not only increases the complexity of management, but also reduces work efficiency.
[0004] In addition, although some existing solutions attempt to achieve unified management of multi-brand switches through command translation or adaptation, these solutions often have many limitations. For example, they may only be able to operate on a single device, making it difficult to achieve global management in a networking environment; or they may only be able to perform configuration translation, but cannot achieve integrated management of monitoring and operation and maintenance. At the same time, these solutions usually require manual maintenance and updating of translation libraries or adaptation libraries. When new devices are added, a lot of manual configuration and parsing work is required, which undoubtedly increases management costs and maintenance difficulties. Summary of the invention
[0005] The embodiments of the present application provide a method, device and medium for managing cross-brand switch devices, so as to solve the following technical problem: how to effectively manage and monitor these switch devices from different brands.
[0006] In a first aspect, an embodiment of the present application provides a management method for cross-brand switch devices, characterized in that the method includes: importing the private MIB of the brand switch to be managed into a preset MIB analysis module, and matching the private MIB through preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; importing the switch configuration file of the brand switch to be managed into a preset configuration file parsing module, and determining the corresponding function configuration line in the switch configuration file through the preset configuration keyword to match the function configuration line with the corresponding function item entry in the preset configuration library, and forming an atomic configuration if the match is successful; storing the correspondence between the device model of the brand switch to be managed and the indicator to be monitored, the correspondence between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch in the configuration library management module; constructing a southbound communication channel based on the ssh protocol and the snmp protocol; wherein the ssh protocol is used to configure interactive operations, and the snmp protocol is used for monitoring data collection.
[0007] In one implementation of the present application, a private MIB is matched with a preset OID keyword to identify the indicator to be monitored, specifically including: parsing the private MIB through a MIB analysis module to extract the OID information in the file; matching the OID information with the preset OID keyword to filter out the OID monitoring items corresponding to the OID keyword; and determining the corresponding indicator to be monitored based on a preset OID monitoring item mapping table.
[0008] In one implementation of the present application, after matching the private MIB through preset OID keywords to identify the indicators to be monitored, the method also includes: sending the matching results to the front-end interactive interface for confirmation by the monitoring personnel; if the monitoring personnel determines that the matching results need to be adjusted, providing a manual adjustment interaction item for the matching results.
[0009] In one implementation of the present application, a corresponding function configuration line is determined in a switch configuration file through a preset configuration keyword, specifically including: scanning the imported switch configuration file line by line through a configuration file parsing module, and using a regular expression or a string matching algorithm to determine a configuration line that matches the configuration keyword; when it is determined that there is a matching configuration line corresponding to the configuration keyword, determining the function configuration line corresponding to the configuration keyword of the matching configuration behavior.
[0010] In one implementation of the present application, a function configuration line is matched with a corresponding function item entry in a preset configuration library, and an atomic configuration is formed if the match is successful, specifically comprising: comparing the extracted function configuration line with the function item entries in the preset configuration library one by one; if the comparison is successful, the function configuration line is associated with the corresponding function item entry and stored to form an atomic configuration; wherein the atomic configuration is an indivisible minimum configuration unit, which is directly applied to the switch device.
[0011] In one implementation of the present application, the method further includes: when the function configuration line fails to match the corresponding function item entry in the preset configuration library, providing for adding an atomic configuration to manually adjust the interaction item.
[0012] In one implementation of the present application, a southbound communication channel is constructed based on the SSH protocol and the SNMP protocol, specifically including: using the SSH protocol as a configuration distribution channel, completing configuration interaction operations by sending configuration commands and receiving confirmation information returned by the switch; using the SNMP protocol as a monitoring data collection channel, completing monitoring data collection by sending monitoring requests and receiving monitoring data returned by the switch.
[0013] In one implementation of the present application, the method further includes: setting an independent end character library and a success or failure character matching library for each brand switch to be managed, so as to accurately judge the command execution status during the configuration interaction and monitoring data collection process.
[0014] In a second aspect, an embodiment of the present application further provides a management device for cross-brand switch devices, characterized in that the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: import the private MIB of the brand switch to be managed into a preset MIB analysis module, and match the private MIB through a preset OID keyword to identify the indicator to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; import the private MIB of the brand switch to be managed into a preset MIB analysis module, and match the private MIB through a preset OID keyword to identify the indicator to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; The switch configuration file of the managed brand switch is imported into the preset configuration file parsing module, and the corresponding function configuration line is determined in the switch configuration file through the preset configuration keyword to match the function configuration line with the corresponding function item entry in the preset configuration library. If the match is successful, an atomic configuration is formed; the correspondence between the device model of the brand switch to be managed and the indicator to be monitored, the correspondence between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module; a southbound communication channel is constructed based on the SSH protocol and the SNMP protocol; the SSH protocol is used to configure interactive operations, and the SNMP protocol is used for monitoring data collection.
[0015] In the third aspect, the embodiment of the present application also provides a non-volatile computer storage medium for the management of cross-brand switch devices, storing computer executable instructions, characterized in that the computer executable instructions are set to: import the private MIB of the brand switch to be managed into a preset MIB analysis module, and match the private MIB through a preset OID keyword to identify the indicator to be monitored; wherein the OID keyword includes at least: temperature, cpu*, mem*, fan, power; import the switch configuration file of the brand switch to be managed into a preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file through the preset configuration keyword to match the function configuration line with the corresponding function item entry in the preset configuration library, and if the match is successful, an atomic configuration is formed; the correspondence between the device model of the brand switch to be managed and the indicator to be monitored, the correspondence between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module; a southbound communication channel is constructed based on the ssh protocol and the snmp protocol; wherein the ssh protocol is used to configure interactive operations, and the snmp protocol is used for monitoring data collection.
[0016] The embodiment of the present application provides a method, device and medium for managing cross-brand switch devices, which has the following beneficial effects:
[0017] 1. Enhanced compatibility and flexibility: This application can manage switches of multiple brands, breaking the limitation that traditional network management can only manage its own brand of equipment, and significantly improving the compatibility and flexibility of network management. Through the device MIB analysis module and configuration file parsing module, this application can automatically parse and adapt the private MIB and configuration files of switches of different brands, reducing the workload of manual configuration and reducing management costs.
[0018] 2. Achieve unified configuration and monitoring: This application has configuration and monitoring capabilities, can uniformly send configurations to all managed switches, and uniformly collect monitoring data, thus achieving centralization and unification of network management, which not only improves management efficiency, but also ensures the consistency and stability of the network.
[0019] 3. Shorten the management cycle and reduce the difficulty: This application automatically parses private mib and configuration by importing files, and allows manual intervention and correction, which greatly shortens the management cycle of new brand switch equipment. At the same time, each brand has an independent end character library and success or failure character matching library, so that there is no need to recompile code and release software when managing third-party devices, reducing technical difficulty and operation and maintenance costs.
[0020] 4. Improve versatility and scalability: This application uses the most common ssh and snmp basic protocols as the southbound channel, which has strong versatility and can manage all devices that support these protocols. This not only improves the scope of application of this application, but also provides a solid foundation for its future scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 A flow chart of a method for managing cross-brand switch devices provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the internal structure of a management device for cross-brand switch devices provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0025] The embodiments of the present application provide a method, device and medium for managing cross-brand switch devices, so as to solve the following technical problem: how to effectively manage and monitor these switch devices from different brands.
[0026] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0027] Figure 1 A flow chart of a method for managing cross-brand switch devices provided in an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides a method for managing a cross-brand switch device, which specifically includes the following steps:
[0028] Step 101: Import the private MIB of the brand switch to be managed into a preset MIB analysis module, and match the private MIB with a preset OID keyword to identify the indicator to be monitored.
[0029] In one embodiment of the present application, the OID keywords include at least: temperature, cpu*, mem*, fan, power.
[0030] In one embodiment of the present application, in order to achieve the management of cross-brand switch devices, it is first necessary to import the private MIB of the brand switch to be managed into a preset MIB analysis module, and match the private MIB through the preset OID keyword to identify the indicators to be monitored.
[0031] Specifically, the private MIB is parsed through the MIB analysis module to extract the OID information in the file; the OID information is matched with the preset OID keyword to filter out the OID monitoring items corresponding to the OID keyword; and the corresponding indicators to be monitored are determined based on the preset OID monitoring item mapping table.
[0032] Furthermore, after matching the private MIB with preset OID keywords to identify the indicators to be monitored, the method also includes: sending the matching results to the front-end interactive interface for confirmation by the monitoring personnel; if the monitoring personnel determines that the matching results need to be adjusted, providing a manual adjustment interaction item for the matching results.
[0033] In one embodiment, the private MIB provided by the brand switch to be managed is parsed through the MIB analysis module. This process aims to extract key OID (Object Identifier) information from the private MIB. These OID information are the basis for subsequent identification of monitoring indicators. After successfully extracting the OID information, the OID information is matched with the preset OID keywords. These preset OID keywords are based on the in-depth understanding and analysis of the monitoring indicators of switches of different brands, and they can accurately reflect the OID characteristics corresponding to various monitoring indicators. Through matching, the OID monitoring items corresponding to the OID keywords are screened out, and these monitoring items will serve as the basis for subsequent monitoring tasks. Based on the screened OID monitoring items, the corresponding indicators to be monitored are further determined through the preset OID monitoring item mapping table. This mapping table is carefully constructed by us in the previous work, and it contains the corresponding relationship between various OID monitoring items and specific monitoring indicators. By looking up the table, the OID monitoring items can be quickly converted into readable and practical monitoring indicators. After identifying the indicators to be monitored, the matching results are sent to the front-end interactive interface for monitoring personnel to confirm. The purpose of this step is to ensure that the identification results meet the actual needs of monitoring personnel, and it also gives monitoring personnel an opportunity to verify and adjust the identification results. If the monitoring personnel find that the matching results need to be adjusted during the confirmation process, the matching result manual adjustment interactive item is provided to support the monitoring personnel to make modifications. The design of this interactive item fully considers the actual needs of monitoring personnel, allowing them to easily adjust and optimize the matching results without leaving the front-end interactive interface.
[0034] Step 102: import the switch configuration file of the brand switch to be managed into a preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file through the preset configuration keyword, so as to match the function configuration line with the corresponding function item entry in the preset configuration library, and form an atomic configuration if the match is successful.
[0035] In one embodiment of the present application, in order to achieve the management of cross-brand switch devices, it is also necessary to import the switch configuration file of the brand switch to be managed into a preset configuration file parsing module.
[0036] Furthermore, a corresponding function configuration line is determined in the switch configuration file through a preset configuration keyword.
[0037] Specifically, the imported switch configuration file is scanned line by line through the configuration file parsing module, and the configuration line matching the configuration keyword is determined by using a regular expression or a string matching algorithm; when it is determined that there is a matching configuration line corresponding to the configuration keyword, the function configuration line corresponding to the matching configuration behavior configuration keyword is determined.
[0038] Furthermore, the function configuration line is matched with the corresponding function item entry in the preset configuration library, and an atomic configuration is formed if the match is successful.
[0039] Specifically, the extracted function configuration lines are compared one by one with the function item entries in the preset configuration library; if the comparison is successful, the function configuration lines are associated with the corresponding function item entries and stored to form an atomic configuration; wherein the atomic configuration is the smallest indivisible configuration unit and is directly applied to the switch device.
[0040] In one embodiment of the present application, the method further includes: when the function configuration line fails to match the corresponding function item entry in the preset configuration library, providing adding atomic configuration to manually adjust the interaction item.
[0041] In one embodiment, the switch configuration file (such as startup.conf, etc.) provided by the brand switch to be managed is imported into the preset configuration file parsing module. This step is the basis for subsequent configuration parsing and adaptation. After the switch configuration file is successfully imported, the configuration file is scanned line by line through the preset configuration keyword to determine the corresponding function configuration line. This process mainly relies on regular expressions or string matching algorithms. The matching algorithm can accurately find the configuration line that matches the configuration keyword. When it is determined that there is a matching configuration line corresponding to the configuration keyword, it is considered that the matching configuration line is the function configuration line corresponding to the configuration keyword. After the function configuration line is determined, these function configuration lines are matched with the corresponding function item entries in the preset configuration library. The preset configuration library is carefully constructed in the preliminary work. It contains the key information of various switch configurations and can accurately reflect the characteristics of the configuration styles of switches of different brands. Through matching, the function configuration line can be associated with the corresponding function item entry and stored to form an atomic configuration. The atomic configuration is the smallest configuration unit that cannot be divided. It can be directly applied to the switch device without additional splitting or combination. In the case of successful matching, the atomic configuration is formed and stored in the configuration library management module. The configuration library management module includes three components: monitoring management, atomic configuration, and mapping management, which together constitute the core part of our invention. Among them, the role of the atomic configuration component is to store the correspondence between the atomic configuration and the device model, so that the corresponding configuration information can be quickly located during the subsequent configuration distribution or monitoring data collection. However, in actual applications, it may be encountered that the function configuration line does not match the corresponding function item entry in the preset configuration library. At this time, it is provided to add the atomic configuration manual adjustment interaction item to support monitoring personnel or technicians to manually add new atomic configurations.
[0042] Step 103: store the corresponding relationship between the device model of the brand switch to be managed and the indicator to be monitored, the corresponding relationship between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch in the configuration library management module.
[0043] In one embodiment of the present application, in order to achieve the management of cross-brand switch devices, it is also necessary to store the correspondence between the device model of the brand switch to be managed and the indicator to be monitored, the correspondence between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch in the configuration library management module.
[0044] In one embodiment, after the private MIB is parsed by the MIB analysis module and the indicators to be monitored are identified, the corresponding relationship between the device model of the brand switch to be managed and these indicators to be monitored is stored in the monitoring management component of the configuration library management module. After the switch configuration file is parsed by the configuration file parsing module and the atomic configuration is formed, these atomic configurations and the corresponding device models are stored in the atomic configuration component of the configuration library management module. The atomic configuration is the smallest indivisible configuration unit, which directly reflects the configuration characteristics of the switch device. In addition, in order to meet the diverse needs of query commands for switches of different brands in actual applications, a mapping relationship storage function between a custom switch query command and a specific switch configuration is also provided. Specifically, the user can customize the switch query command in the mapping management component of the configuration library management module according to his own needs, and store the mapping relationship between it and the specific switch configuration. In this way, when performing a subsequent query operation, the user only needs to enter a custom query command, and the system can automatically parse and execute the corresponding switch query operation, which greatly improves the query efficiency and accuracy. As one of the core parts of this application, the configuration library management module includes three components: monitoring management, atomic configuration, and mapping management, which together realize the unified management and rapid query of configuration information of switches of different brands. By storing the correspondence between device models and indicators to be monitored, the correspondence between atomic configurations and device models, and the mapping relationship between custom switch query commands and specific switch configurations, the configuration library management module not only improves the efficiency and accuracy of configuration management, but also provides strong technical support for subsequent configuration distribution, monitoring data collection, and troubleshooting.
[0045] Step 104: Construct a southbound communication channel based on the SSH protocol and the SNMP protocol.
[0046] In one embodiment of the present application, the ssh protocol is used to configure interactive operations, and the snmp protocol is used to collect monitoring data.
[0047] In one embodiment of the present application, in order to achieve the management of cross-brand switch devices, it is also necessary to build a southbound communication channel based on the ssh protocol and the snmp protocol.
[0048] Specifically, the SSH protocol is used as the configuration distribution channel, and the configuration interaction operation is completed by sending configuration commands and receiving confirmation information returned by the switch; the SNMP protocol is used as the monitoring data collection channel, and monitoring data collection is completed by sending monitoring requests and receiving monitoring data returned by the switch.
[0049] In one embodiment of the present application, the method further includes: setting an independent end character library and a success or failure character matching library for each brand switch to be managed, so as to accurately judge the command execution status during the configuration interaction and monitoring data collection process.
[0050] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, this application embodiment also provides a management device for cross-brand switch devices, and its structure is as follows: Figure 2 shown.
[0051] Figure 2 A schematic diagram of the internal structure of a management device for a cross-brand switch device provided in an embodiment of the present application. Figure 2 As shown, the device includes:
[0052] at least one processor 201;
[0053] and, a memory 202 communicatively connected to the at least one processor;
[0054] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:
[0055] Import the private MIB of the brand switch to be managed into the preset MIB analysis module, and match the private MIB with the preset OID keywords to identify the indicators to be monitored; the OID keywords include at least: temperature, cpu*, mem*, fan, power;
[0056] Import the switch configuration file of the brand switch to be managed into the preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file through the preset configuration keyword, so as to match the function configuration line with the corresponding function item entry in the preset configuration library, and form an atomic configuration if the match is successful;
[0057] The corresponding relationship between the device model of the brand switch to be managed and the indicator to be monitored, the corresponding relationship between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module;
[0058] A southbound communication channel is built based on the SSH protocol and the SNMP protocol; the SSH protocol is used to configure interactive operations, and the SNMP protocol is used to collect monitoring data.
[0059] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for managing cross-brand switch devices stores computer executable instructions, wherein the computer executable instructions are set as follows:
[0060] Import the private MIB of the brand switch to be managed into the preset MIB analysis module, and match the private MIB with the preset OID keywords to identify the indicators to be monitored; the OID keywords include at least: temperature, cpu*, mem*, fan, power;
[0061] Import the switch configuration file of the brand switch to be managed into the preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file through the preset configuration keyword, so as to match the function configuration line with the corresponding function item entry in the preset configuration library, and form an atomic configuration if the match is successful;
[0062] The corresponding relationship between the device model of the brand switch to be managed and the indicator to be monitored, the corresponding relationship between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module;
[0063] A southbound communication channel is built based on the SSH protocol and the SNMP protocol; the SSH protocol is used to configure interactive operations, and the SNMP protocol is used to collect monitoring data.
[0064] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0065] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.
[0066] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0067] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0070] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0071] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0072] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0073] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0074] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for managing cross-brand switch devices, characterized in that: The method comprises: Import the private MIB of the brand switch to be managed into the preset MIB analysis module, and match the private MIB with the preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; Import the switch configuration file of the brand switch to be managed into the preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file by using the preset configuration keyword, so as to match the function configuration line with the corresponding function item entry in the preset configuration library, and form an atomic configuration if the match is successful; The corresponding relationship between the device model of the brand switch to be managed and the indicator to be monitored, the corresponding relationship between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module; A southbound communication channel is constructed based on the SSH protocol and the SNMP protocol; wherein the SSH protocol is used to configure interactive operations, and the SNMP protocol is used to collect monitoring data.
2. A method for managing cross-brand switch devices according to claim 1, characterized in that: The private MIB is matched by a preset OID keyword to identify the indicator to be monitored, specifically including: Parsing the private MIB through the MIB analysis module to extract the OID information in the file; Match the OID information with a preset OID keyword to filter out the OID monitoring items corresponding to the OID keyword; Determine the corresponding indicator to be monitored based on the preset OID monitoring item mapping table.
3. A method for managing cross-brand switch devices according to claim 1, characterized in that: After matching the private MIB by a preset OID keyword to identify the indicator to be monitored, the method further includes: Send the matching results to the front-end interactive interface for monitoring personnel to confirm; When the monitoring personnel determine that the matching result needs to be adjusted, a matching result manual adjustment interaction item is provided.
4. The method for managing cross-brand switch devices according to claim 1, characterized in that: Determining the corresponding function configuration line in the switch configuration file by using the preset configuration keyword specifically includes: Scanning the imported switch configuration file line by line through the configuration file parsing module, and determining the configuration line matching the configuration keyword by using a regular expression or a string matching algorithm; When it is determined that there is a matching configuration row corresponding to the configuration keyword, the matching configuration row is determined to be a function configuration row corresponding to the configuration keyword.
5. The method for managing cross-brand switch devices according to claim 1, characterized in that: The function configuration line is matched with the corresponding function item entry in the preset configuration library. If the match is successful, an atomic configuration is formed, which specifically includes: Compare the extracted function configuration lines with the function item entries in the preset configuration library one by one; In case of successful comparison, the function configuration row is associated with the corresponding function item entry and stored to form an atomic configuration; wherein the atomic configuration is an indivisible minimum configuration unit and is directly applied to the switch device.
6. A method for managing cross-brand switch devices according to claim 1, characterized in that: The method further comprises: When the function configuration line fails to match the corresponding function item entry in the preset configuration library, adding atomic configuration to manually adjust the interaction item is provided.
7. A method for managing cross-brand switch devices according to claim 1, characterized in that: The southbound communication channel is built based on the SSH protocol and the SNMP protocol, including: The SSH protocol is used as the configuration delivery channel to complete the configuration interaction operation by sending configuration commands and receiving confirmation information returned by the switch; The SNMP protocol is used as the monitoring data collection channel, and monitoring data collection is completed by sending monitoring requests and receiving monitoring data returned by the switch.
8. The method for managing cross-brand switch devices according to claim 1, characterized in that: The method further comprises: Set up an independent end character library and success or failure character matching library for each brand switch to be managed, so as to accurately judge the command execution status during configuration interaction and monitoring data collection.
9. A management device for cross-brand switch devices, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Import the private MIB of the brand switch to be managed into the preset MIB analysis module, and match the private MIB with the preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; Import the switch configuration file of the brand switch to be managed into the preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file by using the preset configuration keyword, so as to match the function configuration line with the corresponding function item entry in the preset configuration library, and form an atomic configuration if the match is successful; The corresponding relationship between the device model of the brand switch to be managed and the indicator to be monitored, the corresponding relationship between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module; A southbound communication channel is constructed based on the SSH protocol and the SNMP protocol; wherein the SSH protocol is used to configure interactive operations, and the SNMP protocol is used to collect monitoring data.
10. A non-volatile computer storage medium for managing cross-brand switch devices, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Import the private MIB of the brand switch to be managed into the preset MIB analysis module, and match the private MIB with the preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; Import the switch configuration file of the brand switch to be managed into the preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file by using the preset configuration keyword, so as to match the function configuration line with the corresponding function item entry in the preset configuration library, and form an atomic configuration if the match is successful; The corresponding relationship between the device model of the brand switch to be managed and the indicator to be monitored, the corresponding relationship between the atomic configuration and the device model, and the mapping relationship between the custom switch query command and the specific configuration of the switch are stored in the configuration library management module; A southbound communication channel is constructed based on the SSH protocol and the SNMP protocol; wherein the SSH protocol is used to configure interactive operations, and the SNMP protocol is used to collect monitoring data.
Citation Information
Patent Citations
Method for MIB management of multi-vendor equipment and device
CN101582806A
A method for configuring uniformly different types of intelligent electronic devices and the system thereof
CN104394008A
Data processing method and apparatus, electronic device and storage medium
CN109672562A
Switch network monitoring method and device, computer equipment and storage medium
CN109921928A
Method suitable for automatically matching switch model with monitoring template
CN112702189A
Cited By
Switch configuration method, device and equipment and readable storage medium
CN120811885A