CN110912733B - Bare computer topological relation determining method, system, equipment and computer medium - Google Patents

Bare computer topological relation determining method, system, equipment and computer medium Download PDF

Info

Publication number
CN110912733B
CN110912733B CN201911053597.5A CN201911053597A CN110912733B CN 110912733 B CN110912733 B CN 110912733B CN 201911053597 A CN201911053597 A CN 201911053597A CN 110912733 B CN110912733 B CN 110912733B
Authority
CN
China
Prior art keywords
bare
physical network
determining
computer
relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911053597.5A
Other languages
Chinese (zh)
Other versions
CN110912733A (en
Inventor
雷亚帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN201911053597.5A priority Critical patent/CN110912733B/en
Publication of CN110912733A publication Critical patent/CN110912733A/en
Application granted granted Critical
Publication of CN110912733B publication Critical patent/CN110912733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Abstract

The application discloses a bare computer topological relation determining method, a system, equipment and a computer medium, which are used for determining all bare computers in a target cloud computing platform; determining all physical network cards in a target cloud computing platform; acquiring a corresponding relation between a bare computer and a physical network card; acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card; and determining the topological relation of the bare computers based on the corresponding relation and the connection information. The bare computer topological relation determining method, system, device and computer readable storage medium provided by the application can determine the connection relation between the bare computer and the physical network card based on the corresponding relation, can determine the connection relation between the physical network card and the switch based on the connection information, and further can determine the topological relation of the bare computer according to the connection relation between the bare computer and the physical network card and the connection relation between the physical network card and the switch, namely, the application can rapidly determine the topological relation of the bare computer through the physical network card.

Description

Bare computer topological relation determining method, system, equipment and computer medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, a device, and a computer medium for determining a logical topological relation.
Background
In the cloud computing platform, a user can select a mirror image and a virtual network to create a cloud physical machine which only occupies a physical server like creating a virtual machine, and manages the life cycle of the physical server through a bare computer, and is responsible for registration, state management, operation and maintenance management, installation and deployment management and the like of the physical server.
In a cloud computing platform, each bare computer is provided with a corresponding physical network card, the bare computers are connected with a switch through the physical network cards, and in the operation and maintenance process of the cloud computing platform, relevant topological information of the bare computers, such as a topological relation between the bare computers and the switch, needs to be acquired.
In summary, how to improve the determination efficiency of the topological relation of bare computers in a cloud computing platform is a problem to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The application aims to provide a bare metal topological relation determining method, which can solve the technical problem of improving the determining efficiency of the topological relation of bare metals in a cloud computing platform to a certain extent. The application also provides a bare computer topological relation determining system, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a bare metal topological relation determining method comprises the following steps:
determining all bare computers in a target cloud computing platform;
determining all physical network cards in the target cloud computing platform;
acquiring the corresponding relation between the bare computer and the physical network card;
acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card;
and determining the topological relation of the bare metal based on the corresponding relation and the connection information.
Preferably, the determining the topological relation of the bare metal based on the corresponding relation and the connection information includes:
determining a connection relation between the bare computer and the switch based on the corresponding relation and the connection information, wherein the connection relation comprises the relation information of the connection between the bare computer and the switch through the physical network card and the port number;
and determining all the connection relations as the topological relations.
Preferably, the determining all bare computers in the target cloud computing platform includes:
acquiring a bare computer list in the target cloud computing platform;
determining all of the bare dies based on the bare die list;
the determining all physical network cards in the target cloud computing platform includes:
acquiring a physical network card list in the target cloud computing platform;
and determining all the physical network cards based on the physical network card list.
Preferably, the obtaining the bare metal list in the target cloud computing platform includes:
and judging whether the target cloud computing platform applies OpenStack or not, and if yes, acquiring the bare computer list through a corresponding ironic instruction.
Preferably, the acquiring the connection information of the physical network card includes:
and traversing the bare computer list and the physical network card list, and analyzing through the corresponding field of the physical network card to obtain the connection information.
Preferably, after determining the topological relation of the bare metal based on the correspondence and the connection information, the method further includes:
showing the switch and the corresponding port number based on the connection information;
displaying the bare computer and the physical network card based on the corresponding relation;
and according to a preset drawing mode, drawing the displayed switch, the displayed bare engine and the displayed topological connection between the physical network cards on the basis of the topological relation.
Preferably, after determining the topological relation of the bare metal based on the correspondence and the connection information, the method further includes:
and sending the topological relation to a display so as to enable the display to display the topological relation.
A bare metal topological relationship determination system, comprising:
the first determining module is used for determining all bare computers in the target cloud computing platform;
the second determining module is used for determining all physical network cards in the target cloud computing platform;
a first obtaining module, configured to obtain a corresponding relationship between the bare computer and the physical network card;
the second acquisition module is used for acquiring the connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card;
and a third determining module, configured to determine a topological relation of the bare metal based on the corresponding relation and the connection information.
A bare metal topological relation determination apparatus, comprising:
a memory for storing a computer program;
a processor, configured to implement the steps of the bare metal topological relation determination method according to any one of the above descriptions when the computer program is executed.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the bare metal topological relation determination method as described in any one of the above.
The bare computer topological relation determining method provided by the application determines all bare computers in a target cloud computing platform; determining all physical network cards in a target cloud computing platform; acquiring a corresponding relation between a bare computer and a physical network card; acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card; and determining the topological relation of the bare computers based on the corresponding relation and the connection information. According to the bare machine topological relation determining method, after all bare machines and all physical network cards in a target cloud computing platform are determined, the corresponding relation between the bare machines and the physical network cards is obtained, the connection information of the physical network cards is obtained, the connection relation between the bare machines and the physical network cards can be determined based on the corresponding relation, the connection information comprises switches and port numbers connected with the physical network cards, the connection relation between the physical network cards and the switches can be determined, the topological relation of the bare machines can be determined according to the connection relation between the bare machines and the physical network cards and the connection relation between the physical network cards and the switches, and the topological relation of the bare machines can be rapidly determined through the physical network cards. The bare computer topological relation determining system, the bare computer topological relation determining equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a bare metal topological relation determining method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a bare metal topology relationship presented herein;
fig. 3 is a schematic structural diagram of a bare metal topological relation determining system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a bare metal topological relation determining apparatus according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a bare metal topological relation determining device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a bare metal topology relationship determining method according to an embodiment of the present disclosure.
The bare metal topological relation determining method provided by the embodiment of the application can comprise the following steps:
step S101: and determining all bare computers in the target cloud computing platform.
In practical application, all bare computers in the target cloud computing platform may be determined first, and specifically, a corresponding bare computer reading instruction may be sent to the target cloud computing platform to obtain information of the bare computers, so as to determine all bare computers and the like in the target cloud computing platform according to the information of the bare computers.
Step S102: and determining all physical network cards in the target cloud computing platform.
In practical application, after all bare computers in the target cloud computing platform are determined, all physical network cards in the target cloud computing platform can be determined, and specifically, corresponding network card reading instructions can be sent to the target cloud computing platform to obtain the physical network cards.
Step S103: and acquiring the corresponding relation between the bare computer and the physical network card.
In practical application, after determining all bare computers and all physical network cards in a target cloud computing platform, the corresponding relationship between the bare computers and the physical network cards can be obtained, specifically, the corresponding relationship between the bare computers and the physical network cards can be determined according to the logical installation positions of the physical network cards, the corresponding relationship between the bare computers and the physical network cards can be determined according to the IP address relationship between the bare computers and the physical network cards, and the like.
Step S104: and acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card.
In practical application, after the corresponding relationship between the bare computer and the physical network card is obtained, the connection information of the physical network card can be obtained, and the connection information of the physical network card comprises the switch and the port number connected with the physical network card, so that the connection information between the physical network card and the switch can be determined according to the connection information of the physical network card.
Step S105: and determining the topological relation of the bare computers based on the corresponding relation and the connection information.
In practical application, after the connection information of the physical network card is acquired, the connection relationship between the bare computer and the physical network card is carried in the relationship, and the connection relationship between the physical network card and the switch is carried in the connection information, so that the connection relationship between the bare computer and the switch can be determined according to the corresponding relationship and the connection information, and the topological relationship of the bare computer can also be determined.
The bare computer topological relation determining method provided by the application determines all bare computers in a target cloud computing platform; determining all physical network cards in a target cloud computing platform; acquiring the corresponding relation between the bare computer and the physical network card; acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card; and determining the topological relation of the bare computers based on the corresponding relation and the connection information. According to the bare machine topological relation determining method, after all bare machines and all physical network cards in a target cloud computing platform are determined, the corresponding relation between the bare machines and the physical network cards is obtained, the connection information of the physical network cards is obtained, the connection relation between the bare machines and the physical network cards can be determined based on the corresponding relation, the connection information comprises switches and port numbers connected with the physical network cards, the connection relation between the physical network cards and the switches can be determined, the topological relation of the bare machines can be determined according to the connection relation between the bare machines and the physical network cards and the connection relation between the physical network cards and the switches, and the topological relation of the bare machines can be rapidly determined through the physical network cards.
According to the bare computer topological relation determining method, in the process of determining the topological relation of the bare computer based on the corresponding relation and the connection information, the connection relation between the bare computer and the switch can be determined based on the corresponding relation and the connection information, wherein the connection relation comprises the relation information of the connection between the bare computer and the switch through the physical network card and the port number; and determining all the connection relations as topological relations. That is, the connection relationship information between the bare computer and the switch through the physical network card and the port number can be used as the topological relationship of the bare computer, so that the connection relationship between the bare computer and the switch can be clear at a glance, and a user and the like can clear the topological structure of the bare computer according to the connection relationship.
According to the bare metal topological relation determining method, in order to improve bare metal determining efficiency, when all bare metals in a target cloud computing platform are determined, a bare metal list in the target cloud computing platform can be obtained, and all bare metals are determined based on the bare metal list; correspondingly, when all the physical network cards in the target cloud computing platform are determined, a physical network card list in the target cloud computing platform can be obtained, and all the physical network cards are determined based on the physical network card list.
According to the bare computer topological relation determining method, when the bare computer list in the target cloud computing platform is obtained, whether the target cloud computing platform applies OpenStack or not can be judged, and if yes, the bare computer list is obtained through a corresponding ironic instruction.
In practical application, when the connection information of the physical network card is obtained, the bare computer list and the physical network card list can be traversed, and the connection information is obtained by analyzing the corresponding field of the physical network card.
In this embodiment, the physical network card list may be obtained through a corresponding ironic instruction. In OpenStack, an ironic service is the bare engine service, and in a data model in the ironic, one node is a bare engine, and one port is a physical network card, so that information required by the application can be acquired through a corresponding ironic instruction, for example, a bare engine list can be acquired by correspondingly reading an instruction of node _ detail _ list, and a physical network card list and the like can be acquired by reading an instruction of port _ detail _ list; in addition, when acquiring the corresponding relationship between the bare engine and the physical network card and acquiring the connection information of the physical network card, the node _ detail _ list and the port _ detail _ list may be traversed, the local _ link _ connection field of each port may be analyzed, the switch _ info and the port _ id in the local _ link _ connection may be acquired to determine the connection information of the physical network card, where the switch _ info includes the switch and the port number connected to the physical network card, and the node _ uuid field may be analyzed to acquire the corresponding relationship between the bare engine and the physical network card.
According to the bare computer topological relation determining method, in order to facilitate a user to visually check the topological relation of the bare computer, after the topological relation of the bare computer is determined based on the corresponding relation and the connection information, the switch and the corresponding port number can be displayed based on the connection information; displaying the bare computer and the physical network card based on the corresponding relation; and according to a preset drawing mode, drawing the topological connection among the displayed switch, the displayed bare computer and the displayed physical network card based on the topological relation. Referring to fig. 2, fig. 2 is a schematic diagram of a bare metal topology according to the present application. In fig. 2, MAC denotes a MAC address of a physical network card; wherein, the bare computer 1 is connected with a Gigab1/0/1 port of the switch 1 through an MAC1 and is connected with a Fast1/0/5 port of the switch 2 through an MAC 2; the bare computer 2 is connected with a Gigab1/0/2 port of the switch 1 through an MAC3 and is connected with a Fast1/0/6 port of the switch 2 through an MAC 4; bare metal 3 is connected to the Fast1/0/7 port of the switch through MAC 5.
According to the bare computer topological relation determining method, in order to facilitate a user to check the topological relation of the bare computer, the topological relation can be sent to the display after the topological relation of the bare computer is determined based on the corresponding relation and the connection information, so that the display can display the topological relation. The manner in which the display displays the topological relation may be determined according to actual needs, and the present application is not limited in this respect.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a bare metal topology relationship determining system according to an embodiment of the present disclosure.
The bare metal topological relation determining system provided by the embodiment of the application can comprise:
the first determining module 101 is configured to determine all bare computers in the target cloud computing platform;
the second determining module 102 is configured to determine all physical network cards in the target cloud computing platform;
a first obtaining module 103, configured to obtain a corresponding relationship between a bare computer and a physical network card;
a second obtaining module 104, configured to obtain connection information of the physical network card, where the connection information includes an exchanger and a port number connected to the physical network card;
and a third determining module 105, configured to determine a topological relation of the bare metal based on the correspondence and the connection information.
In the bare metal topological relation determining system provided in the embodiment of the present application, the third determining module may include:
the first determining unit is used for determining the connection relation between the bare computer and the switch based on the corresponding relation and the connection information, wherein the connection relation comprises the relation information of the connection between the bare computer and the switch through a physical network card and a port number;
and the second determining unit is used for determining all the connection relations as topological relations.
In an embodiment of the present application, a bare metal topological relation determining system, where a first determining module includes:
the first obtaining submodule is used for obtaining a bare computer list in the target cloud computing platform;
a third determining unit, configured to determine all bare computers based on the bare computer list;
the second determining module may include:
the first acquisition unit is used for acquiring a physical network card list in a target cloud computing platform;
and the fourth determining unit is used for determining all the physical network cards based on the physical network card list.
In the system for determining a topology relationship of a bare metal provided in an embodiment of the present application, the first obtaining sub-module may include:
the first judging unit is used for judging whether the target cloud computing platform applies OpenStack or not, and if yes, acquiring a bare computer list through a corresponding ironic instruction.
In the system for determining a bare metal topological relation provided in an embodiment of the present application, the second obtaining module may include:
and the first traversal unit is used for traversing the bare computer list and the physical network card list and analyzing through the corresponding field of the physical network card to obtain the connection information.
The bare metal topological relation determination system provided by the embodiment of the application can further include:
the first display module is used for displaying the switch and the corresponding port number based on the connection information after the third determination module determines the topological relation of the bare metal based on the corresponding relation and the connection information;
the second display module is used for displaying the bare computer and the physical network card based on the corresponding relation;
and the first drawing module is used for drawing the topological connection among the displayed switch, the displayed bare engine and the displayed physical network card based on the topological relation according to a preset drawing mode.
The bare computer topological relation determination system provided by the embodiment of the application may further include:
and the first sending module is used for sending the topological relation to the display after the third determining module determines the topological relation of the bare machine based on the corresponding relation and the connection information so as to enable the display to display the topological relation.
The application also provides bare computer topological relation determining equipment and a computer readable storage medium, which have corresponding effects of the bare computer topological relation determining method provided by the embodiment of the application. Referring to fig. 4, fig. 4 is a schematic structural diagram of a bare metal topology relation determining apparatus according to an embodiment of the present disclosure.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 executes the computer program to realize the following steps:
determining all bare computers in a target cloud computing platform;
determining all physical network cards in a target cloud computing platform;
acquiring a corresponding relation between a bare computer and a physical network card;
acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card;
and determining the topological relation of the bare computers based on the corresponding relation and the connection information.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: determining the connection relation between the bare computer and the switch based on the corresponding relation and the connection information, wherein the connection relation comprises the relation information of the connection between the bare computer and the switch through a physical network card and a port number; and determining all connection relations as topological relations.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: acquiring a bare computer list in a target cloud computing platform; determining all bare computers based on the bare computer list; acquiring a physical network card list in a target cloud computing platform; and determining all the physical network cards based on the physical network card list.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and judging whether the target cloud computing platform applies OpenStack or not, and if yes, acquiring a bare computer list through a corresponding ironic instruction.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and traversing the bare computer list and the physical network card list, and analyzing through corresponding fields of the physical network card to obtain connection information.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: after determining the topological relation of the bare computers based on the corresponding relation and the connection information, displaying the switch and the corresponding port number based on the connection information; displaying the bare computer and the physical network card based on the corresponding relation; and according to a preset drawing mode, drawing the topological connection among the displayed switch, the displayed bare engine and the displayed physical network card based on the topological relation.
The bare computer topological relation determining device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and after determining the topological relation of the bare computer based on the corresponding relation and the connection information, sending the topological relation to a display so that the display displays the topological relation.
Referring to fig. 5, another bare metal topology relation determining device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the bare metal topological relation determination device and the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps:
determining all bare computers in a target cloud computing platform;
determining all physical network cards in a target cloud computing platform;
acquiring a corresponding relation between a bare computer and a physical network card;
acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card;
and determining the topological relation of the bare computers based on the corresponding relation and the connection information.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining the connection relation between the bare computer and the switch based on the corresponding relation and the connection information, wherein the connection relation comprises the relation information of the connection between the bare computer and the switch through a physical network card and a port number; and determining all connection relations as topological relations.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: acquiring a bare computer list in a target cloud computing platform; determining all bare computers based on the bare computer list; acquiring a physical network card list in a target cloud computing platform; and determining all the physical network cards based on the physical network card list.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and judging whether the target cloud computing platform applies OpenStack or not, and if yes, acquiring a bare computer list through a corresponding ironic instruction.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and traversing the bare computer list and the physical network card list, and analyzing through corresponding fields of the physical network card to obtain connection information.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after determining the topological relation of the bare computers based on the corresponding relation and the connection information, showing the switch and the corresponding port number based on the connection information; displaying the bare computer and the physical network card based on the corresponding relation; and according to a preset drawing mode, drawing the topological connection among the displayed switch, the displayed bare engine and the displayed physical network card based on the topological relation.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps: and after determining the topological relation of the bare computer based on the corresponding relation and the connection information, sending the topological relation to a display so that the display displays the topological relation.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in a bare metal topology relation determining system, a device and a computer readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of a corresponding part in a bare metal topology relation determining method provided in the embodiments of the present application, and details are not repeated herein. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A bare metal topological relation determining method is characterized by comprising the following steps:
determining all bare computers in the target cloud computing platform;
determining all physical network cards in the target cloud computing platform;
acquiring the corresponding relation between the bare computer and the physical network card;
acquiring connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card;
determining the topological relation of the bare metal based on the corresponding relation and the connection information;
wherein the determining all bare computers in the target cloud computing platform comprises: acquiring a bare computer list in the target cloud computing platform; determining all of the bare dies based on the bare die list;
wherein the obtaining of the bare metal list in the target cloud computing platform includes: judging whether the target cloud computing platform applies OpenStack or not, and if yes, acquiring the bare computer list through a corresponding ironic instruction;
wherein the determining the topological relation of the bare metal based on the corresponding relation and the connection information comprises:
determining a connection relation between the bare computer and the switch based on the corresponding relation and the connection information, wherein the connection relation comprises the relation information of the connection between the bare computer and the switch through the physical network card and the port number;
and determining all the connection relations as the topological relations.
2. The method of claim 1, wherein the determining all physical network cards in the target cloud computing platform comprises:
acquiring a physical network card list in the target cloud computing platform;
and determining all the physical network cards based on the physical network card list.
3. The method according to claim 2, wherein the obtaining the connection information of the physical network card comprises:
traversing the bare computer list and the physical network card list, and analyzing through the corresponding field of the physical network card to obtain the connection information.
4. The method according to any one of claims 1 to 3, wherein after determining the topological relation of the bare metal based on the corresponding relation and the connection information, the method further comprises:
showing the switch and the corresponding port number based on the connection information;
displaying the bare computer and the physical network card based on the corresponding relation;
and according to a preset drawing mode, drawing the displayed switch, the displayed bare computer and the displayed topological connection among the physical network cards on the basis of the topological relation.
5. The method of any of claims 1 to 3, wherein after determining the topological relationship of the bare metal based on the correspondence and the connection information, the method further comprises:
and sending the topological relation to a display so as to enable the display to display the topological relation.
6. A bare metal topological relation determination system, comprising:
the first determining module is used for determining all bare computers in the target cloud computing platform;
the second determining module is used for determining all physical network cards in the target cloud computing platform;
the first acquisition module is used for acquiring the corresponding relation between the bare computer and the physical network card;
the second acquisition module is used for acquiring the connection information of the physical network card, wherein the connection information comprises an exchanger and a port number connected with the physical network card;
a third determining module, configured to determine a topological relation of the bare metal based on the corresponding relation and the connection information;
wherein the first determining module comprises:
the first obtaining submodule is used for obtaining a bare computer list in the target cloud computing platform;
a third determining unit, configured to determine all bare computers based on the bare computer list;
wherein the first obtaining submodule comprises:
a first judging unit, configured to judge whether the target cloud computing platform applies OpenStack, and if yes, obtain the bare metal list through a corresponding ironic instruction;
wherein the third determining module comprises:
a first determining unit, configured to determine, based on the correspondence and the connection information, a connection relationship between the bare metal and the switch, where the connection relationship includes relationship information of connection between the bare metal and the switch through the physical network card and the port number;
a second determining unit, configured to determine all the connection relationships as the topological relationships.
7. A bare metal topological relation determination device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the bare metal topological relation determination method according to any one of claims 1 to 5 when executing said computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the bare metal topological relation determination method according to any one of claims 1 to 5.
CN201911053597.5A 2019-10-31 2019-10-31 Bare computer topological relation determining method, system, equipment and computer medium Active CN110912733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911053597.5A CN110912733B (en) 2019-10-31 2019-10-31 Bare computer topological relation determining method, system, equipment and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053597.5A CN110912733B (en) 2019-10-31 2019-10-31 Bare computer topological relation determining method, system, equipment and computer medium

Publications (2)

Publication Number Publication Date
CN110912733A CN110912733A (en) 2020-03-24
CN110912733B true CN110912733B (en) 2022-11-04

Family

ID=69816050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053597.5A Active CN110912733B (en) 2019-10-31 2019-10-31 Bare computer topological relation determining method, system, equipment and computer medium

Country Status (1)

Country Link
CN (1) CN110912733B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375176A (en) * 2016-08-29 2017-02-01 无锡华云数据技术服务有限公司 Method for accessing physical machine to cloud platform
WO2017067391A1 (en) * 2015-10-22 2017-04-27 中兴通讯股份有限公司 Data sharing method and device for virtual machines
CN109120494A (en) * 2018-08-28 2019-01-01 无锡华云数据技术服务有限公司 The method of physical machine is accessed in cloud computing system
CN109445801A (en) * 2018-11-05 2019-03-08 郑州云海信息技术有限公司 A kind of method and apparatus detecting bare machine network interface card information

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145760B2 (en) * 2006-07-24 2012-03-27 Northwestern University Methods and systems for automatic inference and adaptation of virtualized computing environments
CN103281248B (en) * 2013-06-09 2016-03-30 北京星网锐捷网络技术有限公司 The discover method of network topology, device and system
US9979627B2 (en) * 2015-02-06 2018-05-22 Dell Products, L.P. Systems and methods for bare-metal network topology discovery
CN104639372B (en) * 2015-02-13 2018-11-09 中国联合网络通信集团有限公司 The correlating method and system of overlay network and physical network based on SDN
CN106789327A (en) * 2017-01-10 2017-05-31 携程旅游信息技术(上海)有限公司 The automatic method and system that host is added for cloud platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017067391A1 (en) * 2015-10-22 2017-04-27 中兴通讯股份有限公司 Data sharing method and device for virtual machines
CN106375176A (en) * 2016-08-29 2017-02-01 无锡华云数据技术服务有限公司 Method for accessing physical machine to cloud platform
CN109120494A (en) * 2018-08-28 2019-01-01 无锡华云数据技术服务有限公司 The method of physical machine is accessed in cloud computing system
CN109445801A (en) * 2018-11-05 2019-03-08 郑州云海信息技术有限公司 A kind of method and apparatus detecting bare machine network interface card information

Also Published As

Publication number Publication date
CN110912733A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
US10205789B2 (en) Determining a physical location of a device
CN105376107B (en) Terminal testing method and proxy server
EP2804393A1 (en) Remote control method, intelligent terminal and intelligent remote control system
US9514641B2 (en) Smart remote control
CN110719345B (en) Virtual machine MAC address generation method, system, equipment and computer medium
CN107317853B (en) Method, device and system for displaying dynamic effect of message popup window
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
CN111756756A (en) Terminal network control method and device, electronic equipment and storage medium
CN109905292B (en) Terminal equipment identification method, system and storage medium
CN108600399A (en) Information-pushing method and Related product
CN112953774A (en) Network topology generation method, system, equipment and computer storage medium
CN107122104B (en) Data display method and device
CN109995595B (en) RGW quota determining method, system, equipment and computer medium
CN108847120B (en) Drawing method based on electronic fence map order thermodynamic diagram distribution
CN110912733B (en) Bare computer topological relation determining method, system, equipment and computer medium
CN110442059B (en) Controlled equipment expanding method and device and control equipment
CN113064689A (en) Scene recognition method and device, storage medium and electronic equipment
US9600451B2 (en) Method, terminal, and server for displaying file
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN114328130B (en) Server monitoring method, system, equipment and computer readable storage medium
CN114422236B (en) Intelligent device access method and device and electronic device
CN111030863B (en) Node topology information determination method, device, equipment and storage medium
CN111078518B (en) Data acquisition method, terminal device and computer readable storage medium
CN109800229B (en) Data access method and related equipment
CN111831616A (en) Picture examination problem display method, related device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant