Fault server positioning method and device, storage medium and electronic equipment

By deploying an audio collector in the server room, using audio signal characteristics to filter and locate the faulty server, the problem of low positioning efficiency in the existing technology is solved, and fast and accurate positioning of the faulty server is achieved.

CN120378293APending Publication Date: 2025-07-25INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510495009.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, the location efficiency of the faulty server is low, mainly because manual recording of location information is prone to errors and cannot be updated in time, resulting in positioning delays and inaccuracies.

Method used

By deploying an audio collector in the server room, the audio signal output by the server is collected, and the signal outputting specific audio parameters is controlled by the faulty server, the target server is filtered out from the reference signal using the audio signal characteristics, and the server location is determined based on the location of the audio collector.

Benefits of technology

It realizes fast and accurate positioning of the faulty server, avoids delays and errors caused by manual recording and searching of location information, and improves positioning efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378293A_ABST
    Figure CN120378293A_ABST
Patent Text Reader

Abstract

The invention discloses a fault server positioning method and device, a storage medium and electronic equipment, and relates to the technical field of computers, and the method comprises the steps: detecting the operation state of a server in a server room, responding to a target server in a fault operation state, and controlling the target server to output an audio signal meeting a target audio parameter. The characteristic that an audio collector can collect audio signals is utilized, and reference audio signals output by all servers and collected by the audio collector are received. The audio signal meeting the target audio parameter is screened out from the reference audio signal, so that the audio collector which collects the audio signal output by the target server is determined, and the target server is positioned through the position of the audio collector. The technical problem that the positioning efficiency of the fault server is low is solved, and the technical effect of improving the positioning efficiency of the fault server is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a method and device for locating a faulty server, a storage medium, and an electronic device. Background Art

[0002] In order to improve the utilization rate of network resources, modern data centers usually adopt a dynamic IP address allocation mechanism. Under this mechanism, each time a server starts up or reconnects to the network, it dynamically obtains an available IP address from a DHCP (Dynamic Host Configuration Protocol) server, rather than being assigned a static IP address, resulting in a lack of a fixed mapping relationship between the IP (Internet Protocol) address and the physical location of the server in the computer room. However, during the testing process, when a failure occurs in the server corresponding to a certain IP address, being able to quickly and accurately locate the faulty server is crucial for effectively preventing secondary failures caused by positioning delays.

[0003] In the prior art, usually during server deployment, the identification information (such as device serial number, MAC address, and host name, etc.) and physical location (such as the cabinet number and rack position where it is located) of each server are manually recorded in advance, and a location table is established to record the corresponding relationship between the identification information and the physical location. When it is necessary to locate a faulty server, according to the current IP address of the faulty server, the identification information corresponding to this IP address is obtained from the DHCP server, and then according to the obtained identification information, the corresponding physical location is searched in the location table. However, the above positioning method relying on manual maintenance of the location table has many problems. On the one hand, errors are likely to occur during the manual recording process, and the identification information or physical location may be misrecorded. On the other hand, when the physical location of the server changes (such as migration, equipment replacement, etc.), the manual record may not be updated in time, resulting in the records on the location table being inconsistent with the actual physical location of the server. As a result, when a faulty server is detected, the faulty server cannot be located in time and accurately, thereby reducing the positioning efficiency of the faulty server.

[0004] In view of the technical problems such as the low positioning efficiency of faulty servers in the related art, no effective solution has been proposed yet. Summary of the Invention

[0005] The embodiments of the present application provide a method and device for locating a faulty server, a storage medium, and an electronic device, so as to at least solve the technical problems such as the low positioning efficiency of faulty servers in the related art.

[0006] According to an embodiment of the embodiments of the present application, a method for locating a faulty server is provided, including:

[0007] Detect the operating status of the servers in the server room;

[0008] In response to detecting a target server in a faulty operating state, control the target server to output an audio signal that meets the target audio parameters;

[0009] Receive the reference audio signals collected by multiple audio collectors distributed in the server room, where each audio collector in the multiple audio collectors is used to collect the audio signals in the corresponding collection area in the server room, and the multiple collection areas corresponding to the multiple audio collectors cover the deployment locations of the servers in the server room;

[0010] Locate the target server based on the reference audio signal.

[0011] Optionally, controlling the target server to output an audio signal that meets the target audio parameters includes:

[0012] Obtain the target server information of the target server, where the target server information is used to identify the target server;

[0013] Convert the target server information into an audio regulation instruction, where the audio regulation instruction is used to control the target server to output an audio signal that meets the target audio parameters;

[0014] Control the target server to execute the audio regulation instruction.

[0015] Optionally, converting the target server information into an audio regulation instruction includes:

[0016] Perform binary encoding on the target server information to obtain target encoding parameters;

[0017] Convert the target encoding parameters into target audio parameters according to the audio conversion information, where the audio conversion information is used to indicate the mapping relationship between the digital encoding in the target encoding parameters and the audio parameters;

[0018] Convert each audio parameter in the target audio parameters into a corresponding operating parameter according to the instruction conversion information to obtain an operating parameter sequence, where the instruction conversion information is used to indicate the mapping relationship between the audio parameters in the target audio parameters and the operating parameters, and the operating parameters are used to indicate the operating mode of the audio devices in the target server, and the audio devices are the devices in the target server that are allowed to output audio signals;

[0019] Generate an audio regulation instruction corresponding to the operating parameter sequence, where the audio regulation instruction is used to control the audio devices in the server to operate in sequence according to the operating parameters in the operating parameter sequence to output an audio signal that meets the target audio parameters.

[0020] Optionally, locating the target server according to the reference audio signal includes:

[0021] Filtering out one or more candidate audio signals from the reference audio signal whose signal waveforms match the target signal waveform of the audio signal satisfying the target audio parameters;

[0022] Filtering out the target audio signal whose similarity to the target signal waveform meets the similarity condition from the one or more candidate audio signals;

[0023] Determining the target acquisition area corresponding to the target audio collector that collects the target audio signal as the target deployment location of the target server.

[0024] Optionally, filtering out the target audio signal whose similarity to the target signal waveform meets the similarity condition from the one or more candidate audio signals includes:

[0025] Filtering out one target audio signal with the maximum similarity to the target signal waveform from the one or more candidate audio signals;

[0026] Alternatively, filtering out multiple target audio signals whose similarity to the target signal waveform is greater than the similarity threshold from the one or more candidate audio signals.

[0027] Optionally, determining the target acquisition area corresponding to the target audio collector that collects the target audio signal as the target deployment location of the target server includes:

[0028] In the case of filtering out multiple target audio signals whose similarity to the target signal waveform is greater than the similarity threshold from the one or more candidate audio signals, obtaining the reference acquisition areas corresponding to the target audio collectors that collect each target audio signal, and obtaining multiple reference acquisition areas;

[0029] Determining the intersection area of the multiple reference acquisition areas as the target acquisition area;

[0030] Determining the target acquisition area as the target deployment location.

[0031] According to another embodiment of the embodiments of the present application, there is also provided a locating device for a faulty server, including:

[0032] A detection module, configured to detect the operating state of the servers in the server room;

[0033] A control module, configured to control the target server to output an audio signal satisfying the target audio parameters in response to detecting the target server in a faulty operating state;

[0034] A receiving module, configured to receive reference audio signals collected by a plurality of audio collectors distributed in a server room, wherein each of the plurality of audio collectors is configured to collect audio signals in a corresponding collection area in the server room, and the plurality of collection areas corresponding to the plurality of audio collectors cover the deployment positions of the servers in the server room;

[0035] A positioning module, configured to position a target server according to the reference audio signals.

[0036] The present application further provides an electronic device, including: a memory, configured to store a computer program; a processor, configured to implement the steps of any one of the above-mentioned positioning methods for a faulty server when executing the computer program.

[0037] The present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above-mentioned positioning methods for a faulty server are implemented.

[0038] The present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned positioning methods for a faulty server are implemented.

[0039] Through the present application, since the audio collectors in the server room can collect the audio signals output by all servers, when a target server in a faulty operating state is detected, the target server can be controlled to output an audio signal that meets the target audio parameters, and then the reference audio signals output by all servers collected by the audio collectors in the server room are received, so as to realize the positioning of the target server. That is, by using the characteristics that the target server can output an audio signal with specific audio parameters and the audio collectors can collect these audio signals, by screening out the audio signals that meet the target audio parameters from the audio signals output by all servers, the audio collector that collects the audio signals output by the target server can be determined from the plurality of audio collectors, and the position of the target server can be indirectly determined through the position of the audio collector, avoiding the delay and errors caused by manual recording and searching for position information in the related art, so that the faulty server can be located in a timely and accurate manner when a faulty server is detected. Therefore, the technical problems such as low positioning efficiency of faulty servers in the related art can be solved, and the technical effect of improving the positioning efficiency of faulty servers is achieved. Description of the Drawings

[0040] In order to more clearly illustrate the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0041] Figure 1 is a hardware block diagram of a computer device for a method of locating a faulty server according to an embodiment of the present application;

[0042] Figure 2 is a flowchart of a method of locating a faulty server according to an embodiment of the present application;

[0043] Figure 3 is an example diagram of the deployment location of an audio collector in a server cabinet according to an embodiment of the present application;

[0044] Figure 4 is an example diagram of the deployment location of an audio collector in a server computer room according to an embodiment of the present application;

[0045] Figure 5 is an example diagram of an audio signal output by a target server according to an embodiment of the present application;

[0046] Figure 6 is an example diagram of an audio signal collected by audio collector A according to an embodiment of the present application;

[0047] Figure 7 is an example diagram of an audio signal collected by audio collector B according to an embodiment of the present application;

[0048] Figure 8 is an example diagram of an audio signal collected by audio collector C according to an embodiment of the present application;

[0049] Figure 9 is an example diagram of a sound pressure distance distribution curve according to an embodiment of the present application;

[0050] Figure 10 is a block diagram of a device for locating a faulty server according to an embodiment of the present application;

[0051] Figure 11 is a schematic diagram of an electronic device according to an embodiment of the present application. Detailed implementation manners

[0052] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0053] It should be noted that in the description of this application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0054] In order to enable those skilled in the art of this technology to better understand the solution of this application, the following further elaborates on this application in conjunction with the accompanying drawings and specific implementation manners.

[0055] The method embodiments provided in the embodiments of this application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 is a hardware structure block diagram of a computer device for a method of locating a faulty server in an embodiment of this application. As Figure 1 shown, the server device may include one or more ( Figure 1 only one is shown in Figure 1 the figure) processors 102 (the processors 102 may include, but are not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above-mentioned server device may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only illustrative and does not limit the structure of the above-mentioned server device. For example, the server device may further include more or fewer components than Figure 1 shown in

[0056] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the method of locating a faulty server in the embodiments of this application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the server device through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0057] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of a server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0058] In this embodiment, a method for locating a faulty server is provided. Figure 2 It is a flowchart of a method for locating a faulty server according to an embodiment of the present application, as Figure 2 shown, and the process includes the following steps:

[0059] Step S12, detecting the operating state of the servers in the server room;

[0060] Step S14, in response to detecting a target server in a faulty operating state, controlling the target server to output an audio signal that meets the target audio parameters;

[0061] Step S16, receiving reference audio signals collected by a plurality of audio collectors distributed in the server room, where each of the plurality of audio collectors is used to collect audio signals in the corresponding collection area in the server room, and the plurality of collection areas corresponding to the plurality of audio collectors cover the deployment locations of the servers in the server room;

[0062] Step S18, locating the target server according to the reference audio signals.

[0063] Optionally, in this embodiment, the audio collectors in the server room can be, but are not limited to, devices such as digital microphones or sound pressure sensors that can collect audio signals in their collection areas, and the audio signals can be, but are not limited to, environmental noise data in the collection area, such as audio signals output during the operation of the server, including noise data such as the rotation sound of the fan and the read / write sound of the hard disk. The plurality of audio collectors are deployed at various positions in the server room, and each audio collector is responsible for collecting environmental noise data in its corresponding collection area. Figure 3 It is an example diagram of the deployment position of an audio collector in a server cabinet according to an embodiment of the present application, as Figure 3 shown, the deployment method of the audio collector (i.e., the sound pressure sensor) relative to the server cabinet can be, but is not limited to, being deployed in the middle position of the server cabinet to ensure that it can collect the audio signals output by all the servers in the cabinet. Figure 4It is an example diagram of the deployment location of an audio collector in a server room according to an embodiment of the present application. As Figure 4 shown, the deployment method of the audio collector relative to the server room can be, but is not limited to, being evenly deployed in the server room. The collection areas responsible for all audio collectors jointly cover the deployment locations of all servers in the server room, ensuring that the audio signals output by each server can be collected by at least one audio collector.

[0064] Optionally, in this embodiment, the fault operation state can be, but is not limited to, including: performance anomalies, such as key performance indicators such as the CPU usage rate, memory occupancy rate, disk read / write speed, or network throughput of the server exceeding the normal range; hardware failures, such as failures of hardware components such as processors, memory modules, hard disks, power supplies, fans, and cooling systems; network anomalies, such as abnormal increases in packet loss rate, significant increases in network latency, or complete disconnection of the network when the connection between the server and the network appears abnormal; system log anomalies, such as hardware fault codes, application crash records, or security warnings that appear in the system log.

[0065] Optionally, in this embodiment, the detection methods for detecting the operation state of servers in the server room can be, but are not limited to, including: using a centralized monitoring platform to collect performance data of all servers in the server room, including but not limited to performance indicators such as CPU (Central Processing Unit) usage rate, memory usage, disk read / write speed, system temperature, and fan speed. At the same time, hardware self-checks can also be performed through the built-in BMC (Baseboard Management Controller) system of the server to monitor the hardware state of the server in real time, including the operation of key components such as power supplies, fans, temperature sensors, memory, and CPU. And, monitor network traffic and latency through network behavior analysis tools, analyze network data packets in real time, and detect abnormal traffic patterns in the network, such as malware communication or network congestion. And, use a log analysis system to collect and analyze the operating system logs, application logs, and security logs of the server, monitor the log files in real time, and detect abnormal log entries, such as error messages, warning messages, security events, etc.

[0066] Optionally, in this embodiment, before detecting the operation state of servers in the server room, when the servers are in a normal operation state, collect and record the audio signals output by the servers in a normal operation state collected by multiple audio collectors, and store them as reference audio signals in the central processing system.

[0067] Optionally, in this embodiment, the audio collector may periodically collect the audio signals output by the servers in the server room during operation at a preset frequency (e.g., once every 5 seconds). When it is detected that the difference between the collected audio signal and the reference audio signal is greater than a preset threshold, it indicates that an abnormal situation may have occurred to the servers in the collection area. Among them, the difference can be determined by calculating the differences in audio parameters such as the intensity change or frequency change of the audio signal. The collection area corresponding to the audio collector that collected this audio signal is determined as the abnormal area, and the coordinates of this audio collector are sent to the operation and maintenance personnel. The operation and maintenance personnel can detect the status of the servers in the abnormal area based on these coordinates, achieving the technical effect of monitoring the abnormal situation of the servers.

[0068] Optionally, in this embodiment, when a server in a fault operation state is detected, the target server (i.e., the server in a fault operation state) is controlled through a remote control command (such as SSH, IPMI, etc.) to output an audio signal with specific target audio parameters. Among them, the audio signal with target audio parameters can be an audio signal with a specific frequency, specific intensity, or specific mode, which is used to distinguish between a normally operating server and a faulty server.

[0069] Optionally, in this embodiment, the reference audio signal contains the audio signals of all the servers in the server room. Since the audio signal output by the target server has specific characteristics, the audio signal of the target server can be accurately identified from the reference audio signal through these characteristics, and at the same time, the audio collector that collected the audio signal of the target server is determined. Since the position of each audio collector is known, the position of the target server can be indirectly determined through the position information of these audio collectors.

[0070] Through the positioning method of the faulty server in the embodiment of the present application, by using the characteristics that the target server can output an audio signal with specific audio parameters and the audio collector can collect these audio signals, by screening out the audio signals that meet the target audio parameters from the audio signals output by all the servers, the audio collector that collected the audio signal output by the target server can be determined from multiple audio collectors. Through the position of the audio collector, the position of the target server is indirectly determined, avoiding the delay and errors caused by manual recording and searching for position information in the related art, so that the faulty server can be located in a timely and accurate manner when a faulty server is detected. Therefore, it can solve the technical problems such as the low positioning efficiency of the faulty server in the related art, and achieve the technical effect of improving the positioning efficiency of the faulty server.

[0071] As an optional solution, controlling the target server to output an audio signal that meets the target audio parameters includes:

[0072] S21. Obtain the target server information of the target server, where the target server information is used to identify the target server;

[0073] S22. Convert the target server information into an audio control instruction, where the audio control instruction is used to control the target server to output an audio signal that meets the target audio parameters;

[0074] S23. Control the target server to execute the audio control instruction.

[0075] Optionally, in this embodiment, the target server information may include, but is not limited to, the identification information of the target server, such as the IP address, device serial number, host name, etc. The method of obtaining the target server information may include, but is not limited to: after detecting the target server in a fault operation state, obtaining the identification information of the fault server through a centralized monitoring platform, the BMC system built in the server, a network behavior analysis tool, or other detection means.

[0076] Optionally, in this embodiment, the method of controlling the target server to output an audio signal that meets the target audio parameters may include, but is not limited to: First, obtain the target server information of the target server, which may include the identification information of the target server and the time information for current fault server location; then, convert the target server information into an audio control instruction, where the audio control instruction may include, but is not limited to, indicating a unique target audio parameter; then connect to the IP address of the target server through a remote control command (such as SSH, IPMI, etc.) to control the target server to execute the audio control instruction, so that the target server outputs an audio signal with specific target audio parameters.

[0077] As an optional solution, converting the target server information into an audio control instruction includes:

[0078] S31. Perform binary encoding on the target server information to obtain a target encoding parameter;

[0079] S32. Convert the target encoding parameter into a target audio parameter according to the audio conversion information, where the audio conversion information is used to indicate the mapping relationship between the digital encoding in the target encoding parameter and the audio parameter;

[0080] S33. Convert each audio parameter in the target audio parameter into a corresponding operation parameter according to the instruction conversion information to obtain an operation parameter sequence, where the instruction conversion information is used to indicate the mapping relationship between the audio parameter in the target audio parameter and the operation parameter, and the operation parameter is used to indicate the operation mode of the audio device in the target server, and the audio device is the device in the target server that allows the output of an audio signal;

[0081] S34. Generate an audio adjustment instruction corresponding to the operation parameter sequence, where the audio adjustment instruction is used to control the audio device in the server to operate in sequence according to the operation parameters in the operation parameter sequence, so as to output an audio signal that meets the target audio parameters.

[0082] Optionally, in this embodiment, the audio conversion information can be, but is not limited to, a pre-defined mapping relationship that can convert binary codes into audio parameters. For example, the pre-defined audio conversion information can be: the audio parameter corresponding to the binary code "0" is "sound pressure intensity 20 db, duration 0.5 seconds", and the audio parameter corresponding to the binary code "1" is "sound pressure intensity 100 db, duration 0.5 seconds".

[0083] Optionally, in this embodiment, the instruction conversion information can be, but is not limited to, a pre-defined mapping relationship that can convert audio parameters into operation parameters, where the operation parameters can indicate the operation mode of the audio device in the target server that can output audio signals, such as the rotation speed of the fan, the rotation speed of the condensate pump, etc. The pre-defined instruction conversion information can be: the operation parameter corresponding to the audio parameter "sound pressure intensity 20 db, duration 0.5 seconds" is "fan rotation speed 20%, duration 0.5 seconds", and the operation parameter corresponding to the audio parameter "sound pressure intensity 100 db, duration 0.5 seconds" is "fan rotation speed 100%, duration 0.5 seconds".

[0084] Optionally, in this embodiment, the audio device can also be an external speaker or an audio warning device connected to the server through an audio output interface, allowing the playback of pre-defined audio files.

[0085] Optionally, in this embodiment, the method of converting the target server information into an audio control instruction may include, but is not limited to: taking the target server information as the IP address of the target server as an example. Suppose the IP address of the target server is: 192.168.1.100. After obtaining the target server information, first perform binary encoding on the target server information to convert the target server information into binary form: "192" → "11000000", "168" → "10101000", "1" → "00000001", "100" → "01100100", to obtain the target encoding parameter: "11000000101010000000000101100100". Then, convert the target encoding parameter into target audio parameters according to the predefined audio conversion information. For example, convert the digital code "1" into the corresponding audio parameter "sound pressure intensity 100 db, duration 0.5 seconds", and convert the digital code "0" into the corresponding audio parameter "sound pressure intensity 20 db, duration 0.5 seconds". Then, convert each audio parameter in the target audio parameters into the corresponding operation parameters according to the predefined instruction conversion information. For example, convert the audio parameter "sound pressure intensity 100 db, duration 0.5 seconds" into the corresponding operation parameter "fan speed 100%, duration 0.5 seconds", and convert the audio parameter "sound pressure intensity 20 db, duration 0.5 seconds" into the corresponding operation parameter "fan speed 20%, duration 0.5 seconds", to obtain the operation parameter sequence: "fan speed 100%, duration 0.5 seconds; fan speed 100%, duration 0.5 seconds; fan speed 20%, duration 0.5 seconds; fan speed 20%, duration 0.5 seconds...". Finally, generate an audio control instruction according to the operation parameter sequence. Among them, the audio control instruction can be sent to the target server in a manner including, but not limited to, SSH commands or IPMI commands, so that the target server outputs an audio signal that meets the target audio parameters.

[0086] Optionally, in this embodiment, Figure 5 is an example diagram of the audio signal output by the target server according to the embodiment of the present application. As Figure 5 shown, after the target server executes the audio control instruction and controls the fan to run sequentially according to the running mode indicated by the operation parameter sequence, the output audio signal meets the target audio parameters, that is, corresponds to the target server information of the target server.

[0087] As an optional solution, locating the target server according to the reference audio signal includes:

[0088] S41, screening out one or more candidate audio signals from the reference audio signal whose signal waveforms match the target signal waveforms of the audio signals that meet the target audio parameters;

[0089] S42. Screen out a target audio signal whose similarity to the waveform of the target signal meets the similarity condition from one or more candidate audio signals;

[0090] S43. Determine the target acquisition area corresponding to the target audio collector that acquires the target audio signal as the target deployment location of the target server.

[0091] Optionally, in this embodiment, after controlling the target server to execute the audio regulation instruction, multiple audio collectors in the server room respectively acquire a reference audio signal containing the audio signals of all servers. The ways to receive the reference audio signal may include: using the sounddevice module to interact with all audio collectors to obtain all the audio signals collected by all audio collectors.

[0092] Optionally, in this embodiment, the ways to screen out the target audio signal from the reference audio signal may include, but are not limited to: calculating the reference intensity difference between the reference audio signal and the reference audio signal, where the reference intensity difference corresponds to the degree of difference. The greater the reference intensity difference, the greater the degree of difference between the reference audio signal and the reference audio signal. For the same audio collector, the greater the degree of difference between the collected audio signal and the reference audio signal, the greater the difference between the audio signal output by the server in its acquisition area and the audio signal output in the normal operation state, that is, the greater the possibility that there is a faulty server in its acquisition area. Determine the reference audio signal with the largest reference intensity difference as the target audio signal, or set a reference intensity difference threshold, and determine multiple reference audio signals greater than the reference intensity difference threshold as the target audio signals.

[0093] Optionally, in this embodiment, the ways to screen out the target audio signal from the reference audio signal may include, but are not limited to: assuming that there are three audio collectors in the server room, namely audio collector A, audio collector B, and audio collector C, Figure 6 is an example diagram of the audio signal collected by audio collector A according to an embodiment of the present application, Figure 7 is an example diagram of the audio signal collected by audio collector B according to an embodiment of the present application, Figure 8 is an example diagram of the audio signal collected by audio collector C according to an embodiment of the present application. The reference audio signal includes three audio signals collected by audio collectors A to C. Compare the signal waveform of the reference audio signal with the target signal waveform of the audio signal that meets the target audio parameters, and screen out the candidate audio signals that match the target signal waveform. As Figures 6 - 8 shown, the audio signals collected by audio collectors A and C are completely matched with the target signal waveform, so they are selected as candidate audio signals.

[0094] Optionally, in this embodiment, Figure 9 is an example diagram of the sound pressure distance distribution curve according to the embodiment of the present application. As Figure 9 shown, since there is loss in the propagation process of the audio signal, when the target server is closer to the audio collector, the audio signal collected by the audio collector is stronger. When the target server is farther away from the audio collector, the audio signal collected by the audio collector is weaker. Therefore, the closer the audio collector is to the target server, the higher the similarity between the audio signal collected by the audio collector and the audio signal output by the target server that meets the target audio parameters.

[0095] Optionally, in this embodiment, a similarity condition is set, and a target audio signal whose similarity to the target signal waveform meets the similarity condition (such as 90% similarity) is found from the candidate audio signals. Among them, the similarity can be determined by calculating the difference between the waveforms of the audio signals, or by calculating the difference in sound pressure intensity between the audio signals.

[0096] Optionally, in this embodiment, after screening out the target audio signal whose similarity to the target signal waveform meets the similarity condition from the candidate audio signals, the audio collector that collects the target audio signal is determined, and the collection area corresponding to the target audio collector that collects the target audio signal is the target deployment location of the target server.

[0097] As an alternative solution, screening out a target audio signal whose similarity to the target signal waveform meets the similarity condition from one or more candidate audio signals includes:

[0098] S51, screening out one target audio signal with the greatest similarity to the target signal waveform from one or more candidate audio signals;

[0099] S52, or, screening out multiple target audio signals whose similarity to the target signal waveform is greater than the similarity threshold from one or more candidate audio signals.

[0100] Optionally, in this embodiment, the method of screening out the target audio signal from the candidate audio signals may but is not limited to further include: calculating the difference in sound pressure intensity between the candidate audio signal and the audio signal output by the target server that meets the target audio parameters. Among them, the difference in sound pressure intensity corresponds to the similarity. The smaller the difference in sound pressure intensity, the greater the similarity between the two audio signals. The candidate audio signal with the smallest difference in sound pressure intensity is determined as the target audio signal, or a threshold for the difference in sound pressure intensity is set, and multiple candidate audio signals smaller than the threshold for the difference in sound pressure intensity are determined as the target audio signals.

[0101] As an alternative solution, determining the target deployment location of the target server as the target acquisition area corresponding to the target audio acquisition device that acquires the target audio signal includes:

[0102] S61. When screening out multiple target audio signals with a similarity greater than the similarity threshold to the target signal waveform from one or more candidate audio signals, obtaining the reference acquisition areas corresponding to the target audio acquisition devices that acquire each target audio signal, and obtaining multiple reference acquisition areas;

[0103] S62. Determining the intersection area of the multiple reference acquisition areas as the target acquisition area;

[0104] S63. Determining the target acquisition area as the target deployment location.

[0105] Optionally, in this embodiment, when screening out multiple target audio signals with a similarity greater than the similarity threshold to the target signal waveform from one or more candidate audio signals, that is, when multiple audio acquisition devices all acquire the target audio signal, the intersection area of the multiple acquisition areas corresponding to the multiple audio acquisition devices can be determined as the deployment location of the target server.

[0106] Optionally, in this embodiment, as Figure 6 and Figure 8 shown, assume that the audio signals acquired by audio acquisition devices A and C both meet the similarity conditions, and the acquisition area corresponding to audio acquisition device A is located in cabinet 1, and the acquisition area corresponding to audio acquisition device C is located in cabinet 2. When both audio acquisition devices A and C acquire the target audio signal, obtaining the reference acquisition areas corresponding to audio acquisition devices A and C: cabinet 1 and cabinet 2, and determining the intersection area of cabinet 1 and cabinet 2 as the target acquisition area, it can be determined that the intersection area of cabinet 1 and cabinet 2 is the deployment location of the target server. By restricting the deployment location of the target server through the acquisition areas corresponding to multiple audio acquisition devices, the range of the deployment location of the target server can be reduced, achieving the technical effect of improving the positioning efficiency of the faulty server.

[0107] Optionally, in this embodiment, to better understand the process of the positioning method for the faulty server performing the positioning task, the following further describes the process of the positioning method for the faulty server performing the positioning task in combination with an alternative embodiment, but it is not used to limit the technical solutions of the embodiments of the present application.

[0108] In this embodiment, a positioning method for a faulty server is provided, which mainly includes the following steps:

[0109] Step 1: Deploy a sound pressure sensor.

[0110] Deploy sound pressure sensors (i.e., audio collectors) in the server room. The positions of the sound pressure sensors should be as close as possible to the middle of the server racks and evenly distributed within the server room to ensure that the audio signals output by each server in the server room can be collected by at least one audio collector.

[0111] Step 2: Collect the audio signals output by the servers in the normal operating state.

[0112] Use the sounddevice module to interact with all sound pressure sensors and collect the audio signals collected by each sound pressure sensor at a preset frequency. Since the server models, configurations, and actual services are different, there may be deviations in the audio signals output during operation, and the audio reference values of the audio signals output by the servers deployed in different regions may not be consistent. This step can obtain the audio reference values of the collection areas corresponding to each sound pressure sensor.

[0113] Step 3: Generate an audio instruction for the faulty server.

[0114] In response to detecting a faulty server in the faulty operating state, obtain a digital combination by combining the identification information and time information of the faulty server, and convert the digital combination into an audio instruction (i.e., an audio regulation instruction) according to the audio conversion information and instruction conversion information. For example, the time information January 1st is 0101, and December 20th is 1220. Convert the digital combination carrying the identification information and time information of the faulty server into binary. Taking 0101 as an example, the binary conversion is 1100101. Subsequently, convert "1" into an audio instruction to adjust the server fan speed to 100% to increase the sound pressure, and convert "0" into a sound pressure instruction to adjust the server fan speed to 25% to reduce the sound pressure. If it is a liquid-cooled server, adjust the speed of the condensate pump to achieve the purpose of increasing the sound pressure with the GPU pressure light. Wait 5s for the intermediate change to ensure the audio instruction takes effect.

[0115] Step 4: Send the audio instruction.

[0116] Based on the IP address of the faulty server, use remote means such as SSH connection, IPMI instruction, or BMC interface to make the audio signal output by the faulty server undergo corresponding audio changes.

[0117] Step 5: Summarize the audio data collected by the sound pressure sensors.

[0118] Calculate the sound pressure change of the audio signal collected by each sound pressure sensor relative to the audio reference value, and obtain the sound pressure intensity difference. Feed back the coordinates of the sound pressure sensor with the largest sound pressure intensity difference and whose changes each time conform to the binary character changes generated in step 3 to the operation and maintenance personnel. In the case where multiple audio signals all conform to this binary character change, re-execute steps 4 and 5 to resolve the occasional conflicts caused by online services. If there are different sound pressure sensors at different heights in the same cabinet, the sound pressure sensor with the largest sound pressure intensity difference can be further found according to the change in height, and the expected height can be transmitted to the operation and maintenance personnel together.

[0119] Step 6: Use BMC to perform the lighting operation.

[0120] Use IPMI commands to control the BMC module of the target server to make its LED lights flash.

[0121] Step 7: Precisely locate the specific location of the server offline.

[0122] The operation and maintenance personnel can quickly find the specific faulty server according to the feedback of the sound pressure sensor coordinates and the BMC light flashing situation. If it is inconvenient for the operation and maintenance personnel to view the BMC lights in some unmanned scenarios, a robotic arm can be considered to transport the camera to the cabinet where the corresponding sound pressure sensor is deployed (cameras can also be deployed in each cabinet), and then take pictures of the BMC lights of the server. Check whether the BMC lights are flashing according to the shooting results and visual recognition. To avoid misjudgment and omission of the flashing by the camera, the BMC heart light can be lit first, photographed, extinguished after shooting, and then photographed again. Repeat three times to confirm the physical address of the final faulty server.

[0123] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0124] Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of this application.

[0125] In this embodiment, a positioning device for a faulty server is also provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0126] Figure 10 is a structural block diagram of a positioning device for a faulty server according to an embodiment of the present application; as Figure 10 shown, it includes:

[0127] A detection module 1002, configured to detect the operating state of the servers in the server room;

[0128] A control module 1004, configured to control the target server to output an audio signal that meets the target audio parameters in response to detecting a target server in a faulty operating state;

[0129] A receiving module 1006, configured to receive reference audio signals collected by a plurality of audio collectors distributed in the server room, wherein each of the plurality of audio collectors is used to collect audio signals in a corresponding collection area in the server room, and the plurality of collection areas corresponding to the plurality of audio collectors cover the deployment positions of the servers in the server room;

[0130] A positioning module 1008, configured to locate the target server according to the reference audio signals.

[0131] In an exemplary embodiment, the control module includes:

[0132] An acquisition unit, configured to acquire target server information of the target server, wherein the target server information is used to identify the target server;

[0133] A conversion unit, configured to convert the target server information into an audio regulation instruction, wherein the audio regulation instruction is used to control the target server to output an audio signal that meets the target audio parameters;

[0134] A control unit, configured to control the target server to execute the audio regulation instruction.

[0135] In an exemplary embodiment, the conversion unit is further configured to:

[0136] Perform binary encoding on the target server information to obtain target encoding parameters;

[0137] Convert the target encoding parameters into target audio parameters according to audio conversion information, wherein the audio conversion information is used to indicate the mapping relationship between the digital encoding in the target encoding parameters and the audio parameters;

[0138] Convert each audio parameter in the target audio parameters into corresponding operation parameters according to the instruction conversion information to obtain an operation parameter sequence, where the instruction conversion information is used to indicate the mapping relationship between the audio parameters in the target audio parameters and the operation parameters, and the operation parameters are used to indicate the operation mode of the audio device in the target server, and the audio device is a device in the target server that allows the output of audio signals;

[0139] Generate an audio regulation instruction corresponding to the operation parameter sequence, where the audio regulation instruction is used to control the audio device in the server to operate in sequence according to the operation parameters in the operation parameter sequence to output an audio signal that meets the target audio parameters.

[0140] In an exemplary embodiment, the positioning module includes:

[0141] A first screening unit for screening out one or more candidate audio signals from the reference audio signal whose signal waveforms match the target signal waveform of the audio signal that meets the target audio parameters;

[0142] A second screening unit for screening out a target audio signal from the one or more candidate audio signals whose similarity to the target signal waveform meets the similarity condition;

[0143] A determination unit for determining the target acquisition area corresponding to the target audio collector that collects the target audio signal as the target deployment location of the target server.

[0144] In an exemplary embodiment, the second screening unit is further configured to:

[0145] Screen out one target audio signal with the greatest similarity to the target signal waveform from the one or more candidate audio signals;

[0146] Alternatively, screen out multiple target audio signals from the one or more candidate audio signals whose similarity to the target signal waveform is greater than the similarity threshold.

[0147] In an exemplary embodiment, the determination unit is further configured to:

[0148] In the case of screening out multiple target audio signals from the one or more candidate audio signals whose similarity to the target signal waveform is greater than the similarity threshold, obtain the reference acquisition areas corresponding to the target audio collectors that collect each target audio signal to obtain multiple reference acquisition areas;

[0149] Determine the intersection area of the multiple reference acquisition areas as the target acquisition area;

[0150] Determine the target acquisition area as the target deployment location.

[0151] It should be noted that the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules are respectively located in different processors in any combination.

[0152] For the description of the features in the corresponding embodiments of the positioning device for the faulty server, reference can be made to the relevant descriptions in the corresponding embodiments of the positioning method for the faulty server, which will not be elaborated here one by one.

[0153] An embodiment of the present application further provides an electronic device, Figure 11 which is a schematic diagram of the electronic device according to the embodiment of the present application. As Figure 11 shown, the electronic device includes a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above-mentioned embodiments of the positioning method for the faulty server.

[0154] In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above-mentioned processor, and the input / output device is connected to the above-mentioned processor.

[0155] For the specific examples in this embodiment, reference can be made to the examples described in the above-mentioned embodiments and exemplary embodiments, and this embodiment will not be elaborated here.

[0156] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. Among them, the computer program is configured to execute the steps in any one of the above-mentioned embodiments of the positioning method for the faulty server when running.

[0157] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (abbreviated as ROM), random access memories (abbreviated as RAM), mobile hard disks, magnetic disks or optical disks, and other various media that can store computer programs.

[0158] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (abbreviated as ROM), random access memories (abbreviated as RAM), mobile hard disks, magnetic disks or optical disks, and other various media that can store computer programs.

[0159] Embodiments of the present application further provide a computer program product, including a computer program. When the computer program is executed by a processor, it implements the steps of the methods in various embodiments of the present application; the computer program product further includes a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium stores the computer program. When the computer program is executed by a processor, it implements the steps of the method for locating a faulty server in various embodiments of the present application.

[0160] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present application.

[0161] The above has introduced in detail a method for locating a faulty server provided by the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A method for locating a faulty server, characterized in that, Including: Detecting the operating status of servers in the server room; In response to detecting a target server in a faulty operating state, controlling the target server to output an audio signal that meets target audio parameters; Receiving reference audio signals collected by a plurality of audio collectors distributed in the server room, wherein each of the plurality of audio collectors is used to collect audio signals within a corresponding collection area in the server room, and the plurality of collection areas corresponding to the plurality of audio collectors cover the deployment positions of the servers in the server room; Locating the target server based on the reference audio signals.

2. The method according to claim 1, wherein: The controlling the target server to output an audio signal that meets target audio parameters includes: Obtaining target server information of the target server, where the target server information is used to identify the target server; Converting the target server information into an audio regulation instruction, where the audio regulation instruction is used to control the target server to output an audio signal that meets the target audio parameters; Controlling the target server to execute the audio regulation instruction.

3. The method according to claim 2, wherein: The converting the target server information into an audio regulation instruction includes: Performing binary encoding on the target server information to obtain target encoding parameters; Converting the target encoding parameters into the target audio parameters according to audio conversion information, where the audio conversion information is used to indicate the mapping relationship between the digital encoding in the target encoding parameters and the audio parameters; Converting each audio parameter in the target audio parameters into a corresponding operating parameter according to instruction conversion information to obtain an operating parameter sequence, where the instruction conversion information is used to indicate the mapping relationship between the audio parameters in the target audio parameters and the operating parameters, and the operating parameters are used to indicate the operating mode of the audio devices in the target server, and the audio devices are the devices in the target server that are allowed to output audio signals; Generating an audio regulation instruction corresponding to the operating parameter sequence, where the audio regulation instruction is used to control the audio devices in the server to operate in sequence according to the operating parameters in the operating parameter sequence to output an audio signal that meets the target audio parameters.

4. The method according to claim 1, wherein: The locating the target server based on the reference audio signals includes: Screening out one or more candidate audio signals from the reference audio signals whose signal waveforms match the target signal waveform of the audio signal that meets the target audio parameters; Screening out a target audio signal from the one or more candidate audio signals whose similarity to the target signal waveform meets a similarity condition; Determining the target collection area corresponding to the target audio collector that collected the target audio signal as the target deployment position of the target server.

5. The method according to claim 4, wherein: Selecting a target audio signal whose similarity to the waveform of the target signal meets the similarity condition from one or more of the candidate audio signals includes: Selecting one target audio signal with the maximum similarity to the waveform of the target signal from one or more of the candidate audio signals; Alternatively, selecting multiple target audio signals whose similarity to the waveform of the target signal is greater than a similarity threshold from one or more of the candidate audio signals.

6. The method according to claim 5, wherein Determining the target acquisition area corresponding to the target audio collector that acquires the target audio signal as the target deployment location of the target server includes: In the case of selecting multiple target audio signals whose similarity to the waveform of the target signal is greater than a similarity threshold from one or more of the candidate audio signals, obtaining the reference acquisition areas corresponding to the target audio collectors that acquire each of the target audio signals, and obtaining multiple reference acquisition areas; Determining the intersection area of the multiple reference acquisition areas as the target acquisition area; Determining the target acquisition area as the target deployment location.

7. A positioning device for a faulty server, characterized in that, Including: A detection module for detecting the operating state of servers in a server room; A control module for controlling the target server to output an audio signal that meets target audio parameters in response to detecting a target server in a faulty operating state; A receiving module for receiving reference audio signals collected by multiple audio collectors distributed in the server room, wherein each of the multiple audio collectors is used to collect audio signals in the corresponding acquisition area in the server room, and the multiple acquisition areas corresponding to the multiple audio collectors cover the deployment locations of the servers in the server room; A positioning module for positioning the target server based on the reference audio signals.

8. An electronic device, characterized by, Including: A memory for storing a computer program; A processor for implementing the steps of the positioning method for a faulty server according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program, when executed by a processor, implements the steps of the positioning method for a faulty server according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, The computer program, when executed by a processor, implements the steps of the positioning method for a faulty server according to any one of claims 1 to 6.

Citation Information

Cited By

  • Malicious access information detection method and device

    CN120880779A

  • Server equipment positioning method and electronic equipment

    CN121432327A