Server hardware status monitoring method, device, electronic device, and medium

By using SNMP trap notification service and trap receiver in the server, monitoring server hardware failures and analyzing out-of-band IPs, and initiating patrol services, the problem of low efficiency of server hardware status monitoring in the prior art is solved, and efficient hardware status alarm monitoring is achieved.

CN112631866BActive Publication Date: 2025-08-19PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011564397.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2025-08-19
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

The existing server hardware monitoring methods are inefficient when there are many servers, and the number of concurrencies in the self-developed framework mode increases with the number of servers. The passive reporting mode is difficult to parse information differences, resulting in complex log information and difficult to efficiently monitor the server hardware status.

Method used

The Simple Network Management Protocol (SNMP) trap notification service and trap receiver are used to monitor the server's hardware failure to trigger trap notification messages, parse out-of-band IP, initiate inspection services through the fault alarm management platform, and use inspection services to monitor hardware status alarms.

Benefits of technology

It realizes efficient monitoring of server hardware status, avoids log information complexity, and improves the efficiency and accuracy of server hardware status monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112631866B_ABST
    Figure CN112631866B_ABST
Patent Text Reader

Abstract

The present invention relates to security monitoring technology and discloses a server hardware status monitoring method, comprising: enabling a trap notification service in a server and setting a trap receiver; when a hardware failure of the server is detected, triggering the trap notification service to obtain a trap notification message, and using the trap receiver to receive the trap notification information; parsing the trap notification message to obtain the server's out-of-band IP; retrieving the server's fault information through the out-of-band IP, and initiating a patrol service for managing the server; using the patrol service to patrol the server's hardware status based on the fault information, and performing alarm monitoring based on the hardware status. The present invention also proposes a server hardware status monitoring device, equipment, and storage medium. The present invention also relates to blockchain technology, and the server's fault information can be stored in a blockchain node. The present invention can efficiently monitor the server's hardware status.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of security monitoring technology, and in particular to a server hardware status monitoring method, device, electronic device and computer-readable storage medium. Background Art

[0002] Server hardware often fails, necessitating hardware status monitoring. Existing server monitoring methods typically employ distributed frameworks when the number of servers is large. However, distributed monitoring frameworks impose high maintenance costs and high requirements on operations engineers. Consequently, most companies and enterprises opt for in-house developed server frameworks.

[0003] Existing self-developed server framework modes are generally active polling mode or passive reporting mode. The concurrency of the server framework using active polling mode will increase with the number of servers. The server framework using passive reporting mode will have difficulty in parsing the differences between different reported information. In addition, both modes of server framework obtain server fault hardware information through log information, and log information is often very complex, which makes it difficult to improve the processing efficiency of the server framework of these two modes. Summary of the Invention

[0004] The present invention provides a server hardware status monitoring method, device, electronic equipment and computer-readable storage medium, the main purpose of which is to efficiently monitor the hardware status of the server.

[0005] To achieve the above object, the present invention provides a server hardware status monitoring method, comprising:

[0006] According to the hardware status monitoring instruction of the server, a trap notification service of the Simple Network Management Protocol is enabled in the server, and a trap receiver of the server is set;

[0007] When it is monitored that the hardware of the server fails, the trap notification service is triggered to obtain a trap notification message, and the trap receiver is used to receive the trap notification information sent by the trap notification service;

[0008] Parsing the trap notification message to obtain the out-of-band IP address of the server, and sending the out-of-band IP address to the fault alarm management platform of the server;

[0009] Retrieving the fault information of the server through the out-of-band IP, and initiating an inspection service for managing the server using the fault alarm management platform;

[0010] The inspection service is used to inspect the hardware status of the server according to the fault information, and alarm monitoring is performed according to the hardware status.

[0011] Optionally, enabling a trap notification service of a simple network management protocol in the server includes:

[0012] Obtaining a trap notification file of the simple network management protocol and querying a baseboard management controller of the server;

[0013] The trap notification file of the simple network management protocol is loaded into the baseboard management controller to enable the trap notification service of the simple network management protocol.

[0014] Optionally, when the hardware of the server is monitored to have a fault, before triggering the trap notification service to obtain the trap notification message, the method further includes:

[0015] setting a fault threshold in the baseboard management controller according to the trap notification service;

[0016] When any hardware of the server fails, the failure value increases by one;

[0017] When the fault value reaches the fault threshold, it is determined that the hardware of the server has failed.

[0018] Optionally, the retrieving the fault information of the server through the out-of-band IP includes:

[0019] Obtaining a preset private mapping table of the server, wherein the private mapping table includes a mapping relationship between an out-of-band IP address and fault information;

[0020] According to the out-of-band IP address of the server, the fault information of the server is obtained by querying the private mapping table.

[0021] Optionally, inspecting the hardware status of the server according to the fault information using the inspection service includes:

[0022] Using the inspection service to call the presentation layer state conversion API interface;

[0023] Obtain a flag string containing server hardware information through the presentation layer state conversion API interface to obtain all hardware states of the server;

[0024] Searching the server using the fault information to obtain faulty hardware of the server;

[0025] All the hardware states are screened based on the faulty hardware of the server to obtain the hardware state of the faulty hardware of the server.

[0026] Optionally, inspecting all hardware statuses of the server according to the inspection service includes:

[0027] Initiate an inspection request using the inspection service;

[0028] According to the HTTP uniform resource locator of the inspection request, sending a resource call request with the HTTP uniform resource locator to the Web service process in the baseboard management controller;

[0029] The Web service process obtains all hardware statuses of the server from the baseboard management controller according to the HTTP uniform resource locator, and sends all hardware statuses of the server to the inspection service.

[0030] Optionally, the performing alarm monitoring according to the hardware status includes:

[0031] Setting an alarm threshold according to the hardware status of the server;

[0032] Preset an alarm threshold and obtain the server's faulty hardware through the server's hardware status;

[0033] Setting weights for the faulty hardware and calculating the fault values of all the faulty hardware to obtain a total fault value;

[0034] If the total fault value is lower than the threshold, no alarm is issued;

[0035] If the total fault value is not lower than the threshold, the server information and hardware information record are obtained by using the fault alarm management platform, and the server information and hardware information record are notified to the operation and maintenance personnel in a preset manner.

[0036] In order to solve the above problems, the present invention further provides a server hardware status monitoring device, the device comprising:

[0037] a setting module for enabling a trap notification service of a simple network management protocol in the server and setting a trap receiver of the server according to a hardware status monitoring instruction of the server;

[0038] A trap notification sending module is used to trigger the trap notification service to obtain a trap notification message when a hardware failure of the server is detected, and to use the trap receiver to receive the trap notification information sent by the trap notification service;

[0039] An IP address acquisition module is used to parse the trap notification message, obtain the out-of-band IP address of the server, and send the out-of-band IP address to the fault alarm management platform of the server;

[0040] An inspection service initiation module, configured to retrieve the fault information of the server through the out-of-band IP, and initiate an inspection service for managing the server using the fault alarm management platform;

[0041] The hardware alarm monitoring module is used to use the inspection service to inspect the hardware status of the server according to the fault information, and to perform alarm monitoring according to the hardware status.

[0042] In order to solve the above problem, the present invention further provides an electronic device, comprising:

[0043] a memory storing at least one computer program; and

[0044] The processor executes the computer program stored in the memory to implement the above-mentioned server hardware status monitoring method.

[0045] In order to solve the above problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores created data, and the program storage area stores a computer program; it is characterized in that when the computer program is executed by a processor, it implements the server hardware status monitoring method as described above.

[0046] The server hardware status monitoring method, apparatus, electronic device, and computer-readable storage medium described in embodiments of the present invention enable a Simple Network Management Protocol (SNMP) trap notification service on a server and configure a trap receiver on the server to obtain an out-of-band IP address for server fault information. This information is then used within the server's fault alarm management platform to monitor the server's hardware status. By obtaining server fault information through an out-of-band IP address, the complexity of obtaining server fault information using log information is avoided, thereby enabling efficient monitoring of the server's hardware status. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A flow chart of a server hardware status monitoring method provided by one embodiment of the present invention;

[0048] Figure 2 A schematic diagram of a module of a server hardware status monitoring device provided by an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the internal structure of an electronic device for implementing a server hardware status monitoring method provided by an embodiment of the present invention;

[0050] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0052] The present invention provides a method for monitoring the status of server hardware. The server hardware status monitoring method may be performed by at least one of the following electronic devices, including, but not limited to, a server or a terminal, that can be configured to perform the method provided by the present invention. In other words, the server hardware status monitoring method may be performed by software or hardware installed on a terminal or server device, where the software may be a blockchain platform. The server may include, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.

[0053] Reference Figure 1 FIG. 1 is a flow chart of a server hardware status monitoring method provided by an embodiment of the present invention. In this embodiment, the server hardware status monitoring method includes:

[0054] S1. According to the hardware status monitoring instruction of the server, a trap notification service of the Simple Network Management Protocol is enabled in the server, and a trap receiver of the server is set.

[0055] In an embodiment of the present invention, the Simple Network Management Protocol (SNMP) is used to manage and monitor abnormal conditions of network devices (such as servers, workstations, routers, switches, and hubs). The trap notification (trap) service is used to notify the abnormal conditions. The trap receiver (snmptrapd) is used to receive and record notifications sent by the trap notification service.

[0056] In detail, in an embodiment of the present invention, the step of enabling the trap notification service of the Simple Network Management Protocol in the server includes:

[0057] Querying a baseboard management controller (BMC) of the server and creating an integrated manager in the baseboard management controller;

[0058] When the server obtains the hardware status monitoring instruction, it sends a trap notification service start instruction to the baseboard management controller through the integrated manager;

[0059] Based on the trap notification service start instruction, the baseboard management controller is used to obtain the trap notification file of the simple network management and start the trap notification service.

[0060] In detail, the integrated manager initiates a trap notification service start instruction to the baseboard management controller according to the hardware status monitoring instruction.

[0061] S2. When it is monitored that the hardware of the server fails, the trap notification service is triggered to obtain a trap notification message, and the trap receiver is used to receive the trap notification information sent by the trap notification service.

[0062] In an embodiment of the present invention, the server is monitored using the Simple Network Management Protocol, and when a hardware failure of the server is detected, the trap notification service is triggered to obtain a trap notification message. Specifically, the trap notification service (SNMP Trap) is a passive service that is driven by a hardware failure of the server and sets a trap in the monitored server. When the hardware failure of the server occurs, the trap notification service is triggered to obtain a trap notification message.

[0063] Furthermore, the embodiment of the present invention first sets a fault threshold in the baseboard management controller through the trap notification service. When any hardware of the server fails, the fault value is increased by one, and when the fault value reaches the fault threshold, it is determined that the hardware of the server fails.

[0064] Furthermore, the trap notification information is obtained by triggering the trap notification service when a hardware failure occurs on the server. In an embodiment of the present invention, the trap notification message includes information about the failed server, such as the IP address of the failed server and the age of the failed server.

[0065] S3. Parse the trap notification message to obtain the out-of-band IP address of the server, and send the out-of-band IP address to the fault alarm management platform of the server.

[0066] In detail, parsing the trap notification message to obtain the out-of-band IP address of the server includes:

[0067] Obtaining the uniform resource locator of the trap notification message through the trap receiver;

[0068] Dividing the uniform resource locator according to a known uniform resource service protocol to obtain path information of the trap notification message;

[0069] The path information is queried to obtain the out-of-band IP address of the server.

[0070] The out-of-band IP of the server is used for internal debugging of the server, is not used for external communication, and does not require a network outside the server to access this IP.

[0071] In the embodiment of the present invention, the fault alarm management platform is a pre-built platform for centrally managing the fault alarms.

[0072] S4. Retrieve the fault information of the server through the out-of-band IP, and use the fault alarm management platform to initiate an inspection service for managing the server.

[0073] In detail, the retrieving the fault information of the server through the out-of-band IP includes:

[0074] Obtaining a preset private mapping table of the server;

[0075] According to the out-of-band IP address of the server, the fault information of the server is obtained by querying the private mapping table.

[0076] The private mapping table of the server includes IP address information such as a mapping relationship between the out-of-band IP and the fault information.

[0077] Furthermore, the inspection service (Redfish) is an open industry specification standard released by the Distributed Management Task Force (DMTF) for modernizing and securely managing platform hardware. In an embodiment of the present invention, it can be used to manage the hardware of the server.

[0078] S5. Utilize the inspection service to inspect the hardware status of the server according to the fault information, and perform alarm monitoring according to the hardware status.

[0079] In detail, the inspecting the hardware status of the server according to the fault information using the inspection service includes:

[0080] Using the inspection service to call the presentation layer state conversion API interface;

[0081] Obtain a flag string containing server hardware information through the presentation layer state conversion API interface to obtain all hardware states of the server;

[0082] Searching the server using the fault information to obtain faulty hardware of the server;

[0083] All the hardware states are screened based on the faulty hardware of the server to obtain the hardware state of the faulty hardware of the server.

[0084] In detail, the Representational State Transfer API is an API interface for obtaining the flag string. The flag string (Uniform Resource Identifier, URI) contains the information of the faulty server.

[0085] Specifically, the inspection of all hardware states of the server using the inspection service is performed by inspecting the states of each hardware in the server using the inspection service. For example, the inspection service is used to inspect the speed of the fan of the server, and the temperature and remaining life of the hard disk of the server are inspected using the inspection service.

[0086] Specifically, inspecting all hardware statuses of the server according to the inspection service includes:

[0087] An inspection request is initiated using the inspection service; a resource call request with the HTTP uniform resource locator is sent to the Web service process in the baseboard management controller according to the HTTP uniform resource locator; the Web service process obtains all hardware status of the server from the baseboard management controller according to the HTTP uniform resource locator, and sends all hardware status of the server to the inspection service.

[0088] Furthermore, the alarm monitoring according to the hardware status includes:

[0089] Preset an alarm threshold and obtain the server's faulty hardware through the server's hardware status;

[0090] Setting weights for the faulty hardware and calculating the fault values of all the faulty hardware to obtain a total fault value;

[0091] If the total fault value is lower than the threshold, no alarm is issued;

[0092] If the total fault value is not lower than the threshold, the server information and hardware information record are obtained by using the fault alarm management platform, and the server information and hardware information record are notified to the operation and maintenance personnel in a preset manner.

[0093] Furthermore, for example, the hardware of the server includes a temperature sensor, a fan, a power supply, a GPU card, etc., the alarm threshold is set to 4, the initial alarm value is 0, when the temperature sensor fails, the initial alarm value is increased by 2 to obtain the alarm value A; when the fan fails, the alarm value A is increased by 1 to obtain the alarm value B; when the power supply fails, the alarm value B is increased by 2 to obtain the alarm value C; when the GPU card fails, the alarm value C is increased by 2 to obtain the alarm value D; when the alarm value D is lower than the alarm threshold, the hardware status of the server is lower than the threshold.

[0094] The server hardware status monitoring method, device, electronic device and computer-readable storage medium described in the embodiments of the present invention obtain an out-of-band IP for obtaining server fault information by enabling the trap notification service of the Simple Network Management Protocol in the server and setting a trap receiver of the server, and use the server fault information in the server fault alarm management platform to perform hardware status alarm monitoring of the server, thereby avoiding the problem of overly complex use of log information to obtain the server fault information, thereby achieving the purpose of efficiently monitoring the hardware status of the server.

[0095] like Figure 2 FIG. 1 is a schematic diagram of a module of a server hardware status monitoring device according to the present invention.

[0096] The server hardware status monitoring device 100 described in the present invention can be installed in an electronic device. Depending on the functionality implemented, the server hardware status monitoring device may include a setup module 101, a trap notification sending module 102, an IP address acquisition module 103, a patrol service initiation module 104, and a hardware alarm monitoring module 105. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device processor and perform a fixed function, and is stored in the electronic device's memory.

[0097] In this embodiment, the functions of each module / unit are as follows:

[0098] The setting module 101 is used to enable the trap notification service of the Simple Network Management Protocol in the server according to the hardware status monitoring instruction of the server, and set the trap receiver of the server.

[0099] In an embodiment of the present invention, the Simple Network Management Protocol (SNMP) is used to manage and monitor abnormal conditions of network devices (such as servers, workstations, routers, switches, and hubs). The trap notification (trap) service is used to notify the abnormal conditions. The trap receiver (snmptrapd) is used to receive and record notifications sent by the trap notification service.

[0100] In detail, in an embodiment of the present invention, the step of enabling the trap notification service of the Simple Network Management Protocol in the server includes:

[0101] Querying a baseboard management controller (BMC) of the server and creating an integrated manager in the baseboard management controller;

[0102] When the server obtains the hardware status monitoring instruction, it sends a trap notification service start instruction to the baseboard management controller through the integrated manager;

[0103] Based on the trap notification service start instruction, the baseboard management controller is used to obtain the trap notification file of the simple network management and start the trap notification service.

[0104] In detail, the integrated manager initiates a trap notification service start instruction to the baseboard management controller according to the hardware status monitoring instruction.

[0105] The trap notification sending module 102 is configured to trigger the trap notification service to obtain a trap notification message when a hardware failure of the server is detected, and utilize the trap receiver to receive the trap notification information sent by the trap notification service.

[0106] In an embodiment of the present invention, the server is monitored using the Simple Network Management Protocol, and when a hardware failure of the server is detected, the trap notification service is triggered to obtain a trap notification message. Specifically, the trap notification service (SNMP Trap) is a passive service that is driven by a hardware failure of the server and sets a trap in the monitored server. When the hardware failure of the server occurs, the trap notification service is triggered to obtain a trap notification message.

[0107] Furthermore, the embodiment of the present invention first sets a fault threshold in the baseboard management controller through the trap notification service. When any hardware of the server fails, the fault value is increased by one, and when the fault value reaches the fault threshold, it is determined that the hardware of the server fails.

[0108] Furthermore, the trap notification information is obtained by triggering the trap notification service when a hardware failure occurs on the server. In an embodiment of the present invention, the trap notification message includes information about the failed server, such as the IP address of the failed server and the age of the failed server.

[0109] The IP address acquisition module 103 is configured to parse the trap notification message, obtain the out-of-band IP address of the server, and send the out-of-band IP address to the fault alarm management platform of the server.

[0110] In detail, parsing the trap notification message to obtain the out-of-band IP address of the server includes:

[0111] Obtaining the uniform resource locator of the trap notification message through the trap receiver;

[0112] Dividing the uniform resource locator according to a known uniform resource service protocol to obtain path information of the trap notification message;

[0113] The path information is queried to obtain the out-of-band IP address of the server.

[0114] The out-of-band IP of the server is used for internal debugging of the server, is not used for external communication, and does not require a network outside the server to access this IP.

[0115] In the embodiment of the present invention, the fault alarm management platform is a pre-built platform for centrally managing the fault alarms.

[0116] The inspection service initiating module 104 is configured to retrieve the fault information of the server through the out-of-band IP, and initiate an inspection service for managing the server using the fault alarm management platform.

[0117] In detail, the retrieving the fault information of the server through the out-of-band IP includes:

[0118] Obtaining a preset private mapping table of the server;

[0119] According to the out-of-band IP address of the server, the fault information of the server is obtained by querying the private mapping table.

[0120] The private mapping table of the server includes IP address information such as a mapping relationship between the out-of-band IP and the fault information.

[0121] Furthermore, the inspection service (Redfish) is an open industry specification standard released by the Distributed Management Task Force (DMTF) for modernizing and securely managing platform hardware. In an embodiment of the present invention, it can be used to manage the hardware of the server.

[0122] The hardware alarm monitoring module 105 is configured to utilize the inspection service to inspect the hardware status of the server according to the fault information, and perform alarm monitoring based on the hardware status.

[0123] In detail, the inspecting the hardware status of the server according to the fault information using the inspection service includes:

[0124] Using the inspection service to call the presentation layer state conversion API interface;

[0125] Obtain a flag string containing server status information through the presentation layer state conversion API interface to obtain all hardware status of the server;

[0126] Searching the server using the fault message to obtain faulty hardware of the server;

[0127] All hardware states are screened using the faulty hardware of the server to obtain the hardware state of the faulty hardware of the server.

[0128] In detail, the Representational State Transfer API is an API interface for obtaining the flag string. The flag string (Uniform Resource Identifier, URI) contains the information of the faulty server.

[0129] Specifically, the inspection of all hardware states of the server using the inspection service is performed by inspecting the states of each hardware in the server using the inspection service. For example, the inspection service is used to inspect the speed of the fan of the server, and the temperature and remaining life of the hard disk of the server are inspected using the inspection service.

[0130] Specifically, inspecting all hardware statuses of the server according to the inspection service includes:

[0131] An inspection request is initiated using the inspection service; a resource call request with the HTTP uniform resource locator is sent to the Web service process in the baseboard management controller according to the HTTP uniform resource locator; the Web service process obtains all hardware status of the server from the baseboard management controller according to the HTTP uniform resource locator, and sends all hardware status of the server to the inspection service.

[0132] Furthermore, the alarm monitoring according to the hardware status includes:

[0133] Preset an alarm threshold and obtain the server's faulty hardware through the server's hardware status;

[0134] Setting weights for the faulty hardware and calculating the fault values of all the faulty hardware to obtain a total fault value;

[0135] If the total fault value is lower than the threshold, no alarm is issued;

[0136] If the total fault value is not lower than the threshold, the server information and hardware information record are obtained by using the fault alarm management platform, and the server information and hardware information record are notified to the operation and maintenance personnel in a preset manner.

[0137] Furthermore, for example, the hardware of the server includes a temperature sensor, a fan, a power supply, a GPU card, etc., the alarm threshold is set to 4, the initial alarm value is 0, when the temperature sensor fails, the initial alarm value is increased by 2 to obtain the alarm value A; when the fan fails, the alarm value A is increased by 1 to obtain the alarm value B; when the power supply fails, the alarm value B is increased by 2 to obtain the alarm value; when the GPU card fails, the alarm value C is increased by 2 to obtain the alarm value D; when the alarm value D is lower than the alarm threshold, the hardware status of the server is lower than the threshold.

[0138] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a server hardware status monitoring method according to the present invention.

[0139] The electronic device 1 may include a processor 10 , a memory 11 , and a bus, and may further include a computer program stored in the memory 11 and executable on the processor 10 , such as a server hardware status monitoring program 12 .

[0140] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Furthermore, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed on the electronic device 1, such as the code of the server hardware status monitoring program 12, etc., but can also be used to temporarily store data that has been output or is to be output.

[0141] In some embodiments, the processor 10 may be composed of an integrated circuit, such as a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 10 is the control core (Control Unit) of the electronic device, connecting the various components of the entire electronic device using various interfaces and lines. It executes or executes programs or modules stored in the memory 11 (such as executing a server hardware status monitoring program) and calls data stored in the memory 11 to perform various functions of the electronic device 1 and process data.

[0142] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to enable connection and communication between the memory 11 and at least one processor 10, etc.

[0143] Figure 3 Only the electronic device with components is shown, and it can be understood by those skilled in the art that Figure 3The structure shown does not constitute a limitation on the electronic device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0144] For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for powering the various components. Preferably, the power source may be logically connected to the at least one processor 10 via a power management device, thereby implementing functions such as charging management, discharging management, and power consumption management through the power management device. The power source may further include any components such as one or more DC or AC power sources, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, etc. The electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0145] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the electronic device 1 and other electronic devices.

[0146] Optionally, the electronic device 1 may further include a user interface, which may be a display or an input unit (such as a keyboard). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0147] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0148] The server hardware status monitoring program 12 stored in the memory 11 of the electronic device 1 is a combination of multiple computer programs. When running in the processor 10, it can achieve the following:

[0149] According to the hardware status monitoring instruction of the server, a trap notification service of the Simple Network Management Protocol is enabled in the server, and a trap receiver of the server is set;

[0150] When it is monitored that the hardware of the server fails, the trap notification service is triggered to obtain a trap notification message, and the trap receiver is used to receive the trap notification information sent by the trap notification service;

[0151] Parsing the trap notification message to obtain the out-of-band IP address of the server, and sending the out-of-band IP address to the fault alarm management platform of the server;

[0152] Retrieving the fault information of the server through the out-of-band IP, and initiating an inspection service for managing the server using the fault alarm management platform;

[0153] The inspection service is used to inspect the hardware status of the server according to the fault information, and alarm monitoring is performed according to the hardware status.

[0154] Furthermore, if the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).

[0155] Furthermore, the computer-usable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0156] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical function division, and other division methods may be used in actual implementation.

[0157] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0158] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.

[0159] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0160] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a table in a claim should not be construed as limiting the claim.

[0161] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks generated using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0162] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. Second-order terms are used to indicate names and do not imply any particular order.

[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A server hardware status monitoring method, characterized in that: The method comprises: According to the hardware status monitoring instruction of the server, a trap notification service of the Simple Network Management Protocol is enabled in the server, and a trap receiver of the server is set; When it is monitored that the hardware of the server fails, the trap notification service is triggered to obtain a trap notification message, and the trap receiver is used to receive the trap notification information sent by the trap notification service; Obtaining the uniform resource locator of the trap notification message through the trap receiver, dividing the uniform resource locator according to a known uniform resource service protocol to obtain path information of the trap notification message, querying the path information to obtain the out-of-band IP address of the server, and sending the out-of-band IP address to the fault alarm management platform of the server; Retrieving the fault information of the server through the mapping relationship between the out-of-band IP and the fault information in the private mapping table of the server, and initiating an inspection service for managing the server using the fault alarm management platform; The inspection service is used to inspect the hardware status of the server according to the fault information, and alarm monitoring is performed according to the hardware status.

2. The server hardware status monitoring method according to claim 1, wherein: The step of enabling the trap notification service of the Simple Network Management Protocol in the server includes: Obtaining a trap notification file of the simple network management protocol and querying a baseboard management controller of the server; The trap notification file of the simple network management protocol is loaded into the baseboard management controller to enable the trap notification service of the simple network management protocol.

3. The server hardware status monitoring method according to claim 1, wherein: When the hardware of the server is monitored to have a fault, the method further includes: setting a fault threshold in a baseboard management controller according to the trap notification service; When any hardware of the server fails, the failure value increases by one; When the fault value reaches the fault threshold, it is determined that a hardware fault occurs in the server.

4. The server hardware status monitoring method according to claim 1, wherein: The retrieving the fault information of the server by using the mapping relationship between the out-of-band IP and the fault information in the private mapping table of the server includes: Obtaining a preset private mapping table of the server, wherein the private mapping table includes a mapping relationship between an out-of-band IP address and fault information; According to the out-of-band IP address of the server, the fault information of the server is obtained by querying the private mapping table.

5. The server hardware status monitoring method according to claim 1, wherein: The utilizing the inspection service to inspect the hardware status of the server according to the fault information includes: Using the inspection service to call the presentation layer state conversion API interface; Obtain a flag string containing server hardware information through the presentation layer state conversion API interface to obtain all hardware states of the server; Searching the server using the fault information to obtain faulty hardware of the server; All the hardware states are screened based on the faulty hardware of the server to obtain the hardware state of the faulty hardware of the server.

6. The server hardware status monitoring method according to claim 5, wherein: Inspect all hardware status of the server according to the inspection service, including: Initiate an inspection request using the inspection service; According to the HTTP uniform resource locator of the inspection request, sending a resource call request with the HTTP uniform resource locator to the Web service process in the baseboard management controller; The Web service process obtains all hardware statuses of the server from the baseboard management controller according to the HTTP uniform resource locator, and sends all hardware statuses of the server to the inspection service.

7. The server hardware status monitoring method according to any one of claims 1 to 6, wherein: The alarm monitoring according to the hardware status includes: Preset an alarm threshold and obtain the server's faulty hardware through the server's hardware status; Setting weights for the faulty hardware and calculating the fault values of all the faulty hardware to obtain a total fault value; If the total fault value is lower than the threshold, no alarm is issued; If the total fault value is not lower than the threshold, the server information and hardware information record are obtained by using the fault alarm management platform, and the server information and hardware information record are notified to the operation and maintenance personnel in a preset manner.

8. A server hardware status monitoring device, characterized in that: The device comprises: a setting module for enabling a trap notification service of a simple network management protocol in the server and setting a trap receiver of the server according to a hardware status monitoring instruction of the server; A trap notification sending module is used to trigger the trap notification service to obtain a trap notification message when a hardware failure of the server is detected, and to use the trap receiver to receive the trap notification information sent by the trap notification service; an IP address acquisition module, configured to acquire the uniform resource locator of the trap notification message through the trap receiver, divide the uniform resource locator according to a known uniform resource service protocol, obtain path information of the trap notification message, query the path information to obtain the out-of-band IP address of the server, and send the out-of-band IP address to the fault alarm management platform of the server; An inspection service initiation module is used to retrieve the fault information of the server through the mapping relationship between the out-of-band IP and the fault information in the private mapping table of the server, and to initiate an inspection service for managing the server using the fault alarm management platform; The hardware alarm monitoring module is used to use the inspection service to inspect the hardware status of the server according to the fault information, and to perform alarm monitoring according to the hardware status.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores computer program instructions that can be executed by the at least one processor. The computer program instructions are executed by the at least one processor to enable the at least one processor to perform the server hardware status monitoring method according to any one of claims 1 to 7.

10. A computer-readable storage medium comprising a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; When the computer program is executed by a processor, the server hardware status monitoring method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Server monitoring method and device, computer apparatus and storage medium

    CN109189640A

  • Server hardware monitoring system

    CN110597681A