CN109309633B - Whole cabinet server node management method and device based on management switch - Google Patents
Whole cabinet server node management method and device based on management switch Download PDFInfo
- Publication number
- CN109309633B CN109309633B CN201811108273.2A CN201811108273A CN109309633B CN 109309633 B CN109309633 B CN 109309633B CN 201811108273 A CN201811108273 A CN 201811108273A CN 109309633 B CN109309633 B CN 109309633B
- Authority
- CN
- China
- Prior art keywords
- management
- management switch
- node
- mac address
- server
- 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
Links
- 238000007726 management method Methods 0.000 title claims description 249
- 238000000034 method Methods 0.000 claims abstract description 38
- 238000004891 communication Methods 0.000 claims description 18
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims description 8
- 238000013461 design Methods 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000017525 heat dissipation Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000005265 energy consumption Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/40—Constructional details, e.g. power supply, mechanical construction or backplane
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2517—Translation of Internet protocol [IP] addresses using port numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/255—Maintenance or indexing of mapping tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The application discloses a method and a device for managing a whole cabinet server node based on a management switch, wherein the method is applied to a node BMC management chip and comprises the following steps: after the BMC management chip acquires the MAC address and the Port ID of the management switch in the entire cabinet server, the BMC management chip may acquire the cabinet ID of the entire cabinet server according to the MAC address of the management switch, and similarly, may also acquire the node ID of the entire cabinet server, and may further store the acquired cabinet ID and node ID in the FRU chip, so that the user may access the node location information therein, thereby implementing node management of the entire cabinet server. Therefore, the node management is not realized by adopting I2C topology, hardware board card management and the like, but the identification of the cabinet ID and the node ID of the cabinet server is completed according to the MAC address and the Port ID of the management switch, so that the complexity and the system cost of the management design of the whole cabinet are reduced, and the simple, efficient and low-cost management of the nodes of the cabinet server is realized.
Description
Technical Field
The application relates to the technical field of servers, in particular to a method and a device for managing nodes of a server of a whole cabinet based on a management switch.
Background
As the performance requirements of users on computers increase, the number of servers demanded by users increases. The whole rack server has great advantages in node density and TCO compared with the traditional server, and is more and more widely applied in practice.
The whole cabinet server is a high-density server with centralized power supply, centralized heat dissipation and unified management. In the design of the whole cabinet server, how to realize the management of the nodes in the whole cabinet with low cost and high efficiency becomes a problem to be solved firstly. At present, the management of nodes is usually realized by using a whole cabinet management hardware board, and meanwhile, a corresponding mechanism design and a corresponding software design need to be matched, for example, secondary management of the whole cabinet nodes is realized on a Scorpio SR whole cabinet server through a plurality of node middle boards, and primary management of the whole cabinet nodes is realized by using a management board (RMC), but the node management mode is realized by adopting an I2C topology, which results in poor signal stability, and meanwhile, board cards, structures, independent software and the like with corresponding management functions need to be developed, which causes complex whole cabinet management design and high cost.
Therefore, how to use a more advanced management method for the entire cabinet server nodes to replace the traditional management method to achieve the simple, efficient and low-cost management for the entire cabinet server nodes becomes a problem to be solved urgently.
Disclosure of Invention
In order to solve the above problems, the present application provides a method and an apparatus for managing a server node of a whole rack based on a management switch, and the specific technical scheme is as follows:
in a first aspect, the present application provides a method for managing a node of a complete rack server based on a management switch, where the method is applied to a node BMC management chip, and the method includes:
acquiring a Media Access Control (MAC) address and Port ID of each Port of a management switch in a whole cabinet server; the MAC address of the management switch and the cabinet code ID of the whole cabinet server are correspondingly bound in advance, and the Port ID of the management switch and the code ID of the whole cabinet server node are correspondingly bound in advance one by one;
acquiring a cabinet ID of the whole cabinet server according to the MAC address of the management switch;
acquiring a node ID of the whole cabinet server according to the Port ID of the management switch;
and storing the cabinet ID and the node ID of the whole cabinet server into a Field Replaceable Unit (FRU) chip so that a user can access node position information in the FRU chip to realize node management of the whole cabinet server.
In an optional implementation manner, before obtaining the MAC address and the Port ID of each Port number of the management switch in the whole rack server, the method further includes:
establishing communication connection with the management switch in advance;
correspondingly, the obtaining of the MAC address and the Port ID of each Port number of the management switch in the whole rack server includes:
and acquiring the MAC address and the Port ID of the management switch through communication connection with the management switch.
In an alternative implementation, the obtaining the MAC address and the Port ID of the management switch through the communication connection with the management switch includes:
broadcasting a Link Layer Discovery Protocol (LLDP) message to the management switch, wherein the message carries a request for acquiring an MAC address and a Port ID of the management switch;
and receiving and storing an LLDP message returned by the management switch, wherein the message carries the MAC address and the Port ID of the management switch.
In an optional implementation, the method further includes:
and directly accessing node position information in the FRU chip through an IPMI command.
In an optional implementation manner, the MAC address of the management switch and the enclosure ID of the whole enclosure server are data in a two-dimensional code form.
In a second aspect, the present application provides a complete equipment cabinet server node management device based on management switch, the device is applied to node BMC management chip, the device includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a Media Access Control (MAC) address and a Port ID of each Port number of a management switch in a whole cabinet server; the MAC address of the management switch and the cabinet code ID of the whole cabinet server are correspondingly bound in advance, and the Port ID of the management switch and the code ID of the whole cabinet server node are correspondingly bound in advance one by one;
a second obtaining unit, configured to obtain, according to the MAC address of the management switch, a cabinet ID of the complete cabinet server;
a third obtaining unit, configured to obtain a node ID of the complete cabinet server according to the Port ID of the management switch;
and the storage unit is used for storing the cabinet ID and the node ID of the whole cabinet server into a Field Replaceable Unit (FRU) chip so that a user can access the node position information in the FRU chip to realize node management of the whole cabinet server.
In an optional implementation, the apparatus further includes:
an establishing unit configured to establish a communication connection with the management switch in advance;
correspondingly, the first obtaining unit is specifically configured to:
and acquiring the MAC address and the Port ID of the management switch through communication connection with the management switch.
In an optional implementation manner, the first obtaining unit includes:
a broadcast subunit, configured to broadcast a link layer discovery protocol LLDP packet to the management switch, where the packet carries a request for acquiring an MAC address and a Port ID of the management switch;
and the receiving subunit is used for receiving and storing the LLDP message returned by the management switch, wherein the message carries the MAC address and the Port ID of the management switch.
In an optional implementation, the apparatus further includes:
and the access unit is used for directly accessing the node position information in the FRU chip through an IPMI command.
In an optional implementation manner, the MAC address of the management switch and the enclosure ID of the whole enclosure server are data in a two-dimensional code form.
In the Management method for the nodes of the whole cabinet server based on the Management switch, after a Baseboard Management Controller (BMC) Management chip acquires an MAC address and a Port ID of the Management switch in the whole cabinet server, the cabinet ID of the whole cabinet server may be acquired according to the MAC address of the Management switch, and meanwhile, the node ID of the whole cabinet server may be acquired, and the acquired cabinet ID and the node ID of the whole cabinet server may be stored in an FRU (field Replace unit) chip, so that a user may access node position information in the FRU chip, and node Management of the whole cabinet server may be achieved. Therefore, according to the method and the system, node management of the whole cabinet server is not realized by adopting I2C topology and developing board cards, structures, independent software and the like with corresponding management functions, the identification of the cabinet ID and the node ID of the whole cabinet server is completed according to the MAC address and the Port ID of the management switch, the complexity of management design of the whole cabinet and the system cost are reduced, and the simple, efficient and low-cost management of the nodes of the whole cabinet server is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a method for managing a server node of a complete cabinet based on a management switch according to an embodiment of the present application;
FIG. 2 is a schematic flowchart of acquiring a MAC address and a Port ID of a management switch according to an embodiment of the present disclosure;
fig. 3 is a schematic overall structure diagram of a method for managing a server node of a complete cabinet based on a management switch according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a complete cabinet server node management apparatus based on a management switch according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
In order to facilitate understanding of the technical solutions provided in the present application, the following briefly describes the research background of the technical solutions in the present application.
As is well known in the background art, with the rapid development of the internet industry, convergence is the future development direction, so that the equipment purchase, installation, use and maintenance become simpler. The traditional general server is applied in a large scale, so that the problems of low density, high energy consumption, large installation and maintenance workload and the like are caused, at the moment, the whole cabinet server is produced at the same time, and the whole cabinet server is a high-density server with centralized power supply, centralized heat dissipation and unified management. In the design of the whole cabinet server, how to realize the management of the nodes in the whole cabinet with low cost and high efficiency becomes a problem to be solved firstly. At present, the management of nodes is usually realized by using a whole cabinet management hardware board card, and meanwhile, corresponding mechanism design and software design are needed to be matched, but the node management mode is realized by adopting an I2C topology, so that the signal stability is poor, and meanwhile, the board card, the structure, independent software and the like which correspond to the management function are needed to be developed, so that the whole cabinet management design is complex and the cost is high. Therefore, how to use a more advanced management method for the entire cabinet server nodes to replace the traditional management method to achieve the simple, efficient and low-cost management for the entire cabinet server nodes becomes a problem to be solved urgently.
Based on the above, the application provides a method and a device for managing the whole cabinet server nodes based on the management switch, which are used for realizing the simple, efficient and low-cost management of the whole cabinet server nodes.
The following describes a method for managing a node of a whole rack server based on a management switch according to an embodiment of the present application in detail with reference to the accompanying drawings. Referring to fig. 1, which shows a flowchart of a method for managing a server node of a complete cabinet based on a management switch according to an embodiment of the present application, the embodiment may include the following steps:
s101: and acquiring a Media Access Control (MAC) address and a Port ID (identity) of each Port number of a management switch in the whole cabinet server, wherein the MAC address of the management switch and the cabinet code ID of the whole cabinet server are pre-correspondingly bound, and the Port ID of the management switch and the code ID of the whole cabinet server node are pre-correspondingly bound one by one.
In this embodiment, in order to implement management of nodes in the entire cabinet with low cost and high efficiency during design of the entire cabinet server, first, a node BMC management chip may be used to obtain a MAC address and a Port ID of each Port number of a management switch in the entire cabinet server.
In practical application, each server of the whole cabinet is provided with a management switch, and the MAC address of the management switch is unique; meanwhile, the whole cabinet server also has a unique cabinet ID in the data center machine room.
An optional implementation manner is that the MAC address of the management switch and the cabinet ID of the entire cabinet server may be data in a two-dimensional code form, for example, when the entire cabinet server is delivered, the two-dimensional code containing the MAC address information of the management switch may be attached to the management switch, and meanwhile, the two-dimensional code containing the cabinet ID information may be attached to a bottom plate or a cabinet corresponding to the entire cabinet server, so that a user may scan the MAC address attached to the management switch and the cabinet ID attached to the bottom plate or the cabinet of the entire cabinet server through a handheld tool (such as a smart phone, etc.), and correspondingly bind the two, so that the two have a one-to-one binding relationship, so as to perform step S102 subsequently.
Similarly, in practical applications, each Port (Port) of the management switch configured in each rack server is connected to 1 node of the rack server, and the ID of each Port of the management switch is unique, and based on the uniqueness of each Port ID in the management switch, a one-to-one correspondence relationship between the node ID and the Port ID of its corresponding management switch Port can be established, so as to subsequently execute step S103. For example, the height of the node in the cabinet may be established to correspond to the management switch ports one to one, where each Port of the management switch represents a different height, for example, Port 1 may correspond to 1U height, Port 2 corresponds to 2U height, and so on, the nodes of 1U/2U/4U/… are all connected to the ports of the corresponding management switches according to the starting U height, for example, the 2U node is at a position of 4 to 5U height, and the node ID corresponds to the management switch Port4 and Port 5.
In some possible implementation manners of the present application, before executing step S101, the BMC management chip needs to establish a communication connection with the management switch in advance;
accordingly, when the BMC management chip executes step S101, the MAC address and Port ID of the management switch may be acquired through the pre-established communication connection with the management switch.
In this implementation manner, a BMC management chip is designed on each server node in the entire cabinet server, and a management Port of the BMC management chip may be correspondingly interconnected with a Port of the management switch through a network cable one to one, so that the BMC management chip may obtain an MAC address and a Port ID of the management switch corresponding to the entire cabinet server based on the network cable.
Specifically, in some possible implementations of the present application, step S101 may specifically include steps S1011 to S1012:
s1011: broadcasting a Link Layer Discovery Protocol (LLDP) message to a management switch, where the message carries a request for acquiring an MAC address and a Port Id of the management switch.
In this implementation, after establishing a communication connection with the management switch, the BMC management chip may broadcast, based on the communication connection, an LLDP message to the management switch, where the LLDP message includes a request that the BMC management chip wants to obtain the MAC address and the Port Id of the management switch from the management switch, and the LLDP protocol has stronger signal stability and higher communication quality compared to a conventional I2C bus.
S1012: and receiving and storing an LLDP message returned by the management switch, wherein the message carries the MAC address and the Port ID of the management switch.
In this implementation manner, through step S1011, after the BMC management chip broadcasts the LLDP packet carrying the request for obtaining the MAC address and the Port Id of the management switch to the management switch, the LLDP packet returned by the management switch may be further received and stored based on the communication connection between the two, where the packet carries the MAC address and the Port Id of the management switch, that is, obtaining the MAC address and the Port Id of the management switch is implemented.
S102: and acquiring the cabinet ID of the whole cabinet server according to the MAC address of the management switch.
In this embodiment, after the BMC management chip acquires the MAC address of the management switch in step S101, the enclosure ID of the complete enclosure server may be further acquired according to the MAC address and a one-to-one binding relationship between the MAC address of the management switch and the enclosure ID of the complete enclosure server, which is pre-established.
S103: and acquiring the node ID of the whole cabinet server according to the Port ID of the management switch.
In this embodiment, after the BMC management chip acquires the Port ID of the management switch through step S101, the node ID of the complete cabinet server may be further acquired according to the Port ID and a one-to-one correspondence relationship between the Port ID of the management switch and the node ID of the complete cabinet server, which is established in advance.
It should be noted that the present application does not limit the execution sequence of step S102 and step S103, that is, the MAC address of the management switch may be obtained first and then the Port ID of the management switch may be obtained, the Port ID of the management switch may be obtained first and then the MAC address of the management switch may be obtained, or both of them may be obtained, and the specific execution sequence may be set according to the actual situation.
S104: and storing the cabinet ID and the node ID of the whole cabinet server into a Field Replaceable Unit (FRU) chip so that a user can access node position information in the FRU chip to realize node management of the whole cabinet server.
In this embodiment, after the enclosure ID and the node ID of the entire enclosure server are obtained in steps S102 and S103, data information representing the enclosure ID and the node ID may be stored in the FRU chip, so that a user may access node location information in the FRU chip through the BMC management chip, thereby implementing node management of the entire enclosure server.
In some possible implementation manners of the present application, after the BMC management chip performs step S104, the method further includes:
and directly accessing node position information in the FRU chip through an IPMI command.
In this implementation manner, after the BMC management chip stores the data information representing the enclosure ID and the node ID in the FRU chip through step S104, further, the user may directly access the enclosure ID and the node ID in the FRU chip through the BMC management chip by using an instruction supported by a network protocol, such as an IPMI command, that is, may directly access the location information of the server node corresponding to the whole enclosure.
In this way, in the management method for the nodes of the whole cabinet server based on the management switch, after the BMC management chip acquires the MAC address and the Port ID of the management switch in the whole cabinet server, the BMC management chip may then acquire the cabinet ID of the whole cabinet server according to the MAC address of the management switch, and at the same time, may acquire the node ID of the whole cabinet server, and may further store the acquired cabinet ID and node ID of the whole cabinet server in the FRU chip, so that a user may access the node location information in the FRU chip, thereby implementing node management of the whole cabinet server. Therefore, according to the method and the system, node management of the whole cabinet server is not realized by adopting I2C topology and developing board cards, structures, independent software and the like with corresponding management functions, the identification of the cabinet ID and the node ID of the whole cabinet server is completed according to the MAC address and the Port ID of the management switch, the complexity of management design of the whole cabinet and the system cost are reduced, and the simple, efficient and low-cost management of the nodes of the whole cabinet server is realized.
For convenience of understanding, reference is now made to fig. 3, which is a schematic diagram illustrating an overall structure of a management method for a whole rack server node based on a management switch. A specific implementation process of the management method for the server node of the whole cabinet based on the management switch provided by the embodiment of the application is introduced.
As shown in fig. 3, the implementation process of the embodiment of the present application is as follows: firstly, after the node is powered on, the BMC management chip on the node is powered on and started subsequently, the LLDP message carrying the request for acquiring the MAC address and the Port ID of the management switch is broadcasted to the management switch, then the LLDP message carrying the MAC address and the Port ID of the management switch returned by the management switch can be received and stored, then the cabinet ID and the node ID of the whole cabinet server can be acquired according to the one-to-one binding relationship between the MAC address of the management switch and the cabinet ID of the whole cabinet server which is established in advance and the one-to-one corresponding relationship between the Port ID of the management switch and the node ID of the whole cabinet server, and can be stored in the FRU chip, so that a user can directly access the node position information in the whole FRU chip by utilizing an IPMI command, and the management functions of all the nodes of the cabinet can be realized, the specific implementation process is shown in step S101 to step S104.
The foregoing embodiments describe the technical solutions of the methods of the present application in detail, and accordingly, the present application further provides a complete cabinet server node management apparatus based on a management switch, which is introduced below.
Referring to fig. 4, fig. 4 is a structural diagram of a whole rack server node management apparatus based on a management switch according to an embodiment of the present application, and as shown in fig. 4, the apparatus includes:
a first obtaining unit 401, configured to obtain a media access control MAC address and a Port ID of each Port of a management switch in an entire cabinet server; the MAC address of the management switch and the cabinet code ID of the whole cabinet server are correspondingly bound in advance, and the Port ID of the management switch and the code ID of the whole cabinet server node are correspondingly bound in advance one by one;
a second obtaining unit 402, configured to obtain, according to the MAC address of the management switch, an enclosure ID of the complete enclosure server;
a third obtaining unit 403, configured to obtain a node ID of the complete cabinet server according to the Port ID of the management switch;
the storage unit 404 is configured to store the cabinet ID and the node ID of the complete cabinet server in a field replaceable unit FRU chip, so that a user can access node position information in the FRU chip, and node management of the complete cabinet server is achieved.
Optionally, the apparatus further comprises:
an establishing unit configured to establish a communication connection with the management switch in advance;
correspondingly, the first obtaining unit 401 is specifically configured to:
and acquiring the MAC address and the Port ID of the management switch through communication connection with the management switch.
Optionally, the first obtaining unit 401 includes:
a broadcast subunit, configured to broadcast a link layer discovery protocol LLDP packet to the management switch, where the packet carries a request for acquiring an MAC address and a Port ID of the management switch;
and the receiving subunit is used for receiving and storing the LLDP message returned by the management switch, wherein the message carries the MAC address and the Port ID of the management switch.
Optionally, the apparatus further comprises:
and the access unit is used for directly accessing the node position information in the FRU chip through an IPMI command.
Optionally, the MAC address of the management switch and the enclosure ID of the whole enclosure server are data in a two-dimensional code format.
In this way, in the management switch-based node management device for the whole cabinet server, after the BMC management chip acquires the MAC address and the Port ID of the management switch in the whole cabinet server, the BMC management chip can acquire the cabinet ID of the whole cabinet server according to the MAC address of the management switch, and simultaneously acquire the node ID of the whole cabinet server, and further can store the acquired cabinet ID and node ID of the whole cabinet server in the FRU chip, so that a user can access the node position information in the FRU chip, and thus the node management of the whole cabinet server is realized. Therefore, according to the method and the system, node management of the whole cabinet server is not realized by adopting I2C topology and developing board cards, structures, independent software and the like with corresponding management functions, the identification of the cabinet ID and the node ID of the whole cabinet server is completed according to the MAC address and the Port ID of the management switch, the complexity of management design of the whole cabinet and the system cost are reduced, and the simple, efficient and low-cost management of the nodes of the whole cabinet server is realized.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for 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 phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in 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 medium known in the art.
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 (10)
1. A management switch-based complete cabinet server node management method is characterized in that the method is applied to a node BMC management chip, and the method comprises the following steps:
acquiring a Media Access Control (MAC) address and Port ID of each Port of a management switch in a whole cabinet server; the MAC address of the management switch and the cabinet coding ID of the whole cabinet server are correspondingly bound in a one-to-one binding relationship in advance, and the Port ID of the management switch and the coding ID of the whole cabinet server node are correspondingly bound in advance one by one;
acquiring a cabinet ID of the whole cabinet server according to the MAC address of the management switch;
acquiring a node ID of the whole cabinet server according to the Port ID of the management switch;
and storing the cabinet ID and the node ID of the whole cabinet server into a Field Replaceable Unit (FRU) chip so that a user can access node position information in the FRU chip to realize node management of the whole cabinet server.
2. The method for managing the nodes of the whole cabinet server based on the management switch as claimed in claim 1, wherein before obtaining the MAC address and the PortID of each port number of the management switch in the whole cabinet server, the method further comprises:
establishing communication connection with the management switch in advance;
correspondingly, the obtaining of the MAC address and the PortID of each port number of the management switch in the whole rack server includes:
and acquiring the MAC address and the Port ID of the management switch through communication connection with the management switch.
3. The method for managing the whole cabinet server node based on the management switch as claimed in claim 2, wherein the obtaining the MAC address and the PortID of the management switch through the communication connection with the management switch comprises:
broadcasting a Link Layer Discovery Protocol (LLDP) message to the management switch, wherein the message carries a request for acquiring an MAC address and a PortID of the management switch;
and receiving and storing an LLDP message returned by the management switch, wherein the message carries the MAC address and the PortID of the management switch.
4. The method for managing the server nodes of the complete cabinet based on the management switch as claimed in claim 1, wherein the method further comprises:
and directly accessing node position information in the FRU chip through an IPMI command.
5. The node management method for the whole cabinet server based on the management switch as claimed in any one of claims 1 to 4, wherein the MAC address of the management switch and the cabinet ID of the whole cabinet server are data in a two-dimensional code form.
6. The utility model provides a complete cabinet server node management device based on management switch which characterized in that, the device is applied to node BMC management chip, the device includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a Media Access Control (MAC) address and a Port ID of each Port number of a management switch in a whole cabinet server; the MAC address of the management switch and the cabinet coding ID of the whole cabinet server are correspondingly bound in a one-to-one binding relationship in advance, and the PortID of the management switch and the coding ID of the whole cabinet server node are correspondingly bound in advance one by one;
a second obtaining unit, configured to obtain, according to the MAC address of the management switch, a cabinet ID of the complete cabinet server;
a third obtaining unit, configured to obtain a node ID of the complete cabinet server according to the Port ID of the management switch;
and the storage unit is used for storing the cabinet ID and the node ID of the whole cabinet server into a Field Replaceable Unit (FRU) chip so that a user can access the node position information in the FRU chip to realize node management of the whole cabinet server.
7. The apparatus of claim 6, further comprising:
an establishing unit configured to establish a communication connection with the management switch in advance;
correspondingly, the first obtaining unit is specifically configured to:
and acquiring the MAC address and the PortID of the management switch through communication connection with the management switch.
8. The apparatus of claim 7, wherein the first obtaining unit comprises:
a broadcast subunit, configured to broadcast a link layer discovery protocol LLDP packet to the management switch, where the packet carries a request for acquiring an MAC address and a Port ID of the management switch;
and the receiving subunit is used for receiving and storing the LLDP message returned by the management switch, wherein the message carries the MAC address and the PortID of the management switch.
9. The apparatus of claim 6, further comprising:
and the access unit is used for directly accessing the node position information in the FRU chip through an IPMI command.
10. The apparatus of any one of claims 6-9, wherein the MAC address of the management switch and the enclosure ID of the whole enclosure server are data in the form of two-dimensional codes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811108273.2A CN109309633B (en) | 2018-09-21 | 2018-09-21 | Whole cabinet server node management method and device based on management switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811108273.2A CN109309633B (en) | 2018-09-21 | 2018-09-21 | Whole cabinet server node management method and device based on management switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109309633A CN109309633A (en) | 2019-02-05 |
CN109309633B true CN109309633B (en) | 2021-06-15 |
Family
ID=65224126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811108273.2A Active CN109309633B (en) | 2018-09-21 | 2018-09-21 | Whole cabinet server node management method and device based on management switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109309633B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111865677B (en) | 2020-07-13 | 2022-11-04 | 苏州浪潮智能科技有限公司 | Device for identifying ID address of server node |
CN112000607A (en) * | 2020-09-11 | 2020-11-27 | 苏州浪潮智能科技有限公司 | Whole cabinet server node non-contact ID address identification device and method |
CN113794786B (en) * | 2021-08-25 | 2023-12-26 | 新华三大数据技术有限公司 | Management equipment and service system |
CN114492694A (en) * | 2022-02-08 | 2022-05-13 | 北京城建设计发展集团股份有限公司 | Rack building method and system based on rail transit and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107979497A (en) * | 2017-12-26 | 2018-05-01 | 北京搜狐新媒体信息技术有限公司 | A kind of method of automatic configuration and device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340411B (en) * | 2010-07-26 | 2016-01-20 | 深圳市腾讯计算机系统有限公司 | A kind of server information data management method and system |
CN102571441B (en) * | 2012-01-18 | 2017-03-15 | 百度在线网络技术(北京)有限公司 | Whole machine cabinet intelligent management, system and device |
CN103516817A (en) * | 2012-06-20 | 2014-01-15 | 鸿富锦精密工业(深圳)有限公司 | Server positioning method and system |
CN103685386B (en) * | 2012-09-12 | 2019-04-12 | 北京百度网讯科技有限公司 | For determining the method and apparatus for calculating location information of the equipment in whole machine cabinet |
CN105308583B (en) * | 2014-05-16 | 2018-05-11 | 华为技术有限公司 | Cabinet type server and the data center based on the cabinet type server |
CN106301872A (en) * | 2015-06-25 | 2017-01-04 | 伊姆西公司 | The method and apparatus determining the server location of data center |
US10404676B2 (en) * | 2016-03-29 | 2019-09-03 | Intel Corporation | Method and apparatus to coordinate and authenticate requests for data |
CN108390765B (en) * | 2017-02-03 | 2020-06-05 | 中国移动通信有限公司研究院 | Temperature positioning method and device for whole cabinet server of data center |
-
2018
- 2018-09-21 CN CN201811108273.2A patent/CN109309633B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107979497A (en) * | 2017-12-26 | 2018-05-01 | 北京搜狐新媒体信息技术有限公司 | A kind of method of automatic configuration and device |
Also Published As
Publication number | Publication date |
---|---|
CN109309633A (en) | 2019-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109309633B (en) | Whole cabinet server node management method and device based on management switch | |
CN110505319A (en) | A kind of RS485 is from device address auto-allocation method and system | |
CN105391568A (en) | SDN (Software Defined Network) implementation method, device and system | |
CN103621049A (en) | System and method for automatically addressing devices in multi-drop network | |
CN108401037A (en) | User terminal and the binding method of equipment, device and system | |
CN112953774B (en) | Network topology generation method, system, equipment and computer storage medium | |
CN103188091A (en) | Management method of cloud service system and management system | |
CN109194525A (en) | A kind of network node configuration method and management node | |
CN103731489A (en) | Data storage method, system and equipment | |
CN111315176B (en) | Method and device for positioning nodes in cabinet | |
CN110839089A (en) | Server positioning method, system, electronic equipment and storage medium | |
CN109769038A (en) | A kind of method and device of configuring internet protocol address | |
CN108280030B (en) | Register address allocation method, system and related device | |
CN113032134A (en) | Method and device for realizing cloud computing resource allocation and cloud management server | |
CN100492297C (en) | Control method for implementing distribution type apparatus | |
CN102186257A (en) | Communication method of wireless terminal and host equipment, wireless terminal and host equipment | |
EP3474501B1 (en) | Network device stacking | |
RU2010111754A (en) | NETWORK SYSTEM | |
CN110401561B (en) | Server positioning method, system, equipment and computer readable storage medium | |
CN103200593B (en) | Base station self-starting and self-starting householder method and equipment | |
CN101599981A (en) | Network disk system and method thereof | |
CN107493181B (en) | Indication method and device of virtual expansion port | |
CN112953739A (en) | K8S platform-based method, system and storage medium for nanotube SDN | |
CN110784510A (en) | Method for accessing target service node to bus and information interaction method of service node | |
CN113347046B (en) | Network access method and device |
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 |