CN114153689B - BMC and device monitoring method and device thereof and readable storage medium - Google Patents

BMC and device monitoring method and device thereof and readable storage medium Download PDF

Info

Publication number
CN114153689B
CN114153689B CN202111376534.0A CN202111376534A CN114153689B CN 114153689 B CN114153689 B CN 114153689B CN 202111376534 A CN202111376534 A CN 202111376534A CN 114153689 B CN114153689 B CN 114153689B
Authority
CN
China
Prior art keywords
monitoring
event
overrun
monitoring device
bmc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111376534.0A
Other languages
Chinese (zh)
Other versions
CN114153689A (en
Inventor
王鹏
朱英澍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111376534.0A priority Critical patent/CN114153689B/en
Publication of CN114153689A publication Critical patent/CN114153689A/en
Application granted granted Critical
Publication of CN114153689B publication Critical patent/CN114153689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a device monitoring method of a BMC, which comprises the following steps: acquiring an overrun signal sent by a monitoring device; reading monitoring data in the monitoring device according to the overrun signal; determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event; according to the invention, by acquiring the overrun signal sent by the monitoring device, the work of capturing the overrun event is realized by the monitoring device at the bottommost layer by utilizing the hardware resource advantage of the monitoring device, so that the monitoring device is accurately monitored in real time by using asynchronous IO instead of the existing polling scheme, the scheduling pressure of the BMC is reduced, and the response speed of a system process is ensured; the invention also discloses a device monitoring device of the BMC, the BMC and a computer readable storage medium, and the device monitoring device and the BMC have the same beneficial effects.

Description

BMC and device monitoring method and device thereof and readable storage medium
Technical Field
The present invention relates to the field of monitoring technologies, and in particular, to a device monitoring method and apparatus for a BMC, and a computer readable storage medium.
Background
The BMC (Baseboard Manager Controller, baseboard management controller) is an indispensable functional component in network infrastructure such as a server and a switch, and has the main function of monitoring health information such as temperature, voltage, current, power consumption, fan rotation speed and the like in a hardware environment in real time. Among them, information such as temperature, voltage, current, power consumption and fan rotation speed is collected from different types of monitoring devices, such as temp sensor (temperature sensor), ADC (analog to digital converter, analog-to-digital converter) and VR (Voltage Regulator, voltage stabilizer).
In the prior art, a monitoring scheme of a BMC (baseboard management controller) aims at monitoring devices, all monitoring devices under a periodic polling system adopt a polling mode (such as single-thread polling or multi-thread polling), real-time data are read, then the real-time data are compared with preset upper and lower limit values, and if the real-time data exceed the preset upper and lower limit values, an alarm signal is sent out, and log dumping is carried out. However, a large amount of clocks are consumed by adopting a polling mode, so that the response rate of other business processes is reduced, and the user experience is affected; and single-thread polling can lead to the situation that a single device cannot be captured in time and exceeds a limit value, while multi-thread polling can lead to the problem of excessively high memory occupancy rate. Therefore, how to monitor monitoring devices accurately in real time, lighten the scheduling pressure of BMC, and ensure the response speed of the system process is an urgent problem to be solved nowadays.
Disclosure of Invention
The invention aims to provide a device monitoring method and device of a BMC, the BMC and a computer readable storage medium, so as to accurately monitor monitoring devices in real time, lighten the scheduling pressure of the BMC and ensure the response speed of a system process.
In order to solve the technical problems, the invention provides a device monitoring method of a BMC, comprising the following steps:
acquiring an overrun signal sent by a monitoring device;
reading monitoring data in the monitoring device according to the overrun signal;
determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event.
Optionally, the acquiring the overrun signal sent by the monitoring device includes:
acquiring an overrun signal sent by an alarm pin of the monitoring device; the overrun signal is an interrupt signal output by the alarm pin after the monitoring device detects that the monitoring data exceeds the monitoring threshold.
Optionally, the reading the monitoring data in the monitoring device according to the overrun signal includes:
and determining the overrun event according to the monitoring data and the monitoring threshold by using the monitoring thread corresponding to the monitoring device.
Optionally, the reading the monitoring data in the monitoring device according to the overrun signal includes:
transmitting a wake-up signal to the monitoring thread according to the obtained overrun signal by utilizing a drive corresponding to the monitoring device, and waking up the dormant monitoring thread;
and reading the monitoring data in the monitoring device by using the monitoring thread.
Optionally, after determining the overrun event of the monitoring device according to the monitoring data and the monitoring threshold of the monitoring device, the method further includes:
and controlling the controlled device corresponding to the event type to perform corresponding adjustment action according to the event type of the overrun event.
Optionally, when the event type of the overrun event is an overtemperature event, the controlling the controlled device corresponding to the event type to perform a corresponding adjustment action according to the event type of the overrun event includes:
and adjusting the rotating speed of the fan corresponding to the over-temperature event to be a preset over-temperature rotating speed, and lighting an alarm indicator lamp corresponding to the over-temperature event.
Optionally, the controlling the controlled device corresponding to the event type to perform the corresponding adjustment action according to the event type of the overrun event includes:
and controlling the controlled device corresponding to the event type to perform corresponding adjustment action by utilizing the monitoring main thread according to the event type of the overrun event.
The invention also provides a device monitoring device of the BMC, which comprises:
the acquisition module is used for acquiring an overrun signal sent by the monitoring device;
the reading module is used for reading the monitoring data in the monitoring device according to the overrun signal;
the determining module is used for determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event.
The invention also provides a BMC comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the device monitoring method of the BMC when the computer program is executed.
Furthermore, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the device monitoring method of the BMC as described above.
The device monitoring method of the BMC provided by the invention comprises the following steps: acquiring an overrun signal sent by a monitoring device; reading monitoring data in the monitoring device according to the overrun signal; determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event;
therefore, the invention utilizes the hardware resource advantage of the monitoring device to capture the exceeding limit event by the monitoring device itself, thereby replacing the existing polling scheme with asynchronous IO to monitor the monitoring device accurately in real time, reducing the scheduling pressure of BMC and ensuring the response speed of the system process. In addition, the invention also provides a device monitoring device of the BMC, the BMC and a computer readable storage medium, and the device monitoring device and the BMC have the same beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a device monitoring method of a BMC according to an embodiment of the present invention;
FIG. 2 is an interactive schematic diagram of another BMC device monitoring method according to an embodiment of the present invention;
fig. 3 is a block diagram of a device monitoring apparatus for a BMC according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a device monitoring method of a BMC according to an embodiment of the present invention. The method may include:
step 101: and acquiring an overrun signal sent by the monitoring device.
The monitoring device in this step may be a device capable of monitoring, such as a temperature sensor, an analog-to-digital converter (ADC), a Voltage Regulator (VR), and the like.
Specifically, the overrun signal in this step may be a signal for prompting the monitoring data of the monitoring device to exceed the monitoring threshold, that is, a signal that is output to the BMC after the monitoring device detects that the monitored monitoring data exceeds the monitoring threshold, for example, an interrupt signal (such as a low level signal) of an alert pin (alert# pin). The embodiment does not limit the specific signal type of the overrun signal sent by the monitoring device, for example, the overrun signal may be an interrupt signal output by a preset pin (such as an alarm pin) of the monitoring device, that is, the monitoring device detects that the monitoring data exceeds the monitoring threshold value and then outputs the interrupt signal through the preset pin; that is, in this step, the BMC may obtain an overrun signal sent by the alarm pin of the monitoring device; the overrun signal is an interrupt signal output by the alarm pin after the monitoring device detects that the monitoring data exceeds the monitoring threshold value. For example, in view of the fact that the SMBus (a two-wire serial bus) protocol is initially designed and positioned as Critical parameters (critical parameter) of the monitoring system, when the monitoring device and the BMC adopt SMBus protocol communication, the SMBus protocol adds an alert# pin definition on the basis of an I2C (a serial communication protocol) protocol, and when a target event occurs in the device, the alert# pin is pulled down; correspondingly, the registers in the monitoring device may further include a threshold register for storing a monitoring threshold, such as a high limit register and/or a low limit register, so that a user may write the upper limit and the lower limit of the monitoring data, such as temperature and voltage, to be monitored into the device according to the needs of the user, and when the actual monitoring data actually exceeds the upper limit and the lower limit, the logic of the device captures such a target event, further pulls down the alert# pin, and outputs a low level signal (i.e., an overrun signal) to the BMC through the alert# pin. The overrun signal may be other types of signals besides the interrupt signal, so long as the monitoring device can detect that the monitored data exceeds the monitoring threshold value and then output the overrun signal to the BMC, and the embodiment does not limit the overrun signal.
Step 102: and reading monitoring data in the monitoring device according to the overrun signal.
It can be understood that, in this step, the BMC may read the monitoring data in the monitoring device that sends the overrun signal after receiving the overrun signal.
Specifically, for the specific mode of the BMC in this step for reading the monitoring data in the monitoring device according to the overrun signal, the BMC can be set by a designer according to the practical scene and the user requirement, for example, in this embodiment, the BMC can use the monitoring thread corresponding to the monitoring device to read the monitoring data in the monitoring device according to the overrun signal; for example, the BMC may pre-configure a monitoring thread corresponding to each monitoring device in a monitoring process of the user space, for example, each monitoring thread corresponds to one type of monitoring device, for example, the monitoring device of the temperature monitoring device and the monitoring device of the voltage monitoring device may respectively correspond to one different monitoring thread.
Correspondingly, for the monitoring thread corresponding to the monitoring device, the specific mode of reading the monitoring data in the monitoring device according to the overrun signal can be set by a designer, for example, the monitoring thread corresponding to the monitoring device can directly detect the overrun signal sent by the monitoring device, so that the monitoring data in the monitoring device can be read after the overrun signal is detected. The BMC can also use the drive corresponding to the monitoring device to detect the overrun signal sent by the monitoring device, so as to control the monitoring thread corresponding to the monitoring device through the corresponding signal (such as a wake-up signal) after the drive detects the overrun signal. That is, in this step, the BMC may send a wake-up signal to a monitoring thread corresponding to the monitoring device according to the obtained overrun signal by using a driver corresponding to the monitoring device, and wake up the dormant monitoring thread; and reading monitoring data in the monitoring devices by using the monitoring threads corresponding to the monitoring devices.
Correspondingly, in the embodiment, a drive design of interrupt+asynchronous IO may be adopted, in the drive corresponding to the monitoring device, a preset pin (such as an alarm pin) of the monitoring device is used as an external interrupt source, an interrupt processing routine is registered for the monitoring device, when real-time monitoring data exceeds a monitoring threshold value, the preset pin may be pulled down to trigger interrupt, so that the interrupt routine is called, interrupt information is recorded in the interrupt routine, and a kill_fasync () function (an application function in a drive) is called to send a SIGIO signal (a drive signal, such as a wake-up signal) to a user space monitoring process, so as to inform the event that the monitoring data exceeds a limit value; at this time, the user space is responsible for monitoring the monitoring thread of the monitoring device to be awakened by the signal, and in turn, reads the monitoring data in the data register of the monitoring device and compares the monitoring data with the monitoring threshold in the threshold register.
As shown in fig. 2, in a driver corresponding to the monitoring device (i.e., the monitoring class device), in addition to having an interrupt context for capturing an alarm pin (alert #pin) and reporting a target event to the user space through an asynchronous IO, a process context for responding to an asynchronous IO request of a monitoring sub-thread (i.e., a monitoring thread) of the user space may be set, so that the monitoring sub-thread may read real-time monitoring data through the driver, for example, by using a fasync_helper () function (a kernel function) of a kernel, to implement a fasync () function (an asynchronous notification function) in a file_operations (a data structure) function set, so as to accept the asynchronous IO request of the user space.
Step 103: determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event.
It is understood that the monitoring threshold of the monitoring device in this step may be an upper limit value and/or a lower limit value of preset monitoring data monitored by the monitoring device, so as to determine a specific type of an overrun event, such as an overrun event higher than the upper limit value and an overrun event lower than the lower limit value, through comparison of the monitoring data and the monitoring threshold.
Specifically, the embodiment does not limit the specific content and the acquisition mode of the monitoring threshold of the monitoring device, for example, the BMC may read the monitoring threshold stored in the threshold register from the monitoring device, for example, the BMC may use a monitoring thread corresponding to the monitoring device to read the monitoring threshold of the monitoring data in the monitoring device according to the overrun signal; and determining an overrun event according to the monitoring data and the monitoring threshold value. The BMC may store the monitoring threshold of the monitoring class device by itself, e.g., the monitoring threshold of the monitoring class device may be different from the upper and/or lower values in the threshold register in the monitoring class device.
Furthermore, after this step, the BMC may further control, according to the event type of the overrun event, the controlled device corresponding to the event type to perform a corresponding adjustment action. For example, a monitoring process of a user space in the BMC can adopt a framework of a main thread (namely a monitoring main thread) +a plurality of sub threads (namely monitoring threads), the BMC can utilize the monitoring main thread to control a controlled device corresponding to an event type to perform corresponding adjustment action according to the event type of an overrun event; namely, after the monitoring thread corresponding to the monitoring device is utilized by the BMC, the monitoring main thread can be notified after the overrun event of the monitoring device is determined, so that the monitoring main thread can control the controlled device corresponding to the event type to perform corresponding adjustment action according to the event type of the overrun event.
Specifically, in this embodiment, each sub-thread (i.e., a monitoring thread) may be used to manage a class of monitoring devices, and is responsible for capturing an overrun event of the device and collecting real-time data (i.e., monitoring data), where specific operations include: packaging a read-write function for accessing real-time data and upper and lower line limit data (namely monitoring threshold values), wherein a programming node called in the function is a device node for driving to be thrown to a user space, the read-write function cannot be actively called by code main line logic, and the read-write function is only called in SIGIO signal callback functions realized by sub-threads; realizing and registering a SIGIO signal callback function, registering the callback function by a signal () function (a signal processing function), calling the callback function when the SIGIO signal is sent by a driver, calling a read-write function in the callback function, acquiring real-time data and upper line limit data, updating a struct hwmon_event structure body, and then carrying out logic comparison to judge whether a main thread needs to be awakened.
Correspondingly, the main thread (i.e. the monitoring main thread) can be responsible for uniformly managing various monitoring events, abstracts a struct hwmon_event structure body for describing specific target events, and carries out instantiation by each sub-thread, wherein the structure body contains specific target event types such as over-temperature, under-voltage and the like, and can also contain the generation times of the target events, the history data of the last three times and the like; when the monitoring main thread is awakened by a certain monitoring sub-thread, the monitoring main thread can acquire an updated hwmon_event instance of the sub-thread, take out the type of a target event and related data in the sub-thread, substitute the type of the target event and related data into a data reliability algorithm, judge the severity of the event, and make corresponding follow-up actions, for example, when the event type of an overrun event is an overrun event, the BMC can utilize the main thread to adjust the rotating speed of a fan corresponding to the overrun event (namely, the rotating speed of a fan corresponding to a detection device for detecting the overrun event) to be a preset overrun rotating speed, and lighten an alarm indicator corresponding to the overrun event; and may also log the over-temperature event into a system log.
Specifically, as shown in fig. 2, after each monitoring thread (i.e., sub-thread) is created in this embodiment, an fcntl () function (a function in a computer) may be called to initiate an asynchronous IO request, and the function may finally call to a fasync () function implemented by a driver to complete asynchronous IO setting; after the asynchronous IO request is initiated, the whole user space monitoring process is initialized to be in a ready state.
When no monitoring device generates an event exceeding the limit value, the monitoring thread can be always in a dormant state (the monitoring main thread is dormant on a designated condition variable after initializing related software resources and creating each monitoring thread), at the moment, the processing resources of the BMC can be scheduled for other business processes to use, the scheduling pressure of the BMC is reduced, and the response speed of the system process is improved; when the monitoring device generates an event exceeding the limit value, the hardware logic of the monitoring device can sense the event and pull down an alert# pin, trigger a corresponding driver in the BMC to enter an interrupt context, and further send a SIGIO signal to a corresponding monitoring thread to wake up the SIGIO signal.
After the awakened monitoring thread can read the monitoring data and the upper and lower limit data (namely the monitoring threshold value) of the monitoring device, if the monitoring data is found to exceed the preset monitoring threshold value, the monitoring main thread in dormancy is awakened through the condition variable, and after the monitoring main thread is awakened, the subsequent work such as alarm and corresponding adjustment actions can be finished according to the specific reporting event type.
It should be noted that, the method provided in this embodiment obtains a good effect in multiple projects based on OpenBMC (an open source BMC scheme), and can use yopto (an open source community) to manage project projects, and send the monitoring process of the user space to system d (init software under a linux system) to manage; commands to start and stop the monitoring process may be # sudo systemctl start hwmon.service and # sudo systemctl stop hwmon.service, respectively.
In the embodiment of the invention, by acquiring the overrun signal sent by the monitoring device, the working of capturing the overrun event is carried out by the monitoring device at the bottommost layer by utilizing the hardware resource advantage of the monitoring device, so that the monitoring device is accurately monitored in real time by using asynchronous IO instead of the existing polling scheme, the scheduling pressure of the BMC is reduced, and the response speed of the system process is ensured.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a device monitoring apparatus for a BMC, where the device monitoring apparatus for a BMC and the device monitoring method for a BMC described below may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of a device monitoring apparatus for a BMC according to an embodiment of the present invention. The apparatus may include:
the acquisition module 10 is used for acquiring an overrun signal sent by the monitoring device;
the reading module 20 is used for reading the monitoring data in the monitoring device according to the overrun signal;
a determining module 30, configured to determine an overrun event of the monitoring device according to the monitoring data and the monitoring threshold of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event.
Optionally, the acquiring module 10 may be specifically configured to acquire an overrun signal sent by an alarm pin of the monitoring device; the overrun signal is an interrupt signal output by the alarm pin after the monitoring device detects that the monitoring data exceeds the monitoring threshold value.
Optionally, the reading module 20 may be specifically configured to determine the overrun event according to the monitoring data and the monitoring threshold by using a monitoring thread corresponding to the monitoring device.
Alternatively, the reading module 20 may include:
the wake-up sub-module is used for sending a wake-up signal to the monitoring thread according to the obtained overrun signal by utilizing the drive corresponding to the monitoring device and waking up the dormant monitoring thread;
and the reading sub-module is used for reading the monitoring data in the monitoring device by using the monitoring thread.
Optionally, the apparatus may further include:
and the adjusting module is used for controlling the controlled device corresponding to the event type to perform corresponding adjusting action according to the event type of the overrun event.
Optionally, when the event type of the overrun event is an overtemperature event, the adjustment module may include:
the fan adjusting sub-module is used for adjusting the rotating speed of the fan corresponding to the over-temperature event to be a preset over-temperature rotating speed and lighting the alarm indicator lamp corresponding to the over-temperature event.
Optionally, the adjusting module may be specifically configured to control, by using the monitoring main thread, a controlled device corresponding to the event type to perform a corresponding adjusting action according to the event type of the overrun event.
In this embodiment, the acquiring module 10 acquires the overrun signal sent by the monitoring device, and utilizes the hardware resource advantage of the monitoring device to implement the capturing of the overrun event by the monitoring device at the bottommost layer, thereby replacing the existing polling scheme with asynchronous IO, accurately monitoring the monitoring device in real time, reducing the scheduling pressure of the BMC, and ensuring the response speed of the system process.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a BMC, where a BMC described below and a device monitoring method of a BMC described above may be referred to correspondingly.
The embodiment of the invention provides a BMC, which comprises the following components:
a memory for storing a computer program;
and the processor is used for realizing the steps of the device monitoring method of the BMC provided by the embodiment when executing the computer program.
Corresponding to the above method embodiments, the embodiments of the present invention further provide a computer readable storage medium, where a computer readable storage medium described below and a device monitoring method of a BMC described above may be referred to correspondingly.
The embodiment of the invention provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the device monitoring method of the BMC provided by the embodiment of the method are realized.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the apparatus, BMC and computer readable storage medium of the embodiment disclosure, since they correspond to the methods of the embodiment disclosure, the description is relatively simple, and the relevant points are referred to in the description of the method section.
The device monitoring method and device of the BMC, the BMC and the computer readable storage medium provided by the invention are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (8)

1. A device monitoring method of a BMC, comprising:
acquiring an overrun signal sent by a monitoring device;
reading monitoring data in the monitoring device according to the overrun signal;
determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event;
the obtaining the overrun signal sent by the monitoring device includes:
acquiring an overrun signal sent by an alarm pin of the monitoring device; the overrun signal is an interrupt signal output by the alarm pin after the monitoring device detects that the monitoring data exceeds the monitoring threshold value;
correspondingly, the reading the monitoring data in the monitoring device according to the overrun signal includes:
according to the obtained overrun signal, a wake-up signal is sent to a monitoring thread corresponding to the monitoring device by utilizing a drive corresponding to the monitoring device, and the dormant monitoring thread is awakened;
and reading the monitoring data in the monitoring device by using the monitoring thread.
2. The device monitoring method of the BMC according to claim 1, wherein the determining an overrun event of the monitoring device according to the monitoring data and a monitoring threshold of the monitoring device comprises:
and determining the overrun event according to the monitoring data and the monitoring threshold by using the monitoring thread corresponding to the monitoring device.
3. The device monitoring method of the BMC according to claim 1 or 2, wherein after determining the overrun event of the monitoring device according to the monitoring data and the monitoring threshold of the monitoring device, further comprising:
and controlling the controlled device corresponding to the event type to perform corresponding adjustment action according to the event type of the overrun event.
4. The device monitoring method of the BMC according to claim 3, wherein when the event type of the overrun event is an overtemperature event, the controlling the controlled device corresponding to the event type to perform the corresponding adjustment action according to the event type of the overrun event includes:
and adjusting the rotating speed of the fan corresponding to the over-temperature event to be a preset over-temperature rotating speed, and lighting an alarm indicator lamp corresponding to the over-temperature event.
5. The device monitoring method of the BMC according to claim 3, wherein the controlling the controlled device corresponding to the event type to perform the corresponding adjustment according to the event type of the overrun event includes:
and controlling the controlled device corresponding to the event type to perform corresponding adjustment action by utilizing the monitoring main thread according to the event type of the overrun event.
6. A device monitoring apparatus for a BMC, comprising:
the acquisition module is used for acquiring an overrun signal sent by the monitoring device;
the reading module is used for reading the monitoring data in the monitoring device according to the overrun signal;
the determining module is used for determining an overrun event of the monitoring device according to the monitoring data and the monitoring threshold value of the monitoring device; wherein the overrun event comprises an ultra-high event and/or an ultra-low event;
the acquisition module is specifically used for acquiring an overrun signal sent by an alarm pin of the monitoring device; the overrun signal is an interrupt signal output by the alarm pin after the monitoring device detects that the monitoring data exceeds the monitoring threshold value;
correspondingly, the reading module comprises:
the wake-up sub-module is used for sending a wake-up signal to a monitoring thread corresponding to the monitoring device according to the obtained overrun signal by utilizing a drive corresponding to the monitoring device, and waking up the dormant monitoring thread;
and the reading sub-module is used for reading the monitoring data in the monitoring device by utilizing the monitoring thread.
7. A BMC, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the device monitoring method of the BMC according to any of claims 1 to 5 when executing the computer program.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the device monitoring method of the BMC according to any of claims 1 to 5.
CN202111376534.0A 2021-11-19 2021-11-19 BMC and device monitoring method and device thereof and readable storage medium Active CN114153689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111376534.0A CN114153689B (en) 2021-11-19 2021-11-19 BMC and device monitoring method and device thereof and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111376534.0A CN114153689B (en) 2021-11-19 2021-11-19 BMC and device monitoring method and device thereof and readable storage medium

Publications (2)

Publication Number Publication Date
CN114153689A CN114153689A (en) 2022-03-08
CN114153689B true CN114153689B (en) 2024-01-12

Family

ID=80456739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111376534.0A Active CN114153689B (en) 2021-11-19 2021-11-19 BMC and device monitoring method and device thereof and readable storage medium

Country Status (1)

Country Link
CN (1) CN114153689B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104603716A (en) * 2012-08-27 2015-05-06 三星电子株式会社 An apparatus and method for waking up a processor
CN110058979A (en) * 2019-04-18 2019-07-26 苏州浪潮智能科技有限公司 A kind of temperature reads monitoring method, BMC and the storage medium of failure failure
CN113032216A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Monitoring method, device, equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10896130B2 (en) * 2016-10-19 2021-01-19 International Business Machines Corporation Response times in asynchronous I/O-based software using thread pairing and co-execution

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104603716A (en) * 2012-08-27 2015-05-06 三星电子株式会社 An apparatus and method for waking up a processor
CN110058979A (en) * 2019-04-18 2019-07-26 苏州浪潮智能科技有限公司 A kind of temperature reads monitoring method, BMC and the storage medium of failure failure
CN113032216A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Monitoring method, device, equipment and medium

Also Published As

Publication number Publication date
CN114153689A (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN102789305B (en) Postponing suspend
CN108665239B (en) Workflow processing method, workflow processing device, computer equipment and storage medium
US20140344823A1 (en) Interruption of chip component managing tasks
CN110618869B (en) Resource management method, device and equipment
CN112306044A (en) Method and system for monitoring non-dormancy abnormity of bus network of whole vehicle
CN113489596B (en) Sleep control method, T-BOX and computer-readable storage medium
US11595456B2 (en) Modifying content streaming based on device parameters
KR20210080289A (en) Dormancy controlling method for on board computing platform, device and readable storage medium
CN113923137A (en) Whole vehicle bus network abnormity monitoring method and system
CN114257474B (en) Power utilization control method and device for intelligent gateway, computer equipment and storage medium
CN115952022A (en) Control method, system, equipment and medium for automatic storage of fault information
CN114153689B (en) BMC and device monitoring method and device thereof and readable storage medium
CN106843890B (en) Sensor network, node and operation method thereof based on intelligent decision
WO2021077260A1 (en) Power consumption information processing method, device, electronic apparatus and storage medium
CN106603526B (en) WiFi/hotspot starting method and device
CN111381658A (en) UPS power supply monitoring method based on Internet of things cloud platform
CN113360344B (en) Server monitoring method, device, equipment and computer readable storage medium
CN114301857A (en) Water meter communication method and device based on Internet of things
WO2023279829A1 (en) Message delay detection method and apparatus, electronic device, and storage medium
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
CN110647401B (en) Frequency modulation method, frequency modulation device, storage medium and electronic equipment
CN110691135A (en) Equipment data uploading method and system, Internet of things module and storage medium
CN114416326A (en) Big data control method, device, control system and readable storage medium
CN105320615A (en) Data storage method and data storage device
CN117555760B (en) Server monitoring method and device, substrate controller and embedded system

Legal Events

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