A method, device and medium for onboarding across brand switch devices
By analyzing the MIB and parsing the configuration files of cross-brand switch devices, and combining SSH and SNMP protocols, unified management and monitoring of cross-brand switches were achieved. This solved the problems of management complexity and high cost of different brand switch devices, and improved management efficiency and network stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR NETWORK TECH (SHANDONG) CO LTD
- Filing Date
- 2024-10-25
- Publication Date
- 2026-06-19
AI Technical Summary
How to effectively manage and monitor switch devices from different brands, especially in existing solutions where traditional management software cannot achieve global management, configuration translation cannot achieve integrated monitoring and operation and maintenance, and manual maintenance and updates are required, thus addressing the issues of management complexity and high cost.
By importing the private MIBs of the switches to be managed into the MIB analysis module, using OID keywords to match monitoring indicators, and combining the configuration file parsing module to identify function configuration lines, the module uses the SSH protocol for configuration interaction and the SNMP protocol for monitoring data collection to build a southbound communication channel, thereby achieving unified management and monitoring of switches across brands.
It enables unified configuration and monitoring of cross-brand switches, improving management efficiency, reducing management costs, shortening the management cycle, enhancing the compatibility and flexibility of network management, and possessing versatility and scalability.
Smart Images

Figure CN119383071B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of switch equipment technology, and in particular to a method, device and medium for managing cross-brand switch equipment. Background Technology
[0002] In today's highly information-driven society, network technology is advancing rapidly, and network equipment, especially switches, is becoming increasingly widely used. As enterprise networks continue to expand and upgrade, switches from different brands are being used extensively in various network environments. However, this also brings a significant problem: how to effectively manage and monitor these switches from different brands?
[0003] Traditionally, each brand of switch comes with its own management software, which typically manages devices from the same brand well. However, the situation becomes complex when multiple brands of switches exist in a network environment. Because different brands of switches use different communication protocols, management interfaces, and configuration methods, compatibility becomes a significant issue. Network administrators are forced to use multiple management software programs to manage switches from different brands, which not only increases management complexity but also reduces efficiency.
[0004] Furthermore, while some existing solutions attempt to achieve unified management of multi-brand switches through command translation or adaptation, these solutions often have numerous limitations. For example, they may only operate on a single device, making it difficult to achieve global management in a network environment; or they may only perform configuration translation, failing to achieve integrated monitoring and maintenance management. At the same time, these solutions typically require manual maintenance and updates to translation or adaptation libraries. When new devices are added, a significant amount of manual configuration and parsing work is required, which undoubtedly increases management costs and maintenance complexity. Summary of the Invention
[0005] This application provides a method, device, and medium for managing cross-brand switch devices, in order to solve the following technical problem: how to effectively manage and monitor these switch devices from different brands.
[0006] In a first aspect, embodiments of this application provide a method for managing cross-brand switch devices, characterized in that the method includes: importing the private MIB of the switch to be managed into a preset MIB analysis module, and matching the private MIB with 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 switch to be managed into a preset configuration file parsing module, and determining the corresponding function configuration line in the switch configuration file with preset configuration keywords, so as to match the function configuration line with the corresponding function item in the preset configuration library, and if the match is successful, an atomic configuration is formed; storing the correspondence between the device model of the switch to be managed and the indicators 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; and constructing a southbound communication channel based on the SSH protocol and the SNMP protocol; wherein, the SSH protocol is used for configuration interactive operations, and the SNMP protocol is used for monitoring data collection.
[0007] In one implementation of this application, the private MIB is matched with preset OID keywords to identify the indicators to be monitored. Specifically, this includes: parsing the private MIB through a MIB analysis module to extract OID information from the file; matching the OID information with preset OID keywords to filter out OID monitoring items corresponding to the OID keywords; and determining the corresponding indicators to be monitored based on a preset OID monitoring item mapping table.
[0008] In one implementation of this application, after matching the private MIB with preset OID keywords to identify the indicators to be monitored, the method further includes: sending the matching results to the front-end interactive interface for confirmation by monitoring personnel; and providing manual adjustment interaction items for the matching results if the monitoring personnel determine that the matching results need to be adjusted.
[0009] In one implementation of this application, the corresponding functional configuration line in the switch configuration file is determined by a preset configuration keyword. Specifically, this includes: scanning the imported switch configuration file line by line through the configuration file parsing module, and using regular expressions or string matching algorithms to determine the configuration line that matches the configuration keyword; when it is determined that there is a matching configuration line corresponding to the configuration keyword, the matching configuration line is determined to be the functional configuration line corresponding to the configuration keyword.
[0010] In one implementation of this application, the function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed. Specifically, this includes: comparing the extracted function configuration line with the function item in the preset configuration library one by one; if the match is successful, associating and storing the function configuration line with the corresponding function item to form an atomic configuration; wherein, the atomic configuration is the smallest indivisible configuration unit and is directly applied to the switch device.
[0011] In one implementation of this application, the method further includes: when the function configuration line fails to match the corresponding function item in the preset configuration library, providing an interactive item for manually adjusting atomic configuration.
[0012] In one implementation of this application, a southbound communication channel is constructed based on the SSH and SNMP protocols. Specifically, this includes: using the SSH protocol as a configuration distribution channel to complete configuration interaction operations by sending configuration commands and receiving confirmation information returned by the switch; and using the SNMP protocol as a monitoring data acquisition channel to complete monitoring data acquisition by sending monitoring requests and receiving monitoring data returned by the switch.
[0013] In one implementation of this application, the method further includes: setting up an independent end-of-command library and a success or failure character matching library for each brand switch to be managed, so as to accurately determine the command execution status during configuration interaction and monitoring data collection.
[0014] Secondly, embodiments of this application also provide a management device for cross-brand switch equipment, characterized in that the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: import the private MIB of the switch to be managed into a preset MIB analysis module, and match the private MIB using preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; and import the private MIB of the switch to be managed into a preset MIB analysis module, and match the private MIB using preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, power; and import the private MIB of the switch to be managed into a preset MIB analysis module. The configuration files of the managed brand switches are imported into a preset configuration file parsing module. Preset configuration keywords are used to determine the corresponding function configuration lines in the switch configuration files. These function configuration lines are then matched with corresponding function items in a preset configuration library. Successful matches result in atomic configurations. The mapping relationships between the device models of the managed brand switches and the monitored metrics, the atomic configurations and device models, and the custom switch query commands and specific switch configurations are stored in the configuration library management module. A southbound communication channel is built based on the SSH and SNMP protocols; the SSH protocol is used for configuration interactive operations, and the SNMP protocol is used for monitoring data collection.
[0015] Thirdly, this application also provides a non-volatile computer storage medium for the management of cross-brand switch devices, storing computer-executable instructions. The computer-executable instructions are characterized by: importing the private MIB of the switch to be managed into a preset MIB analysis module, and matching the private MIB using preset OID keywords to identify the indicators to be monitored; wherein the OID keywords include at least: temperature, cpu*, mem*, fan, and power; importing the switch configuration file of the switch to be managed into a preset configuration file parsing module, and determining the corresponding function configuration line in the switch configuration file using preset configuration keywords, so as to match the function configuration line with the corresponding function item in the preset configuration library, and forming an atomic configuration if the match is successful; storing the correspondence between the device model of the switch to be managed and the 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 in the configuration library management module; and constructing a southbound communication channel based on the SSH and SNMP protocols; wherein the SSH protocol is used for configuration interactive operations, and the SNMP protocol is used for monitoring data collection.
[0016] 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 from multiple brands, breaking the limitation of traditional network management systems that can only manage their own brand of equipment, 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 MIBs and configuration files of different brands of switches, reducing the workload of manual configuration and lowering management costs.
[0018] 2. Achieve unified configuration and monitoring: This application has configuration and monitoring capabilities, and can uniformly distribute configurations to all managed switches and uniformly collect monitoring data, realizing the centralization and unification of network management. This not only improves management efficiency, but also ensures network consistency and stability.
[0019] 3. Shortened Management Cycle and Reduced Complexity: This application automatically parses private MIBs and configurations by importing files and allows for manual intervention and correction, significantly shortening the management cycle for new brand switch devices. Furthermore, each brand has its own independent end-of-line character library and success / failure character matching library, eliminating the need to recompile code and re-release software when managing third-party devices, thus reducing technical difficulty and operational costs.
[0020] 4. Improved versatility and scalability: This application adopts 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 applicability of this application, but also provides a solid foundation for its future scalability. Attached Figure Description
[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0022] Figure 1 A flowchart illustrating a method for managing cross-brand switch devices provided in this application embodiment;
[0023] Figure 2 This is a schematic diagram of the internal structure of a management device for cross-brand switch equipment, provided as an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] This application provides a method, device, and medium for managing cross-brand switch devices, in order to solve the following technical problem: how to effectively manage and monitor these switch devices from different brands.
[0026] The technical solutions proposed in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0027] Figure 1 This application provides a flowchart of a method for managing cross-brand switch devices. Figure 1 As shown in the figure, the present application provides a method for managing cross-brand switch devices, which specifically includes the following steps:
[0028] Step 101: Import the private MIB of the switch to be managed into the preset MIB analysis module, and match the private MIB with preset OID keywords to identify the indicators to be monitored.
[0029] In one embodiment of this application, the OID keywords include at least: temperature, cpu*, mem*, fan, and power.
[0030] In one embodiment of this application, in order to achieve cross-brand switch device management, it is first necessary to import the private MIB of the switch to be managed into a preset MIB analysis module, and match the private MIB with preset OID keywords to identify the indicators to be monitored.
[0031] Specifically, the private MIB is parsed through the MIB analysis module to extract OID information from the file; the OID information is matched with preset OID keywords to filter out OID monitoring items corresponding to the OID keywords; and the corresponding monitoring indicators 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 metrics to be monitored, the method also includes: sending the matching results to the front-end interactive interface for monitoring personnel to confirm; and providing manual adjustment options for the matching results if the monitoring personnel determine that the matching results need to be adjusted.
[0033] In one embodiment, the MIB analysis module parses the private MIB provided by the switch to be managed. This process aims to extract key OID (Object Identifier) information from the private MIB, which forms the basis for subsequent monitoring metric identification. After successfully extracting the OID information, it is matched with preset OID keywords. These preset OID keywords are derived from a deep understanding and analysis of the monitoring metrics of different switch brands, accurately reflecting the OID characteristics corresponding to various monitoring metrics. By matching and filtering, OID monitoring items corresponding to the OID keywords are selected, serving as the basis for subsequent monitoring tasks. Based on the selected OID monitoring items, the corresponding monitoring metrics are further determined through a preset OID monitoring item mapping table. This mapping table, carefully constructed in previous work, contains the correspondence between various OID monitoring items and specific monitoring metrics. By looking up the table, OID monitoring items can be quickly converted into readable and meaningful monitoring metrics. After identifying the metrics to be monitored, the matching results are sent to the front-end interactive interface for confirmation by monitoring personnel. This step aims to ensure the identification results meet the actual needs of the monitoring personnel and also provides them with an opportunity to verify and adjust the results. If monitoring personnel find that the matching results need adjustment during the confirmation process, a manual adjustment option is provided to support their modifications. This option is designed with the actual needs of monitoring personnel in mind, 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 the preset configuration file parsing module, and determine the corresponding function configuration line in the switch configuration file through the preset configuration keywords, so as to match the function configuration line with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed.
[0035] In one embodiment of this application, in order to manage 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, the corresponding function configuration lines are determined in the switch configuration file using preset configuration keywords.
[0037] Specifically, the configuration file parsing module scans the imported switch configuration file line by line and uses regular expressions or string matching algorithms to determine the configuration line that matches the configuration keyword; when a matching configuration line is found to exist, the matching configuration line is determined to be the function configuration line corresponding to the configuration keyword.
[0038] Furthermore, the function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed.
[0039] Specifically, the extracted function configuration lines are compared one by one with the function items in the preset configuration library; if the comparison is successful, the function configuration lines are associated with the corresponding function items and stored to form atomic configurations; wherein, the atomic configuration is the smallest indivisible configuration unit, which is directly applied to the switch device.
[0040] In one embodiment of this application, the method further includes: when the function configuration line fails to match the corresponding function item in the preset configuration library, providing an interactive item for manually adjusting atomic configuration.
[0041] In one embodiment, the switch configuration file (such as startup.conf) provided by the brand switch to be managed is imported into a preset configuration file parsing module. This step is the foundation for subsequent configuration parsing and adaptation. After successfully importing the switch configuration file, the configuration file is scanned line by line using preset configuration keywords to determine the corresponding functional configuration lines. This process mainly relies on regular expressions or string matching algorithms to accurately find configuration lines that match the configuration keywords. When a matching configuration line is found to exist, it is considered the functional configuration line corresponding to the configuration keyword. After determining the functional configuration lines, these lines are matched with the corresponding functional items in the preset configuration library. The preset configuration library is carefully constructed in the early stages and contains key information on various switch configurations, accurately reflecting the characteristics of different brand switch configuration styles. Through matching, functional configuration lines can be associated and stored with their corresponding functional items, forming atomic configurations. An atomic configuration is the smallest indivisible configuration unit that can be directly applied to the switch device without further splitting or combining. When a match is successful, an atomic configuration is formed and stored in the configuration library management module. The configuration library management module comprises three components: monitoring management, atomic configuration, and mapping management. These together form the core of our invention. The atomic configuration component stores the mapping between atomic configurations and device models, enabling rapid location of the corresponding configuration information during subsequent configuration distribution or monitoring data collection. However, in practical applications, situations may arise where the function configuration row does not match the corresponding function item in the preset configuration library. In such cases, an interactive option for manually adjusting atomic configurations is provided, allowing monitoring personnel or technicians to manually add new atomic configurations.
[0042] Step 103: Store the mapping relationships between the device models of the switches to be managed and the indicators to be monitored, the mapping relationships between atomic configurations and device models, and the mapping relationships between custom switch query commands and specific switch configurations in the configuration library management module.
[0043] In one embodiment of this application, in order to achieve cross-brand switch device management, it is also necessary to store the correspondence between the device model of the switch to be managed and the indicators to be monitored, the correspondence between atomic configuration and device model, and the mapping relationship between custom switch query commands and specific switch configurations in the configuration library management module.
[0044] In one embodiment, after parsing the private MIB and identifying the metrics to be monitored through the MIB analysis module, the mapping relationship between the device models of the switches to be managed and these metrics is stored in the monitoring management component of the configuration library management module. After parsing the switch configuration files and forming atomic configurations through the configuration file parsing module, these atomic configurations and their corresponding device models are stored in the atomic configuration component of the configuration library management module. An atomic configuration is the smallest indivisible configuration unit, directly reflecting the configuration characteristics of the switch device. Furthermore, to meet the diverse needs of querying different brands of switches in practical applications, a function to store the mapping relationship between custom switch query commands and specific switch configurations is provided. Specifically, users can customize switch query commands in the mapping management component of the configuration library management module according to their needs and store the mapping relationship between them and the specific switch configurations. In this way, when performing subsequent query operations, users only need to enter the custom query command, and the system can automatically parse and execute the corresponding switch query operation, greatly improving query efficiency and accuracy. The configuration library management module, as one of the core components of this application, comprises three parts: monitoring management, atomic configuration, and mapping management. Together, they enable unified management and rapid querying of configuration information for switches from different brands. By storing information such as the correspondence between storage device models and monitored indicators, the correspondence between atomic configurations and device models, and the mapping 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 operations such as configuration distribution, monitoring data collection, and fault diagnosis.
[0045] Step 104: Construct a southbound communication channel based on the SSH and SNMP protocols.
[0046] In one embodiment of this application, the SSH protocol is used to configure interactive operations, and the SNMP protocol is used to monitor data collection.
[0047] In one embodiment of this 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 and SNMP protocols.
[0048] Specifically, the SSH protocol is used as the configuration distribution channel, and configuration interaction is completed by sending configuration commands and receiving confirmation information returned by the switch; the SNMP protocol is used as the monitoring data acquisition channel, and monitoring data is acquired by sending monitoring requests and receiving monitoring data returned by the switch.
[0049] In one embodiment of this application, the method further includes: setting up an independent end-of-command library and a success or failure character matching library for each brand switch to be managed, so as to accurately determine the command execution status during configuration interaction and monitoring data collection.
[0050] The above are embodiments of the method proposed in this application. Based on the same inventive concept, embodiments of this application also provide a management device for cross-brand switch equipment, the structure of which is as follows: Figure 2 As shown.
[0051] Figure 2 This is a schematic diagram of the internal structure of a management device for cross-brand switch equipment, provided as an embodiment of this application. Figure 2 As shown, the device includes:
[0052] At least one processor 201;
[0053] And a memory 202 that is communicatively connected to at least one processor;
[0054] The memory 202 stores instructions executable by at least one processor, which are executed by at least one processor 201 to enable at least one processor 201 to:
[0055] Import the private MIB of the switch to be managed into the preset MIB analysis module, and match the private MIB with preset OID keywords to identify the indicators to be monitored; among them, the OID keywords include at least: temperature, cpu*, mem*, fan, power.
[0056] The switch configuration file of the brand switch to be managed 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 keywords. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed.
[0057] The mapping relationships between the device models of the switches to be managed and the indicators to be monitored, the mapping relationships between atomic configurations and device models, and the mapping relationships between custom switch query commands and specific switch configurations are stored in the configuration library management module.
[0058] A southbound communication channel is constructed based on the SSH and SNMP protocols; the SSH protocol is used for configuring interactive operations, and the SNMP protocol is used for monitoring data collection.
[0059] Some embodiments of this application provide corresponding to Figure 1 A non-volatile computer storage medium for the management of cross-brand switch equipment, storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0060] Import the private MIB of the switch to be managed into the preset MIB analysis module, and match the private MIB with preset OID keywords to identify the indicators to be monitored; among them, the OID keywords include at least: temperature, cpu*, mem*, fan, power.
[0061] The switch configuration file of the brand switch to be managed 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 keywords. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed.
[0062] The mapping relationships between the device models of the switches to be managed and the indicators to be monitored, the mapping relationships between atomic configurations and device models, and the mapping relationships between custom switch query commands and specific switch configurations are stored in the configuration library management module.
[0063] A southbound communication channel is constructed based on the SSH and SNMP protocols; the SSH protocol is used for configuring interactive operations, and the SNMP protocol is used for monitoring data collection.
[0064] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments for IoT devices and media are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0065] The systems, media, and methods provided in this application are one-to-one correspondences. Therefore, the systems and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the systems and media will not be repeated here.
[0066] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0067] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0068] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0069] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function 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] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0072] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0073] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0074] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A method for managing cross-brand switch devices, characterized in that, The method includes: The private MIB of the switch to be managed is imported into the preset MIB analysis module, and the private MIB is matched with preset OID keywords to identify the indicators to be monitored; wherein, the OID keywords include at least: temperature, cpu*, mem*, fan, power. The switch configuration file of the brand switch to be managed is imported into the preset configuration file parsing module, and the corresponding function configuration line is determined in the switch configuration file by the preset configuration keyword. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed. The mapping relationship between the device model of the switch to be managed and the indicator to be monitored, the mapping 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 and SNMP protocols; wherein the SSH protocol is used to configure interactive operations, and the SNMP protocol is used for monitoring data collection. The private MIB is matched using preset OID keywords to identify the metrics to be monitored, specifically including: The private MIB is parsed using the MIB analysis module to extract the OID information from the file; The OID information is matched with preset OID keywords to filter out OID monitoring items corresponding to the OID keywords; The corresponding metrics to be monitored are determined based on the preset OID monitoring item mapping table. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed, which specifically includes: The extracted function configuration rows are compared one by one with the function items in the preset configuration library; If the comparison is successful, the function configuration line is associated with the corresponding function item 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; The method also includes setting up an independent end-of-command library and a success or failure character matching library for each brand switch to be managed, so as to accurately determine the command execution status during configuration interaction and monitoring data collection.
2. The method for managing cross-brand switch devices according to claim 1, characterized in that, After matching the private MIB with preset OID keywords to identify the metrics to be monitored, the method further includes: The matching results are sent to the front-end interactive interface for confirmation by monitoring personnel; If the monitoring personnel determine that the matching results need to be adjusted, provide the manual adjustment interaction item for the matching results.
3. The method for managing cross-brand switch devices according to claim 1, characterized in that, The corresponding function configuration line is determined in the switch configuration file by using preset configuration keywords, specifically including: The configuration file parsing module scans the imported switch configuration file line by line and uses regular expressions or string matching algorithms to determine the configuration lines that match the configuration keywords. When it is determined that there is a matching configuration line corresponding to the configuration keyword, the matching configuration line is determined to be the function configuration line corresponding to the configuration keyword.
4. The method for managing cross-brand switch devices according to claim 1, characterized in that, The method further includes: When the function configuration row fails to match the corresponding function item in the preset configuration library, an interactive option to add atomic configuration items for manual adjustment is provided.
5. The method for managing cross-brand switch devices according to claim 1, characterized in that, Building a southbound communication channel based on SSH and SNMP protocols specifically includes: The SSH protocol is used as the configuration distribution channel. Configuration interaction is completed by sending configuration commands and receiving confirmation information from the switch. The SNMP protocol is used as the monitoring data acquisition channel. Monitoring data acquisition is completed by sending monitoring requests and receiving monitoring data returned by the switch.
6. A management device for cross-brand switch equipment, characterized in that, The device includes: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to: The private MIB of the switch to be managed is imported into the preset MIB analysis module, and the private MIB is matched with preset OID keywords to identify the indicators to be monitored; wherein, the OID keywords include at least: temperature, cpu*, mem*, fan, power. The switch configuration file of the brand switch to be managed is imported into the preset configuration file parsing module, and the corresponding function configuration line is determined in the switch configuration file by the preset configuration keyword. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed. The mapping relationship between the device model of the switch to be managed and the indicator to be monitored, the mapping 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 and SNMP protocols; wherein the SSH protocol is used to configure interactive operations, and the SNMP protocol is used for monitoring data collection. The private MIB is matched using preset OID keywords to identify the metrics to be monitored, specifically including: The private MIB is parsed using the MIB analysis module to extract the OID information from the file; The OID information is matched with preset OID keywords to filter out OID monitoring items corresponding to the OID keywords; The corresponding metrics to be monitored are determined based on the preset OID monitoring item mapping table. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed, which specifically includes: The extracted function configuration rows are compared one by one with the function items in the preset configuration library; If the comparison is successful, the function configuration line is associated with the corresponding function item 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; Set up an independent end-of-command library and a success or failure character matching library for each brand of switch to be managed, so as to accurately determine the command execution status during configuration interaction and monitoring data collection.
7. A non-volatile computer storage medium for the management of cross-brand switch equipment, storing computer-executable instructions, characterized in that, The computer-executable instructions are set as follows: The private MIB of the switch to be managed is imported into the preset MIB analysis module, and the private MIB is matched with preset OID keywords to identify the indicators to be monitored; wherein, the OID keywords include at least: temperature, cpu*, mem*, fan, power. The switch configuration file of the brand switch to be managed is imported into the preset configuration file parsing module, and the corresponding function configuration line is determined in the switch configuration file by the preset configuration keyword. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed. The mapping relationship between the device model of the switch to be managed and the indicator to be monitored, the mapping 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 and SNMP protocols; wherein the SSH protocol is used to configure interactive operations, and the SNMP protocol is used for monitoring data collection. The private MIB is matched using preset OID keywords to identify the metrics to be monitored, specifically including: The private MIB is parsed using the MIB analysis module to extract the OID information from the file; The OID information is matched with preset OID keywords to filter out OID monitoring items corresponding to the OID keywords; The corresponding metrics to be monitored are determined based on the preset OID monitoring item mapping table. The function configuration line is matched with the corresponding function item in the preset configuration library. If the match is successful, an atomic configuration is formed, which specifically includes: The extracted function configuration rows are compared one by one with the function items in the preset configuration library; If the comparison is successful, the function configuration line is associated with the corresponding function item 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; Set up an independent end-of-command library and a success or failure character matching library for each brand of switch to be managed, so as to accurately determine the command execution status during configuration interaction and monitoring data collection.