Equipment connection display method, electronic equipment and program product
By displaying the management network port and data network port, the complex problem of wired connection between devices is solved, and a more efficient and accurate connection process is achieved.
Patent Information
- Application Number
- CN202510897798.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-19
AI Technical Summary
Wired connections between devices are complex and difficult to distinguish between the interfaces that need to be connected, making connection difficult.
Through the display method based on the management network port and the data network port, the interface connection plan is determined and displayed, the interface connection results are displayed using display devices such as LED lights, and incorrect connections are detected and corrected.
It reduces the operational difficulty of wired connections between devices and improves the efficiency, accuracy and verifiability of connections.
Smart Images

Figure CN120675890A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network technology, and more particularly, to a device connection display method, an electronic device, and a program product. Background Art
[0002] With the popularization of the Internet, more and more network devices are being deployed. In order to build a network, it is usually necessary to establish wired connections between different network devices for data transmission.
[0003] However, wired connections between devices are often complex. For example, a device may have many interfaces with little differentiation between them, making it difficult to distinguish the interface to be connected, making it difficult to establish wired connections between devices. Summary of the Invention
[0004] In view of this, the present disclosure provides a device connection display method, an electronic device, and a program product.
[0005] One aspect of the present disclosure provides a device connection display method, including:
[0006] Display based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port;
[0007] When it is determined that the management network port is successfully connected to the first network device interface, the data network port to be connected in the target network device is determined based on the management network port, and the second network device interface that needs to establish a wired connection with any data network port is displayed.
[0008] Another aspect of the present disclosure provides a device connection display apparatus, comprising:
[0009] A first display unit is configured to display a management network port in a target network device and a first network device interface that needs to establish a wired connection with the management network port;
[0010] The second display unit is used to determine the data network port to be connected in the target network device based on the management network port when it is determined that the management network port is successfully connected to the first network device interface, and to display based on any data network port in the target network device and the second network device interface that needs to establish a wired connection with any data network port.
[0011] Another aspect of the present disclosure provides an electronic device, a display unit; one or more processors, communicatively coupled to the display unit; the one or more processors are configured to perform: displaying in the display unit based on a management network port in a target network device and a first network device interface that needs to establish a wired connection with the management network port; when it is determined that the management network port is successfully connected to the first network device interface, determining a data network port to be connected in the target network device based on the management network port, and displaying in the display unit based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with any data network port.
[0012] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method described above when executed.
[0013] Another aspect of the present disclosure provides a computer program product, comprising a computer program, wherein the computer program comprises computer-executable instructions, and the instructions are used to implement the method described above when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0015] Figure 1 A diagram schematically illustrates an application scenario of a device connection display method according to an embodiment of the present disclosure;
[0016] Figure 2 A flow chart of a device connection display method according to an embodiment of the present disclosure is schematically shown;
[0017] Figure 3 A schematic diagram schematically illustrates a device connection display according to an embodiment of the present disclosure;
[0018] Figure 4 Schematically shows a structural diagram of a device connection display device according to an embodiment of the present disclosure;
[0019] Figure 5 A block diagram of an electronic device suitable for implementing the above method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0020] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0021] In the technical solutions disclosed herein, the acquisition, storage, and application of user personal information involved all comply with the provisions of relevant laws and regulations, adopt necessary confidentiality measures, and do not violate public order and good morals. In the technical solutions disclosed herein, the acquisition, collection, storage, use, processing, transmission, provision, disclosure, and application of data all comply with the provisions of relevant laws and regulations, adopt necessary confidentiality measures, and do not violate public order and good morals.
[0022] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0023] When expressions such as "at least one of A, B, or C," are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.). The terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the quantity of the technical features being referred to. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of the aforementioned features.
[0024] With the popularization of the Internet, more and more network devices are being deployed. In order to build a network, it is usually necessary to establish wired connections between different network devices for data transmission.
[0025] However, wired connections between devices are often complex. For example, a device may have many interfaces with little differentiation between them, making it difficult to distinguish the interface to be connected, making it difficult to establish wired connections between devices.
[0026] An embodiment of the present disclosure provides a device connection display method.
[0027] In this method, the interface connection plan between network devices can be displayed. Specifically, the interface connection plan between network devices can be displayed on the user terminal, so that for any network device interface, another network device interface that needs to be wired connected can be determined; or a display device, such as an LED light, can be deployed at the interface of the network device, and the display mode of the display device can be controlled to facilitate the determination of another network device interface that needs to be wired connected for any network device interface.
[0028] Accordingly, the interface connection results between the network devices can be detected until all the network device interfaces in the connection plan are correctly connected.
[0029] For example, for two network device interfaces that have already completed a wired connection, the system can further determine whether the two connected network device interfaces are consistent with the interface connection plan. If they are consistent, the connection results of the two network device interfaces can be recorded or updated, specifically as "connected correctly." If they are inconsistent, the connection results of the two network device interfaces can also be recorded or updated, specifically as "connected incorrectly," and the correct network device interface can be prompted accordingly.
[0030] This method can reduce the operational difficulty of establishing a wired connection between devices and can improve the efficiency, accuracy and verifiability of device connections.
[0031] In a specific example, when business personnel establish a wired connection for network devices, they can use the above method to determine the connection plan between network devices and determine the other network device interfaces that need to establish a wired connection for any network device interface, so that they can quickly and accurately establish a wired connection and successfully connect the network devices. They can also use the above method to detect the interface connection results and provide timely feedback on the results of correct or incorrect connection, so that they can correct the incorrectly connected interfaces in a timely manner, reduce the operational difficulty of establishing wired connections between devices, and improve the efficiency, accuracy and verifiability of device connections.
[0032] In addition, in the above-mentioned device connection display method, the management network port and the data network port in the network device can also be distinguished. Usually, it is necessary to first connect to the management network port in the network device and establish a communication connection with the network device. Further, the accurate data network port information in the network device can be obtained, so that the corresponding interface connection plan can be further displayed based on the obtained data network port information.
[0033] Therefore, the corresponding connection plan can be displayed for the management network port of the network device first, specifically showing another network device interface that the management network port of the network device needs to establish a wired connection with. If the management network port of the network device successfully establishes a wired connection with the network device interface, the data network port of the network device that needs to establish a wired connection can be further determined through the management network port of the network device, so that the corresponding connection plan can be displayed for the data network.
[0034] The above method can obtain the information of the data network port through the management network port and display the corresponding connection plan in sequence, which can reduce the difficulty of establishing wired connections between devices and improve the efficiency, accuracy and verifiability of device connections.
[0035] The embodiments of the present disclosure do not limit the application scenarios of the provided device connection display method.
[0036] In an optional embodiment, as Figure 1 As shown, Figure 1 The following schematically illustrates an application scenario of a device connection display method according to an embodiment of the present disclosure.
[0037] exist Figure 1 In the embodiment, the application scenario 100 may include a first terminal device 101, a display unit 102, and a network device cluster 103. A communication connection may exist between the first terminal device 101 and the display unit 102. A communication connection may exist between the first terminal device 101 and the network device cluster 103.
[0038] The first terminal device 101 can be various electronic devices, including but not limited to a computer host. The display unit 102 can be a display screen. In a specific example, the first terminal device 101 and the display unit 102 can form an electronic device with a display screen. It is understood that the first terminal device 101 and the display unit 102 can form a computer or a mobile device.
[0039] The network device cluster 103 may include multiple network devices that need to establish wired connections, including network devices such as servers or switches.
[0040] It should be noted that the device connection display method provided in the embodiments of the present disclosure can be executed by the first terminal device 101. The first terminal device 101 communicates with the network device cluster 103, determines the connection plan between the network device interfaces, and displays it on the display unit 102. In addition, the first terminal device 101 can also detect the establishment of the wired connection in the network device cluster 103, determine whether the connection is correct or incorrect, and then display the corresponding connection result on the display unit 102.
[0041] The following is a detailed description of a device connection display method provided in an embodiment of the present disclosure.
[0042] Figure 2 The following schematically illustrates a flow chart of a method for displaying device connections according to an embodiment of the present disclosure. This method flow is not limited to a specific execution entity; alternatively, the execution entity may be any electronic device or any software application. In an optional embodiment, this method flow may be executed based on a software application to display device connection information.
[0043] like Figure 2 As shown, the method flow may include the following steps.
[0044] S201: Display is performed based on a management network port in a target network device and a first network device interface that needs to establish a wired connection with the management network port.
[0045] S202: When it is determined that the management network port is successfully connected to the first network device interface, the data network port to be connected in the target network device is determined based on the management network port, and a display is performed based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with the data network port.
[0046] This method process can facilitate the establishment of wired connections between network devices by displaying the network device interfaces to which the management network port and data network port in the target network device need to be connected, reduce the operational difficulty of establishing wired connections between network devices, and improve the efficiency, accuracy and verifiability of network device connections.
[0047] The embodiment of the present disclosure is not limited to the target network device, and the target network device can be any network device that is deployed with a management network port and a data network port. For example, the target network device can be any server.
[0048] The disclosed embodiments are not limited to management network ports. Optionally, the management network port can be a baseboard management controller (BMC) network port, which can be used to implement hardware-level remote monitoring and management. By interacting with the management network port, basic hardware information of the target network device can be obtained, such as the data network port name and the physical address of the network port.
[0049] The embodiments disclosed herein do not limit the specific manner in which the subject executing the method process obtains the information of the target network device, nor do they limit the specific manner in which the subject executing the method process obtains the management network port information of the target network device. Optionally, a single network device may have a single management network port, and the subject executing the method process may obtain in advance the information of the network devices that require device connection, and determine any of the network devices as the target network device, thereby determining that the management network port in the target network device needs to establish a wired connection with another network device interface (referred to as the first network device interface). The subject executing the method process may also obtain the information of the network devices that require device connection input by a user or business personnel, and determine any of the network devices as the target network device.
[0050] In a specific example, the execution subject of the present method process can be a software application, which can store information of each network device in the network device cluster, and can also receive new network device information input by the user, and can further automatically determine any network device that needs to be connected as the target network device to execute the present method process.
[0051] The embodiments of the present disclosure do not limit the first network device interface and the second network device interface. The first network device interface can be any network device interface, and the second network device interface can be any network device interface.
[0052] In a specific example, the first network device interface and the second network device interface may be interfaces in a switch. The first network device interface and the second network device interface may be different interfaces in the same switch or different interfaces in different switches.
[0053] Optionally, upon determining that the management network port is successfully connected to the first network device interface, further interaction may be performed with the management network port to obtain the data network port to be connected in the target network device. The disclosed embodiments do not limit the specific method for determining the data network port; alternatively, a request may be sent to the management network port, specifically requesting to obtain the data network port to be connected in the target network device, or requesting to obtain the data network ports in the target network device and then determining the data network port to be connected.
[0054] The disclosed embodiments do not limit the specific manner in which the subject executing the method determines the data network port information of the target network device. Alternatively, the subject executing the method may communicate and interact with the management network port of the target network device through the first network device interface to obtain the data network port information of the target network device.
[0055] In a specific example, the execution subject of the method process can be a software application, the first network device interface can be a switch interface, and the software application can communicate and interact with the switch to which the first network device interface belongs through the network, so that the software application can communicate with the target network device through the wired connection established between the first network device interface and the management network port, and obtain the data network port information in the target network device.
[0056] The embodiments of the present disclosure do not limit the specific method of determining the data network ports to be connected in the target network device. Optionally, each data network port in the target network device can be determined as the data network port to be connected, or the data network ports to be connected in the target network device can be determined based on actual business needs. Among them, the actual business needs can specifically be the number of data network ports that need to be connected in the specified target network device, or it can be determined that at least one data network port in each network card in the target network device needs to establish a wired connection, so that the corresponding data network port to be connected can be determined.
[0057] The embodiment of the present disclosure demonstrates the network port connection planning for a single target network device. It is understandable that the network port connection planning for multiple different network devices can be demonstrated separately using the method embodiments provided in the embodiment of the present disclosure. Specifically, they can be demonstrated separately or in combination.
[0058] The embodiment of the present disclosure does not limit the specific execution method of S201 and S202.
[0059] Optionally, the display is performed based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port. Specifically, it can be: according to the current connection plan, determine that the management network port in the target network device needs to establish a wired connection with the first network device interface; and display is performed based on the management network port and the first network device interface.
[0060] Optionally, the display is performed based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with the data network port. Specifically, it can be: according to the current connection plan, it is determined that any data network port in the target network device needs to establish a wired connection with the second network device interface, and the display is performed based on the data network port and the second network device interface.
[0061] This embodiment can determine the network device interfaces that the management network port and the data network port need to be connected to through the current connection plan and display them, which can facilitate the establishment of wired connections between network devices, reduce the operational difficulty of establishing wired connections between network devices, and improve the efficiency, accuracy and verifiability of network device connections.
[0062] The embodiments of the present disclosure do not limit the specific form and content of the current connection plan. Optionally, the current connection plan may include a connection plan for a network port in the target network device, specifically a correspondence between a network port in the target network device and an interface of another network device, where different network ports in the target network device may correspond to different network device interfaces, and it may be determined that a network port in the target network device needs to establish a wired connection with a corresponding network device interface.
[0063] The disclosed embodiments do not limit the method for determining the current connection plan. Alternatively, it can be determined automatically based on business needs. For example, business needs can determine two different network devices that need to be connected, so that in the current connection plan, a corresponding relationship can be established for the interfaces between the two network devices, determining that a wired connection is required between the interfaces between the two network devices. It can also be determined based on the planning of business personnel or automatically based on preset rules.
[0064] In a specific example, a single server needs to be connected to a network device cluster, which includes multiple switches, among which there are idle switch interfaces. Therefore, based on preset rules, the management network port and data network port in the server can be determined, and they need to be connected to the idle switch interfaces so that the server can be connected to the network device cluster.
[0065] Optionally, the current connection plan can be updated. Specifically, the current connection plan can be updated based on real-time needs, and specifically, the current connection plan can be deleted, added, or modified. For example, after determining the data network port in the target network device, the data network port can be added to the current connection plan, and the corresponding other network device interfaces that need to be connected can be determined, thereby updating the current connection plan. Subsequently, based on the updated current connection plan, the other network device interfaces that need to be connected to the data network port in the target network device can be determined.
[0066] The embodiments of the present disclosure do not limit the specific display method for the current connection plan, nor do they limit the specific display method for the network port of the target network port device and the interface of the network device to be connected.
[0067] Optionally, the current connection plan can be directly displayed, specifically the interface correspondence in the current connection plan can be displayed, or the correspondence between interfaces can be displayed in a visual manner. One or more interface correspondences in the current connection plan can be displayed.
[0068] In an optional embodiment, in order to facilitate the establishment of a wired connection and the positioning of the interface, the actual position of the interface may be displayed during the presentation, thereby facilitating the determination of the actual position of the interface and the establishment of a wired connection.
[0069] Optionally, the display is based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port. Specifically, it can be: displaying the actual location of the management network port in the target network device and the actual location of the first network device interface in the device to which it belongs. Optionally, the display is based on any data network port in the target network device and the second network device interface that needs to establish a wired connection with the data network port. Specifically, it can be: displaying the actual location of the data network port in the target network device and the actual location of the second network device interface in the device to which it belongs.
[0070] This embodiment can facilitate the positioning of the interface position by displaying the actual position of the interface in the network device to which it belongs, and facilitate the establishment of a wired connection between interfaces based on the actual position of the interface, thereby facilitating the establishment of a wired connection between network devices, reducing the operational difficulty of establishing a wired connection between network devices, and improving the efficiency, accuracy and verifiability of network device connections.
[0071] The embodiments of this disclosure do not limit the specific method for displaying the actual location of an interface. Alternatively, the actual location of an interface in a network device may be displayed graphically or in text. For example, the interface may be the third interface from the left in the second row of interfaces in the network device.
[0072] Optionally, the information of the target network device can be further displayed to facilitate locating the position of the target network device. Specifically, the actual position or identification information of the target network device can be displayed. The disclosed embodiment does not limit the information content and information form of the target network device, and can be used to locate the position of the target network device. For example, the actual position of the target network device in the row and column of the computer room can be displayed, and the device identification of the target network device can also be displayed to facilitate finding the position of the target network device according to the device identification. Optionally, the information of the device to which the first network device interface belongs can also be displayed to facilitate locating the position of the device to which the first network device interface belongs. The information of the device to which the second network device interface belongs can also be displayed to facilitate locating the position of the device to which the second network device interface belongs. This embodiment can facilitate locating the position of the network device by displaying the information of the network device, can facilitate establishing a wired connection between network devices, can reduce the operational difficulty of establishing a wired connection between network devices, and improve the efficiency, accuracy and verifiability of network device connections.
[0073] The embodiments of the present disclosure do not limit the specific display location of the connection plan display. Optionally, the connection plan can be displayed in the software interface or terminal interface, or on the network device. Specifically, the connection plan can be displayed by controlling the indicator light corresponding to the interface, so that the interface to be connected can be easily viewed. For example, for an interface that needs to be connected in sequence, the connection plan can be displayed by controlling the indicator light corresponding to the interface and the indicator light to which the interface needs to be connected.
[0074] Optionally, for any group of two interfaces that need to be connected in the current connection plan, the indicator lights corresponding to the interfaces can be controlled to display based on a preset display mode, specifically a flashing display mode.
[0075] Accordingly, when displaying network device information, the network device's own indicator lights can also be used for display. Optionally, for any two interfaces that need to be connected in the current connection plan, the indicator lights corresponding to the devices to which the interfaces belong can be controlled based on a preset display method. Specifically, a flashing display method can be used.
[0076] In an optional embodiment, when displaying the connection plan between network devices, the corresponding connection check result may also be determined and displayed.
[0077] The embodiments of the present disclosure do not limit the circumstances and timing for triggering a connection check. Optionally, a connection check may be triggered upon receiving a connection check request from a user. Alternatively, a connection check may be performed by detecting the connection status in real time.
[0078] The embodiments of the present disclosure do not limit the specific method of determining the connection check result, nor do they limit the operations performed according to different connection check results, nor do they limit the specific method of displaying the connection check result.
[0079] Optionally, for the management network port, it can be determined that the interface to be connected is the first network device interface. Accordingly, after the management network port establishes a wired connection, it can be determined whether the connected interface is the first network device interface, so that it can be determined whether the connection is correct and whether the connection complies with the current connection plan. Specifically, if it is determined that the management network port is connected to the first network device interface, it can be determined that the management network port and the first network device interface are correctly connected; if it is determined that the management network port is not connected to the first network device interface, it can be determined that the management network port is incorrectly connected, and it can be correspondingly displayed that the correct connection interface is the first network device interface.
[0080] Optionally, whether the connection is correct can be specifically determined based on the current connection plan. If the two connected interfaces comply with the current connection plan and are consistent with the corresponding relationship in the current connection plan, the two interfaces can be considered to be correctly connected. If the two connected interfaces do not comply with the current connection plan and are inconsistent with the corresponding relationship in the current connection plan, the two interfaces can be considered to be incorrectly connected.
[0081] Optionally, the method process may further include at least one of the following: (1) when it is determined that the management network port currently establishes a wired connection with the first network device interface, determining that the management network port currently is correctly connected to the first network device interface according to the current connection plan, and displaying a connection check result for indicating that the management network port currently is correctly connected to the first network device interface; (2) when it is determined that the management network port currently does not establish a wired connection with the first network device interface, determining that the management network port currently is not correctly connected to the first network device interface according to the current connection plan, and displaying a connection check result for indicating that the management network port currently is not correctly connected to the first network device interface.
[0082] This embodiment can display the connection check results of the management network port, easily determine the connection status of the management network port, thereby facilitating the adjustment of the corresponding wired connection, conveniently establishing wired connections between network devices, reducing the operational difficulty of establishing wired connections between network devices, and improving the efficiency, accuracy and verifiability of network device connections.
[0083] The disclosed embodiments do not limit the specific method for determining whether the management network port is currently correctly connected or incorrectly connected to the first network device interface. Alternatively, the method may determine whether the management network port and the interface currently connected to the management network port comply with the current connection plan based on the current connection plan; or determine whether the interface currently connected to the management network port is consistent with the network device interface corresponding to the management network port in the current connection plan.
[0084] Optionally, the current connection check result of the management network port can be recorded or updated based on the current connection status of the management network port. Specifically, the current connection check result of the management network port can be determined based on the current connection status of the management network port in combination with the current connection plan, so that the current connection check result of the management network port can be recorded or updated accordingly.
[0085] Optionally, the current connection status of the management network port can be continuously monitored or detected, so as to record or update the current connection check result of the management network port accordingly. In a specific example, the current connection status of the management network port can be continuously monitored, and the previous connection check result of the management network port may be "incorrectly connected". If it is determined that the current connection check result of the management network port remains "incorrectly connected", the record may not be updated. If it is determined that the current connection check result of the management network port is "correctly connected", the record may be updated. Accordingly, the display of the current connection check result of the management network port can be updated.
[0086] The embodiments of the present disclosure do not limit the specific method for determining that the management network port is not currently correctly connected to the first network device interface. Optionally, the management network port is not currently correctly connected to the first network device interface, which may include that the management network port is not currently connected to any other interface, and may also include that the management network port is currently connected to an interface other than the first network device interface. Accordingly, the connection check result used to characterize "incorrect connection" may specifically include: a connection check result used to characterize "unconnected interface", and a connection check result used to characterize "connected wrong interface".
[0087] The embodiments of the present disclosure do not limit the specific display method of the connection check results. Optionally, the connection check result used to characterize that the management network port is currently correctly connected to the first network device interface, and the connection check result used to characterize that the management network port is currently incorrectly connected to the first network device interface, can be displayed in different ways. The connection check result used to characterize an "unconnected interface" and the connection check result used to characterize an "incorrectly connected interface" can also be displayed in different ways. For example, for any network port, if the interface has not been connected, it can be displayed in the first color; if the interface has been connected but the connected interface is incorrect, it can be displayed in the second color; if the interface has been connected and the connected interface is correct, it can be displayed in the second color.
[0088] It is understandable that differentiating connection check results of different significances through different display methods can facilitate distinguishing different connection check results, thereby improving the efficiency of the connection check.
[0089] In an optional embodiment, a connection check may also be performed on the data network port.
[0090] Optionally, the method process may also include at least one of the following: (1) for any data network port in the target network device, and a second network device interface that needs to establish a wired connection with the data network port, when it is determined that the data network port currently establishes a wired connection with the second network device interface, according to the current connection plan, determine that the data network port is currently correctly connected to the second network device interface, and display a connection check result for indicating that the data network port is currently correctly connected to the second network device interface; (2) for any data network port in the target network device, and a second network device interface that needs to establish a wired connection with the data network port, when it is determined that the data network port currently does not establish a wired connection with the second network device interface, according to the current connection plan, determine that the data network port is currently not correctly connected to the second network device interface, and display a connection check result for indicating that the data network port is currently not correctly connected to the second network device interface.
[0091] This embodiment can display the connection check results of the data network port, easily determine the connection status of the data network port, thereby facilitating the adjustment of the corresponding wired connection, easily establish wired connections between network devices, reduce the operational difficulty of establishing wired connections between network devices, and improve the efficiency, accuracy and verifiability of network device connections.
[0092] For a detailed explanation of this embodiment, reference may be made to the explanations of other embodiments, and specifically to the above-mentioned embodiment of performing connection checking on the management network port.
[0093] The embodiments of the present disclosure do not limit the specific method of performing the connection check. Optionally, it is possible to determine whether other interfaces are connected based on the interface. If other interfaces are connected, it is possible to further determine whether the other interfaces connected are correct or whether they comply with the current connection plan, thereby determining the connection check result.
[0094] Optionally, for an interface that is connected to another interface, information about the other interface can be obtained through the interface. The disclosed embodiment does not limit the content and form of the interface information obtained, which can specifically be identification information of the interface, such as the physical address of the interface, which can be used to determine whether the connection is correct.
[0095] Optionally, the method may further include at least one of the following:
[0096] (1) Based on the interface identifier of the current wired connection established with the first network device interface, determine whether the first network device interface is correctly connected according to the current connection plan.
[0097] (2) Based on the interface identifier of the current wired connection to the management network port, determine whether the management network port is correctly connected according to the current connection plan.
[0098] (3) Based on the interface identifier of the current wired connection established with the second network device interface, determine whether the second network device interface is correctly connected according to the current connection plan.
[0099] (4) Based on the interface identifier of the current wired connection with any data network port, determine whether any data network port is correctly connected according to the current connection plan.
[0100] This embodiment can determine whether the different connected interfaces comply with the current connection plan by identifying other interfaces that have established wired connections with the interface, combined with the current connection plan, so as to determine whether the different connected interfaces are connected correctly, thereby improving the efficiency of interface connection checking.
[0101] The disclosed embodiments do not limit the interface information stored in the current connection plan. Specifically, an interface identifier may be stored so that a connection check can be performed based on the interface identifier. The disclosed embodiments do not limit the specific form of the interface identifier. The interface identifier may be a physical address of the interface, or other identification information such as an interface number.
[0102] The embodiments of the present disclosure do not limit the specific method for obtaining the interface identifier for establishing a wired connection with the interface. Alternatively, the interface identifiers of other connected interfaces can be obtained through the interface. For example, the interface identifier to which the first network device interface is connected can be determined by communicating with the first network device interface.
[0103] It is understandable that, based on the current connection plan, it is possible to determine whether the interface and other currently connected interfaces comply with the current connection plan, thereby determining a corresponding connection check result.
[0104] The embodiments of the present disclosure do not limit the specific display method of the connection check result.
[0105] Optionally, the connection check result used to indicate that the interface is correctly connected and the connection check result used to indicate that the interface is not correctly connected may be displayed in different ways.
[0106] The embodiments of the present disclosure do not limit the specific display location of the connection check results. They can be displayed in a software interface or a terminal interface, or on a network device. Specifically, they can be displayed for an interface. For example, by controlling the indicator light corresponding to the interface, the corresponding connection check results can be displayed, which makes it convenient to view the connection check results of the interface.
[0107] Optionally, the method may further include at least one of the following:
[0108] (1) When it is determined that the first network device interface is correctly connected, the indicator light corresponding to the first network device interface is controlled to be displayed based on the first display mode.
[0109] (2) When it is determined that the first network device interface is not correctly connected, the indicator light corresponding to the first network device interface is controlled to be displayed based on the second display mode.
[0110] (3) When it is determined that the management network port is correctly connected, the indicator light corresponding to the control management network port is displayed based on the first display mode.
[0111] (4) When it is determined that the management network port is not correctly connected, the indicator light corresponding to the control management network port is displayed based on the second display mode.
[0112] (5) When it is determined that the second network device interface is correctly connected, the indicator light corresponding to the second network device interface is controlled to be displayed based on the first display mode.
[0113] (6) When it is determined that the second network device interface is not correctly connected, the indicator light corresponding to the second network device interface is controlled to be displayed based on the second display mode.
[0114] (7) When it is determined that any data network port is correctly connected, the indicator light corresponding to the data network port is controlled to be displayed based on the first display mode.
[0115] (8) When it is determined that any data network port is not correctly connected, the indicator light corresponding to the data network port is controlled to be displayed based on the second display mode.
[0116] The first display mode can be used to indicate that the interface is correctly connected, and the second display mode can be used to indicate that the interface is not correctly connected. The first display mode and the second display mode can be different.
[0117] This embodiment can distinguish and display the connection check results of the interface in different display modes, which can facilitate viewing of the connection check results of the interface, improve the efficiency of the interface connection check, and improve the efficiency of the connection between devices.
[0118] The embodiments of the present disclosure do not limit the specific first and second display modes, as long as the first and second display modes are different. Optionally, the first display mode may be a first color for the indicator light, and the second display mode may be a second color for the indicator light. The first and second colors may be different. For example, the first color may be green and the second color may be yellow.
[0119] The embodiments of the present disclosure are not limited to the case of "the interface is not connected correctly." Optionally, the case of "the interface is not connected correctly" can include two cases: "other interfaces are not connected" and "the wrong interface is connected." Optionally, the display can be presented without distinguishing between these two cases. Optionally, different display methods can be used for the cases of "other interfaces are not connected" and "the wrong interface is connected."
[0120] Optionally, the second display mode may further include a third display mode and a fourth display mode. The third display mode and the fourth display mode may be different. Optionally, if it is determined that the interface is not connected to another interface, the indicator light corresponding to the interface is controlled to display based on the third display mode. Optionally, if it is determined that the interface connection is incorrect, the indicator light corresponding to the interface is controlled to display based on the fourth display mode. The third display mode can be used to indicate that the interface is not connected to another interface. The fourth display mode can be used to indicate an interface connection error.
[0121] The embodiments of the present disclosure do not limit the specific third and fourth display modes, as long as the third and fourth display modes are different. Alternatively, the third display mode may be a third color for the indicator light, and the fourth display mode may be a fourth color for the indicator light. The third and fourth colors may be different. For example, the third color may be white, and the fourth color may be red.
[0122] Furthermore, in an optional embodiment, interfaces within a network device may not be included in the current connection plan. For example, a network device may include an interface that does not need to be connected to other interfaces, thereby determining that the interface is not included in the current connection plan. For ease of description, interfaces not included in the current connection plan may be referred to as out-of-plan interfaces. A network port within a network device may also be a type of interface.
[0123] The embodiment of the present disclosure does not limit the display method for the planned interface. Specifically, the planned interface may not be displayed, or it may be displayed for easy distinction. Specifically, a special display method may be used to display the planned interface.
[0124] Therefore, optionally, the method process may also include: determining the planned out-of-plan interface not included in the current connection plan; the planned out-of-plan interface includes: network device interface and / or network port; based on a special display method, displaying the determined planned out-of-plan interface.
[0125] This embodiment can display the non-planned interfaces to facilitate the distinction between the interfaces included in the current connection plan and the interfaces not included, thereby improving the interface display effect, facilitating the establishment of wired connections between network devices, reducing the operational difficulty of establishing wired connections between network devices, and improving the efficiency, accuracy and verifiability of network device connections.
[0126] Optionally, interfaces outside the plan and interfaces included in the current connection plan may be displayed in different display modes.
[0127] The embodiments of the present disclosure do not limit the specific special display method. Optionally, the special display method may be to display the unplanned interface in black, or to display a cross for the unplanned interface.
[0128] The embodiments of the present disclosure do not limit the specific display location for displaying the planned external interface. Optionally, the planned external interface can be displayed in a software interface or terminal interface, or on a network device. Specifically, the planned external interface can be displayed by controlling the indicator light corresponding to the planned external interface on the network device, for example, by controlling the indicator light corresponding to the planned external interface on the network device to be blue.
[0129] In an optional embodiment, for connection check results, or for incorrect connection check results, information about other interfaces that should be correctly connected can be displayed for any interface based on the current connection plan, thereby improving the efficiency and accuracy of inter-device connections. Optionally, for incorrectly connected interfaces, information about other interfaces that the interface needs to be connected to can be displayed based on the current connection plan.
[0130] For ease of understanding, the embodiments of the present disclosure also provide a specific embodiment of device connection display.
[0131] Figure 3 A schematic diagram of a device connection display according to an embodiment of the present disclosure is schematically shown.
[0132] The target network device may be a server, and a first switch and a second switch are also deployed.
[0133] The target network device can be deployed with a management network port and data network ports 1 to 4.
[0134] The first switch may be deployed with switch interfaces 1 to 4, and the second switch may be deployed with switch interfaces 5 to 8.
[0135] Accordingly, an interface, specifically a terminal interface or software interface, can be deployed to display the connection plan and connection check results between the target network device, the first switch, and the second switch. For ease of distinction, the connection plan and connection check results are displayed in two different windows, namely the connection plan window and the connection check window.
[0136] Correspondingly, corresponding indicator lights are deployed for each interface on the actual target network device, the first switch, and the second switch, which can be used to display the connection check result.
[0137] The connection planning window in the interface may display icons of the target network device, the first switch, and the second switch, as well as the corresponding interface connection plan. Specifically, the different interfaces to be connected are shown with dotted lines.
[0138] These include: the management network port and switch port 5 that need to be connected; the data network port 1 and switch port 1 that need to be connected; the data network port 2 and switch port 2 that need to be connected; and the data network port 3 and switch port 8 that need to be connected. The connection plan here is for illustrative purposes only.
[0139] However, between the actual target network device, the first switch and the second switch, the management network port and switch interface 5 are already connected; the data network port 1 and switch interface 1 are already connected; the data network port 2 and switch interface 2 are not connected to other interfaces; the data network port 3 is mistakenly connected to the switch interface 7, and the switch interface 8 is mistakenly connected to the data network port 4.
[0140] Accordingly, a connection check can be performed based on the actual interface connection status.
[0141] The connection check window in the interface can display the corresponding connection check results.
[0142] The management network port, switch port 5, data network port 1, and switch port 1 can be filled with horizontal lines to indicate that they are correctly connected.
[0143] Data network port 2 and switch port 2 can be filled with vertical lines to indicate that other ports are not connected.
[0144] Data network port 3, data network port 4, switch port 7, and switch port 8 may be filled with slashes to indicate a connection error.
[0145] Of course, special display methods can also be used to display the out-of-plan interfaces that are not included in the connection plan.
[0146] In the connection check window, the connection plan represented by the dotted line in the connection plan window can also be retained, so as to facilitate determination of the correct connection interface.
[0147] Corresponding to the above method embodiment, the present disclosure also provides an apparatus embodiment.
[0148] Figure 4 The figure schematically shows a structural diagram of a device connection display apparatus according to an embodiment of the present disclosure.
[0149] The device may include a first display unit 401 and a second display unit 402 .
[0150] The first display unit 401 is used to display based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port. In one embodiment, the first display unit 401 can be used to execute S201 described above, which will not be repeated here.
[0151] Second display unit 402 is configured to, upon determining that the management network port is successfully connected to the first network device interface, determine a data network port to be connected on the target network device based on the management network port, and display information based on any data network port on the target network device and a second network device interface to which a wired connection needs to be established. In one embodiment, second display unit 402 can be configured to execute S202 described above, and will not be further described herein.
[0152] Optionally, the first display unit 401 is used to: determine, based on the current connection plan, that the management network port in the target network device needs to establish a wired connection with the interface of the first network device; and perform display based on the management network port and the interface of the first network device; the second display unit 402 is used to: determine, based on the current connection plan, that any data network port in the target network device needs to establish a wired connection with the interface of the second network device, and perform display based on any data network port and the interface of the second network device.
[0153] Optionally, the above-mentioned device also includes an inspection unit for performing at least one of the following: (1) when it is determined that the management network port currently establishes a wired connection with the first network device interface, according to the current connection plan, determining that the management network port currently is correctly connected to the first network device interface, and displaying a connection inspection result for indicating that the management network port currently is correctly connected to the first network device interface; (2) when it is determined that the management network port currently does not establish a wired connection with the first network device interface, according to the current connection plan, determining that the management network port currently is not correctly connected to the first network device interface, and displaying a connection inspection result for indicating that the management network port currently is not correctly connected to the first network device interface.
[0154] Optionally, the inspection unit is further configured to perform at least one of the following: (1) in the case where it is determined that any data network port currently establishes a wired connection with the second network device interface, determining, based on the current connection plan, that any data network port currently is correctly connected to the second network device interface, and displaying a connection inspection result indicating that any data network port currently is correctly connected to the second network device interface; (2) in the case where it is determined that any data network port currently does not establish a wired connection with the second network device interface, determining, based on the current connection plan, that any data network port currently is not correctly connected to the second network device interface, and displaying a connection inspection result indicating that any data network port currently is not correctly connected to the second network device interface.
[0155] Optionally, the inspection unit is further configured to perform at least one of the following: (1) based on the interface identifier currently establishing a wired connection with the first network device interface, determine whether the first network device interface is correctly connected according to the current connection plan; (2) based on the interface identifier currently establishing a wired connection with the management network port, determine whether the management network port is correctly connected according to the current connection plan; (3) based on the interface identifier currently establishing a wired connection with the second network device interface, determine whether the second network device interface is correctly connected according to the current connection plan; (4) based on the interface identifier currently establishing a wired connection with any data network port, determine whether any data network port is correctly connected according to the current connection plan.
[0156] Optionally, the checking unit is further configured to perform at least one of the following:
[0157] When it is determined that the first network device interface is correctly connected, controlling the indicator light corresponding to the first network device interface to display based on the first display mode;
[0158] When it is determined that the first network device interface is not correctly connected, controlling the indicator light corresponding to the first network device interface to display based on the second display mode;
[0159] When it is determined that the management network port is correctly connected, the indicator light corresponding to the management network port is controlled to be displayed based on the first display mode;
[0160] When it is determined that the management network port is not correctly connected, the indicator light corresponding to the management network port is controlled to be displayed based on the second display mode;
[0161] When it is determined that the second network device interface is correctly connected, controlling the indicator light corresponding to the second network device interface to display based on the first display mode;
[0162] When it is determined that the second network device interface is not correctly connected, controlling the indicator light corresponding to the second network device interface to display based on the second display mode;
[0163] When it is determined that any data network port is correctly connected, the indicator light corresponding to any data network port is controlled to display based on the first display mode;
[0164] When it is determined that any data network port is not correctly connected, the indicator light corresponding to any data network port is controlled to be displayed based on the second display mode.
[0165] Optionally, the checking unit is further configured to: determine an out-of-plan interface not included in the current connection plan; the out-of-plan interface includes: a network device interface and / or a network port; and display the determined out-of-plan interface based on a special display method.
[0166] Optionally, the first display unit 401 is used to: display the actual location of the management network port in the target network device, and the actual location of the first network device interface in the device to which it belongs; the second display unit 402 is used to: display the actual location of any data network port in the target network device, and the actual location of the second network device interface in the device to which it belongs.
[0167] The explanation of the above device embodiment can refer to the explanation of other embodiments.
[0168] Figure 5 A block diagram of an electronic device suitable for implementing the above method according to an embodiment of the present disclosure is schematically shown.
[0169] like Figure 5 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage unit 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0170] Various programs and data required for the operation of the electronic device 900 are stored in the RAM 903. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. The processor 901 executes the various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 902 and / or the RAM 903. It should be noted that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also execute the various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.
[0171] According to an embodiment of the present disclosure, electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to bus 904. Electronic device 900 may also include one or more of the following components connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 908 including a hard disk; and a communication section 909 including a network interface card such as a LAN card or modem. Communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. Removable media 911, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in drive 910 as needed, so that computer programs read from the removable media can be installed into storage section 908 as needed.
[0172] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.
[0173] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to cause the computer system to implement the method of the embodiments of the present disclosure.
[0174] The embodiment of the present disclosure also provides an electronic device, comprising: a display unit; one or more processors, communicatively coupled to the display unit; the one or more processors being configured to execute: displaying in the display unit based on a management network port in a target network device and a first network device interface that needs to establish a wired connection with the management network port; upon determining that the management network port is successfully connected to the first network device interface, determining a data network port to be connected in the target network device based on the management network port, and displaying in the display unit based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with the data network port. The one or more processors can be specifically configured to execute any method embodiment provided by the present disclosure.
[0175] The embodiments of the present disclosure also provide a computer program product, including a computer program or instruction, which, when executed by a processor, implements: display based on a management network port in a target network device and a first network device interface that needs to establish a wired connection with the management network port; when it is determined that the management network port is successfully connected to the first network device interface, the data network port to be connected in the target network device is determined based on the management network port, and display is performed based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with the data network port. When the computer program or instruction is executed, any method embodiment provided by the present disclosure can be specifically implemented.
[0176] Those skilled in the art will appreciate that various combinations and / or combinations of features described in the various embodiments and / or claims of this disclosure may be made, even if such combinations or combinations are not explicitly described in this disclosure. In particular, various combinations and / or combinations of features described in the various embodiments and / or claims of this disclosure may be made, without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0177] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A device connection display method, wherein: include: Display based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port; When it is determined that the management network port is successfully connected to the first network device interface, the data network port to be connected in the target network device is determined based on the management network port, and the second network device interface that needs to establish a wired connection with any data network port is displayed.
2. The method according to claim 1, wherein The display is based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port, including: Determine, based on the current connection plan, that a management network port in the target network device needs to establish a wired connection with an interface of the first network device; and present the display based on the management network port and the interface of the first network device; The display is based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with any data network port, including: According to the current connection plan, it is determined that any data network port in the target network device needs to establish a wired connection with the second network device interface, and the display is based on the any data network port and the second network device interface.
3. The method according to claim 1 or 2, wherein: Also include at least one of the following: When it is determined that the management network port currently establishes a wired connection with the first network device interface, determining, based on the current connection plan, that the management network port currently is correctly connected to the first network device interface, and displaying a connection check result indicating that the management network port currently is correctly connected to the first network device interface; When it is determined that the management network port currently has no wired connection with the first network device interface, based on the current connection plan, it is determined that the management network port currently has no correct connection with the first network device interface, and a connection check result is displayed to characterize that the management network port currently has no correct connection with the first network device interface.
4. The method according to claim 1 or 2, wherein: Also include at least one of the following: When it is determined that any one of the data network ports is currently connected to the second network device interface by a wired connection, determining, based on the current connection plan, that the any one of the data network ports is currently correctly connected to the second network device interface, and displaying a connection check result indicating that the any one of the data network ports is currently correctly connected to the second network device interface; When it is determined that no wired connection is currently established between any of the data network ports and the second network device interface, according to the current connection plan, it is determined that any of the data network ports is currently not correctly connected to the second network device interface, and a connection check result is displayed to characterize that any of the data network ports is currently not correctly connected to the second network device interface.
5. The method according to claim 1 or 2, wherein: Also include at least one of the following: determining, based on an interface identifier currently establishing a wired connection with the first network device interface and according to a current connection plan, whether the first network device interface is correctly connected; Based on the interface identifier currently establishing a wired connection with the management network port, and according to the current connection plan, determining whether the management network port is correctly connected; determining, based on an interface identifier currently establishing a wired connection with the second network device interface and according to a current connection plan, whether the second network device interface is correctly connected; Based on the interface identifier currently establishing a wired connection with the any one data network port and according to the current connection plan, it is determined whether the any one data network port is correctly connected.
6. The method according to claim 5, wherein: Also include at least one of the following: When it is determined that the first network device interface is correctly connected, controlling the indicator light corresponding to the first network device interface to display based on the first display mode; When it is determined that the first network device interface is not correctly connected, controlling the indicator light corresponding to the first network device interface to display based on the second display mode; When it is determined that the management network port is correctly connected, controlling the indicator light corresponding to the management network port to display based on the first display mode; When it is determined that the management network port is not correctly connected, controlling the indicator light corresponding to the management network port to display based on the second display mode; When it is determined that the second network device interface is correctly connected, controlling the indicator light corresponding to the second network device interface to display based on the first display mode; When it is determined that the second network device interface is not correctly connected, controlling the indicator light corresponding to the second network device interface to display based on the second display mode; When it is determined that any one of the data network ports is correctly connected, controlling the indicator light corresponding to the any one of the data network ports to display based on the first display mode; When it is determined that any of the data network ports is not correctly connected, the indicator light corresponding to the any of the data network ports is controlled to be displayed based on the second display mode.
7. The method according to claim 1 or 2, wherein: Also includes: Determine the out-of-plan interfaces that are not included in the current connection plan; The planned external interface includes: a network device interface and / or a network port; Based on a special display method, the determined planned external interfaces are displayed.
8. The method according to claim 1, wherein The display is based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port, including: Display the actual location of the management network port in the target network device and the actual location of the first network device interface in the device to which it belongs; The display is based on any data network port in the target network device and a second network device interface that needs to establish a wired connection with any data network port, including: The actual location of any one of the data network ports in the target network device and the actual location of the second network device interface in the device to which it belongs are displayed.
9. An electronic device comprising: Display unit; one or more processors communicatively coupled to the display unit; The one or more processors are configured to perform: Based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port, displaying them on the display unit; When it is determined that the management network port is successfully connected to the first network device interface, the data network port to be connected in the target network device is determined based on the management network port, and based on any data network port in the target network device, and the second network device interface that needs to establish a wired connection with any data network port, it is displayed in the display unit.
10. A computer program product comprising a computer program or instructions, which when executed by a processor implements: Display based on the management network port in the target network device and the first network device interface that needs to establish a wired connection with the management network port; When it is determined that the management network port is successfully connected to the first network device interface, the data network port to be connected in the target network device is determined based on the management network port, and the second network device interface that needs to establish a wired connection with any data network port is displayed.