This Application claims priority of Taiwan Patent Application No. 101142335, filed on Nov. 14, 2012, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The invention relates to the technology of identifying the relationship between network ports and network interface cards of a network device.
2. Description of the Related Art
As cloud computing technology develops, the scale of data centers have grown, and thus managing related network devices have become more critical. Many modem network devices, such as a server, a hub, etc., are multi-functional and have multiple network ports and multiple network interface cards. When a network device is connected to different subnets at the same time, identifying which network port corresponds to which network interface card is needed so as to correctly set related network environments and perform other required operations. In a conventional method for identifying network ports, firstly, one of the network ports is suspended or activated through a system command, and then whether a lamp indication of the network port changes is observed so as to determine whether the network port corresponds to the network interface card where the change caused by the system command occurred. However, the steps described above have to be repeated for many times to identify all network ports, and thus it takes a lot of time. In addition, when physical statuses of the network device have changed, such as connection to newly added devices, changes in connection settings or position shifts, the time consuming method may have to be performed again. Moreover, even if the method described above is accomplished, if tags indicating corresponding network interface cards are not stuck on the network ports artificially, a user may easily forget the relationship between the network ports and the network interface cards. Furthermore, since network devices provided by different manufacturers have different methods for setting network ports, the complexity of identifying network ports increases as the number of network devices increase. Accordingly, quickly and efficiently identifying the relationship between the network ports and the network interface cards are important issues in the related field.
In view of this, an embodiment of the invention provides a method for visually mapping network ports to network interface cards, applied to a network device having a plurality of network ports and a plurality of network interface cards, comprising: receiving a network port layout corresponding to a configuration of the plurality of network ports on the network device; providing an unplugging order of the plurality of network ports according to the network port layout; unplugging the plurality of network ports according to the unplugging order, and recording numbers of the plurality of network interface cards according an occurrence order of unplugging events occurring in the plurality of network interface cards when unplugging into an unplugging event record; combining the numbers of the plurality of network interface cards into the network port layout according to the unplugging event record and generating a network port mapping layout; and displaying the network port mapping layout.
Another embodiment of the invention provides a computer program product embodied in a tangible computer-readable storage medium, wherein when the computer program product is loaded into and executed by a network device having a plurality of network ports and a plurality of network interface cards, the network device performs a method for visually mapping network ports to network interface cards, the computer program product comprising: a first program code for receiving a network port layout corresponding to a configuration of the plurality of network ports on the network device; a second program code for providing an unplugging order of the plurality of network ports according to the network port layout; a third program code for recording numbers of the plurality of network interface cards according an occurrence order of unplugging events occurring in the plurality of network interface cards when unplugging the plurality of network ports according to the unplugging order into an unplugging event record; a fourth program code for combining the numbers of the plurality of network interface cards into the network port layout according to the unplugging event record and generating a network port mapping layout; and a fifth program code for displaying the network port mapping layout.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
It is to be understood that the following disclosure provides many different embodiments, or examples, for implementing different features of the invention. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. In addition, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
Firstly, in step S1, a network port layout corresponding to the configuration of the network ports of the network device is received. The network port layout presents how all of the network ports are arranged on the network device visually. The detail of the network port layout will be described later. In step S2, an unplugging order of the network ports is provided according to the network port layout. Then in step S3, when the network ports are unplugged according to the unplugging order, numbers of the network interface cards where unplugging events occur are recorded into a record in order. In step S4, the number of the corresponding network interface card of each network port is combined into the network port layout. In step S5, the network port layout combined with the numbers of the network interface cards is displayed.
The method for visually mapping network ports to network interface cards will be described in detail with reference to
After setting graphic objects according to the configuration of the network ports 211, 213, 213 and 214 on the network device 20, as shown in
Then, the user selects the record key 342 to start identifying the relationship between the network ports and the network interface cards. After the record key 342 is selected, first, the GUI 30 stores the graphic objects 311, 312, 313 and 314 on the operation area 300 as a network port layout. After that, as in step S1 of
The GUI described above may be provided by the network device. In another embodiment, the GUI may be provided by a portable electronic device connected to the network device to be identified, such as a tablet computer. The user may create or set a network port layout through the GUI provided by the portable electronic device connected to the network device. The GUI transmits the network port layout to the network device and then the network device performs steps S1 to S4 of
Methods and apparatus of the present disclosure, or certain aspects or portions of embodiments thereof, may take the form of a program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMS, hard drives, firmware, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing embodiments of the disclosure. The methods and apparatus of the present disclosure may also be embodied in the form of a program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing and embodiment of the disclosure. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates analogously to specific logic circuits.
In one embodiment, the method for visually mapping network ports to network interface cards described above may take the form of a computer program product embodied in a tangible computer readable media. When the computer program product is loaded into and executed by a network device having a plurality of network ports and a plurality of network interface cards, the network device performs a method for visually mapping the network ports to the network interface cards. The computer program product comprises: a first program code for receiving a network port layout corresponding to a configuration of the plurality of network ports on the network device; a second program code for providing an unplugging order of the plurality of network ports according to the network port layout; a third program code for recording numbers of the plurality of network interface cards according an occurrence order of unplugging events occurring in the plurality of network interface cards when unplugging the plurality of network ports according to the unplugging order into an unplugging event record; a fourth program code for combining the numbers of the plurality of network interface cards into the network port layout according to the unplugging event record and generating a network port mapping layout; and a fifth program code for displaying the network port mapping layout.
Moreover, the computer program product further comprises: a sixth program code for providing a graphical user interface; a seventh program code for moving the plurality of graphic objects on the graphical user interface by dragging to generate the network port layout; and an eighth program code for displaying the network port mapping layout on the graphical user interface.
While the invention has been described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
101142335 | Nov 2012 | TW | national |