Switch searching method, device and equipment
By utilizing specific lighting patterns of preset status lights in the switch, especially the panel port status lights, the problem of network administrators finding it difficult to quickly and accurately locate the switch is solved, improving search speed and accuracy, and enhancing user experience.
Patent Information
- Application Number
- CN202511854966.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-09
- Publication Date
- 2026-03-10
AI Technical Summary
Network administrators often find it difficult to quickly and accurately locate switches within a network cabling environment, impacting user experience.
By obtaining the switch search command, the target switch is located, and its preset status lights are controlled to light up in a preset manner. In particular, the specific lighting mode of the panel port status lights is used to distinguish them from the regular lighting mode of the status lights in the switch.
It enables network administrators to quickly and easily locate the required switches, improving the accuracy of the search and the user experience.
Smart Images

Figure CN121644496A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of switch technology, and in particular to a switch finding method, apparatus and device. Background Technology
[0002] In a cabled network environment, network administrators' control consoles and switches are often located separately. Switches are typically housed in a server room, and there are often many switches in the room, making it difficult for network administrators to pinpoint their exact locations. Therefore, enabling network administrators to quickly and accurately locate the required switches, thereby improving user experience, is a pressing issue that needs to be addressed. Summary of the Invention
[0003] The purpose of this invention is to provide a method, apparatus, and device for finding switches, so that network administrators can quickly and accurately find the required switches and improve user experience.
[0004] To solve the above technical problems, the present invention provides a switch discovery method, comprising:
[0005] Obtain the switch lookup command;
[0006] Locate the target switch corresponding to the switch search command;
[0007] The preset status light group in the target switch is controlled to light up according to a preset lighting mode; wherein, the preset status light group includes panel port status lights.
[0008] On the other hand, the process of finding the target switch corresponding to the switch search instruction includes:
[0009] Based on the access terminal information in the switch lookup command, find the switch port information corresponding to the access terminal information;
[0010] The switch corresponding to the switch port information is identified as the target switch.
[0011] On the other hand, the process of finding the target switch corresponding to the switch search instruction includes:
[0012] Based on the Internet Protocol address in the switch lookup instruction, locate the target switch corresponding to the Internet Protocol address.
[0013] On the other hand, the acquisition of the switch lookup instruction includes:
[0014] Retrieve the switch search command triggered by the switch search page of the switch management platform.
[0015] On the other hand, controlling the preset status lights in the target switch to light up according to a preset lighting method includes:
[0016] The preset state light group is controlled to light up according to a specified lighting mode; wherein, the specified lighting mode is a preset lighting mode corresponding to the lighting mode information in the switch search command.
[0017] On the other hand, after controlling the preset state light group in the target switch to light up according to the preset lighting method, the method further includes:
[0018] If no search and close command is received from the target switch within the preset time period, the preset status light group will resume normal illumination.
[0019] On the other hand, controlling the preset status lights in the target switch to light up according to a preset lighting method includes:
[0020] Control the preset status lights in the target switch to light up in a sequential lighting pattern.
[0021] On the other hand, controlling the preset state light group in the target switch to light up in a sequential lighting pattern includes:
[0022] According to the preset lighting cycle, the target status lights of the preset status light group are lit in sequence with preset colors and lit for a preset time. The target status light is any one of the status lights in the preset status light group, and when the target status light is lit, the other status lights in the preset status light group are in an off state.
[0023] The present invention also provides a switch lookup device, comprising:
[0024] The acquisition module is used to acquire switch search commands;
[0025] The lookup module is used to locate the target switch corresponding to the switch lookup command.
[0026] The lighting module is used to control the preset status light group in the target switch to light up according to the preset lighting mode; wherein, the preset status light group includes panel port status lights.
[0027] Furthermore, the present invention also provides a switch lookup device, comprising:
[0028] Memory, used to store computer programs;
[0029] A processor, used to implement the steps of the switch lookup method as described above when executing the computer program.
[0030] The present invention provides a switch search method, comprising: obtaining a switch search instruction; searching for the target switch corresponding to the switch search instruction; controlling a preset status light group in the target switch to light up according to a preset lighting mode; wherein the preset status light group includes panel port status lights.
[0031] As can be seen, this invention, by controlling the preset status lights in the target switch to illuminate according to a preset lighting pattern, can illuminate the preset status lights in the switch to be searched in a specific manner, enabling network administrators to quickly and conveniently locate the required switch and improving user experience. Furthermore, by utilizing the lighting settings of the preset status lights, including the panel port status lights, it can be distinguished from the individual conventional lighting patterns of each status light in the switch, improving the accuracy of switch location for network administrators. In addition, this invention also provides a switch location device and apparatus, which also possesses the aforementioned beneficial effects. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0033] Figure 1 A flowchart of a switch search method provided in an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of the panel port status lights of a switch provided in an embodiment of the present invention;
[0035] Figure 3 This is a structural block diagram of a switch lookup device provided in an embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram of the structure of a switch lookup device provided in an embodiment of the present invention;
[0037] Figure 5 This is a schematic diagram of the specific structure of a switch for finding devices provided in an embodiment of the present invention. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0039] Please refer to Figure 1 , Figure 1 A flowchart illustrating a switch discovery method provided in an embodiment of the present invention. The method may include:
[0040] Step 101: Obtain the switch lookup command.
[0041] In this embodiment, the switch lookup command can be a command used to find the required switch (i.e., the target switch).
[0042] Correspondingly, the specific method for obtaining the switch search command in this step can be set by the designer according to the practical scenario and user needs. For example, it can obtain the switch search command triggered by the switch search page of the switch management platform; for instance, the user can remotely log in to the switch management platform provided by the console (such as a server) and trigger the switch search command for the target switch on the switch search page to start the device search function; this step can also obtain the switch search command triggered by the switch search page; for instance, the user can directly operate and trigger the switch search command on the console; this step can also directly receive the switch search command. This embodiment does not make any provisions for this.
[0043] Correspondingly, the specific content of the switch lookup command in this step can be set by the designer according to the practical scenario and user needs. For example, the switch lookup command can include relevant information about the target switch to locate the target switch, such as target switch identification information to identify the target switch itself, such as the target switch's IP (Internet Protocol) address; or, access terminal information to identify the terminal devices accessing the ports of the target switch, such as the terminal devices' MAC (Media Access Control Address) addresses. The switch lookup command can also include lookup control information to specify the target switch's lighting method and / or status light content, such as lighting method information to specify a preset lighting method used for lighting, and / or status light selection information to specify the status light type of a preset status light group to be lit. This embodiment does not impose any limitations on this.
[0044] Step 102: Find the target switch corresponding to the search command.
[0045] Understandably, in this step, the switch's console can use the obtained switch search command to find and determine the switch the user needs to find (i.e., the target switch).
[0046] In this embodiment, the specific number and selection of the target switches can be set by the designer or user. For example, the target switches can be one, or a positive integer greater than or equal to two. For a stacked switch enclosure, the target switches can be a single switch within the stacked enclosure, or all switches within a single enclosure. For instance, the user can select to search for any switch, such as switch 1, switch 2, or all switches. For a chassis-type switch (e.g., a single 3-slot chassis), the target switches can be a switch in a single slot within the chassis, or all switches within a single chassis. For example, the user can select to search for switches in slots 0 / 1, 0 / 2, 0 / 3, or all slots within a 3-slot chassis.
[0047] Correspondingly, the specific method for finding the target switch corresponding to the switch search command in this step can be set by the designer according to the practical scenario and user needs. For example, it can be implemented in the same or similar way as the method of finding the switch through a preset identification correspondence (such as a correspondence table) in related technologies. For example, after the user selects the target switch on the switch search page, he can click the search button to trigger the switch search command, so that the console can directly find the target switch using the preset identification correspondence.
[0048] Furthermore, in this embodiment, the console can also locate the target switch based on the access terminal information or target switch identification information specified or output by the user, so as to facilitate the user in determining the switch to be searched. For example, in some embodiments, this step can locate the switch port information corresponding to the access terminal information (such as MAC address) in the switch search instruction; and determine the switch corresponding to the switch port information as the target switch; for example, the user can specify the MAC address of a user terminal to find the switch connected to that user terminal. In other embodiments, this step can locate the target switch corresponding to the Internet Protocol address in the switch search instruction; for example, the user can specify the IP address of the switch to find the switch with that IP address.
[0049] Step 103: Control the preset status light group in the target switch to light up according to the preset lighting mode; wherein, the preset status light group includes the panel port status light.
[0050] It should be noted that in this implementation, preset status lights in the target switch are controlled to illuminate according to a preset lighting pattern, enabling users to quickly and easily locate the target switch in the computer room. Furthermore, this embodiment utilizes panel port status lights (such as...) Figure 2 The preset lighting settings for the 24 panel port status lights shown can be distinguished from the regular lighting methods of individual status lights in the switch, enabling network administrators to accurately locate the target switch and reduce the occurrence of search errors.
[0051] Correspondingly, the preset status light group can be the combination of status lights that need to be lit in a preset lighting pattern when searching for the target switch. The specific selection of the preset status light group in this step can be set by the designer according to the usage scenario and user needs. For example, the preset status light group can only include the panel port status lights to reduce the impact of switch searching on the normal lighting of the indicator lights. Furthermore, since the number of panel port status lights is usually large and their locations are relatively concentrated, users can quickly and accurately see them when they are lit in the preset lighting pattern. Compared to the situation where only one status light (such as the device status light) is lit during searching, this can improve the speed and accuracy of the search; for example, ... Figure 2 Taking Switch1, a switch with 24 panel ports, as an example, when searching for Switch1, the 24 panel port status lights on Switch1 can be directly used as a preset status light group. The preset status light group can also include other indicator lights on the switch, such as the MGMT port (management port) light and device status lights. This embodiment does not impose any limitations on this.
[0052] Accordingly, the specific selection of the preset lighting mode in this embodiment can be set by the designer according to the practical scenario and user needs. For example, the preset lighting mode can be a flowing light mode to distinguish it from the regular lighting modes (such as flashing or constant light) of the status lights in the switch, making it convenient for users to find. The preset lighting mode can also be other lighting modes, such as fast flashing or constant light. This embodiment does not make any provisions for this.
[0053] Correspondingly, the specific method for controlling the preset status lights in the target switch to light up according to the preset lighting mode in this step can be set by the designer according to the practical scenario and user needs. For example, the preset status lights in the target switch can be directly controlled to light up according to the preset lighting mode; or the preset status lights can be controlled to light up according to a specified lighting mode, so that the user can select the lighting mode according to the needs. Among them, the specified lighting mode is a preset lighting mode corresponding to the lighting mode information in the switch search command. The preset lighting mode can include the flowing light lighting mode, the fast flashing light lighting mode, and the constant light lighting mode, etc.
[0054] In this step, the preset status lights in the target switch can be controlled to light up in a sequential lighting pattern to facilitate user location of the target switch. This embodiment does not limit the specific lighting process of the sequential lighting pattern; it can be implemented in a similar or identical manner to sequential lighting control in related technologies. For example, in this step, the target status lights in the preset status light group can be lit sequentially with preset colors and for a preset duration according to a preset lighting cycle. The target status light is any one of the status lights in the preset status light group, and when the target status light is lit, the other status lights in the preset status light group are off. Figure 2 Taking Switch1, a switch with 24 panel port status lights (lights 1-24), as an example, the following operation can be repeated: After 0.05 seconds, light 1 turns red (i.e., the preset color) for 0.05 seconds (i.e., the preset lighting time), while the other lights are off; after 0.05 seconds, light 2 turns red for 0.05 seconds, while the other lights are off; after 0.05 seconds, light 3 turns red for 0.05 seconds, while the other lights are off; ..., and so on, until all 24 panel port status lights have completed the above operation, and then all lights turn off for about 1 second.
[0055] Correspondingly, in this embodiment, after the preset status lights in the target switch are lit according to the preset lighting method, the preset status lights can be restored to normal lighting after a fixed or user-specified time interval to disable the device search function. For example, after step 103, a timer can be started, and the preset status lights can be restored to normal lighting when the timer reaches the preset time. Alternatively, the user can manually disable the device search function. For example, after step 103, the preset status lights can be restored to normal lighting according to the received search disable command from the target switch. A combination of the above two methods can also be used. For example, after step 103, if a search disable command from the target switch is received, the preset status lights are restored to normal lighting; if no search disable command from the target switch is received within the preset time period, the preset status lights are restored to normal lighting.
[0056] In this embodiment, the present invention controls the preset status light group in the target switch to light up in a preset lighting mode. This enables the preset status light group in the switch to be searched to be lit up in a specific way, allowing network administrators to quickly and conveniently find the required switch and improving the user experience. Furthermore, by using the lighting settings of the preset status light group including the panel port status lights, it is possible to distinguish it from the ordinary lighting mode of each status light in the switch, thereby improving the accuracy of network administrators in finding the switch.
[0057] Corresponding to the above method embodiments, this invention also provides a switch finding device. The switch finding device described below and the switch finding method described above can be referred to each other.
[0058] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a switch lookup device provided in an embodiment of the present invention. The device may include:
[0059] Module 10 is used to acquire switch search commands;
[0060] The lookup module 20 is used to find the target switch corresponding to the switch lookup command;
[0061] The lighting module 30 is used to control the preset status light group in the target switch to light up according to the preset lighting mode; wherein, the preset status light group includes the panel port status light.
[0062] In some embodiments, the lookup module 20 may include:
[0063] The port lookup submodule is used to find the switch port information corresponding to the access terminal information in the switch lookup command.
[0064] The target determination submodule is used to identify the switch corresponding to the switch port information as the target switch.
[0065] In some embodiments, the lookup module 20 may be specifically used to look up the target switch corresponding to the Internet Protocol address based on the Internet Protocol address in the switch lookup instruction.
[0066] In some embodiments, the acquisition module 10 may be specifically used to acquire the switch search instruction triggered by the switch search page of the switch management platform.
[0067] In some embodiments, the lighting module 30 can be specifically used to control the preset state light group to light up according to a specified lighting method; wherein, the specified lighting method is a preset lighting method corresponding to the lighting method information in the switch lookup command.
[0068] In some embodiments, the device may further include:
[0069] The recovery module is used to restore the preset status lights to normal operation if no search and shutdown command is received from the target switch within a preset time period.
[0070] In some embodiments, the lighting module 30 can be specifically used to control the preset state light group in the target switch to light up in a sequential lighting manner.
[0071] In some embodiments, the lighting module 30 may be specifically used to sequentially light up the target status lamps of the preset status lamp group according to a preset lighting cycle order and continue to light them for a preset time; wherein, the target status lamp is any status lamp in the preset status lamp group, and when the target status lamp is lit, the other status lamps in the preset status lamp group are in an off state.
[0072] In this embodiment, the present invention controls the preset status light group in the target switch to light up in a preset lighting mode through the lighting module 30. This enables the preset status light group in the switch to be searched to be lit up in a specific way, allowing network administrators to quickly and conveniently find the required switch and improving the user experience. Furthermore, by using the lighting setting of the preset status light group including the panel port status light, it can be distinguished from the ordinary lighting mode of each status light in the switch, improving the accuracy of network administrators in finding the switch.
[0073] Corresponding to the above method embodiments, this invention also provides a switch finding device. The switch finding device described below and the switch finding method described above can be referred to each other.
[0074] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a switch discovery device provided in an embodiment of the present invention. The switch discovery device may include:
[0075] Memory D1 is used to store computer programs;
[0076] Processor D2 is used to implement the steps of the switch lookup method provided in the above method embodiments when executing a computer program.
[0077] For details, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating the specific structure of a switch lookup device 310 provided in an embodiment of the present invention. The switch lookup device 310 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) for storing application programs 342 or data 344. The memory 332 and storage media 330 can be temporary or persistent storage. The program stored in the storage media 330 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the switch lookup device. Furthermore, the central processing unit 322 may be configured to communicate with the storage media 330 and execute the series of instruction operations in the storage media 330 on the switch lookup device 310.
[0078] The switch-discovered device 310 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341. Examples include Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0079] Among them, the switch-finded device 310 can specifically be the switch's control console, such as a computer device or server.
[0080] The steps in the switch discovery method described above can be implemented using the structure of the switch to discover devices.
[0081] Corresponding to the above method embodiments, this invention also provides a computer program product. The computer program product described below and the switch lookup method described above can be referred to in correspondence.
[0082] A computer program product includes a computer program / instructions that, when executed by a processor, implement the steps of the switch lookup method provided in the above-described method embodiments.
[0083] Corresponding to the above method embodiments, this invention also provides a computer-readable storage medium. The computer-readable storage medium described below corresponds to and can be referred to in relation to the switch lookup method described above.
[0084] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the switch lookup method provided in the above-described method embodiments.
[0085] The computer-readable storage medium can specifically be a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or any other readable storage medium capable of storing program code.
[0086] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatuses, devices, computer program products, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant details can be found in the method section.
[0087] The present invention has provided a detailed description of a switch search method, apparatus, and device. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are merely illustrative of the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to the invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the claims.
Claims
1. A switch lookup method, characterized by, The method comprises the following steps: obtaining a switch search instruction; searching for a target switch corresponding to the switch search instruction; controlling a preset state light group in the target switch to be lit in a preset lighting mode; wherein the preset state light group comprises a panel port state light.
2. The switch lookup method of claim 1, wherein, The step of searching for a target switch corresponding to the switch search instruction comprises the following steps: searching for switch port information corresponding to access terminal information in the switch search instruction according to the access terminal information; determining a switch corresponding to the switch port information as the target switch.
3. The switch lookup method of claim 1, wherein, The step of searching for a target switch corresponding to the switch search instruction comprises the following steps: searching for a target switch corresponding to an Internet Protocol address in the switch search instruction according to the Internet Protocol address.
4. The switch lookup method of claim 1, wherein, The step of obtaining a switch search instruction comprises the following steps: obtaining a switch search instruction triggered by a switch search page of a switch management platform.
5. The switch lookup method of claim 1, wherein, The step of controlling a preset state light group in the target switch to be lit in a preset lighting mode comprises the following steps: controlling the preset state light group to be lit in a specified lighting mode; wherein the specified lighting mode is a preset lighting mode corresponding to lighting mode information in the switch search instruction.
6. The switch lookup method of claim 1, wherein, After the step of controlling a preset state light group in the target switch to be lit in a preset lighting mode, the method further comprises the following steps: if no search closing instruction of the target switch is received within a preset time period, resuming normal lighting of the preset state light group.
7. The switch lookup method according to any of claims 1 to 6, wherein, The step of controlling a preset state light group in the target switch to be lit in a preset lighting mode comprises the following steps: controlling the preset state light group in the target switch to be lit in a flowing light lighting mode.
8. The switch lookup method of claim 7, wherein, The step of controlling a preset state light group in the target switch to be lit in a flowing light lighting mode comprises the following steps: sequentially lighting a target state light of the preset state light group in a preset color for a preset lighting time in a preset light cycle order; wherein the target state light is any state light in the preset state light group, and other state lights in the preset state light group are in an extinguished state when the target state light is lit.
9. A switch lookup apparatus, characterized by, The method comprises the following steps: an obtaining module, configured to obtain a switch search instruction; a searching module, configured to search for a target switch corresponding to the switch search instruction; a lighting module, configured to control a preset state light group in the target switch to be lit in a preset lighting mode; wherein the preset state light group comprises a panel port state light.
10. A switch lookup device, characterized by, The method comprises the following steps: a memory, configured to store a computer program; a processor, configured to execute the computer program to implement the steps of the switch search method according to any one of claims 1 to 8.