CN115348537A - Method, system, device and storage medium for positioning service server - Google Patents

Method, system, device and storage medium for positioning service server Download PDF

Info

Publication number
CN115348537A
CN115348537A CN202210969812.1A CN202210969812A CN115348537A CN 115348537 A CN115348537 A CN 115348537A CN 202210969812 A CN202210969812 A CN 202210969812A CN 115348537 A CN115348537 A CN 115348537A
Authority
CN
China
Prior art keywords
server
target
service server
positioning
locator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210969812.1A
Other languages
Chinese (zh)
Inventor
张世荃
张志鹏
虞惠芬
王秉坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210969812.1A priority Critical patent/CN115348537A/en
Publication of CN115348537A publication Critical patent/CN115348537A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method, a system, a device and a storage medium for positioning a service server. Relates to the field of computers, and the method comprises the following steps: receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet; responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in the target cabinet; and sending the target location information comprising the cabinet identification of the target cabinet and the server location information to the positioning server. By the method and the device, the problem that the positioning efficiency of the service server is low in the related technology is solved.

Description

Method, system, device and storage medium for positioning service server
Technical Field
The present application relates to the field of computers, and in particular, to a method, a system, an apparatus, and a storage medium for locating a service server.
Background
A large number of service servers are installed in machine rooms of a banking data center, the number of the service servers is as many as tens of thousands, the service servers are distributed in different cabinets of different machine rooms, hundreds of cabinets are arranged in each machine room, each standard cabinet is provided with a 42U installation space, and a plurality of service servers can be installed, so that a service server positioning mechanism plays a vital role in improving asset management efficiency of service server equipment.
In the prior art, the management of the positions of the service servers is limited by the technical development level and the labor cost, and the management is mainly performed in a mode of manually recording a machine account, so that the user is difficult to accurately know which machine room, which cabinet and the U-th position each service server is in real time, and the actual management requirements of checking, auditing, machine room resource planning and the like cannot be met.
Aiming at the problem of low positioning efficiency of a service server in the related art, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide a method, a system, a device and a storage medium for positioning a service server, so as to solve the problem of low positioning efficiency of the service server in the related art.
In order to achieve the above object, according to an aspect of the present application, a method for positioning a service server is provided. The method comprises the following steps:
receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet;
responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in the target cabinet;
and sending the target location information comprising the cabinet identifier of the target cabinet and the server location information to the positioning server.
In order to achieve the above object, according to another aspect of the present application, a method for positioning a service server is also provided. The method comprises the following steps:
sending a target positioning request to an access point deployed on a target cabinet, wherein the target positioning request is used for requesting to position a service server deployed in the target cabinet;
and receiving target position information returned by the access point in response to the target positioning request, wherein the target position information comprises a cabinet identifier of the target cabinet and server position information, the position information of the service is used for indicating the installation position of the service server in the target cabinet, and the server position information is acquired by the access point in response to the target positioning request from a positioner accessed to the service server.
In order to achieve the above object, according to another aspect of the present application, a method for positioning a service server is further provided. The method comprises the following steps:
receiving a positioning instruction sent by an access point deployed on a target cabinet, wherein the positioning instruction is used for indicating a positioner to return server position information of a service server accessed by the positioner, the positioning instruction is triggered by the access point responding to a target positioning request sent by the positioning server, and the target positioning request is used for requesting to position the service server deployed in the target cabinet;
and responding to the positioning instruction, and sending server position information to the access point, wherein the position information of the service server is used for indicating the installation position of the business server in the target cabinet.
In order to achieve the above object, according to another aspect of the present application, a location system of a service server is provided. The system comprises: a location server, an access point, and a locator, wherein,
the positioning server is connected with the access point, the access point is connected with the positioner, the access point is deployed on a target cabinet, and the positioner is connected with a service server deployed in the target cabinet;
the positioning server is configured to send a target positioning request, where the target positioning request is used to request positioning of the service server deployed in the target cabinet;
the access point is used for responding to the target positioning request and acquiring server position information of the service server from the positioner, wherein the server position information is used for indicating the installation position of the service server in a target cabinet; sending target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server;
and the locator is used for storing the server position information.
In order to achieve the above object, according to another aspect of the present application, a location apparatus of a service server is provided. The device includes:
the system comprises a first receiving module, a first processing module and a second receiving module, wherein the first receiving module is used for receiving a target positioning request sent by a positioning server, and the target positioning request is used for requesting to position a service server deployed in a target cabinet;
a first obtaining module, configured to respond to the target location request, and obtain server location information of the service server from a locator accessed to the service server, where the server location information is used to indicate an installation location of the service server in a target cabinet;
a first sending module, configured to send target location information including the rack identifier of the target rack and the server location information to the location server.
In order to achieve the above object, according to another aspect of the present application, a positioning apparatus for a service server is also provided. The device includes:
a second sending module, configured to send a target location request to an access point deployed on a target enclosure, where the target location request is used to request to locate a service server deployed in the target enclosure;
a second receiving module, configured to 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, the location information of the service 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 to the service server in response to the target location request.
In order to achieve the above object, according to another aspect of the present application, a positioning apparatus for a service server is provided. The device includes:
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 a locator to return server location information of a service server accessed by the locator, the positioning instruction is triggered by the access point in response to receiving 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;
and a third sending module, configured to send, in response to the positioning instruction, server location information to the access point, where the location information of the service server is used to indicate an installation location of the service server in a target cabinet.
In order to achieve the above object, according to another aspect of the present application, there is provided a non-volatile storage medium storing a plurality of instructions adapted to be loaded by a processor and to execute any one of the above service server location methods.
To achieve the above object, according to another aspect of the present application, there is provided an electronic device. The electronic device includes: one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the above methods of locating a service server.
By the application, the following steps are adopted: receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet; responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in the target cabinet; the method comprises the steps of sending target location information comprising a cabinet identifier of a target cabinet and server location information to a location server, namely, when a target location request sent by the location server is received, directly obtaining the server location information of a service server from a locator accessed on the service server, and then sending the server location information and the cabinet identifier of the target cabinet as the target location information to the location server, namely, when the service server deployed in the target cabinet needs to be located, directly sending the target location request through the location server, and solving the problem that the location efficiency of the service server in the related technology is low. And then the effect of improving the positioning efficiency of the service server is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a first flowchart of a method for locating a service server according to an embodiment of the present application;
fig. 2 is a second flowchart of a method for positioning a service server according to an embodiment of the present application;
fig. 3 is a mapping table of WIFI signal strength and U bit range provided according to an embodiment of the present application;
fig. 4 is a flowchart three of a method for positioning a service server according to an embodiment of the present application;
fig. 5 is a schematic diagram of a service server positioning method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a location system of a service server according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a location system module of a service server according to an embodiment of the present application;
fig. 8 is a block diagram of a locator of a service server according to an embodiment of the present application;
fig. 9 is a first schematic diagram of a positioning apparatus of a service server according to an embodiment of the present application;
fig. 10 is a second schematic diagram of a positioning apparatus of a service server according to an embodiment of the present application;
fig. 11 is a third schematic diagram of a positioning apparatus of a service server according to an embodiment of the present application;
fig. 12 is a schematic diagram of an electronic device of a service server according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that relevant information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data that are authorized by the user or sufficiently authorized by various parties. For example, an interface is provided between the system and the relevant user or organization, before obtaining the relevant information, an obtaining request needs to be sent to the user or organization through the interface, and after receiving the consent information fed back by the user or organization, the relevant information is obtained.
The present invention is described below with reference to preferred implementation steps, in this embodiment, a method for positioning a service server is provided, and fig. 1 is a first flowchart of a method for positioning a service server according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S101, receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet;
step S102, responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in a target cabinet;
step S103, sending the target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server.
Optionally, in the method for positioning a service server provided in the embodiment of the present application, the service server may be, but is not limited to, a server deployed in a target scenario and used for executing service data, where the target scenario may be, but is not limited to, any scenario that requires positioning resource management for a large number of servers, such as a bank scenario, a teaching scenario, an office scenario, a warehouse scenario, and the like, and the bank scenario is taken as an example in the present application for description.
According to the positioning method of the service server provided by the embodiment of the application, when the target positioning request sent by the positioning server is received, the server position information of the service server is directly obtained from the positioner accessed to the service server, and then the server position information and the cabinet mark of the target cabinet are sent to the positioning server as the target position information. And then the effect of improving the positioning efficiency of the service server is achieved.
In an alternative embodiment, the server location information of the service server may be obtained from a locator accessed on the service server, but is not limited to, by: sending a positioning instruction to the locator, wherein the positioning instruction is used for indicating the locator to return the server position information of the service server; and receiving a server serial number and a U bit returned by the locator in response to the positioning instruction as the server position information, wherein the U bit is used for indicating the cell where the service server is located in the target cabinet.
Alternatively, the service server may be, but is not limited to, any server that performs banking services, in which the service server is a node of a banking network and is used for storing and processing most of data and information on the network, and particularly, the service server used for transmitting service data generally requires high confidentiality and security because the service data is generally important and private in the banking scenario.
Optionally, U is a unit representing the external size of the server in a cabinet of the data center. Two dimensions are needed to position the service server, namely, the cabinet position of the service server in the machine room is firstly positioned, and the U bit deployed in the cabinet of the service server is further positioned.
In an alternative embodiment, the positioning instructions may be sent to the positioner, but are not limited to, by: acquiring a locator list corresponding to the target cabinet, wherein the locator list records the locators accessed on each service server deployed in the target cabinet; and sending the positioning instruction to each locator recorded in the locator list, wherein the positioning instruction is used for instructing each locator to return the server position information of the service server accessed by each locator.
Optionally, the sending of the positioning instruction to the locator may be, but is not limited to, sending the positioning instruction to the locator by an Access Point, the Access Point may be, but is not limited to, referring to a Wireless AP (Access Point), the Wireless AP is used as an "Access Point" throughout the text, and the locator performs data interaction between the positioning information and the Wireless AP disposed in the cabinet through a self-contained WIFI (Wireless Fidelity) chip.
Optionally, the server location information may be, but is not limited to, the association information between the service server serial number and the located U bit, and the format may be, but is not limited to, [ U bit, serial number ], for example: the traffic server has a sequence number of SN12345 at 18U bits of the cabinet, and the corresponding server location information may be 18,sn12345.
In an optional embodiment, before the obtaining of the locator list corresponding to the target cabinet, the access point may obtain the locator list by, but is not limited to: receiving a connection request sent by each locator, wherein the connection request is used for requesting each locator to be connected to the access point with the strongest signal strength detected by each locator; responding to the connection request, establishing connection with each locator, and recording each locator in an initial locator list to obtain the locator list.
Optionally, the connection request is used to request each of the locators to connect to the access point with the strongest signal strength detected by each of the locators, which may be, but is not limited to: the equipment room comprises a plurality of cabinets, each cabinet can be provided with one wireless AP, so that the equipment room comprises a plurality of wireless APs, the locator connected with the service server arranged in one cabinet is closest to the wireless AP in the cabinet, the signal strength is strongest, and the locator connected with the service server is connected with the wireless AP in the cabinet.
Optionally, after one or more locators deployed in the cabinet are wirelessly connected to the rack, each locator may be recorded in an initial locator list to obtain the locator list.
In this embodiment, another method for positioning a service server is further provided, and fig. 2 is a second flowchart of a method for positioning a service server according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step S201, sending a target positioning request to an access point deployed on a target cabinet, wherein the target positioning request is used for requesting to position a service server deployed in the target cabinet;
step S202, receiving 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, the location information of the service 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 to the service server in response to the target location request.
Optionally, in the method for positioning a service server provided in this embodiment of the present application, the device executing the method may be a positioning server, which is also called a backend server, where the positioning server is connected to the wireless AP through a dedicated wired network (composed of a network cable and a switch) transmission, so as to implement low-cost, short-implementation-period, low-risk server positioning, and also avoid potential safety hazard caused by transmission of positioning information multiplexing service network.
Optionally, the target location information may be, but is not limited to, a service server serial number, associated information of the located U bit and the located cabinet name, and the format may be, but is not limited to, [ cabinet name, U bit, serial number ], for example: the service server has a sequence number SN12345 at 18U bits of the cabinet W6101B-A01, and the corresponding server location information may be [ W6101B-A01,18, SN12345].
According to the positioning method of the service server provided by the embodiment of the application, when the target positioning request sent by the positioning server is received, the server position information of the service server is directly obtained from the positioner accessed to the service server, and then the server position information and the cabinet identifier of the target cabinet are sent to the positioning server as the target position information. And then the effect of improving the positioning efficiency of the service server is achieved.
In an optional embodiment, after receiving the target location information returned by the access point in response to the target location request, the location server may also check the location of the locator by, but not limited to: collecting a signal fingerprint of the locator; acquiring a target position range corresponding to a target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the position range which have corresponding relations; and displaying an alarm signal under the condition that the server position information does not fall into the target position range, wherein the alarm signal is used for warning that the server position information returned by the locator is abnormal.
Optionally, the backend management server initiates U-bit check at regular time (for example, at a designated time every morning) (or the locators may automatically execute according to a preset period), collects WIFI fingerprints of each locator (WIFI signal strength sensed by the locator), estimates an actual U-bit range of each locator through a preset algorithm, for example, 10 to 20 indicates that the locator may be located in a range from 10U to 20U of the cabinet, compares a value of the range with the manually set U-bit number uploaded by the locator, and prompts an anomaly to the operation and maintenance staff if the manually set U-bit number is out of the range (for example, marks in a designated field of a database, or automatically sends a mail prompt, etc.). The preset algorithm can be understood as a mapping relation table of WIFI signal strength (WIFI fingerprint) and a U-bit range, and the mapping relation table needs to be measured independently for cabinets with different structures. For example, fig. 3 is a mapping relationship table of WIFI signal strength and U-bit range provided according to an embodiment of the present application, and as shown in fig. 3, when an AP is installed on a top plate inside a cabinet, a locator detects that the signal strength reaches-35 dB, which corresponds to 40-42U, and when the signal strength is detected to be weak to-85 dB, the locator is far away from the AP, which corresponds to 1-10U.
Optionally, the display alarm signal may be, but is not limited to, a light alarm (light color or flashing frequency), a voice alarm, etc., and the operation and maintenance personnel may be prompted for an exception (e.g., a flag is marked in a designated field of the database, or an automatic mail prompt is sent, etc.).
In an alternative embodiment, before sending the target location request to the access point deployed on the target chassis, the location server may further control, but is not limited to, the service server to store its serial number in the corresponding locator by: and sending a serial number reading request to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server, and the service server is used for responding to the serial number reading request and storing the server serial number to a flash memory medium of the locator.
Optionally, the back-end management server may execute a task of obtaining a serial number of the server in batch at regular time (for example, at a specified time in the early morning every day), schedule an Operating System (OS) of each server to be located through a batch tool to read a serial number of a motherboard of the server, and write the serial number into a flash memory medium of the locator. The serial number is a unique identifier that distinguishes and identifies different servers.
In this embodiment, a further method for positioning a service server is further provided, and fig. 4 is a flowchart three of the method for positioning a service server according to the embodiment of the present application, as shown in fig. 4, the method includes the following steps:
step S401, receiving a positioning instruction sent by an access point deployed on a target cabinet, wherein the positioning instruction is used for instructing a positioner to return server position information of a service server accessed by the positioner, the positioning instruction is triggered by the access point responding to a target positioning request sent by the positioning server, and the target positioning request is used for requesting to position the service server deployed in the target cabinet;
step S402, responding to the positioning instruction, sending server position information to the access point, wherein the position information of the service is used for indicating the installation position of the service server in the target cabinet.
Optionally, in the method for positioning a service server provided in this embodiment of the present application, the main device performing the above steps may be a locator, and after receiving a positioning instruction sent by the wireless AP, the locator returns server location information stored in a flash memory medium of the locator to the wireless AP.
According to the positioning method of the service server provided by the embodiment of the application, when the target positioning request sent by the positioning server is received, the server position information of the service server is directly obtained from the positioner accessed to the service server, and then the server position information and the cabinet identifier of the target cabinet are sent to the positioning server as the target position information. And then the effect of improving the positioning efficiency of the service server is achieved.
In an alternative embodiment, before sending the server location information to the access point, the locator may obtain the U bit of the corresponding service server and the server serial number by, but not limited to: acquiring a current code of a photoelectric encoder deployed on the positioner as a U bit, and acquiring a server serial number corresponding to the service server from the service server, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet; and storing the U bit and the server serial number in a flash memory medium as the server position information of the service server.
Alternatively, a photoelectric encoder (a dial encoder) may refer to a sensor that converts a mechanical geometric displacement on an output shaft into a pulse or digital quantity through photoelectric conversion. For example, a dial wheel on a digital camera is a photoelectric encoder, and when the dial wheel is dialed, different numerical values are displayed on a liquid crystal screen. The photoelectric encoder used in the invention is a similar thumb wheel encoder.
Optionally, the user dials a photoelectric encoder (dial encoder) on the positioner, sets a number equal to the actual U-position of the server to be positioned, for example, the 18 th U of the rack to be positioned is set as the server, sets the number 18 through the photoelectric encoder, displays the number in real time through a liquid crystal display on the positioner, and stores the number in a flash memory medium of the positioner.
In this embodiment, a method for positioning a service server is provided, and fig. 5 is a schematic diagram of a method for positioning a service server according to an embodiment of the present application, as shown in fig. 5, the method mainly includes the following steps:
step S501: the default premise is that the server to be positioned is installed in the cabinet, is powered on and started up, and an operating system is installed. The user inserts the locator into the USB interface of the server to be positioned, the locator is electrified and automatically started at the moment, and power is supplied subsequently by the USB interface. The WIFI chip of locator oneself starts and is connected to the AP in the rack automatically. One AP is deployed in each cabinet and connected to the backend management server through a dedicated wired network (consisting of network cables and switches).
Step S502: the user dials the photoelectric encoder (dial encoder) on the positioner, sets the number which is equal to the actual U position of the server to be positioned, for example, the 18 th U position of the server to be positioned is set, the number 18 is set through the photoelectric encoder, the number is displayed in real time through the liquid crystal screen on the positioner, and the number is obtained and stored in the flash memory medium of the positioner.
Step S503: the back-end management server executes a task of obtaining the serial number of the server in batch at regular time (for example, at a designated time every morning), dispatches an Operating System (OS) of each server to be positioned through a batch tool to read the serial number of a server mainboard, and writes the serial number into a flash memory medium of the positioner. The serial number is a unique identifier that distinguishes and identifies different servers.
Step S504: the locator sends the U bit, serial number stored in the locator flash media to the AP in the cabinet via the WIFI link established in step 101, in a format similar to [ U bit, serial number ], e.g., [18, sn12345].
Step S505: the AP forwards the information generated in step 104, together with the enclosure name, to the backend management server in a format similar to [ enclosure name, U bit, serial number ], e.g., [ W6101B-a01,18, sn12345]. The backend management server generates a piece of server location information after adding a time stamp to the received information, for example [ 2022-01-10, w6101b-a01,18, sn12345], and stores the server location information in a database of the backend management server, thereby achieving server location.
Step S506: the method comprises the steps that a back-end management server initiates U-bit check at regular time (for example, at a designated time every morning) (or the locators automatically execute according to a preset period), WIFI fingerprints (WIFI signal strength sensed by the locators) of each locator are collected, an actual U-bit range of each locator is estimated through a preset algorithm, for example, 10-20 indicates that the locator may be located in the range from 10U to 20U of a cabinet, the range value is compared with the manually set U-bit number uploaded by the locator, and if the manually set U-bit number is out of the range, an exception is prompted to an operation and maintenance person (for example, a designated field of a database is marked, or an email prompt is automatically sent and the like).
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
An embodiment of the present application further provides a positioning system of a service server, and fig. 6 is a schematic diagram of the positioning system of the service server according to the embodiment of the present application. As shown in fig. 6, the system includes: a location server 61, an access point 62 and a locator 63, wherein,
the positioning server 61 is connected to the access point 62, the access point 62 is connected to the positioner 63, the access point 62 is disposed on the target cabinet 60, and the positioner 63 is connected to the service server 64 disposed in the target cabinet 60;
the positioning server is configured to send a target positioning request, where the target positioning request is used to request positioning of the service server deployed in the target cabinet;
the access point is used for responding to the target positioning request and acquiring server position information of the service server from the positioner, wherein the server position information is used for indicating the installation position of the service server in a target cabinet; sending target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server;
and the locator is used for storing the server position information.
Optionally, a photoelectric encoder is disposed on the positioner, wherein the positioner is configured to:
acquiring the current code of the photoelectric encoder as a U bit, and acquiring a server serial number corresponding to the service server from the service server, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet;
and storing the U bit and the server serial number in a flash memory medium as the server position information of the service server.
Optionally, the access point is configured to: sending a positioning instruction to the locator, wherein the positioning instruction is used for indicating the locator to return the server position information of the service server; and receiving a server serial number and a U bit returned by the locator in response to the positioning instruction as the server position information, wherein the U bit is used for indicating the cell where the service server is located in the target cabinet.
Optionally, the access point is configured to: acquiring a locator list corresponding to the target cabinet, wherein the locator list records the locators accessed on each service server deployed in the target cabinet; and sending the positioning instruction to each locator recorded in the locator list, wherein the positioning instruction is used for instructing each locator to return the server position information of the service server accessed by each locator.
Optionally, the access point is further configured to: before the locator list corresponding to the target cabinet is obtained, receiving a connection request sent by each locator, wherein the connection request is used for requesting each locator to be connected to an access point with the strongest signal strength detected by each locator; responding to the connection request, establishing connection with each locator, and recording each locator in an initial locator list to obtain the locator list.
Optionally, the positioning server is configured to: after receiving the target position information returned by the access point in response to the target positioning request, acquiring a signal fingerprint of the locator; acquiring a target position range corresponding to a target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the position range which have corresponding relations; and displaying an alarm signal under the condition that the server position information does not fall into the target position range, wherein the alarm signal is used for warning that the server position information returned by the locator is abnormal.
Optionally, the positioning server is further configured to: and before sending a target positioning request to an access point deployed on a target cabinet, sending a serial number reading request to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server, and the service server is used for responding to the serial number reading request and storing the server serial number to a flash memory medium of the locator.
Optionally, the positioner is configured to: before the server position information is sent to the access point, acquiring the current code of a photoelectric encoder deployed on the positioner as a U bit, and acquiring a server serial number corresponding to the service server from the service server, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet; and storing the U bit and the server serial number as the server position information of the service server in a flash memory medium.
Optionally, the positioner is further configured to: forwarding a serial number reading request sent by the positioning server to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server; and receiving the server serial number returned by the service server in response to the serial number reading request.
In this embodiment, a method for positioning a service server is provided, and fig. 7 is a schematic diagram of a positioning system module of the service server according to an embodiment of the present application. As shown in fig. 7, the following modules are mainly included:
a module 701: the module is a server located, and after the locator of the module 202 is inserted into the USB interface of the server, the operating system of the server reads the serial number of the server motherboard according to the batch tool schedule and writes the serial number into the flash memory medium of the module 202.
Module 702: the module is a locator, the quantity of the locators in each cabinet corresponds to that of servers to be positioned one by one, power is supplied through a USB interface, and a user sets the U number of the servers to be positioned through a photoelectric encoder (dial wheel encoder) on the module. The locator sends the U number and the serial number to the module 203 through WIFI. When the U-bit check is executed, the module detects the intensity of the WIFI wireless signal, and sends the intensity value as the WIFI fingerprint to the module 203. The module 202 mainly comprises a control chip, a WIFI chip, a photoelectric encoder, a liquid crystal screen, an indicator light, a flash memory medium, a USB interface, and the like, and the specific structure is described in detail in the section of "key module structure in the invention" below.
A module 703: the module is a wireless AP, 1 is installed in each cabinet, is installed on a top plate in the cabinet, and needs PDU power supply in the cabinet. The AP signal covers the whole cabinet, communicates with each locator in the cabinet through a wireless signal (WIFI 2.4G or 5G), and is connected to the rear-end management server through the network cable upper connection switch. The name of the AP is set as a cabinet name, the AP receives the U number and the serial number sent by the locator, and the AP name (cabinet name) is added and then sent to the back-end management server. When the U-bit check is executed, the AP receives the WIFI fingerprint reported by each module 202 in the cabinet and sends the WIFI fingerprint to the back-end management server.
A module 704: the module is a dedicated network for transmitting positioning information, connects the AP of each cabinet with the module 205, is composed of switches, routers, and network cables, and is completely isolated from the service network.
A block 705: the module is a rear-end management server of the positioning system, and has the functions of receiving and storing positioning information, calling a server batch management tool to collect the serial number of each server to be positioned, receiving and processing the WIFI fingerprint of each positioner and checking the U number.
In the present embodiment, a method for positioning a service server is provided, and fig. 8 is a structural diagram of a locator of the service server according to an embodiment of the present application. As shown in fig. 8, the positioner mainly includes the following modules:
a module 801: the module is a USB interface chip and is inserted into a USB interface on the front of the server to be positioned through a USB interface outside the positioner. When the server os reads the serial number of the server motherboard, it is transmitted through the USB interface and written into the flash memory of the module 802 via the module 801. On the other hand, the server supplies power to the locator through the USB port.
A module 802: the module is a flash memory medium and is used for storing information such as server serial numbers, U numbers and the like in the locator. The information is not lost after the power of the locator is cut off.
A module 803: the module is a photoelectric encoder, the form of the module is a dial wheel encoder, the dial wheel part is exposed out of the shell of the locator, and a user can dial the dial wheel in two directions so as to input the U number of the located server. The U number is transmitted to block 804 for real-time display and to block 802 for storage.
A block 804: the module is a liquid crystal display for displaying the number of U generated by the module 803 in real time so that the user can see and obtain the number.
A module 805: the module is a control chip of the whole positioner, the positioning information is read from the module 802 and forwarded to the module 806, the U number checking result is obtained from the module 806, if the checking result is abnormal, an indicator lamp of the module 807 is lightened to a state 1, and the user is prompted that the U number input through the dial wheel is abnormal.
A block 806: the module is a WIFI chip, comprises a WIFI antenna and is used for wireless information transmission between the positioner and the equipment cabinet AP. And when the U number is checked, the WIFI fingerprint, namely the strength of the wireless signal, is measured and returned to the AP.
Module 807: the module is an indicator light. The locator displays the state 0 after the power-on self-test is completed, displays the state 1 after receiving the lighting signal of the module 305, and displays the state 2 when the locator is not connected with the AP. The status is expressed by the color of the indicator light or the flashing frequency, etc.
A block 808: the module is a power supply module of the locator and supplies power to all modules of the locator.
The embodiment of the present application further provides a positioning device of a service server, and it should be noted that the positioning device of the service server in the embodiment of the present application may be used to execute the positioning method for the service server provided in the embodiment of the present application. The following describes a positioning apparatus of a service server provided in an embodiment of the present application.
Fig. 9 is a first schematic diagram of a location apparatus of a service server according to an embodiment of the present application. As shown in fig. 9, the apparatus includes: a first receiving module 902, a first obtaining module 904, a first sending module 906, wherein:
a first receiving module 902, configured to receive a target location request sent by a location server, where the target location request is used to request to locate a service server deployed in a target cabinet;
a first obtaining module 904, configured to, in response to the target location request, obtain server location information of the service server from a locator accessed to the service server, where the server location information is used to indicate an installation location of the service server in a target cabinet;
a first sending module 906, configured to send target location information including the cabinet identifier of the target cabinet and the server location information to the location server.
Optionally, in the positioning apparatus of the service server provided in the embodiment of the present application, 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 to position the service server deployed in a target cabinet; a first obtaining module 904, configured to obtain, in response to the target location request, server location information of the service server from a locator accessed to the service server, where the server location information is used to indicate an installation location of the service server in a target cabinet; the first sending module 906 is configured to send the target location information including the rack identifier of the target rack and the server location information to the location server, so that the problem that the location efficiency of the service server in the related art is low is solved. And then the effect of improving the positioning efficiency of the service server is achieved.
In an exemplary embodiment, the first obtaining module includes:
a first sending unit, 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;
and the first receiving unit is used for receiving a server serial number and a U bit returned by the locator in response to the positioning instruction as the server position information, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet.
In an exemplary embodiment, the first sending unit is further configured to:
acquiring a locator list corresponding to the target cabinet, wherein the locator list records the locators accessed on each service server deployed in the target cabinet;
and sending the positioning instruction to each locator recorded in the locator list, wherein the positioning instruction is used for instructing each locator to return the server position information of the service server accessed by each locator.
In one exemplary embodiment, the apparatus further comprises:
a third receiving module, configured to receive, before the obtaining of the locator list corresponding to the target enclosure, a connection request sent by each locator, where the connection request is used to request that each locator is connected to an access point with a strongest signal strength detected by each locator;
and the recording module is used for responding to the connection request, establishing connection with each locator, and recording each locator in an initial locator list to obtain the locator list.
Fig. 10 is a second schematic diagram of a location apparatus of a service server according to an embodiment of the present application. As shown in fig. 10, the apparatus includes: a second sending module 1002 and a second receiving module 1004, wherein:
a second sending module 1002, configured to send a target location request to an access point deployed on a target enclosure, where the target location request is used to request to locate a service server deployed in the target enclosure;
a second receiving module 1004, configured to 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, the location information of the service 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 to the service server in response to the target location request.
Optionally, in the positioning apparatus of the service server provided in the 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 enclosure, where the target positioning request is used to request to position the service server deployed in the target enclosure; a second receiving module 1004, configured to 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, the location information of the service 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 to the service server in response to the target location request. The problem of low positioning efficiency of the service server in the related technology is solved. And then the effect of improving the positioning efficiency of the service server is achieved.
In one exemplary embodiment, the apparatus further comprises:
the acquisition module is used for acquiring the signal fingerprint of the locator after receiving the target position information returned by the access point in response to the target positioning request;
the second acquisition module is used for acquiring a target position range corresponding to a target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the position range which have the corresponding relation;
and the display module is used for displaying an alarm signal under the condition that the server position information does not fall into the target position range, wherein the alarm signal is used for warning that the server position information returned by the locator is abnormal.
In one exemplary embodiment, the apparatus further comprises:
the reading module is configured to send a serial number reading request to the service server before sending a target location request to an access point deployed on a target rack, where the serial number reading request is used to request reading of a 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 to a flash memory medium of the locator.
Fig. 11 is a third schematic diagram of a positioning apparatus of a service server according to an embodiment of the present application. As shown in fig. 11, the apparatus includes: a third receiving module 1102 and a third sending module 1104, where:
a third receiving module 1102, configured to receive a positioning instruction sent by an access point deployed on a target enclosure, where the positioning instruction is used to instruct a locator to return server location information of a service server accessed by the locator, the positioning instruction is triggered by the access point in response to receiving 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 enclosure;
a third sending module 1104, configured to send, in response to the positioning instruction, server location information to the access point, where the location information of the service is used to indicate an installation location of the service server in a target cabinet.
Optionally, in the positioning apparatus of the service server provided in this embodiment of the application, the third receiving module 1102 is configured to receive a positioning instruction sent by an access point deployed on a target enclosure, where the positioning instruction is used to instruct a locator to return server location information of the service server accessed by the locator, the positioning instruction is triggered by the access point in response to receiving 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 enclosure; a third sending module 1104, configured to send, in response to the positioning instruction, server location information to the access point, where the location information of the service is used to indicate an installation location of the service server in a target cabinet. The problem of low positioning efficiency of the service server in the related technology is solved. And then the effect of improving the positioning efficiency of the service server is achieved.
In one exemplary embodiment, the apparatus further comprises:
a third obtaining module, configured to, before the server position information is sent to the access point, obtain a current code of a photoelectric encoder deployed on the locator as a U bit, and obtain a server serial number corresponding to the service server from the service server, where the U bit is used to indicate a cell where the service server is located in the target cabinet;
and the storage module is used for storing the U bit and the server serial number in a flash memory medium as the server position information of the service server.
In an exemplary embodiment, the third obtaining module includes:
a second sending unit, configured to forward a 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 a server serial number of the service server;
a second receiving unit, configured to receive the server serial number returned by the service server in response to the serial number reading request.
The positioning device of the service server comprises a processor and a memory, wherein the units and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the effect of improving the positioning efficiency of the service server is realized by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, where the program, when executed by a processor, implements a positioning method for a service server.
The embodiment of the invention provides a processor, which is used for running a program, wherein the positioning method of a service server is executed when the program runs.
Fig. 12 is a schematic diagram of an electronic device of a service server according to an embodiment of the present application, and as shown in fig. 12, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the program to implement the following steps: receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet; responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in the target cabinet; and sending the target location information comprising the cabinet identifier of the target cabinet and the server location information to the positioning server. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet;
responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in a target cabinet;
and sending the target location information comprising the cabinet identifier of the target cabinet and the server location information to the positioning server.
Optionally, the computer program product is further adapted to execute a program initializing the following method steps:
sending a positioning instruction to the locator, wherein the positioning instruction is used for indicating the locator to return the server position information of the service server;
and receiving a server serial number and a U bit returned by the locator in response to the positioning instruction as the server position information, wherein the U bit is used for indicating the cell where the service server is located in the target cabinet.
Optionally, the computer program product is further adapted to execute a program initializing the following method steps:
acquiring a locator list corresponding to the target cabinet, wherein the locator list records the locators accessed on each service server deployed in the target cabinet;
and sending the positioning instruction to each locator recorded in the locator list, wherein the positioning instruction is used for instructing each locator to return the server position information of the service server accessed by each locator.
Optionally, the computer program product is further adapted to execute a program initializing the following method steps:
before the acquisition of the locator list corresponding to the target cabinet, receiving a connection request sent by each locator, where 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 connection with each locator, and recording each locator in an initial locator list to obtain the locator list.
The present application also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
sending a target positioning request to an access point deployed on a target cabinet, wherein the target positioning request is used for requesting to position a service server deployed in the target cabinet;
and receiving target position information returned by the access point in response to the target positioning request, wherein the target position information comprises a cabinet identifier of the target cabinet and server position information, the service position information is used for indicating the installation position of the service server in the target cabinet, and the server position information is acquired by the access point from a locator accessed to the service server in response to the target positioning request.
Optionally, the computer program product is further adapted to execute a program for initializing the following method steps:
after receiving the target position information returned by the access point in response to the target positioning request, acquiring a signal fingerprint of the locator;
acquiring a target position range corresponding to a target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the position range which have corresponding relations;
and displaying an alarm signal under the condition that the server position information does not fall into the target position range, wherein the alarm signal is used for warning that the server position information returned by the locator is abnormal.
Optionally, the computer program product is further adapted to execute a program for initializing the following method steps:
before sending a target positioning request to an access point deployed on a target cabinet, sending a serial number reading request to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server, and the service server is used for responding to the serial number reading request and storing the server serial number to a flash memory medium of the locator.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a positioning instruction sent by an access point deployed on a target cabinet, wherein the positioning instruction is used for instructing a locator to return server position information of a service server accessed by the locator, the positioning instruction is triggered by the access point responding to a target positioning request sent by the positioning server, and the target positioning request is used for requesting to position the service server deployed in the target cabinet;
and responding to the positioning instruction, and sending server position information to the access point, wherein the position information of the service is used for indicating the installation position of the service server in the target cabinet.
Optionally, the computer program product is further adapted to execute a program for initializing the following method steps:
before the server position information is sent to the access point, acquiring the current code of a photoelectric encoder deployed on the positioner as a U bit, and acquiring a server serial number corresponding to the service server from the service server, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet;
and storing the U bit and the server serial number in a flash memory medium as the server position information of the service server.
Optionally, the computer program product is further adapted to execute a program initializing the following method steps:
forwarding a serial number reading request sent by the positioning server to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server;
and receiving the server serial number returned by the service server responding to the serial number reading request.
It should be noted that the present invention provides a server positioning method and system with low implementation cost, short period and low risk. According to the scheme, technologies such as a photoelectric encoder and WIFI fingerprints are used, a set of method and system including modules such as a positioner and a wireless Access Point (AP) are constructed, and positioning and verification of U positions in a cabinet where a rack server is located and the cabinet are achieved. The system can avoid additionally installing a positioning strip device and laying network cables in a cabinet, only needs to prepare and plug a positioner for each server, sets the number of U through a photoelectric encoder (dial wheel encoder) on the positioner, writes a server serial number into a flash memory medium of the positioner through a USB interface by a server batch management tool, transmits positioning information to a wireless AP (access point) arranged in the cabinet through a self-contained WIFI (wireless fidelity) chip, and transmits the positioning information to a rear-end management server through a special wired network, thereby realizing low cost, short implementation period and low-risk server positioning, avoiding potential safety hazards caused by transmission of a positioning information multiplexing service network, avoiding any physical contact between the positioner and the cabinet and avoiding damage to the server or the positioner when the server goes on or off shelf. In addition, the rear end management server can also initiate the verification of the U bit of the server, determine the approximate U bit range of the server by using the WIFI fingerprint technology, compare the approximate U bit range with the U bit data set by the dial wheel of the positioner and prompt abnormal data.
The invention provides a server positioning method and a server positioning system capable of accurately acquiring the position of a server in real time, which are realized by creative and comprehensive application of various technologies based on a photoelectric encoder, WIFI fingerprint positioning, a flash memory medium, a server batch management tool and the like. The method and the system solve the problem of how to position the server, and compared with other solutions, the method and the system have the advantages of low implementation cost, short period and low risk, and the reason is that the number of the servers U is input rapidly by skillfully utilizing a dial wheel encoder to realize what you see is what you get, the serial number of the server is conveniently and rapidly acquired by utilizing a flash memory technology, the name of the cabinet is automatically acquired by utilizing a wireless Access Point (AP), and the positioning information is transmitted by utilizing a special network to be completely isolated from a service network, so that the information security risk is avoided. And the error of manually inputting the U number is prompted by utilizing the WIFI fingerprint verification, so that the positioning is more accurate. In addition, the locator uses the USB power supply of the server itself, and does not need to be plugged into a power supply in the cabinet.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, 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 a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, 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, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (17)

1. A method for positioning a service server, comprising:
receiving a target positioning request sent by a positioning server, wherein the target positioning request is used for requesting to position a service server deployed in a target cabinet;
responding to the target positioning request, and acquiring server position information of the service server from a positioner accessed to the service server, wherein the server position information is used for indicating the installation position of the service server in a target cabinet;
and sending the target location information comprising the cabinet identifier of the target cabinet and the server location information to the positioning server.
2. The method of claim 1, wherein the obtaining the server location information of the service server from the locator accessed on the service server comprises:
sending a positioning instruction to the locator, wherein the positioning instruction is used for indicating the locator to return the server position information of the service server;
and receiving a server serial number and a U bit returned by the locator in response to the positioning instruction as the server position information, wherein the U bit is used for indicating the cell where the service server is located in the target cabinet.
3. The method of claim 2, wherein said sending a positioning instruction to said positioner comprises:
acquiring a locator list corresponding to the target cabinet, wherein the locator list records the locators accessed on each service server deployed in the target cabinet;
and sending the positioning instruction to each locator recorded in the locator list, wherein the positioning instruction is used for instructing each locator to return the server position information of the service server accessed by each locator.
4. The method of claim 3, wherein prior to the obtaining the list of locators corresponding to the target enclosure, the method further comprises:
receiving a connection request sent by each locator, wherein the connection request is used for requesting each locator to be connected to the access point with the strongest signal strength detected by each locator;
responding to the connection request, establishing connection with each locator, and recording each locator in an initial locator list to obtain the locator list.
5. A method for positioning a service server, comprising:
sending a target positioning request to an access point deployed on a target cabinet, wherein the target positioning request is used for requesting to position a service server deployed in the target cabinet;
and receiving target position information returned by the access point in response to the target positioning request, wherein the target position information comprises a cabinet identifier of the target cabinet and server position information, the service position information is used for indicating the installation position of the service server in the target cabinet, and the server position information is acquired by the access point from a locator accessed to the service server in response to the target positioning request.
6. The method of claim 5, wherein after the receiving the target location information returned by the access point in response to the target location request, the method further comprises:
collecting a signal fingerprint of the locator;
acquiring a target position range corresponding to a target fingerprint range in which the signal fingerprint falls from the signal fingerprint range and the position range which have corresponding relations;
and displaying an alarm signal under the condition that the server position information does not fall into the target position range, wherein the alarm signal is used for warning that the server position information returned by the locator is abnormal.
7. The method of claim 5, wherein prior to sending the target location request to the access point deployed on the target chassis, the method further comprises:
and sending a serial number reading request to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server, and the service server is used for responding to the serial number reading request and storing the server serial number to a flash memory medium of the locator.
8. A method for positioning a service server, comprising:
receiving a positioning instruction sent by an access point deployed on a target cabinet, wherein the positioning instruction is used for instructing a locator to return server position information of a service server accessed by the locator, the positioning instruction is triggered by the access point responding to a target positioning request sent by the positioning server, and the target positioning request is used for requesting to position the service server deployed in the target cabinet;
and responding to the positioning instruction, and sending server position information to the access point, wherein the position information of the service is used for indicating the installation position of the service server in the target cabinet.
9. The method of claim 8, wherein prior to said sending server location information to the access point, the method further comprises:
acquiring a current code of a photoelectric encoder deployed on the positioner as a U bit, and acquiring a server serial number corresponding to the service server from the service server, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet;
and storing the U bit and the server serial number as the server position information of the service server in a flash memory medium.
10. The method of claim 9, wherein the obtaining the server serial number corresponding to the service server from the service server comprises:
forwarding a serial number reading request sent by the positioning server to the service server, wherein the serial number reading request is used for requesting to read a server serial number of the service server;
and receiving the server serial number returned by the service server responding to the serial number reading request.
11. A service server location system, comprising: a location server, an access point, and a locator, wherein,
the positioning server is connected with the access point, the access point is connected with the positioner, the access point is deployed on a target cabinet, and the positioner is connected with a service server deployed in the target cabinet;
the positioning server is configured to send a target positioning request, where the target positioning request is used to request positioning of the service server deployed in the target cabinet;
the access point is used for responding to the target positioning request and acquiring server position information of the service server from the positioner, wherein the server position information is used for indicating the installation position of the service server in a target cabinet; sending target location information including the cabinet identifier of the target cabinet and the server location information to the positioning server;
and the locator is used for storing the server position information.
12. The system of claim 11, wherein the positioner has an optical-to-electrical encoder disposed thereon, wherein the positioner is configured to:
acquiring the current code of the photoelectric encoder as a U bit, and acquiring a server serial number corresponding to the service server from the service server, wherein the U bit is used for indicating a cell where the service server is located in the target cabinet;
and storing the U bit and the server serial number in a flash memory medium as the server position information of the service server.
13. A service server positioning apparatus, comprising:
the system comprises a first receiving module, a first processing module and a second receiving module, wherein the first receiving module is used for receiving a target positioning request sent by a positioning server, and the target positioning request is used for requesting to position a service server deployed in a target cabinet;
a first obtaining module, configured to respond to the target location request, and obtain server location information of the service server from a locator accessed to the service server, where the server location information is used to indicate an installation location of the service server in a target cabinet;
a first sending module, configured to send target location information including the rack identifier of the target rack and the server location information to the location server.
14. A service server positioning apparatus, comprising:
a second sending module, configured to send a target location request to an access point deployed on a target cabinet, where the target location request is used to request location of a service server deployed in the target cabinet;
a second receiving module, configured to receive target location information returned by the access point in response to the target location request, where the target location information includes a rack identifier of the target rack and server location information, the location information of the service is used to indicate an installation location of the service server in the target rack, and the server location information is obtained by the access point in response to the target location request from a locator accessed to the service server.
15. A service server positioning apparatus, comprising:
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 a locator to return server location information of a service server accessed by the locator, the positioning instruction is triggered by the access point in response to receiving 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;
and a third sending module, configured to send, in response to the positioning instruction, server location information to the access point, where the location information of the service server is used to indicate an installation location of the service server in a target cabinet.
16. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method for locating a service server according to any one of claims 1 to 10.
17. An electronic device comprising one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of location of a service server of any of claims 1-10.
CN202210969812.1A 2022-08-12 2022-08-12 Method, system, device and storage medium for positioning service server Pending CN115348537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210969812.1A CN115348537A (en) 2022-08-12 2022-08-12 Method, system, device and storage medium for positioning service server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210969812.1A CN115348537A (en) 2022-08-12 2022-08-12 Method, system, device and storage medium for positioning service server

Publications (1)

Publication Number Publication Date
CN115348537A true CN115348537A (en) 2022-11-15

Family

ID=83951668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210969812.1A Pending CN115348537A (en) 2022-08-12 2022-08-12 Method, system, device and storage medium for positioning service server

Country Status (1)

Country Link
CN (1) CN115348537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116367304A (en) * 2023-05-25 2023-06-30 阿里巴巴(中国)有限公司 Data processing method, storage medium and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116367304A (en) * 2023-05-25 2023-06-30 阿里巴巴(中国)有限公司 Data processing method, storage medium and electronic device
CN116367304B (en) * 2023-05-25 2023-09-12 阿里巴巴(中国)有限公司 Data processing method, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US20080040417A1 (en) System and method for allocating workflow operations to a computing device
CN105408898A (en) Automatic recording and graphing of measurement data
CN110568838A (en) vehicle quiescent current acquisition method and system, electronic device and storage medium
CN105164736A (en) Portable data collection system and method
CN103051692B (en) Support the mobile operating system works platform of limit network environment
CN101582775B (en) Server managing apparatus and server managing method
CN106681799B (en) It is inserted into the methods, devices and systems of disk
CN115348537A (en) Method, system, device and storage medium for positioning service server
CN111273573A (en) Environmental data monitoring method and device
CN111158982B (en) Electronic device, first operating system, data processing method, and storage medium
CN113743547B (en) Asset supervision method and platform based on RFID tag and storage medium
US20150208255A1 (en) Automatic network device replacement using a smartphone
CN108805512A (en) A kind of attendance information recording method and its equipment, system
CN105259434B (en) The method and apparatus of electrical equipment fault acquisition of information
CN114372551A (en) Server positioning system, method and computer readable storage medium
US20190340399A1 (en) Cable plugging guidance facility for a network
CN108600296A (en) Merchant information processing method, device, electronic equipment and storage medium
CN107231256A (en) A kind of multi-apparatus management method and system based on SMI S agreements
CN207938019U (en) A kind of moving electric power inspection terminal and system
JP2022035674A (en) Grouping device, management system device, grouping method, management method, program and recording medium
CN115277133B (en) Equipment management method and device
CN111723350A (en) Push method, device and equipment for identifying mode
CN111722974B (en) Log information acquisition method and device and computer equipment
CN103581302B (en) GIS-based service information system and service information displaying method
CN116089664B (en) Beacon query and display method and device, storage medium and electronic equipment

Legal Events

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