CN110401561B - Server positioning method, system, equipment and computer readable storage medium - Google Patents

Server positioning method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110401561B
CN110401561B CN201910563091.2A CN201910563091A CN110401561B CN 110401561 B CN110401561 B CN 110401561B CN 201910563091 A CN201910563091 A CN 201910563091A CN 110401561 B CN110401561 B CN 110401561B
Authority
CN
China
Prior art keywords
target
server
connection information
information
switch
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
CN201910563091.2A
Other languages
Chinese (zh)
Other versions
CN110401561A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910563091.2A priority Critical patent/CN110401561B/en
Publication of CN110401561A publication Critical patent/CN110401561A/en
Application granted granted Critical
Publication of CN110401561B publication Critical patent/CN110401561B/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/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a server positioning method, a system, equipment and a computer readable storage medium, when applied to a BMC (baseboard management controller) of a target server, a connection information query instruction is sent to a switch connected with the target server, wherein the switch comprises a switch in a cabinet of the target server; receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers; and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position. According to the server positioning method, the server positioning system, the server positioning device and the computer readable storage medium, the BMC of the target server acquires the target information from the switch of the cabinet through the connection information inquiry instruction, determines the target position information of the target server based on the target information, can realize the positioning of the server without the help of the Scorpio Rack system, and is good in applicability.

Description

Server positioning method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a server positioning method, system, device, and computer readable storage medium.
Background
With the development of the internet, more and more data centers have come to be operated, each data center includes a plurality of cabinets and auxiliary communication devices, and each cabinet can accommodate a plurality of servers, so it is important how to locate the position of a target server in the cabinet, for example, when updating the target server material or checking the current state of the system, an operation and maintenance person needs to accurately find the position of the target server at the first time.
In order to facilitate the determination of the location of the target server in the cabinet, a method is known to install a scorpio Rack cabinet system for the cabinet, so that the location of each Rack node in the cabinet can be accurately located through management software.
However, in the existing method, the Scorpio Rack cabinet system adopts a modular design scheme, and is composed of a cabinet subsystem, a network subsystem, a power supply subsystem, a server node subsystem, a centralized heat dissipation subsystem and a centralized management subsystem, each subsystem is in a customized design, and is greatly different from a general cabinet and a server, and management software, a fan wall control system and the like are required to be developed, so that a great deal of manpower and financial waste is caused, the purpose of reusing cabinet resources cannot be achieved, and the applicability is poor.
In summary, how to improve the applicability of the method for locating a server in a cabinet is a problem to be solved by those skilled in the art.
Disclosure of Invention
The present application aims to provide a server positioning method, which can solve the technical problem of how to improve the applicability of the server positioning method in a cabinet to a certain extent. The application also provides a server positioning system, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a server positioning method is applied to BMC of a target server and comprises the following steps:
sending a connection information query instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located;
receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
Preferably, the sending the connection information query instruction to the switch connected to the target server includes:
and sending a port number query instruction to the switch connected with the target server, wherein the port number is the port number connected with the target server on the switch.
Preferably, the determining, based on a correspondence between preset connection information and a server location, target location information corresponding to the target connection information includes:
determining target height information corresponding to the target connection information based on a corresponding relation between preset connection information and the height of the server;
determining target horizontal distance information corresponding to the target connection information based on a corresponding relation between preset connection information and server horizontal distance;
determining the target location information of the target server based on the target height information and the target horizontal distance information.
Preferably, the determining, based on a correspondence between preset connection information and a server location, target location information corresponding to the target connection information includes:
determining target cabinet position number information corresponding to the target connection information based on a corresponding relation between preset connection information and cabinet position numbers;
and determining the target position information according to the target cabinet position number information.
Preferably, after determining the target location information corresponding to the target connection information, the method further includes:
and correspondingly storing the identification information of the target server and the target position information into the field replaceable unit.
Preferably, the sending the connection information query instruction to the switch connected to the target server includes:
and judging whether the connection information of the target server changes or not, if so, executing the step of sending a connection information inquiry command to a switch connected with the target server.
A server positioning system is applied to the BMC of a target server and comprises:
the first sending module is used for sending a connection information query instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located;
the first receiving module is used for receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the target connection information comprises information for distinguishing connection modes between the switch and different servers;
and the first determining module is used for determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
A server positioning device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server positioning method as described in any one of the above when executing the computer program.
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 server positioning method as set forth in any of the above.
A server positioning method is applied to a switch of a cabinet and comprises the following steps:
receiving a connection information query instruction sent by a BMC (baseboard management controller) of a target server connected with the switch, wherein the target server is positioned in the cabinet;
responding to the connection information query instruction, and acquiring corresponding target connection information, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and sending the target connection information to the BMC so that the BMC determines target position information corresponding to the target connection information based on a corresponding relation between preset connection information and a server position.
The server positioning method is applied to the BMC of a target server, and is used for sending a connection information inquiry instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet of the target server; receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers; and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position. According to the server positioning method, the BMC of the target server acquires the target information from the switch of the cabinet through the connection information query instruction, determines the target position information of the target server based on the target information, can realize positioning of the server without the help of the Scorpio Rack cabinet system, and is good in applicability. The server positioning system, the server positioning device 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 first flowchart of a server positioning method according to an embodiment of the present application;
fig. 2 is a second flowchart of a server positioning method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server positioning system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server positioning device according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a server positioning device 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.
With the development of the internet, more and more data centers have come to be operated, each data center includes a plurality of cabinets and auxiliary communication devices, and each cabinet can accommodate a plurality of servers, so it is important how to locate the position of a target server in the cabinet, for example, when updating the target server material or checking the current state of the system, an operation and maintenance person needs to accurately find the position of the target server at the first time. In order to facilitate the determination of the location of the target server in the cabinet, a method is known to install a scorpion Rack system for the cabinet, so that the location of each Rack node in the cabinet can be accurately located through management software. However, in the existing method, the Scorpio Rack cabinet system adopts a modular design scheme, and is composed of a cabinet subsystem, a network subsystem, a power supply subsystem, a server node subsystem, a centralized heat dissipation subsystem and a centralized management subsystem, each subsystem is in a customized design, and is greatly different from a general cabinet and a server, and management software, a fan wall control system and the like are required to be developed, so that a great deal of manpower and financial waste is caused, the purpose of reusing cabinet resources cannot be achieved, and the applicability is poor. The server positioning method can improve the applicability of the server positioning method in the cabinet.
Referring to fig. 1, fig. 1 is a first flowchart of a server positioning method according to an embodiment of the present application.
The server positioning method provided by the application is applied to the BMC of the target server, and comprises the following steps:
step S101: and sending a connection information inquiry instruction to the switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located.
In practical applications, a BMC (baseboard management controller) of a target server may first send a connection information query instruction to a switch connected to the target server, where the switch related to the present application refers to a switch in a cabinet where the target server is located. Specifically, the BMC may send the connection information query instruction to the switch after receiving the location query instruction, for example, the BMC sends the connection information query instruction to the switch after receiving the location query instruction transmitted by the upload port of the BMC. Certainly, in a specific application scenario, when the BMC sends the connection information query instruction to the switch connected to the target server, it may first determine whether the connection information of the target server changes, and if so, execute the step of sending the connection information query instruction to the switch connected to the target server; it is understood that the change of the connection information of the target server means the change of the location information of the target server, so in order to ensure the location accuracy of the target server, the BMC may execute the steps of sending a connection information query command to the switch and the following steps.
Step S102: and receiving target connection information returned by the switch after the switch responds to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers.
In practical application, after the BMC sends the connection information query instruction to the switch, the switch may respond to the connection information query instruction, search for the target connection information corresponding to the connection information query instruction, and send the target connection information to the BMC, and correspondingly, the BMC may receive the target connection information sent by the switch. It should be noted that the connection information referred to in this application refers to information for distinguishing the connection mode between the switch and different servers, and the specific type of the connection information may be determined according to actual needs, such as port number information of the connection with the server on the switch.
Step S103: and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
In practical application, because the positions of the servers on the cabinets are different, after the servers are connected with the switches on the cabinets, the connection information between the servers and the cabinets can reflect the position information of the servers, and after the BMC receives the target connection information, the BMC can determine the target position information corresponding to the target connection information based on the preset corresponding relationship between the connection information and the positions of the servers, and the target position information is information describing the position of the target server on the cabinets.
The server positioning method is applied to the BMC of a target server, and is used for sending a connection information inquiry instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet of the target server; receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers; and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position. According to the server positioning method, the BMC of the target server acquires the target information from the switch of the cabinet through the connection information query instruction, determines the target position information of the target server based on the target information, can realize positioning of the server without the help of the Scorpio Rack cabinet system, and is good in applicability.
Referring to fig. 2, fig. 2 is a second flowchart of a server positioning method according to an embodiment of the present application.
In practical applications, the location information of the target server may be determined quickly and conveniently by using port number information connected to the server on the switch, and the server positioning method provided in the embodiment of the present application may include the following steps when applied to the BMC of the target server:
step S201: and sending a port number query instruction to a switch connected with the target server, wherein the port number is the port number connected with the target server on the switch.
Step S202: and receiving the target port number information returned by the exchanger after responding to the port number query instruction.
Step S203: and determining target position information corresponding to the target port number information based on the corresponding relation between the preset port number information and the server position.
In practical application, the port number information may correspond to height information and horizontal distance information of the server in the cabinet, so when determining target position information corresponding to the target connection information based on a corresponding relationship between preset connection information and a server position, the target height information corresponding to the target connection information may be determined based on a corresponding relationship between preset connection information and a server height; determining target horizontal distance information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server horizontal distance; target location information of the target server is determined based on the target height information and the target horizontal distance information. The cabinet is divided into an upper layer and a lower layer, two servers can be installed on each layer as an example, 4 servers can be installed on the cabinet, the serial numbers of the servers are A, B, C, D from top to bottom in sequence according to left to right, only four port numbers of the switch need to be occupied when the four servers are connected with the switch, the four servers are assumed to be 1, 2, 3 and 4 respectively, and correspondingly, when the BMC obtains the target port number information as the port number 1, the BMC can determine the target position information as the left position of the upper layer of the cabinet. It should be noted that, when the server location on the cabinet is complex, the corresponding relationship between the port number information and the server location may be pre-established and stored; when the position of the server on the cabinet is simple, for example, in the cabinet which is only layered up and down and only provided with one server on one layer, when the server is connected, the port number of the switch can be directly corresponding to the position of the server, for example, the port number 1 corresponds to the first layer of the cabinet, the port number 2 corresponds to the second layer of the cabinet, and the like, so that the target position information corresponding to the port number information can be determined without additionally establishing the corresponding relation between the port number information and the server position information, and the operation efficiency of the method is improved.
In practical application, under the condition that each position of the cabinet has the own number, the target position information corresponding to the target port number information can be directly determined according to the position number, and when the target position information corresponding to the target connection information is determined based on the corresponding relation between the preset connection information and the position of the server, the target cabinet position number information corresponding to the target connection information can be determined based on the corresponding relation between the preset connection information and the position number of the cabinet; and determining the target position information according to the target cabinet position number information.
In practical application, after the target position information corresponding to the target connection information is determined, the identification information and the target position information of the target server may be correspondingly stored in a Field Replaceable Unit (FRU) of the server. Accordingly, the user or the like may obtain the target location information of the target server from the FRU through an IPMI (Intelligent Platform Management Interface) command, for example, the user may obtain the target location information of the target server from the FRU through an IPMI command.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a server positioning system according to an embodiment of the present disclosure.
The server positioning system provided by the embodiment of the application is applied to the BMC of a target server, and may include:
the first sending module 101 is configured to send a connection information query instruction to a switch connected to the target server, where the switch includes a switch in a cabinet where the target server is located;
the first receiving module 102 is configured to receive target connection information returned by the switch after responding to the connection information query instruction, where the target connection information includes information for distinguishing connection modes between the switch and different servers;
the first determining module 103 is configured to determine target location information corresponding to the target connection information based on a corresponding relationship between preset connection information and a server location.
The server positioning system provided in the embodiment of the present application is applied to a BMC of a target server, and the first sending module may include:
and the first sending unit is used for sending the port number query instruction to the switch connected with the target server, and the port number is the port number connected with the target server on the switch.
The server positioning system provided in the embodiment of the present application is applied to a BMC of a target server, and the first determining module may include:
the first determining unit is used for determining target height information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server height;
the second determining unit is used for determining target horizontal distance information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server horizontal distance;
a third determining unit for determining target location information of the target server based on the target height information and the target horizontal distance information.
The server positioning system provided in the embodiment of the present application is applied to a BMC of a target server, and the first determining module may include:
the fourth determining unit is used for determining target cabinet position number information corresponding to the target connection information based on the corresponding relation between the preset connection information and the cabinet position number;
and the fifth determining unit is used for determining the target position information according to the target cabinet position number information.
The server positioning system provided in the embodiment of the present application, applied to a BMC of a target server, may further include:
and the first storage module is used for correspondingly storing the identification information and the target position information of the target server into the self field replaceable unit after the first determining module determines the target position information corresponding to the target connection information.
The server positioning system provided in the embodiment of the present application is applied to a BMC of a target server, and the first sending module may include:
and the first judgment unit is used for judging whether the connection information of the target server changes or not, and if so, prompting the first sending module to execute the step of sending a connection information inquiry command to the switch connected with the target server.
The application also provides a service area positioning device and a computer readable storage medium, which both have the corresponding effects of the server positioning method provided by the embodiment of the application. Referring to fig. 4, fig. 4 is a schematic structural diagram of a server positioning device according to an embodiment of the present disclosure.
The server positioning device provided by the embodiment of the application includes 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 stored in the memory 201:
sending a connection information query instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located;
receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
The server positioning device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the following steps are specifically implemented when the processor 202 executes the computer program stored in the memory 201: and sending a port number query instruction to a switch connected with the target server, wherein the port number is the port number connected with the target server on the switch.
The server positioning device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the following steps are specifically implemented when the processor 202 executes the computer program stored in the memory 201: determining target height information corresponding to the target connection information based on a corresponding relation between preset connection information and the height of the server; determining target horizontal distance information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server horizontal distance; target location information of the target server is determined based on the target height information and the target horizontal distance information.
The server positioning device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the following steps are specifically implemented when the processor 202 executes the computer program stored in the memory 201: determining target cabinet position number information corresponding to the target connection information based on the corresponding relation between the preset connection information and the cabinet position number; and determining the target position information according to the target cabinet position number information.
The server positioning device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the following steps are specifically implemented when the processor 202 executes the computer program stored in the memory 201: after the target position information corresponding to the target connection information is determined, the identification information and the target position information of the target server can be correspondingly stored into the field replaceable unit.
The server positioning device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the following steps are specifically implemented when the processor 202 executes the computer program stored in the memory 201: and judging whether the connection information of the target server changes or not, if so, executing a step of sending a connection information inquiry command to a switch connected with the target server.
Referring to fig. 5, another server positioning 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 a communication module 205 connected to the processor 202 for enabling communication of the server positioning device with 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 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:
sending a connection information query instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located;
receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are specifically implemented: and sending a port number query instruction to a switch connected with the target server, wherein the port number is the port number connected with the target server on the switch.
An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are specifically implemented: determining target height information corresponding to the target connection information based on a corresponding relation between preset connection information and the height of the server; determining target horizontal distance information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server horizontal distance; target location information of the target server is determined based on the target height information and the target horizontal distance information.
An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are specifically implemented: determining target cabinet position number information corresponding to the target connection information based on the corresponding relation between the preset connection information and the cabinet position number; and determining the target position information according to the target cabinet position number information.
An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are specifically implemented: after the target position information corresponding to the target connection information is determined, the identification information and the target position information of the target server can be correspondingly stored into the field replaceable unit.
An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are specifically implemented: and judging whether the connection information of the target server changes or not, if so, executing a step of sending a connection information inquiry command to a switch connected with the target server.
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.
In practical applications, the BMC may specify a corresponding protocol with the switch to perform transmission of the port number query instruction and the destination port number information, for example, the BMC may send an LLDPDU packet to the switch, receive an LLDPDU packet corresponding to the switch, analyze the received LLDODU packet, and obtain information types 1, 2, and 6, where each information is defined as follows:
Type1:
Figure BDA0002108802340000121
<-TLV header-><-1octet-><-6octet MAC address->;
Type2:
Figure BDA0002108802340000122
Type6:
Figure BDA0002108802340000123
for understanding the present embodiment, an example of LLDPDU packet responded by the switch in a specific application scenario is now given, where the LLDPDU packet format responded by the switch is as follows:
LLDP neighbors:
Interface:eth1,via:LLDP,RID:1,Time:0day,00:00:20;
Chassis:
ChassisID:mac 54:ab:3a:73:a7:d3;
SysName:Not received;
SysDescr:Not received;
Port:
Port ID:local 5/40;
Port Descr:Not received;
PMD autoneg:supported:yes,enabled:yes;
Adv:1000Base-T,HD:no,FD:yes;
MAU oper type:unknown
LLDP-MED:
Device Type:Network Connectivity Device;
Capability:Capabilities;
Capability:Policy。
the BMC can determine the target position information of the target server according to the Port ID, namely the Port number on the switch.
The server positioning method provided by the embodiment of the application can be applied to a switch of a cabinet and comprises the following steps:
receiving a connection information query instruction sent by a BMC (baseboard management controller) of a target server connected with a switch, wherein the target server is positioned in a cabinet;
responding to the connection information query instruction, and acquiring corresponding target connection information, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and sending the target connection information to the BMC so that the BMC can determine target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
For the description of the related steps in this embodiment, please refer to the above embodiments, which are not described herein again.
For descriptions of relevant parts in a server positioning system, a device and a computer readable storage medium provided in the embodiments of the present application, please refer to detailed descriptions of corresponding parts in a server positioning method provided in the embodiments of the present application, which 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 phrase "comprising an … …" does not exclude the presence of other identical 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 (10)

1. A server positioning method is characterized in that the BMC applied to a target server comprises the following steps:
sending a connection information query instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located;
receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
2. The method of claim 1, wherein sending the connection information query instruction to the switch connected to the target server comprises:
and sending a port number query instruction to the switch connected with the target server, wherein the port number is a port number connected with the target server on the switch.
3. The method according to claim 2, wherein the determining the target location information corresponding to the target connection information based on the preset correspondence between the connection information and the server location comprises:
determining target height information corresponding to the target connection information based on a corresponding relation between preset connection information and the height of the server;
determining target horizontal distance information corresponding to the target connection information based on a corresponding relation between preset connection information and server horizontal distance;
determining the target location information of the target server based on the target height information and the target horizontal distance information.
4. The method according to claim 2, wherein the determining the target location information corresponding to the target connection information based on the preset correspondence between the connection information and the server location comprises:
determining target cabinet position number information corresponding to the target connection information based on a corresponding relation between preset connection information and cabinet position numbers;
and determining the target position information according to the target cabinet position number information.
5. The method according to any one of claims 1 to 4, wherein after determining the target location information corresponding to the target connection information, the method further comprises:
and correspondingly storing the identification information of the target server and the target position information into the field replaceable unit.
6. The method of claim 5, wherein sending the connection information query instruction to the switch connected to the target server comprises:
and judging whether the connection information of the target server changes or not, if so, executing the step of sending a connection information inquiry command to a switch connected with the target server.
7. A server positioning system, applied to a BMC of a target server, includes:
the first sending module is used for sending a connection information query instruction to a switch connected with the target server, wherein the switch comprises a switch in a cabinet where the target server is located;
the first receiving module is used for receiving target connection information returned by the switch after responding to the connection information inquiry instruction, wherein the target connection information comprises information for distinguishing connection modes between the switch and different servers;
and the first determining module is used for determining target position information corresponding to the target connection information based on the corresponding relation between the preset connection information and the server position.
8. A server positioning device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server positioning method according to any one of claims 1 to 6 when executing the computer program.
9. 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 server positioning method according to any one of claims 1 to 6.
10. A server positioning method is characterized in that a switch applied to a cabinet comprises the following steps:
receiving a connection information query instruction sent by a BMC (baseboard management controller) of a target server connected with the switch, wherein the target server is positioned in the cabinet;
responding to the connection information query instruction, and acquiring corresponding target connection information, wherein the connection information comprises information for distinguishing connection modes between the switch and different servers;
and sending the target connection information to the BMC so that the BMC determines target position information corresponding to the target connection information based on a corresponding relation between preset connection information and a server position.
CN201910563091.2A 2019-06-26 2019-06-26 Server positioning method, system, equipment and computer readable storage medium Active CN110401561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910563091.2A CN110401561B (en) 2019-06-26 2019-06-26 Server positioning method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910563091.2A CN110401561B (en) 2019-06-26 2019-06-26 Server positioning method, system, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110401561A CN110401561A (en) 2019-11-01
CN110401561B true CN110401561B (en) 2022-05-24

Family

ID=68323543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910563091.2A Active CN110401561B (en) 2019-06-26 2019-06-26 Server positioning method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110401561B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752809A (en) * 2020-07-02 2020-10-09 中国工商银行股份有限公司 Circuit board and cabinet
CN114372551A (en) * 2022-01-11 2022-04-19 中国工商银行股份有限公司 Server positioning system, method and computer readable storage medium
CN115348537A (en) * 2022-08-12 2022-11-15 中国工商银行股份有限公司 Method, system, device and storage medium for positioning service server
CN115314464A (en) * 2022-08-23 2022-11-08 北京小米移动软件有限公司 Server positioning method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1373426A (en) * 2001-02-28 2002-10-09 株式会社Ntt都科摩 Position managing method and system, and position information submitting system
CN109587005A (en) * 2018-12-26 2019-04-05 华为技术服务有限公司 Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6191718B1 (en) * 2016-03-23 2017-09-06 日本電気株式会社 Server device, server control method, program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1373426A (en) * 2001-02-28 2002-10-09 株式会社Ntt都科摩 Position managing method and system, and position information submitting system
CN109587005A (en) * 2018-12-26 2019-04-05 华为技术服务有限公司 Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110401561A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN110401561B (en) Server positioning method, system, equipment and computer readable storage medium
US9219644B2 (en) Automated configuration of new racks and other computing assets in a data center
WO2022021860A1 (en) Multi-node network topology management method and apparatus, and electronic device and storage medium
US9923978B2 (en) Automated network service discovery and communication
EP3735045A1 (en) Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
US20210320845A1 (en) Network function nf management method and nf management device
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
US20120084415A1 (en) Method and equipment for self-configuring transmission in self-organized network
CN102959910A (en) Notifying a controller of a change to a packet forwarding configuration of a network element over a communication channel
TWI448127B (en) Method for obtaining external ip addresses and ip system using the same
TWI638553B (en) Method for detecting internet protocol address and media access control address
JP6001099B2 (en) System and method for performing a peer-to-peer connection
US12041688B2 (en) Screen projection method and system
WO2021169471A1 (en) Bmc ip setting method and apparatus, electronic device and system
CN103441935A (en) Method and device capable of automatically recognizing adjacency relation between server and access switch
CN117675641A (en) Method for realizing comprehensive detection of WAPI equipment of different manufacturers
CN107181606B (en) Method and apparatus for controlling network nodes
CN113098776B (en) Method, device, equipment and storage medium for determining network topology
CN208172648U (en) Intelligent interaction panel
CN114243914B (en) Power monitoring system
WO2022247575A1 (en) Interaction method and apparatus, and switching chip, medium and multi-node server
CN103176433A (en) Power distribution unit and method for utilizing single internet protocol (IP) to control majority of power distribution units
CN108924237A (en) A kind of information transferring method, server, system and computer storage medium
CN110719205B (en) Access switch, online recovery method, system and computer storage medium
CN116980286A (en) Device configuration method, device control method, storage medium, and terminal

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