Positioning Method, System, Device and Storage Medium of Business Server
By receiving the request from the positioning server, obtaining the location information of the service server and sending it to the positioning server, the problem of low positioning efficiency of the service server in the prior art is solved, and real-time accurate acquisition and management requirements of the service server location are achieved.
Patent Information
- Application Number
- CN202210969812.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-12
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2042-08-12
AI Technical Summary
In the prior art, the positioning efficiency of the business server is low, and it is impossible to know in real time which computer room, which cabinet, and which U position each business server is in, and cannot meet the actual management needs such as inventory, audit, and computer room resource planning.
A service server positioning method is provided, by receiving a target positioning request sent by the positioning server, responding to the target positioning request, obtaining server location information from a locator accessed on the service server, and sending target position information including cabinet identification and server location information to the positioning server.
It improves the positioning efficiency of the business server, realizes real-time and accurate acquisition of the business server location, and meets management needs such as inventory, audit, and computer room resource planning.
Smart Images

Figure CN115348537B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and more particularly, to a method, system, device, and storage medium for locating a business server. Background Art
[0002] A large number of business servers are installed in the computer rooms of the banking data center, with a quantity reaching up to tens of thousands, distributed in different cabinets in different computer rooms. There are hundreds of cabinets in each computer room, and each standard cabinet has 42U of installation space, where multiple business servers can be installed. Therefore, the business server location mechanism plays a crucial role in improving the asset management efficiency of business server equipment.
[0003] In the prior art, the management of the location of business servers is restricted by the level of technological development and labor costs, mainly using the method of manual record keeping, making it difficult to accurately and real-time know in which computer room, which cabinet, and which U position each business server is located, and unable to meet the actual management needs such as inventory, audit, and computer room resource planning.
[0004] Regarding the problem of low location efficiency of business servers in the related art, no effective solution has been proposed yet. Summary of the Invention
[0005] The main purpose of the present application is to provide a method, system, device, and storage medium for locating a business server, so as to solve the problem of low location efficiency of business servers in the related art.
[0006] To achieve the above object, according to one aspect of the present application, a method for locating a business server is provided. The method includes:
[0007] Receiving a target location request sent by a location server, where the target location request is used to request the location of a business server deployed in a target cabinet;
[0008] Responding to the target location request, obtaining the server location information of the business server from a locator connected to the business server, where the server location information is used to indicate the installation location of the business server in the target cabinet;
[0009] Sending the target location information including the cabinet identifier of the target cabinet and the server location information to the location server.
[0010] To achieve the above object, according to another aspect of the present application, a method for locating a business server is further provided. The method includes:
[0011] Sending a target location request to an access point deployed on a target cabinet, where the target location request is used to request the location of a business server deployed in the target cabinet;
[0012] Receive the target location information returned by the access point in response to the target location request. The target location information includes the cabinet identifier of the target cabinet and the server location information. The server location information is used to indicate the installation location of the business server in the target cabinet, and the server location information is obtained by the access point from the locator accessed on the business server in response to the target location request.
[0013] To achieve the above object, according to another aspect of the present application, there is provided a method for locating a business server. The method includes:
[0014] Receive a location instruction sent by an access point deployed on the target cabinet. The location instruction is used to instruct the locator to return the server location information of the business server accessed by the locator. The location instruction is triggered by the access point in response to receiving a target location request sent by the location server. The target location request is used to request the location of the business server deployed in the target cabinet;
[0015] Respond to the location instruction and send the server location information to the access point. The server location information is used to indicate the installation location of the business server in the target cabinet.
[0016] To achieve the above object, according to another aspect of the present application, there is provided a location system for a business server. The system includes: a location server, an access point, and a locator, where
[0017] The location server is connected to the access point, the access point is connected to the locator, the access point is deployed on the target cabinet, and the locator is connected to the business server deployed in the target cabinet;
[0018] The location server is used to send a target location request, where the target location request is used to request the location of the business server deployed in the target cabinet;
[0019] The access point is used to respond to the target location request, obtain the server location information of the business server from the locator, where the server location information is used to indicate the installation location of the business server in the target cabinet; and send the target location information including the cabinet identifier of the target cabinet and the server location information to the location server;
[0020] The locator is used to store the server location information.
[0021] To achieve the above object, according to another aspect of the present application, there is provided a location device for a business server. The device includes:
[0022] A first receiving module, configured to receive a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of a business server deployed in a target cabinet;
[0023] A first obtaining module, configured to, in response to the target positioning request, obtain server location information of the business server from a locator connected to the business server, where the server location information is used to indicate an installation position of the business server in the target cabinet;
[0024] A first sending module, configured to send target location information including a cabinet identifier of the target cabinet and the server location information to the positioning server.
[0025] To achieve the above object, according to another aspect of the present application, there is also provided a positioning device for a business server. The device includes:
[0026] A second sending module, configured to send a target positioning request to an access point deployed on a target cabinet, where the target positioning request is used to request positioning of a business server deployed in the target cabinet;
[0027] A second receiving module, configured to receive target location information returned by the access point in response to the target positioning request, where the target location information includes a cabinet identifier of the target cabinet and server location information, the server location information is used to indicate an installation position of the business server in the target cabinet, and the server location information is obtained by the access point from a locator connected to the business server in response to the target positioning request.
[0028] To achieve the above object, according to another aspect of the present application, there is also provided a positioning device for a business server. The device includes:
[0029] A third receiving module, configured to receive a positioning instruction sent by an access point deployed on a target cabinet, where the positioning instruction is used to instruct the locator to return server location information of a business server connected to the locator, and the positioning instruction is triggered by the access point in response to a target positioning request sent by a positioning server, and the target positioning request is used to request positioning of the business server deployed in the target cabinet;
[0030] A third sending module, configured to, in response to the positioning instruction, send server location information to the access point, where the server location information is used to indicate an installation position of the business server in the target cabinet.
[0031] To achieve the above object, according to another aspect of the present application, a non-volatile storage medium is provided. The non-volatile storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the positioning method of any one of the above business servers.
[0032] To achieve the above object, according to another aspect of the present application, an electronic device is provided. The electronic device includes: one or more processors and a memory. The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the positioning method of any one of the above business servers.
[0033] Through the present application, the following steps are adopted: receiving a target positioning request sent by a positioning server, where the target positioning request is used to request the positioning of a business server deployed in a target cabinet; responding to the target positioning request, obtaining the server location information of the business server from a locator connected to the business server, where the server location information is used to indicate the installation location of the business server in the target cabinet; sending the target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server, that is, when receiving the target positioning request sent by the positioning server, directly obtaining the server location information of the business server from the locator connected to the business server, and then sending the server location information and the cabinet identifier of the target cabinet as the target location information to the positioning server. That is to say, when it is necessary to position a business server deployed in a target cabinet, directly sending a target positioning request through the positioning server can solve the problem of low positioning efficiency of business servers in the related art. Furthermore, the effect of improving the positioning efficiency of business servers is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:
[0035] Figure 1 is a flowchart of a method for positioning a business server according to an embodiment of the present application Figure 1 ;
[0036] Figure 2 is a flowchart of a method for positioning a business server according to an embodiment of the present application Figure 2 ;
[0037] Figure 3 is a mapping relationship table between WIFI signal strength and U-bit range according to an embodiment of the present application;
[0038] Figure 4 is the flowchart of a method for locating a service server according to an embodiment of the present application Figure 3 ;
[0039] Figure 5 is a schematic diagram of a method for locating a service server according to an embodiment of the present application;
[0040] Figure 6 is a schematic diagram of a locating system for a service server according to an embodiment of the present application;
[0041] Figure 7 is a schematic diagram of a locating system module for a service server according to an embodiment of the present application;
[0042] Figure 8 is a structural diagram of a locator for a service server according to an embodiment of the present application;
[0043] Figure 9 is a schematic of a locating device for a service server according to an embodiment of the present application Figure 1 ;
[0044] Figure 10 is a schematic of a locating device for a service server according to an embodiment of the present application Figure 2 ;
[0045] Figure 11 is a schematic of a locating device for a service server according to an embodiment of the present application Figure 3 ;
[0046] Figure 12 is a schematic diagram of an electronic device of a service server according to an embodiment of the present application. Detailed implementation manners
[0047] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0049] It should be noted that the terms "first", "second", etc. in the description, claims and the above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so as to implement the embodiments of this application described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.
[0050] It should be noted that the relevant information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and relevant users or institutions. Before obtaining relevant information, a request for acquisition needs to be sent to the aforementioned user or institution through the interface, and after receiving the consent information fed back by the aforementioned user or institution, the relevant information is obtained.
[0051] The present invention will be described below in conjunction with preferred implementation steps. In this embodiment, a method for positioning a service server is provided. Figure 1 It is a flowchart of a method for positioning a service server according to an embodiment of this application. Figure 1 As Figure 1 shown, the method includes the following steps:
[0052] Step S101: Receive a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of a service server deployed in a target cabinet.
[0053] Step S102: Respond to the target positioning request, and obtain the server location information of the service server from the locator connected to the service server, where the server location information is used to indicate the installation location of the service server in the target cabinet.
[0054] Step S103: Send the target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server.
[0055] Optionally, in the method for locating a service server provided in the embodiments of the present application, the service server may be, but is not limited to, a server deployed in a target scenario for executing service data. The target scenario may be, but is not limited to, any scenario that requires locating resource management for a large number of servers, such as a bank scenario, a teaching scenario, an office scenario, a warehouse scenario, etc. In the present application, the bank scenario is taken as an example for illustration.
[0056] In the method for locating a service server provided in the embodiments of the present application, when receiving a target location request sent by a location server, directly obtain the server location information of the service server from a locator connected to the service server, and then send the server location information and the cabinet identifier of the target cabinet as target location information to the location server. That is to say, when it is necessary to locate the service server deployed in the target cabinet, directly send a target location request through the location server, which solves the problem of low location efficiency of the service server in the related art. Furthermore, the effect of improving the location efficiency of the service server is achieved.
[0057] In an optional embodiment, the server location information of the service server may be obtained from the locator connected to the service server in, but is not limited to, the following manner: send a location instruction to the locator, where the location instruction is used to instruct the locator to return the server location information of the service server; receive the server serial number and the U-bit returned by the locator in response to the location instruction as the server location information, where the U-bit is used to indicate the cell where the service server is located in the target cabinet.
[0058] Optionally, the service server may be, but is not limited to, any server that executes banking services. In the bank scenario, the service server is a node of the bank network and is used to store and process most of the data and information on the network. In particular, since in the bank scenario, service data is usually very important and private, the service server used to transmit service data usually requires a high degree of confidentiality and security.
[0059] Optionally, the U-bit. In the cabinet of the data center, U (abbreviation of unit) is a unit representing the external dimensions of the server. Locating the service server requires locating two dimensions. First is the cabinet location of the service server in the computer room, and further locate the U-bit where the service server is deployed in the cabinet.
[0060] In an alternative embodiment, the positioning instruction can be sent to the locator in the following ways, but not limited to: obtaining the locator list corresponding to the target cabinet, where the locator list records the locators connected to each business server deployed in the target cabinet; sending the positioning instruction to each locator recorded in the locator list, where the positioning instruction is used to instruct each locator to return the server location information of the business server to which each locator is connected.
[0061] Optionally, sending the positioning instruction to the locator can, but is not limited to, refer to the access point sending the positioning instruction to the locator. The access point can, but is not limited to, refer to a wireless AP (Access Point). Throughout the text, the wireless AP is used to refer to the "access point". The locator performs data interaction between the positioning information and the wireless AP deployed in the cabinet through its built-in WIFI (Wireless Fidelity) chip. In the present invention, WIFI can use the working mode of AP + STA (Station, WIFI station).
[0062] Optionally, the server location information can, but is not limited to, be the associated information of the business server serial number and the U-position where it is located. The format can, but is not limited to, be [U-position, serial number]. For example: if the serial number of the business server is SN12345 and it is in the 18U position of the cabinet, then the corresponding server location information can be [18, SN12345].
[0063] In an alternative embodiment, before obtaining the locator list corresponding to the target cabinet, the access point can obtain the locator list in the following ways, but not limited to: receiving the connection request sent by each locator, where the connection request is used to request to connect each locator to the access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in the initial locator list to obtain the locator list.
[0064] Optionally, the connection request used to request to connect each locator to the access point with the strongest signal strength detected by each locator can, but is not limited to, mean that: there are many cabinets in the computer room, and each cabinet can deploy a wireless AP. Therefore, there are many wireless APs in the computer room. The locator connected to the business server deployed in a cabinet is closest to the wireless AP in the same cabinet and has the strongest signal strength. Therefore, the locator connected to the business server will be connected to the wireless AP in the same cabinet.
[0065] Optionally, after one or more locators deployed in the cabinet are respectively wirelessly connected to the local cabinet, each of the locators can be recorded in the initial locator list to obtain the locator list.
[0066] In this embodiment, another method for locating a service server is also provided. Figure 2 It is a flowchart of a method for locating a service server according to an embodiment of the present application. Figure 2 , such as Figure 2 shown, the method includes the following steps:
[0067] Step S201: Send a target location request to an access point deployed on a target cabinet, where the target location request is used to request locating a service server deployed in the target cabinet;
[0068] Step S202: Receive target location information returned by the access point in response to the target location request, where the target location information includes a cabinet identifier of the target cabinet and server location information, and the server location information is used to indicate an installation location of the service server in the target cabinet, and the server location information is obtained by the access point from a locator accessed on the service server in response to the target location request.
[0069] Optionally, in the method for locating a service server provided in an embodiment of the present application, the device that executes the above method may be a location server, also known as a backend server. The location server is connected to a wireless AP through a dedicated wired network (composed of network cables and switches), so as to implement low-cost, short implementation cycle, and low-risk server location, and also avoid potential security hazards caused by multiplexing the location information to be transmitted through the service network.
[0070] Optionally, the target location information may be, but is not limited to, associated information of a service server serial number, a U position where the server is located, and a cabinet name where the server is located. The format may be, but is not limited to, [cabinet name, U position, serial number]. For example, if the serial number of the service server is SN12345 and it is in the 18U position of cabinet W6101B - A01, then the corresponding server location information may be [W6101B - A01, 18, SN12345].
[0071] The positioning method of the service server provided by the embodiment of the present application, when receiving the target positioning request sent by the positioning server, directly obtains the server location information of the service server from the locator connected to the service server, and then sends the server location information and the cabinet identifier of the target cabinet as the target location information to the positioning server. That is to say, when it is necessary to position the service server deployed in the target cabinet, directly send a target positioning request through the positioning server, which solves the problem of low positioning efficiency of the service server in the related art. Furthermore, the effect of improving the positioning efficiency of the service server is achieved.
[0072] In an alternative embodiment, after receiving the target location information returned by the access point in response to the target positioning request, the positioning server can also but is not limited to verifying the location of the locator in the following manner: collecting the signal fingerprint of the locator; obtaining the target location range corresponding to the target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the location range with a corresponding relationship; and displaying an alarm signal when the server location information does not fall within the target location range, where the alarm signal is used to warn that the server location information returned by the locator is abnormal.
[0073] Optionally, the back-end management server initiates a U-position verification regularly (for example, at a specified time in the early morning every day) (or the locator can automatically execute according to a preset period), collects the WIFI fingerprint of each locator (the WIFI signal strength sensed by the locator), estimates the actual U-position range of each locator through a preset algorithm. For example, 10-20 means that the locator may be located within the 10th U to the 20th U range of the cabinet. Compare this range value with the artificially set U-position number uploaded by the locator. If the artificially set U-position number is outside the range, prompt an exception to the operation and maintenance personnel (for example, mark it in a specified field of the database, or automatically send an email reminder, etc.). The so-called "preset algorithm" can be understood as a mapping relationship table between the WIFI signal strength (WIFI fingerprint) and the U-position range, which needs to be measured separately for cabinets with different structures. The following is an example. Figure 3 It is a mapping relationship table between the WIFI signal strength and the U-position range provided by the embodiment of the present application, as Figure 3 shown, when the AP is installed on the inner top plate of the cabinet, when the locator detects that the signal strength reaches -35 dB, it corresponds to 40-42 U. When the detected signal strength is as weak as -85 dB, at this time the locator is far from the AP, corresponding to 1-10 U.
[0074] Optionally, displaying the alarm signal can be but is not limited to through light alarm (light color or flashing frequency), voice alarm, etc., and at the same time, an exception can be prompted to the operation and maintenance personnel (for example, mark it in a specified field of the database, or automatically send an email reminder, etc.).
[0075] In an alternative embodiment, before sending a target positioning request to the access point deployed on the target cabinet, the positioning server may also, but is not limited to, control the service server to store its serial number in the corresponding locator in the following manner: sending a serial number reading request to the service server, where the serial number reading request is used to request reading the server serial number of the service server, and the service server is used to respond to the serial number reading request and store the server serial number in the flash medium of the locator.
[0076] Optionally, the backend management server may periodically (for example, at a specified time in the early morning every day) execute a task of batch obtaining server serial numbers, and schedule the operating system (OS) of each server to be positioned to read the server motherboard serial number through a batch tool, and write the serial number into the flash medium of the locator. The serial number is the unique identifier for distinguishing and identifying different servers.
[0077] In this embodiment, another positioning method for the service server is further provided. Figure 4 It is a flow of a positioning method for a service server according to an embodiment of the present application. Figure 3 As Figure 4 shown, the method includes the following steps:
[0078] Step S401: Receive a positioning instruction sent by an access point deployed on a target cabinet, where the positioning instruction is used to instruct the locator to return the server location information of the service server accessed by the locator, the positioning instruction is triggered by the access point in response to a target positioning request sent by the positioning server, and the target positioning request is used to request positioning of the service server deployed in the target cabinet;
[0079] Step S402: Respond to the positioning instruction and send server location information to the access point, where the service location information is used to indicate the installation location of the service server in the target cabinet.
[0080] Optionally, in the positioning method for the service server provided in the embodiment of the present application, the main device for executing the above steps may be a locator. After receiving the positioning instruction sent by the wireless AP, the locator returns the server location information stored in the flash medium of the locator to the wireless AP.
[0081] The positioning method of the service server provided by the embodiment of the present application, when receiving the target positioning request sent by the positioning server, directly obtains the server location information of the service server from the locator connected to the service server, and then sends the server location information and the cabinet identifier of the target cabinet as the target location information to the positioning server. That is to say, when it is necessary to position the service server deployed in the target cabinet, directly send the target positioning request through the positioning server, which solves the problem of low positioning efficiency of the service server in the related technology. Furthermore, the effect of improving the positioning efficiency of the service server is achieved.
[0082] In an alternative embodiment, before sending the server location information to the access point, the locator can obtain the U position and the server serial number of the corresponding service server in the following ways but not limited to: obtain the current code of the optoelectronic encoder deployed on the locator as the U position, and obtain the server serial number corresponding to the service server from the service server, where the U position is used to indicate the cell where the service server is located in the target cabinet; store the U position and the server serial number as the server location information of the service server in the flash memory medium.
[0083] Optionally, the optoelectronic encoder (dial encoder) can refer to a sensor that converts the mechanical geometric displacement on the output shaft into pulses or digital quantities through optoelectronic conversion. For example, the dial on a digital camera is an optoelectronic encoder. When the dial is turned, different values are displayed on the liquid crystal screen. The optoelectronic encoder used in the present invention is a similar dial encoder.
[0084] Optionally, the user turns the optoelectronic encoder (dial encoder) on the locator to set a number equal to the actual installed U position of the server to be located. For example, if the server to be located is installed in the 18U of the cabinet, then set the number 18 through the optoelectronic encoder. This value is displayed in real time on the liquid crystal screen of the locator, what you see is what you get, and is saved in the flash memory medium of the locator.
[0085] In this embodiment, a positioning method of a service server is provided. Figure 5 It is a schematic diagram of a positioning method of a service server according to an embodiment of the present application, as Figure 5 shown, mainly including the following steps:
[0086] Step S501: By default, it is assumed that the server to be located has been installed, powered on, and the operating system has been installed in the cabinet. The user inserts the locator into the USB interface of the server to be located. At this time, the locator is powered on and starts automatically, and is powered by the USB interface subsequently. The built-in WIFI chip of the locator starts and automatically connects to the AP in the cabinet. One AP is deployed inside each cabinet and is connected to the backend management server through a dedicated wired network (composed of network cables and switches).
[0087] Step S502: The user turns the optical encoder (dial encoder) on the locator to set a number equal to the actual installed U position of the server to be located. For example, if the server to be located is installed in the 18th U of the cabinet, the number 18 is set through the optical encoder. This value is displayed in real time on the LCD screen of the locator, what you see is what you get, and is saved in the flash memory medium of the locator.
[0088] Step S503: The backend management server schedules the task of batch obtaining server serial numbers at regular intervals (for example, at a specified time in the early morning every day). The operating system (OS) of each server to be located is scheduled through a batch tool to read the server motherboard serial number and write the serial number into the flash memory medium of the locator. The serial number is the unique identifier for distinguishing and identifying different servers.
[0089] Step S504: The locator sends the U position and serial number stored in the flash memory medium of the locator to the AP in the cabinet through the WIFI link established in step 101, and the format is similar to [U position, serial number], for example, [18, SN12345].
[0090] Step S505: The AP adds the cabinet name to the information generated in step 104 and then forwards it to the backend management server. The format is similar to [cabinet name, U position, serial number], for example, [W6101B - A01, 18, SN12345]. The backend management server adds a timestamp to the received information and then generates a server location information, for example, [2022 - 01 - 01 10:00:00, W6101B - A01, 18, SN12345], which is saved in the database of the backend management server, thus realizing server location.
[0091] Step S506: The backend management server initiates a U-bit verification at regular intervals (e.g., at a specified time in the early morning every day), which can also be automatically executed by the locator according to a preset period. It collects the WIFI fingerprints (the WIFI signal strength sensed by the locator) of each locator, estimates the actual U-bit range of each locator through a preset algorithm. For example, 10-20 indicates that the locator may be located within the 10th U to the 20th U range of the cabinet. Compare the range value with the artificially set U-bit number uploaded by the locator. If the artificially set U-bit number is outside the range, an anomaly is prompted to the operation and maintenance personnel (e.g., marked in a specified field of the database, or an email is automatically sent for notification, etc.).
[0092] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0093] The embodiment of the present application also provides a positioning system for a business server, Figure 6 which is a schematic diagram of the positioning system for the business server according to the embodiment of the present application. As Figure 6 shown, the system includes: a positioning server 61, an access point 62, and a locator 63. Among them,
[0094] The positioning server 61 is connected to the access point 62, the access point 62 is connected to the locator 63, the access point 62 is deployed on the target cabinet 60, and the locator 63 is connected to the business server 64 deployed in the target cabinet 60;
[0095] The positioning server is used to send a target positioning request, where the target positioning request is used to request the positioning of the business server deployed in the target cabinet;
[0096] The access point is used to respond to the target positioning request, obtain the server location information of the business server from the locator, where the server location information is used to indicate the installation location of the business server in the target cabinet; and send the target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server;
[0097] The locator is used to store the server location information.
[0098] Optionally, an optical encoder is deployed on the locator, where the locator is used for:
[0099] Obtain the current encoding of the optoelectronic encoder as the U-bit, and obtain the server serial number corresponding to the service server from the service server, where the U-bit is used to indicate the cell where the service server is located in the target cabinet;
[0100] Store the U-bit and the server serial number as the server location information of the service server in a flash medium.
[0101] Optionally, the access point is used to: send a positioning instruction to the locator, where the positioning instruction is used to instruct the locator to return the server location information of the service server; receive the server serial number and the U-bit returned by the locator in response to the positioning instruction as the server location information, where the U-bit is used to indicate the cell where the service server is located in the target cabinet.
[0102] Optionally, the access point is used to: obtain a list of locators corresponding to the target cabinet, where each locator connected to each service server deployed in the target cabinet is recorded in the locator list; send the positioning instruction to each locator recorded in the locator list, where the positioning instruction is used to instruct each locator to return the server location information of the service server connected to each locator.
[0103] Optionally, the access point is further used to: before obtaining the list of locators corresponding to the target cabinet, receive a connection request sent by each locator, where the connection request is used to request to connect each locator to the access point with the strongest signal strength detected by each locator; respond to the connection request, establish a connection with each locator, and record each locator in the initial locator list to obtain the locator list.
[0104] Optionally, the positioning server is used to: after receiving the target location information returned by the access point in response to the target positioning request, collect the signal fingerprint of the locator; obtain the target location range corresponding to the target fingerprint range into which the signal fingerprint falls from the signal fingerprint range and the location range with a corresponding relationship; in the case that the server location information does not fall within the target location range, display an alarm signal, where the alarm signal is used to warn that the server location information returned by the locator is abnormal.
[0105] Optionally, the positioning server is further configured to: before sending a target positioning request to an access point deployed on a target cabinet, send a serial number reading request to the service server, where the serial number reading request is used to request to read the server serial number of the service server, and the service server is configured to store the server serial number in the flash memory medium of the locator in response to the serial number reading request.
[0106] Optionally, the locator is configured to: before sending the server location information to the access point, obtain the current code of an optoelectronic encoder deployed on the locator as the U-bit, and obtain the server serial number corresponding to the service server from the service server, where the U-bit is used to indicate the cell where the service server is located in the target cabinet; store the U-bit and the server serial number in the flash memory medium as the server location information of the service server.
[0107] Optionally, the locator is further configured to: forward the serial number reading request sent by the positioning server to the service server, where the serial number reading request is used to request to read the server serial number of the service server; receive the server serial number returned by the service server in response to the serial number reading request.
[0108] In this embodiment, a method for positioning a service server is provided. Figure 7 It is a schematic diagram of a positioning system module for a service server according to an embodiment of the present application. As Figure 7 shown, it mainly includes the following modules:
[0109] Module 701: This module is the server to be positioned. After the locator of module 202 is inserted into the server USB interface, the operating system of the server reads the server motherboard serial number according to the batch tool scheduling and writes it into the flash memory medium of module 202.
[0110] Module 702: This module is the locator. The number of locators in each cabinet corresponds one-to-one with the servers to be positioned and is powered by the USB interface. The user sets the U number where the server to be positioned is located through the optoelectronic encoder (dial encoder) on this module. The locator sends the U number and the serial number to module 203 through WIFI. When performing U-bit verification, this module detects the strength of the WIFI wireless signal and sends the strength value as the WIFI fingerprint to module 203. Module 202 is mainly composed of a control chip, a WIFI chip, an optoelectronic encoder, a liquid crystal display, an indicator light, a flash memory medium, a USB interface, etc. The specific structure is described in detail in the "Key Module Structure in the Present Invention" section below.
[0111] Module 703: This module is a wireless AP. One AP is installed in each cabinet on the inner top plate of the cabinet and needs to be powered by the PDU in the cabinet. The AP signal covers the entire cabinet and communicates with each locator in the cabinet via wireless signals (WIFI 2.4G or 5G). It is connected to the switch through the network cable and then to the backend management server. The name of this AP is set as the cabinet name. The AP receives the U number and serial number sent by the locator and sends them to the backend management server after appending the AP name (cabinet name). When performing U position verification, the AP receives the WIFI fingerprints reported by each module 202 in the cabinet and sends them to the backend management server.
[0112] Module 704: This module is a dedicated network for transmitting positioning information, connecting the APs and modules 205 of each cabinet, and consists of switches, routers, and network cables, which is completely isolated from the business network.
[0113] Module 705: This module is the backend management server of the positioning system. Its functions are to receive and store positioning information, call the server batch management tool to collect the serial numbers of each server to be positioned, receive and process the WIFI fingerprints of each locator, and verify the U number.
[0114] In this embodiment, a positioning method for business servers is provided. Figure 8 It is a structural diagram of the locator of the business server according to the embodiment of the present application. As Figure 8 shown, the locator mainly includes the following modules:
[0115] Module 801: This module is a USB interface chip, which is inserted into the front USB interface of the server to be positioned through the USB interface outside the locator. When the server operating system reads the server motherboard serial number, it is transmitted through the USB interface and written into the flash memory medium of module 802 by module 801. On the other hand, the server powers the locator through the USB port.
[0116] Module 802: This module is a flash memory medium, which is used to store information such as the server serial number and U number inside the locator. The information will not be lost after the locator is powered off.
[0117] Module 803: This module is an optical encoder in the form of a dial encoder. The dial part is exposed outside the locator housing, and the user can turn the dial bidirectionally to input the U number of the server to be positioned. The U number is transmitted to module 804 for real-time display and to module 802 for storage.
[0118] Module 804: This module is an LCD screen, which is used to display the U number generated by module 803 in real time, enabling what the user sees is what they get.
[0119] Module 805: This module is the control chip of the entire locator. It reads the positioning information from Module 802 and forwards it to Module 806. It obtains the U-number verification result from Module 806. If the verification result is abnormal, it lights up the indicator light of Module 807 to Status 1, prompting the user that there is an abnormality in the U-number input through the dial wheel.
[0120] Module 806: This module is a WIFI chip that includes a WIFI antenna and is used for wireless transmission of information between the locator and the cabinet AP. When performing the U-number verification, it measures the WIFI fingerprint, that is, the intensity of the wireless signal, and returns it to the AP.
[0121] Module 807: This module is an indicator light. After the locator powers on and self-checks, it displays Status 0. After receiving the lighting signal from Module 805, it displays Status 1. When the locator is not connected to the AP, it displays Status 2. The status is expressed by the color or blinking frequency of the indicator light, etc.
[0122] Module 808: This module is the power supply module of the locator, which powers all modules of the locator.
[0123] The embodiment of the present application also provides a positioning device for a service server. It should be noted that the positioning device for the service server in the embodiment of the present application can be used to execute the positioning method for the service server provided in the embodiment of the present application. The following introduces the positioning device for the service server provided in the embodiment of the present application.
[0124] Figure 9 is a schematic diagram of the positioning device for the service server according to the embodiment of the present application Figure 1 As Figure 9 shown, the device includes: a first receiving module 902, a first obtaining module 904, and a first sending module 906, where:
[0125] The first receiving module 902 is configured to receive a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of a service server deployed in a target cabinet;
[0126] The first obtaining module 904 is configured to respond to the target positioning request and obtain the server location information of the service server from a locator connected to the service server, where the server location information is used to indicate the installation location of the service server in the target cabinet;
[0127] The first sending module 906 is configured to send the target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server.
[0128] Optionally, in the positioning device of the service server provided in the embodiments of the present application, a first receiving module 902 is configured to receive a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of a service server deployed in a target cabinet; a first obtaining module 904 is configured to, in response to the target positioning request, obtain server location information of the service server from a locator connected to the service server, where the server location information is used to indicate an installation location of the service server in the target cabinet; a first sending module 906 is configured to send target location information including a cabinet identifier of the target cabinet and the server location information to the positioning server, which solves the problem of low positioning efficiency of service servers in related technologies. Furthermore, the effect of improving the positioning efficiency of service servers is achieved.
[0129] In an exemplary embodiment, the first obtaining module includes:
[0130] A first sending unit is configured to send a positioning instruction to the locator, where the positioning instruction is used to instruct the locator to return the server location information of the service server;
[0131] A first receiving unit is configured to receive a server serial number and a U-bit returned by the locator in response to the positioning instruction as the server location information, where the U-bit is used to indicate a cell where the service server is located in the target cabinet.
[0132] In an exemplary embodiment, the first sending unit is further configured to:
[0133] Obtain a locator list corresponding to the target cabinet, where the locator list records the locators connected to each service server deployed in the target cabinet;
[0134] Send the positioning instruction to each locator recorded in the locator list, where the positioning instruction is used to instruct each locator to return the server location information of the service server connected to each locator.
[0135] In an exemplary embodiment, the device further includes:
[0136] A third receiving module is configured to, before obtaining the locator list corresponding to the target cabinet, receive a connection request sent by each locator, where the connection request is used to request connecting each locator to an access point with the strongest signal strength detected by each locator;
[0137] A recording module, configured to respond to the connection request, establish a connection with each of the locators, and record each of the locators in an initial locator list to obtain the locator list.
[0138] Figure 10 is a schematic diagram of a positioning device for a service server according to an embodiment of the present application Figure 2 As Figure 10 shown, the device includes: a second sending module 1002 and a second receiving module 1004, where:
[0139] The second sending module 1002 is configured to send a target positioning request to an access point deployed on a target cabinet, where the target positioning request is used to request positioning of a service server deployed in the target cabinet;
[0140] The second receiving module 1004 is configured to receive target location information returned by the access point in response to the target positioning request, where the target location information includes a cabinet identifier of the target cabinet and server location information, and the server location information is used to indicate an installation position of the service server in the target cabinet, and the server location information is obtained by the access point from a locator accessed on the service server in response to the target positioning request.
[0141] Optionally, in the positioning device for a service server provided in an embodiment of the present application, the second sending module 1002 is configured to send a target positioning request to an access point deployed on a target cabinet, where the target positioning request is used to request positioning of a service server deployed in the target cabinet; the second receiving module 1004 is configured to receive target location information returned by the access point in response to the target positioning request, where the target location information includes a cabinet identifier of the target cabinet and server location information, and the server location information is used to indicate an installation position of the service server in the target cabinet, and the server location information is obtained by the access point from a locator accessed on the service server in response to the target positioning request., which solves the problem of low positioning efficiency of service servers in the related art. Furthermore, the effect of improving the positioning efficiency of service servers is achieved.
[0142] In an exemplary embodiment, the device further includes:
[0143] An acquisition module, configured to acquire a signal fingerprint of the locator after receiving the target location information returned by the access point in response to the target positioning request;
[0144] A second obtaining module, configured to obtain a target position range corresponding to a target fingerprint range into which the signal fingerprint falls from a signal fingerprint range and a position range with a corresponding relationship;
[0145] A display module, configured to display an alarm signal when the server location information does not fall within the target location range, where the alarm signal is used to warn that there is an abnormality in the server location information returned by the locator.
[0146] In an exemplary embodiment, the device further includes:
[0147] A reading module, configured to send a serial number reading request to the service server before sending a target positioning request to the access point deployed on the target cabinet, where the serial number reading request is used to request to read the server serial number of the service server, and the service server is configured to store the server serial number in the flash memory medium of the locator in response to the serial number reading request.
[0148] Figure 11 is a schematic diagram of a positioning device for a service server according to an embodiment of the present application Figure 3 As Figure 11 shown, the device includes: a third receiving module 1102 and a third sending module 1104, where:
[0149] The third receiving module 1102 is configured to receive a positioning instruction sent by an access point deployed on the target cabinet, where the positioning instruction is used to instruct the locator to return the server location information of the service server accessed by the locator, and the positioning instruction is triggered by the access point in response to a target positioning request sent by the positioning server, and the target positioning request is used to request to position the service server deployed in the target cabinet;
[0150] The third sending module 1104 is configured to send server location information to the access point in response to the positioning instruction, where the service location information is used to indicate the installation location of the service server in the target cabinet.
[0151] Optionally, in the positioning device for a service server provided in the embodiment of the present application, the third receiving module 1102 is configured to receive a positioning instruction sent by an access point deployed on the target cabinet, where the positioning instruction is used to instruct the locator to return the server location information of the service server accessed by the locator, and the positioning instruction is triggered by the access point in response to a target positioning request sent by the positioning server, and the target positioning request is used to request to position the service server deployed in the target cabinet; the third sending module 1104 is configured to send server location information to the access point in response to the positioning instruction, where the service location information is used to indicate the installation location of the service server in the target cabinet., which solves the problem of low positioning efficiency of service servers in the related art. Furthermore, the effect of improving the positioning efficiency of service servers is achieved.
[0152] In an exemplary embodiment, the apparatus further includes:
[0153] A third acquisition module, configured to, before sending the server location information to the access point, acquire the current code of the optoelectronic encoder deployed on the locator as the U-bit, and acquire the server serial number corresponding to the service server from the service server, where the U-bit is used to indicate the cell where the service server is located in the target cabinet;
[0154] A storage module, configured to store the U-bit and the server serial number as the server location information of the service server in a flash memory medium.
[0155] In an exemplary embodiment, the third acquisition module includes:
[0156] A second sending unit, configured to forward the serial number reading request sent by the location server to the service server, where the serial number reading request is used to request to read the server serial number of the service server;
[0157] A second receiving unit, configured to receive the server serial number returned by the service server in response to the serial number reading request.
[0158] The location device of the service server includes a processor and a memory. The above units are all stored in the memory as program units, and the corresponding functions are implemented by the processor executing the above program units stored in the memory.
[0159] The processor includes a kernel, and the kernel is used to retrieve the corresponding program unit from the memory. One or more kernels can be set, and by adjusting the kernel parameters, the effect of improving the location efficiency of the service server can be achieved.
[0160] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one storage chip.
[0161] An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the location method of the service server is implemented.
[0162] An embodiment of the present invention provides a processor, where the processor is used to run a program, and when the program runs, the location method of the service server is executed.
[0163] Figure 12 is a schematic diagram of an electronic device of a service server according to an embodiment of the present application, asFigure 12 As shown in the figure, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: receiving a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of a business server deployed in a target cabinet; responding to the target positioning request, obtaining server location information of the business server from a locator connected to the business server, where the server location information is used to indicate the installation location of the business server in the target cabinet; and sending target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0164] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program initialized with the following method steps:
[0165] Receiving a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of a business server deployed in a target cabinet;
[0166] Responding to the target positioning request, obtaining the server location information of the business server from a locator connected to the business server, where the server location information is used to indicate the installation location of the business server in the target cabinet;
[0167] Sending target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server.
[0168] Optionally, the above computer program product is further adapted to execute a program initialized with the following method steps:
[0169] Sending a positioning instruction to the locator, where the positioning instruction is used to instruct the locator to return the server location information of the business server;
[0170] Receiving the server serial number and the U-bit returned by the locator in response to the positioning instruction as the server location information, where the U-bit is used to indicate the cell where the business server is located in the target cabinet.
[0171] Optionally, the above computer program product is further adapted to execute a program initialized with the following method steps:
[0172] Obtaining a locator list corresponding to the target cabinet, where the locator list records the locators connected to each business server deployed in the target cabinet;
[0173] Send the positioning instruction to each of the locators recorded in the locator list, where the positioning instruction is used to instruct each locator to return the server location information of the service server accessed by each locator.
[0174] Optionally, the above computer program product is also suitable for executing a program initialized with the following method steps:
[0175] Before obtaining the locator list corresponding to the target cabinet, receive connection requests sent by each locator, where the connection requests are used to request connecting each locator to the access point with the strongest signal strength detected by each locator;
[0176] Respond to the connection requests, establish connections with each locator, and record each locator in the initial locator list to obtain the locator list.
[0177] The present application also provides a computer program product, which is suitable for executing a program initialized with the following method steps when executed on a data processing device:
[0178] Send a target positioning request to the access points deployed on the target cabinet, where the target positioning request is used to request positioning of the service servers deployed in the target cabinet;
[0179] Receive the target location information returned by the access points in response to the target positioning request, where the target location information includes the cabinet identifier of the target cabinet and the server location information, and the server location information is used to indicate the installation location of the service server in the target cabinet, and the server location information is obtained by the access points from the locators accessed on the service server in response to the target positioning request.
[0180] Optionally, the above computer program product is also suitable for executing a program initialized with the following method steps:
[0181] After receiving the target location information returned by the access points in response to the target positioning request, collect the signal fingerprints of the locators;
[0182] Obtain the target location range corresponding to the target fingerprint range into which the signal fingerprint falls from the signal fingerprint ranges and location ranges with corresponding relationships;
[0183] In the case where the server location information does not fall within the target location range, display an alarm signal, where the alarm signal is used to warn that the server location information returned by the locator is abnormal.
[0184] Optionally, the above computer program product is also adapted to execute a program initialized with the following method steps:
[0185] Before sending a target positioning request to the access point deployed on the target cabinet, send a serial number reading request to the service server, where the serial number reading request is used to request reading the server serial number of the service server, and the service server is used to store the server serial number in the flash medium of the locator in response to the serial number reading request.
[0186] The present application also provides a computer program product, which is adapted to execute a program initialized with the following method steps when executed on a data processing device:
[0187] Receive a positioning instruction sent by an access point deployed on a target cabinet, where the positioning instruction is used to instruct the locator to return the server location information of the service server accessed by the locator, and the positioning instruction is triggered by the access point in response to receiving a target positioning request sent by a positioning server, and the target positioning request is used to request positioning the service server deployed in the target cabinet;
[0188] In response to the positioning instruction, send server location information to the access point, where the service location information is used to indicate the installation location of the service server in the target cabinet.
[0189] Optionally, the above computer program product is also adapted to execute a program initialized with the following method steps:
[0190] Before sending the server location information to the access point, obtain the current code of the optoelectronic encoder deployed on the locator as the U-bit, and obtain the server serial number corresponding to the service server from the service server, where the U-bit is used to indicate the cell where the service server is located in the target cabinet;
[0191] Store the U-bit and the server serial number as the server location information of the service server in the flash medium.
[0192] Optionally, the above computer program product is also adapted to execute a program initialized with the following method steps:
[0193] Forward the serial number reading request sent by the positioning server to the service server, where the serial number reading request is used to request reading the server serial number of the service server;
[0194] Receive the server serial number returned by the service server in response to the serial number reading request.
[0195] It should be noted that the present invention provides a server positioning method and system with relatively low implementation cost, short cycle, and low risk. This solution uses technologies such as optical encoders and WIFI fingerprints to construct a method and system including modules such as locators and wireless access points (APs), so as to realize the positioning and verification of the cabinet where the rack server is located and the U positions within the cabinet. This system can avoid adding additional positioning strip devices and laying network cables inside the cabinet. Only a locator needs to be equipped and plugged in for each server. The number of Us is set through the optical encoder (dial encoder) on the locator. The server serial number is written into the flash memory medium of the locator through the USB interface by the server batch management tool. The locator transmits the positioning information to the wireless AP deployed in the cabinet through its own WIFI chip, and then transmits it to the backend management server through a dedicated wired network, thus realizing low-cost, short-implementation-cycle, and low-risk server positioning. It also avoids the security risks caused by the reuse of the positioning information for transmission on the service network. At the same time, there is no physical contact between the locator and the cabinet, avoiding damage to the server or the locator when the server is installed or removed. In addition, the backend management server can also initiate the verification of the server U position, use the WIFI fingerprint technology to determine the approximate U position range where the server is located, compare it with the U position data set by the locator dial, and prompt abnormal data.
[0196] The present invention provides a server positioning method and system that can accurately obtain the server location in real time. Its implementation is based on the creative comprehensive application of multiple technologies such as optical encoders, WIFI fingerprint positioning, flash memory media, and server batch management tools. This method and system solve the problem of how to position the server. The advantages compared with other solutions are relatively low implementation cost, short cycle, and low risk. The reason is that the dial encoder is cleverly used to quickly input the number of server Us to achieve what you see is what you get, the flash memory technology is used to conveniently obtain the server serial number, the wireless access point AP is used to automatically obtain the cabinet name, and the dedicated network is used to transmit the positioning information to be completely isolated from the service network to avoid information security risks. The WIFI fingerprint verification is used to prompt errors in manually inputting the number of Us to make the positioning more accurate. In addition, the locator is powered by the USB of the server itself and does not need to be plugged into the power supply inside the cabinet.
[0197] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0198] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, as well as the combination of flows and / or blocks in the flowchart and / or block diagram. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0199] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufacture including instruction means that implement the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0200] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0201] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0202] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.
[0203] A computer-readable medium includes permanent and non-permanent, removable and non-removable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media do not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0204] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.
[0205] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, system or computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0206] The above are only embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A method for locating a business server, It is characterized in that A plurality of cabinets are deployed in a computer room, an access point and at least one service server are deployed on each cabinet, a locator is connected to each service server, and each locator is connected to the positioning server through the access point deployed on the cabinet, the plurality of cabinets include a target cabinet, the method is applied to the access point deployed on the target cabinet, and the method includes: Receiving a target positioning request sent by a positioning server, wherein the target positioning request is used to request positioning of a service server deployed in a target cabinet; In response to the target positioning request, obtaining server location information of the business server from a locator connected to the business server, wherein the server location information is used to indicate an installation location of the business server in a target cabinet; Sending the target location information including the cabinet identification of the target cabinet and the server location information to the positioning server; Wherein, the acquiring the server location information of the business server from the locator connected to the business server comprises: sending a positioning instruction to the locator, wherein the positioning instruction is used to instruct the locator to return the server location information of the business server; receiving the server serial number and U bit returned by the locator in response to the positioning instruction as the server location information, wherein the U bit is used to indicate the cell where the business server is located in the target cabinet; The sending of the positioning instruction to the locator comprises: obtaining a locator list corresponding to the target cabinet, wherein the locator list records the locators connected to each of the service servers deployed in the target cabinet; sending the positioning instruction to each of the locators recorded in the locator list, wherein the positioning instruction is used to instruct each of the locators to return the server location information of the service server connected to each of the locators; Before obtaining the locator list corresponding to the target cabinet, the method further includes: receiving a connection request sent by each locator, wherein the connection request is used to request that each locator be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in an initial locator list to obtain the locator list; The locator is equipped with a photoelectric encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface. The USB interface is connected to the flash memory medium through the USB interface chip, the photoelectric encoder is connected to the control chip through the flash memory medium, and the control chip is also connected to the WIFI chip. The coding on the photoelectric encoder is allowed to be set by bidirectionally turning the dial on the photoelectric encoder. The USB interface is used to connect to the service server to be located; The USB interface chip is used to obtain the server serial number corresponding to the service server from the service server through the USB interface and write the server serial number into the flash memory medium, where the server serial number is obtained by the server operating system in the service server reading the server motherboard serial number; The optical encoder is used to transmit the current code as the U-bit to the flash memory medium, where the U-bit is used to indicate the cell where the service server is located in the target cabinet; The flash memory medium is used to store the U-bit and the server serial number as the server location information of the service server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator, where the positioning server is used to obtain the target position range corresponding to the target fingerprint range into which the signal fingerprint falls from the signal fingerprint range and the position range with a corresponding relationship; the locator is used to display an alarm signal when the server location information does not fall within the target position range, where the alarm signal is used to warn that the server location information returned by the locator is abnormal.
2. A positioning method for a service server, characterized in that, Multiple cabinets are deployed in the computer room, an access point and at least one service server are deployed on each cabinet, a locator is connected to each service server, each locator is connected to a positioning server through the access point deployed on the cabinet where it is located, and the multiple cabinets include a target cabinet. The method is applied to the positioning server, and the method includes: Sending a target positioning request to the access point deployed on the target cabinet, where the target positioning request is used to request positioning of the service server deployed in the target cabinet; Receiving the target position information returned by the access point in response to the target positioning request, where the target position information includes the cabinet identifier of the target cabinet and the server location information, and the server location information is used to indicate the installation position of the service server in the target cabinet, and the server location information is obtained by the access point from the locator connected to the service server in response to the target positioning request; Among them, the access point deployed on the target cabinet is used to obtain the server location information of the service server from the locator connected to the service server through the following steps: Sending a positioning instruction to the locator, where the positioning instruction is used to instruct the locator to return the server location information of the service server; receiving the server serial number and the U-bit returned by the locator in response to the positioning instruction as the server location information, where the U-bit is used to indicate the cell where the service server is located in the target cabinet; The sending of the positioning instruction to the locator comprises: obtaining a locator list corresponding to the target cabinet, wherein the locator list records the locators connected to each of the service servers deployed in the target cabinet; sending the positioning instruction to each of the locators recorded in the locator list, wherein the positioning instruction is used to instruct each of the locators to return the server location information of the service server connected to each of the locators; Before obtaining the locator list corresponding to the target cabinet, the step further includes: receiving a connection request sent by each locator, wherein the connection request is used to request that each locator be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in an initial locator list to obtain the locator list; The locator is equipped with a photoelectric encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface. The USB interface is connected to the flash memory medium through the USB interface chip, the photoelectric encoder is connected to the control chip through the flash memory medium, and the control chip is also connected to the WIFI chip. The coding on the photoelectric encoder is allowed to be set by bidirectionally turning the dial on the photoelectric encoder. The USB interface is used to connect to the service server to be located; The USB interface chip is used to obtain a server serial number corresponding to the business server from the business server through the USB interface, and write the server serial number into the flash memory medium, wherein the server serial number is obtained by the server operating system in the business server reading the server mainboard serial number; The photoelectric encoder is used to transmit the current code as a U bit to the flash memory medium, wherein the U bit is used to indicate the cell where the service server is located in the target cabinet; The flash memory medium is used to store the U bit and the server serial number as server location information of the business server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator, wherein the positioning server is used to obtain the target location range corresponding to the target fingerprint range within which the signal fingerprint falls from the signal fingerprint range and the location range having a corresponding relationship; the locator is used to display an alarm signal when the server location information does not fall within the target location range, wherein the alarm signal is used to warn the locator that there is an abnormality in the server location information returned by the locator.
3. The method according to claim 2, It is characterized in that Before sending the target positioning request to the access point deployed on the target cabinet, the method further includes: Send a serial number reading request to the service server, where the serial number reading request is used to request reading the server serial number of the service server, and the service server is used to store the server serial number in the flash medium of the locator in response to the serial number reading request.
4. A method for locating a service server Characterized in that Multiple cabinets are deployed in the computer room, an access point and at least one service server are deployed on each cabinet, a locator is connected to each service server, each locator is connected to a location server through the access point deployed on the cabinet where it is located, and the multiple cabinets include a target cabinet. The method is applied to the locator on the target cabinet, and the method includes: Receive a positioning instruction sent by the access point deployed on the target cabinet, where the positioning instruction is used to instruct the locator to return the server location information of the service server accessed by the locator. The positioning instruction is triggered by the access point in response to a target positioning request sent by the location server, and the target positioning request is used to request positioning of the service server deployed in the target cabinet; Respond to the positioning instruction and send server location information to the access point, where the server location information is used to indicate the installation location of the service server in the target cabinet; Among them, the access point deployed on the target cabinet is used to obtain the server location information of the service server from the locators accessed on the service server through the following steps: Send a positioning instruction to the locator, where the positioning instruction is used to instruct the locator to return the server location information of the service server; receive the server serial number and U-bit returned by the locator in response to the positioning instruction as the server location information, where the U-bit is used to indicate the cell where the service server is located in the target cabinet; Among them, the sending the positioning instruction to the locator includes: obtaining a locator list corresponding to the target cabinet, where the locator list records the locators accessed on each service server deployed in the target cabinet; sending the positioning instruction to each locator recorded in the locator list, where the positioning instruction is used to instruct each locator to return the server location information of the service server accessed by each locator; Among them, before obtaining the locator list corresponding to the target cabinet, the step further includes: receiving a connection request sent by each locator, where the connection request is used to request connecting each locator to the access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in the initial locator list to obtain the locator list; Among them, an optical and electrical encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface are deployed on the locator. The USB interface is connected to the flash memory medium through the USB interface chip. The optical and electrical encoder is connected to the control chip through the flash memory medium. The control chip is further connected to the WIFI chip. The encoding on the optical and electrical encoder can be set by bidirectionally toggling the dial on the optical and electrical encoder; The USB interface is used to connect to the business server to be located; The USB interface chip is used to obtain the server serial number corresponding to the business server from the business server through the USB interface and write the server serial number into the flash memory medium. Among them, the server serial number is obtained by the server operating system in the business server reading the server motherboard serial number; The optical and electrical encoder is used to transmit the current encoding as the U-bit to the flash memory medium. Among them, the U-bit is used to indicate the cell where the business server is located in the target cabinet; The flash memory medium is used to store the U-bit and the server serial number as the server location information of the business server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator. Among them, the location server is used to obtain the target location range corresponding to the target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the location range with a corresponding relationship; the locator is used to display an alarm signal when the server location information does not fall within the target location range. Among them, the alarm signal is used to warn that the server location information returned by the locator is abnormal.
5. The method according to claim 4, characterized in that, The obtaining the server serial number corresponding to the business server from the business server includes: Forwarding the serial number reading request sent by the location server to the business server, where the serial number reading request is used to request to read the server serial number of the business server; Receiving the server serial number returned by the business server in response to the serial number reading request.
6. A positioning system for a business server, characterized in that, including: A location server, an access point, and a locator. Multiple cabinets are deployed in the computer room. An access point and at least one business server are deployed on each cabinet. Each business server is connected to a locator. Each locator is connected to the location server through the access point deployed on the cabinet where it is located. The multiple cabinets include a target cabinet. Among them, The location server is connected to the access point, the access point is connected to the locator, the access point is deployed on the target cabinet, and the locator is connected to the business server deployed in the target cabinet; The positioning server is used to send a target positioning request, wherein the target positioning request is used to request positioning of the service server deployed in the target cabinet; The access point is used to respond to the target positioning request, obtain the server location information of the business server from the locator, wherein the server location information is used to indicate the installation position of the business server in the target cabinet; and send the target location information including the cabinet identification of the target cabinet and the server location information to the positioning server; The locator is used to store the server location information; The access point deployed on the target cabinet is used to obtain the server location information of the business server from the locator connected to the business server through the following steps: Sending a positioning instruction to the locator, wherein the positioning instruction is used to instruct the locator to return the server location information of the business server; receiving the server serial number and U bit returned by the locator in response to the positioning instruction as the server location information, wherein the U bit is used to indicate the cell where the business server is located in the target cabinet; The sending of the positioning instruction to the locator comprises: obtaining a locator list corresponding to the target cabinet, wherein the locator list records the locators connected to each of the service servers deployed in the target cabinet; sending the positioning instruction to each of the locators recorded in the locator list, wherein the positioning instruction is used to instruct each of the locators to return the server location information of the service server connected to each of the locators; Before obtaining the locator list corresponding to the target cabinet, the step further includes: receiving a connection request sent by each locator, wherein the connection request is used to request that each locator be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in an initial locator list to obtain the locator list; The locator is equipped with a photoelectric encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface. The USB interface is connected to the flash memory medium through the USB interface chip, the photoelectric encoder is connected to the control chip through the flash memory medium, and the control chip is also connected to the WIFI chip. The coding on the photoelectric encoder is allowed to be set by bidirectionally turning the dial on the photoelectric encoder. The USB interface is used to connect to the service server to be located; The USB interface chip is used to obtain a server serial number corresponding to the business server from the business server through the USB interface, and write the server serial number into the flash memory medium, wherein the server serial number is obtained by the server operating system in the business server reading the server mainboard serial number; The optoelectronic encoder is used to transmit the current code as the U-bit to the flash memory medium, where the U-bit is used to indicate the cell where the service server is located in the target cabinet; The flash memory medium is used to store the U-bit and the server serial number as the server location information of the service server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator. The positioning server is used to obtain the target position range corresponding to the target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the position range with a corresponding relationship. The locator is used to display an alarm signal when the server location information does not fall within the target position range, where the alarm signal is used to warn that the server location information returned by the locator is abnormal.
7. A positioning device for a service server, characterized in that, Multiple cabinets are deployed in the computer room, an access point and at least one service server are deployed on each cabinet, a locator is connected to each service server, each locator is connected to a positioning server through the access point deployed on the cabinet where it is located, and the multiple cabinets include a target cabinet. The device is applied to the access point deployed on the target cabinet, and the device includes: A first receiving module, configured to receive a target positioning request sent by a positioning server, where the target positioning request is used to request positioning of the service server deployed in the target cabinet; A first obtaining module, configured to respond to the target positioning request and obtain the server location information of the service server from the locator connected to the service server, where the server location information is used to indicate the installation location of the service server in the target cabinet; A first sending module, configured to send the target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server; Among them, the access point deployed on the target cabinet is used to obtain the server location information of the service server from the locator connected to the service server through the following steps: Send a positioning instruction to the locator, where the positioning instruction is used to instruct the locator to return the server location information of the service server; receive the server serial number and U-bit returned by the locator in response to the positioning instruction as the server location information, where the U-bit is used to indicate the cell where the service server is located in the target cabinet; The sending of the positioning instruction to the locator comprises: obtaining a locator list corresponding to the target cabinet, wherein the locator list records the locators connected to each of the service servers deployed in the target cabinet; sending the positioning instruction to each of the locators recorded in the locator list, wherein the positioning instruction is used to instruct each of the locators to return the server location information of the service server connected to each of the locators; Before obtaining the locator list corresponding to the target cabinet, the step further includes: receiving a connection request sent by each locator, wherein the connection request is used to request that each locator be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in an initial locator list to obtain the locator list; The locator is equipped with a photoelectric encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface. The USB interface is connected to the flash memory medium through the USB interface chip, the photoelectric encoder is connected to the control chip through the flash memory medium, and the control chip is also connected to the WIFI chip. The coding on the photoelectric encoder is allowed to be set by bidirectionally turning the dial on the photoelectric encoder. The USB interface is used to connect to the service server to be located; The USB interface chip is used to obtain a server serial number corresponding to the business server from the business server through the USB interface, and write the server serial number into the flash memory medium, wherein the server serial number is obtained by the server operating system in the business server reading the server mainboard serial number; The photoelectric encoder is used to transmit the current code as a U bit to the flash memory medium, wherein the U bit is used to indicate the cell where the business server is located in the target cabinet; The flash memory medium is used to store the U bit and the server serial number as server location information of the business server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator, wherein the positioning server is used to obtain the target location range corresponding to the target fingerprint range within which the signal fingerprint falls from the signal fingerprint range and the location range having a corresponding relationship; the locator is used to display an alarm signal when the server location information does not fall within the target location range, wherein the alarm signal is used to warn the locator that there is an abnormality in the server location information returned by the locator.
8. A positioning device for a business server, It is characterized in that A plurality of cabinets are deployed in a computer room, an access point and at least one service server are deployed on each cabinet, a locator is connected to each service server, and each locator is connected to the positioning server through the access point deployed on the cabinet, the plurality of cabinets include a target cabinet, the device is applied to the positioning server, and the device includes: A second sending module is used to send a target positioning request to an access point deployed on the target cabinet, wherein the target positioning request is used to request positioning of a service server deployed in the target cabinet; A second receiving module is configured to receive target location information returned by the access point in response to the target location request, wherein the target location information includes a cabinet identifier and server location information of the target cabinet, the server location information is used to indicate an installation location of the service server in the target cabinet, and the server location information is obtained by the access point from a locator connected to the service server in response to the target location request; The access point deployed on the target cabinet is used to obtain the server location information of the business server from the locator connected to the business server through the following steps: Sending a positioning instruction to the locator, wherein the positioning instruction is used to instruct the locator to return the server location information of the business server; receiving the server serial number and U bit returned by the locator in response to the positioning instruction as the server location information, wherein the U bit is used to indicate the cell where the business server is located in the target cabinet; The sending of the positioning instruction to the locator comprises: obtaining a locator list corresponding to the target cabinet, wherein the locator list records the locators connected to each of the service servers deployed in the target cabinet; sending the positioning instruction to each of the locators recorded in the locator list, wherein the positioning instruction is used to instruct each of the locators to return the server location information of the service server connected to each of the locators; Before obtaining the locator list corresponding to the target cabinet, the step further includes: receiving a connection request sent by each locator, wherein the connection request is used to request that each locator be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in an initial locator list to obtain the locator list; The locator is equipped with a photoelectric encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface. The USB interface is connected to the flash memory medium through the USB interface chip, the photoelectric encoder is connected to the control chip through the flash memory medium, and the control chip is also connected to the WIFI chip. The coding on the photoelectric encoder is allowed to be set by bidirectionally turning the dial on the photoelectric encoder. The USB interface is used to connect to the service server to be located; The USB interface chip is used to obtain the server serial number corresponding to the service server from the service server through the USB interface and write the server serial number into the flash memory medium. The server serial number is obtained by the server operating system in the service server reading the server motherboard serial number; The optical encoder is used to transmit the current code as the U-bit to the flash memory medium. The U-bit is used to indicate the cell where the service server is located in the target cabinet; The flash memory medium is used to store the U-bit and the server serial number as the server location information of the service server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator. The positioning server is used to obtain the target location range corresponding to the target fingerprint range into which the signal fingerprint falls from the signal fingerprint range and the location range with a corresponding relationship; the locator is used to display an alarm signal when the server location information does not fall into the target location range. The alarm signal is used to warn that the server location information returned by the locator is abnormal.
9. A positioning device for a service server, characterized in that, Multiple cabinets are deployed in the computer room. An access point and at least one service server are deployed on each cabinet. A locator is connected to each service server. Each locator is connected to a positioning server through the access point deployed on the cabinet where it is located. The multiple cabinets include a target cabinet. The device is applied to the locator on the target cabinet. The device includes: A third receiving module, configured to receive a positioning instruction sent by the access point deployed on the target cabinet. The positioning instruction is used to instruct the locator to return the server location information of the service server accessed by the locator. The positioning instruction is triggered by the access point in response to a target positioning request sent by the positioning server. The target positioning request is used to request positioning of the service server deployed in the target cabinet; A third sending module, configured to respond to the positioning instruction and send server location information to the access point. The server location information is used to indicate the installation location of the service server in the target cabinet; Among them, the access point deployed on the target cabinet is used to obtain the server location information of the service server from the locator connected to the service server through the following steps: Send a positioning instruction to the locator. The positioning instruction is used to instruct the locator to return the server serial number and the U-bit of the service server as the server location information; receive the server serial number and the U-bit returned by the locator in response to the positioning instruction as the server location information. The U-bit is used to indicate the cell where the service server is located in the target cabinet; The sending of the positioning instruction to the locator comprises: obtaining a locator list corresponding to the target cabinet, wherein the locator list records the locators connected to each of the service servers deployed in the target cabinet; sending the positioning instruction to each of the locators recorded in the locator list, wherein the positioning instruction is used to instruct each of the locators to return the server location information of the service server connected to each of the locators; Before obtaining the locator list corresponding to the target cabinet, the step further includes: receiving a connection request sent by each locator, wherein the connection request is used to request that each locator be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing a connection with each locator, and recording each locator in an initial locator list to obtain the locator list; The locator is equipped with a photoelectric encoder, a flash memory medium, a control chip, a WIFI chip, a USB interface chip, and a USB interface. The USB interface is connected to the flash memory medium through the USB interface chip, the photoelectric encoder is connected to the control chip through the flash memory medium, and the control chip is also connected to the WIFI chip. The coding on the photoelectric encoder is allowed to be set by bidirectionally turning the dial on the photoelectric encoder. The USB interface is used to connect to the service server to be located; The USB interface chip is used to obtain a server serial number corresponding to the business server from the business server through the USB interface, and write the server serial number into the flash memory medium, wherein the server serial number is obtained by the server operating system in the business server reading the server mainboard serial number; The photoelectric encoder is used to transmit the current code as a U bit to the flash memory medium, wherein the U bit is used to indicate the cell where the business server is located in the target cabinet; The flash memory medium is used to store the U bit and the server serial number as server location information of the business server; The control chip is used to read the server location information from the flash memory medium and forward the server location information to the WIFI chip; The WIFI chip is used to collect the signal fingerprint of the locator, wherein the positioning server is used to obtain the target location range corresponding to the target fingerprint range within which the signal fingerprint falls from the signal fingerprint range and the location range having a corresponding relationship; the locator is used to display an alarm signal when the server location information does not fall within the target location range, wherein the alarm signal is used to warn the locator that there is an abnormality in the server location information returned by the locator.
10. A processor, It is characterized in that The processor includes one or more cores. The processor is connected to a memory, and the memory is used to store one or more programs. The processor retrieves and runs the programs from the memory through one or more of the cores. Among them, when the program runs, it executes the positioning method of the service server according to any one of claims 1 to 5.
11. An electronic device, characterized in that it includes one or more processors and a memory, and the memory is used to store one or more programs. Among them, when the one or more programs are executed by the one or more processors, the one or more processors implement the positioning method of the service server according to any one of claims 1 to 5.
Citation Information
Patent Citations
Machine cabinet positioning system and positioning method
CN105158733A
Positioning method, device and system of electronic equipment, computer system and medium
CN111598192A
Management system and method
CN112884176A