Server monitoring method, program product, baseboard management controller and server
Through BMC, keyword detection and alarm information are generated on the operating system display data of the server host, which solves the problem that BMC cannot monitor the server status in real time, improves the stability and monitorability of the server, and reduces the workload of managers.
Patent Information
- Application Number
- CN202510718767.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-08-12
AI Technical Summary
In the prior art, BMC cannot effectively monitor the status of the server host in real time, resulting in poor server operation stability and monitoring, and a large workload for managers.
The operating system display data stored in the video memory of the server host is obtained through the substrate management controller (BMC), perform keyword detection, identify and generate alarm information, including screenshot images and system event logs.
It realizes active monitoring of server hosts, improves the stability and monitorability of server operations, and reduces the workload of managers.
Smart Images

Figure CN120469893A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a server monitoring method, a program product, a baseboard management controller and a server. Background Art
[0002] After the server is put on the shelf, the computer room environment is relatively poor, and due to environmental requirements, the computer room is generally located in a remote area, which is not conducive to the administrator's on-site supervision and maintenance of the server; there are many servers in the computer room. If different servers need to be operated, it is necessary to connect to different servers through the mouse, keyboard and screen, which is very troublesome; the emergence of remote management and active alarm technology allows administrators to monitor and operate the servers in the computer room through a remote PC (personal computer).
[0003] Currently, the server's alarm mechanism uses the Baseboard Management Controller (BMC) service to proactively monitor server host faults. For example, errors related to CPU RAS (Reliability, Availability, and Serviceability), MEM (Storage) RAS, PCIe (Peripheral Component Interconnect Express, a high-speed serial bus interface) RAS, and PCIe CPER (Standard Error Interface) are reported. The BMC can only receive alarms through the server's CPU's exposed interfaces, such as registers, the Management Engine (ME), and other CPU development interfaces. This greatly limits the alarms the BMC can capture and report. Although administrators can monitor server host status through methods such as KVM (Keyboard, Video, and Mouse), the data volume is often large at the moment of error reporting, resulting in poor real-time performance and difficulty accurately capturing the error type and details.
[0004] Therefore, how to use BMC to proactively monitor and alert the status of the server host, improve the stability and monitorability of server operation, and reduce the workload of management personnel is an issue that needs to be solved urgently. Summary of the Invention
[0005] The purpose of the present invention is to provide a server monitoring method, computer program product, baseboard management controller and server, so as to utilize BMC to actively monitor and alarm the status of the server host, improve the stability and monitorability of the server operation, and reduce the workload of management personnel.
[0006] To solve the above technical problems, the present invention provides a server monitoring method applied to a baseboard management controller, comprising:
[0007] Obtaining the operating system display data of each frame of the server host stored in the video memory;
[0008] Performing keyword detection on the operating system display data of each frame to obtain keyword detection results of the operating system display data of each frame;
[0009] If the keyword detection result of the current operating system display data is that the keyword exists, an alarm message is generated based on the target display data; wherein the current operating system display data is the operating system display data of any frame, the target display data includes the current operating system display data, and the alarm message includes a screenshot image corresponding to the target display data.
[0010] On the other hand, performing keyword detection on each frame of the operating system display data to obtain a keyword detection result for each frame of the operating system display data includes:
[0011] Perform image and text recognition on the current operating system display data to identify the text information corresponding to the current operating system display data;
[0012] Perform keyword screening on the text information to obtain keyword detection results of the current operating system display data.
[0013] On the other hand, performing image and text recognition on the current operating system display data to identify text information corresponding to the current operating system display data includes:
[0014] Performing image preprocessing on the current operating system display data to obtain a preprocessed image corresponding to the current operating system display data; wherein the image preprocessing includes at least one of grayscale processing, binarization processing, denoising processing, and tilt correction;
[0015] Performing text region detection processing on the pre-processed image to obtain character regions in the pre-processed image; wherein the text region detection processing includes at least one of text positioning processing, line segmentation processing, and character segmentation processing;
[0016] Performing character recognition processing on the character area to obtain a character recognition result corresponding to the character area; wherein the character recognition processing includes at least one of feature extraction processing, classifier recognition processing, and context correction processing;
[0017] The character recognition result is post-processed to obtain the text information; wherein the post-processing includes text formatting processing and / or error correction processing.
[0018] On the other hand, before obtaining the operating system display data of each frame of the server host stored in the video memory, the method further includes:
[0019] A video capture chip is used to capture each frame of the operating system display data from the graphics card interface of the server host, and each frame of the operating system display data is stored in the graphics memory.
[0020] On the other hand, according to the target display data, alarm information is generated, including:
[0021] The current operating system display data is saved as a screenshot image, and a corresponding system event log is generated; wherein the alarm information includes the screenshot image and the system event log.
[0022] On the other hand, according to the target display data, alarm information is generated, including:
[0023] The warning information is generated according to the keywords detected in the target display data and the current operating system display data.
[0024] On the other hand, generating the warning information according to the keywords detected in the target display data and the current operating system display data includes:
[0025] According to the keyword detected in the current operating system display data, the target display data is saved and determined; wherein the target display data includes the continuous frames of operating system display data in which the keyword is detected;
[0026] According to the screening rule corresponding to the keyword, a frame of operating system display data is screened out from the target display data and saved as a screenshot image, and a corresponding system event log is generated; wherein the alarm information includes the screenshot image and the system event log.
[0027] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the server monitoring method as described above when executed by a processor.
[0028] The present invention also provides a baseboard management controller, comprising:
[0029] Memory for storing computer programs;
[0030] A processor is used to implement the steps of the server monitoring method as described above when executing the computer program.
[0031] In addition, the present invention also provides a server, comprising: the baseboard management controller as described above.
[0032] A server monitoring method provided by the present invention is applied to a baseboard management controller, comprising: obtaining each frame of operating system display data of a server host stored in a video memory; performing keyword detection on each frame of the operating system display data to obtain a keyword detection result for each frame of the operating system display data; if the keyword detection result of the current operating system display data indicates the presence of a keyword, generating an alarm message based on target display data; wherein the current operating system display data is any frame of operating system display data, the target display data includes the current operating system display data, and the alarm message includes a screenshot image corresponding to the target display data;
[0033] As can be seen, the present invention performs keyword detection on each frame of operating system display data from the server host in the video memory to obtain the keyword detection results for each frame of operating system display data. This allows the BMC to monitor the text content of the server host's operating system display image, thereby achieving the function of actively monitoring the server host, improving the stability and monitorability of server operation, and reducing the workload of management personnel. Furthermore, the present invention also provides a server monitoring computer program product, a baseboard management controller, and a server, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0035] Figure 1 A flow chart of a server monitoring method provided by an embodiment of the present invention;
[0036] Figure 2 A display diagram of command line image data provided by an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the physical connection between a BMC and a server provided in an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of the data path for local display and remote display of a BMC provided by an embodiment of the present invention;
[0039] Figure 5 A flow chart of another server monitoring method provided by an embodiment of the present invention;
[0040] Figure 6 A structural block diagram of a server monitoring device provided by an embodiment of the present invention;
[0041] Figure 7 This is a structural diagram of a baseboard management controller provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0043] Please refer to Figure 1 , Figure 1 This is a flow chart of a server monitoring method provided by an embodiment of the present invention. The method is applied to a baseboard management controller and includes:
[0044] Step 101: Acquire operating system display data of each frame of the server host stored in the video memory.
[0045] It is understandable that the operating system display data in this embodiment may be the image data displayed by the operating system of the server host, such as Figure 2The command line image data shown. For server clusters, server hosts can use command line mode, which has the following advantages: (1) Efficiency: command line tools can complete complex tasks with short commands, which is more efficient than graphical user interface (GUI) operations; and the command line supports scripted operations, which can execute tasks in batches, such as batch restarting services and batch updating configurations. (2) Automation: command line tools can be combined with scripts (such as scripts in programming languages such as Shell and Python) to achieve automated operation and maintenance, such as regular backups and monitoring resource usage; and command line tools can be seamlessly integrated into the continuous integration / continuous delivery (CI / CD) process to achieve automated deployment and testing. (3) Low resource usage: command line tools usually do not require a graphical interface, occupy less system resources, and are suitable for running on servers with limited resources; and through protocols such as SSH (Secure Shell, a network security protocol), server clusters can be remotely connected without the need for local graphical interface support. (4) Flexibility and customizability: command line tools provide a wealth of options and parameters that can be flexibly configured according to needs; and customized command line tools can be developed according to business needs to meet the operation and maintenance needs of specific scenarios. (5) Cross-platform compatibility. Most operating systems (such as Linux, Unix, and Windows) support command-line tools, and commands and scripts can be ported across different platforms. In a server cluster, different nodes may run different operating systems, and command-line tools can maintain operational consistency. (6) Logging and auditing. Command-line operations can be easily recorded in log files for subsequent analysis and auditing. Historical command records allow the operation process to be traced and problems to be troubleshooted. (7) Troubleshooting. Command-line tools can view system status in real time (such as using commands like top, htop, and netstat) to quickly locate problems. Command-line tools (such as text processing tools like grep, awk, and sed) can quickly analyze log files and extract key information. (8) Security. Command-line tools can strictly control the scope of operations through user permissions, reducing the risk of misoperation. Encrypted protocols such as SSH can be used to securely maintain server clusters remotely. (9) Learning curve and community support. Command-line tools are a basic skill in the field of operation and maintenance, with abundant learning resources and strong community support. Most server cluster management tools provide command-line interfaces, and mastering command-line skills makes it easy to get started with these tools. That is to say, when the server is deployed, the command line can provide customers with the above-mentioned performance and advantages that the graphical interface cannot achieve.
[0046] Correspondingly, the video memory in this embodiment can be a storage space in the baseboard management controller (BMC) for storing the operating system display data of the server host, so as to be transmitted to a local display or a remote web page for display. Figure 3As shown, the operating system display data (DISPLAY) of the server host can be transmitted to the video memory (VGA share RAM) of the BMC through the PCIE bus, and then transmitted to the local server for display through a VGA (Video Graphic Array) cable.
[0047] Correspondingly, after the operating system (OS) of the server host is started, the video memory of the BMC will begin to generate data flow, so that the BMC can detect each frame of operating system display data in the video memory through the method provided by this embodiment to achieve active monitoring of the server host. For example, after the operating system of the server host is started, it will initialize the PCIe display device and load the driver. After the BMC is set up as a PCIe slave device, it will divide each frame of operating system display data into two outputs, such as Figure 4 As shown, one path is directly output to the VGA interface in RGB (red, green, and blue) format through the physical interface, and the other path is called by other modules such as KVM through the network interface.
[0048] The specific processes for the two outputs mentioned above can include the following: 1) Hardware initialization: When the server boots up, the BMC initializes the video capture hardware (such as a video capture chip). The video capture hardware is connected to the output interface of the PCIe graphics card (such as VGA and HDMI). 2) Frame buffer capture: The video capture hardware reads data from the graphics card's frame buffer; the frame buffer data is typically stored in RGB or YUV (a color encoding method) format. 3) Video encoding: The captured frame buffer data is encoded into a compressed format (such as the highly compressed digital video codec standard H.264). The encoding process can be performed by dedicated hardware or software. 4) Network transmission: The encoded video stream is transmitted to the remote client via the IP (Internet Protocol) network, using efficient transmission protocols (such as RTP and RTSP) to ensure real-time performance. 5) Client display: After receiving the video stream, the remote client decodes and displays it on the local screen. The client is also responsible for sending keyboard and mouse input back to the server.
[0049] Correspondingly, in this embodiment, before obtaining each frame of operating system display data of the server host stored in the video memory, the BMC can also use the video capture chip to capture each frame of operating system display data from the graphics card interface of the server host, and store each frame of operating system display data in the video memory.
[0050] It should be noted that the specific method for the BMC to obtain the operating system display data of each frame of the server host stored in the video memory in this embodiment can be set by the designer according to practical scenarios and user needs. For example, after the BMC captures the frame buffer data (i.e., the operating system display data) directly from the graphics card output interface (such as VGA or HDMI interface) of the server host through an integrated video capture chip (such as ASPEED AST2500 / AST2600, etc.), the operating system display data in the video memory of the video capture chip can be loaded into the BMC's memory to facilitate subsequent detection and use.
[0051] Step 102: Perform keyword detection on each frame of operating system display data to obtain keyword detection results for each frame of operating system display data.
[0052] It is understood that in this step, by performing keyword detection on each frame of operating system display data, keywords in the operating system display data (i.e., the image) can be detected and identified, thereby obtaining keyword detection results for each frame of operating system display data. The keyword detection results may include a presence keyword (where the keyword is detected) and an absence keyword (where the keyword is not detected).
[0053] Accordingly, the specific method by which the BMC performs keyword detection on each frame of operating system display data and obtains keyword detection results for each frame of operating system display data in this embodiment can be customized by the designer based on practical scenarios and user needs. For example, the BMC can perform image and text recognition on the current operating system display data to identify the text information corresponding to the current operating system display data; and perform keyword screening on the text information to obtain keyword detection results for the current operating system display data. In other words, the BMC can use image and text recognition technologies such as OCR (Optical Character Recognition) to extract the text content (i.e., text information) of each frame of operating system display data from the image data stream and store it in the BMC's memory; and then perform keyword extraction to screen keywords from the text content to obtain keyword detection results for each frame of operating system display data.
[0054] Among them, the specific method of performing image text recognition on the current operating system display data and identifying the text information corresponding to the current operating system display data can be set by the designer. For example, the BMC can directly perform text area detection processing and character recognition processing on the current operating system display data to obtain the text information corresponding to the operating system display data. In order to improve the accuracy of image text recognition, the BMC can perform image preprocessing on the current operating system display data to obtain a preprocessed image corresponding to the current operating system display data; wherein the image preprocessing includes at least one of grayscale processing, binarization processing, denoising processing and tilt correction processing; perform text area detection processing on the preprocessed image to obtain the character area in the preprocessed image; wherein the text area detection processing includes at least one of text positioning processing, line segmentation processing and character segmentation processing; perform character recognition processing on the character area to obtain the character recognition result corresponding to the character area; wherein the character recognition processing includes at least one of feature extraction processing, classifier recognition processing and context correction processing; perform post-processing on the character recognition result to obtain text information; wherein the post-processing includes text formatting processing and / or error correction processing.
[0055] For example, the image preprocessing mentioned above may include grayscale processing, binarization processing, denoising processing, tilt correction processing, and edge detection processing. Grayscale processing can be used to convert a color image into a grayscale image to reduce computational complexity; binarization processing can be used to convert a grayscale image into a black and white image to facilitate separation of text from the background; denoising processing can be used to remove noise (such as spots and stains) in the image; tilt correction processing can be used to detect and correct the tilt angle of the image to ensure that the text is level; and edge detection can be used to identify the boundaries of the text area. In other words, the process of performing image preprocessing on the current operating system display data to obtain a preprocessed image corresponding to the current operating system display data may include: grayscale processing on the current operating system display data to obtain a grayscale image corresponding to the current operating system display data; binarization processing on the grayscale image to obtain a binarization image corresponding to the current operating system display data; denoising processing on the binarization image to obtain a denoised image corresponding to the current operating system display data; tilt correction processing on the denoised image to obtain a corrected image corresponding to the current operating system display data; and edge detection on the corrected image to obtain a preprocessed image corresponding to the current operating system display data.
[0056] Correspondingly, the above-mentioned text area detection processing may include text positioning processing, line segmentation processing and character segmentation processing. Text positioning processing can be used to locate the text area in the image through image analysis technology (such as connected region analysis and edge detection); line segmentation processing can be used to segment the text area into a single line of text; and character segmentation processing can be used to segment the single line of text into individual characters. In other words, the above-mentioned process of performing text area detection processing on the preprocessed image to obtain the character area in the preprocessed image may include: performing text positioning processing on the preprocessed image to obtain the text area corresponding to the current operating system display data; performing line segmentation processing on the text area to obtain the single line of text area corresponding to the current operating system display data; performing line segmentation processing on the single line of text area to obtain the character area corresponding to the current operating system display data.
[0057] Accordingly, the above-mentioned character recognition processing may include feature extraction processing, classifier recognition processing and context correction processing. Feature extraction processing may be used to extract features (such as strokes and contours, etc.) from each character image; classifier recognition processing may be used to recognize characters using machine learning models (such as support vector machines (SVMs) and neural network models) or template matching methods; context correction processing may be used to correct the recognized characters using a language model (such as an n-gram language model). In other words, the above-mentioned process of performing character recognition processing on a character area to obtain a character recognition result corresponding to the character area may include: performing feature extraction processing on the character area to obtain feature information corresponding to each character area; performing classifier recognition processing on the feature information to obtain a recognized character corresponding to each character area; and performing context correction processing on the recognized character to obtain a character recognition result corresponding to each character area.
[0058] Correspondingly, the above-mentioned post-processing may include text formatting and error correction. Text formatting can convert the recognition results into structured text (such as paragraphs and tables); error correction can be used to correct recognition errors through a dictionary or language model. In other words, the above-mentioned process of post-processing the character recognition results to obtain text information may include: performing text formatting on the character recognition results corresponding to the current operating system display data to obtain formatted text corresponding to the current operating system display data; and performing error correction on the formatted text to obtain text information corresponding to the current operating system display data.
[0059] It should be noted that the specific number and content of keywords (or key words) detected by keyword detection in this embodiment can be set by the designer based on practical scenarios and user needs. For example, keywords may include any one or more of kernel panic, kdump (a tool and service used to dump memory operating parameters when the operating system crashes, deadlocks, or freezes), Error, and Warning. This embodiment does not impose any restrictions on this.
[0060] Step 103: If the keyword detection result of the current operating system display data is that the keyword exists, an alarm message is generated according to the target display data; wherein the current operating system display data is any frame of operating system display data, the target display data includes the current operating system display data, and the alarm message includes a screenshot image corresponding to the target display data.
[0061] It is understood that in this step, if the keyword detection result in the current operating system display data indicates the presence of the keyword, the BMC can use the target display data to generate an alarm message, thereby implementing the BMC's proactive monitoring and alarm. In this embodiment, the target display data used for monitoring and alarming can include only the current operating system display data, or all frames of operating system display data consecutive to the current operating system display data in which the keyword is detected.
[0062] Correspondingly, the specific method of generating the alarm information according to the target display data in this step can be set by the designer according to the practical scenario and user needs. For example, if the target display data is the current operating system display data, Figure 5 As shown, the BMC can directly save the current operating system display data as a screenshot image and generate a corresponding system event log (SEL). The alarm information includes the screenshot image and the system event log. In other words, in this embodiment, the alarm information can be used to compare the screenshot image with the corresponding SEL log content, facilitating fault analysis and location by management personnel. The BMC can also generate alarm information based on keywords detected in the target display data and the current operating system display data.
[0063] Accordingly, since the same keyword may exist in multiple consecutive frames of operating system display data, in order to avoid continuous alarms and improve the accuracy of the screenshot image in the alarm information, the above-mentioned process of generating alarm information based on the target display data and the keywords detected in the current operating system display data may include: saving and determining the target display data based on the keywords detected in the current operating system display data; wherein the target display data includes consecutive frames of operating system display data in which the keywords are detected; according to the filtering rules corresponding to the keywords (such as different optimal positions of different keywords in the screenshot image), a frame of operating system display data is filtered out from the target display data and saved as a screenshot image, and a corresponding system event log is generated; wherein the alarm information includes the screenshot image and the system event log.
[0064] It should be noted that in this embodiment, the BMC can also send alarm information to target devices to facilitate timely user access to alarm information. Target devices can include server hosts, local displays, and remote communication devices. For example, the BMC can send alarm information to a remote administrator's terminal device (i.e., a remote communication device) via SMS or email. Accordingly, the BMC can output alarm information using the appropriate alarm method based on the alarm level corresponding to the keyword in the screenshot image.
[0065] In this embodiment, the embodiment of the present invention performs keyword detection on each frame of operating system display data of the server host in the video memory to obtain the keyword detection results of each frame of operating system display data. It can use the BMC to monitor the text content of the operating system display image of the server host, thereby realizing the function of actively monitoring the server host, improving the stability and monitorability of the server operation, improving the stability and monitorability of the server operation, and reducing the workload of management personnel.
[0066] Corresponding to the above method embodiment, an embodiment of the present invention further provides a server monitoring device. The server monitoring device described below and the server monitoring method described above can refer to each other.
[0067] Please refer to Figure 6 , Figure 6 This is a structural block diagram of a server monitoring device provided by an embodiment of the present invention. The device is applied to a baseboard management controller and may include:
[0068] The acquisition module 10 is used to acquire the operating system display data of each frame of the server host stored in the video memory;
[0069] A detection module 20 is configured to perform keyword detection on each frame of operating system display data and obtain keyword detection results for each frame of operating system display data;
[0070] The alarm module 30 is used to generate an alarm message based on the target display data if the keyword detection result of the current operating system display data is that the keyword exists; wherein the current operating system display data is any frame of operating system display data, the target display data includes the current operating system display data, and the alarm message includes a screenshot image corresponding to the target display data.
[0071] In another aspect, the detection module 20 may include:
[0072] The text recognition submodule is used to perform image text recognition on the current operating system display data and identify the text information corresponding to the current operating system display data;
[0073] The filtering submodule is used to filter the text information by keywords and obtain the keyword detection results of the data displayed by the current operating system.
[0074] In another aspect, the text recognition submodule may include:
[0075] a preprocessing unit, configured to perform image preprocessing on the current operating system display data to obtain a preprocessed image corresponding to the current operating system display data; wherein the image preprocessing includes at least one of grayscale processing, binarization processing, denoising processing, and tilt correction processing;
[0076] A region detection unit, configured to perform text region detection processing on the preprocessed image to obtain character regions in the preprocessed image; wherein the text region detection processing includes at least one of text positioning processing, line segmentation processing, and character segmentation processing;
[0077] A character recognition unit, configured to perform character recognition processing on the character region to obtain a character recognition result corresponding to the character region; wherein the character recognition processing includes at least one of feature extraction processing, classifier recognition processing, and context correction processing;
[0078] The post-processing unit is used to perform post-processing on the character recognition results to obtain text information; wherein the post-processing includes text formatting processing and / or error correction processing.
[0079] In another aspect, the apparatus further comprises:
[0080] The capture module is used to capture each frame of operating system display data from the graphics card interface of the server host using a video capture chip, and store each frame of operating system display data in the graphics memory.
[0081] On the other hand, the alarm module 30 can be specifically used to save the current operating system display data as a screenshot image and generate a corresponding system event log; wherein the alarm information includes the screenshot image and the system event log.
[0082] On the other hand, the alarm module 30 can be specifically configured to generate alarm information according to keywords detected in the target display data and the current operating system display data.
[0083] In another aspect, the alert module 30 may include:
[0084] A determination submodule, configured to save and determine target display data based on the keyword detected in the current operating system display data; wherein the target display data includes each frame of continuous operating system display data in which the keyword is detected;
[0085] The generation submodule is used to filter out a frame of operating system display data from the target display data according to the filtering rules corresponding to the keyword, save it as a screenshot image, and generate a corresponding system event log; wherein the alarm information includes the screenshot image and the system event log.
[0086] In this embodiment, the embodiment of the present invention performs keyword detection on each frame of operating system display data of the server host in the video memory through the detection module 20, obtains the keyword detection result of each frame of operating system display data, and can use the BMC to monitor the text content of the operating system display image of the server host, thereby realizing the function of actively monitoring the server host, improving the stability and monitorability of the server operation, improving the stability and monitorability of the server operation, and reducing the workload of management personnel.
[0087] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer program product. The computer program product described below and the server monitoring method described above can refer to each other.
[0088] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the server monitoring method provided in the above method embodiment.
[0089] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the server monitoring method described above can refer to each other.
[0090] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the server monitoring method of the above method embodiment.
[0091] Corresponding to the above method embodiment, an embodiment of the present invention further provides a baseboard management controller. The baseboard management controller described below and the server monitoring method described above can refer to each other.
[0092] Please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of a baseboard management controller provided by an embodiment of the present invention. The baseboard management controller may include:
[0093] Memory D1, for storing computer programs;
[0094] The processor D2 is configured to implement the steps of the server monitoring method provided in the above method embodiment when executing a computer program.
[0095] Corresponding to the above method embodiment, an embodiment of the present invention further provides a server. The server described below and the server monitoring method described above can refer to each other.
[0096] A server includes: a baseboard management controller as provided in the above embodiment.
[0097] The server provided in this embodiment may further include a server host in communication with the baseboard management controller.
[0098] In some embodiments, the baseboard management controller may include a video capture chip for capturing each frame of operating system display data from a graphics card interface of the server host and storing each frame of operating system display data in a graphics memory.
[0099] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. References to the common and similar parts between the various embodiments are sufficient. The apparatus, computer program product, computer-readable storage medium, baseboard management controller, and server disclosed in the embodiments are described briefly because they correspond to the methods disclosed in the embodiments. For relevant details, refer to the method description.
[0100] The above is a detailed introduction to a server monitoring method, computer program product, baseboard management controller, and server provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A server monitoring method, characterized in that: Applicable to baseboard management controllers, including: Obtaining the operating system display data of each frame of the server host stored in the video memory; Performing keyword detection on the operating system display data of each frame to obtain keyword detection results of the operating system display data of each frame; If the keyword detection result of the current operating system display data is that the keyword exists, an alarm message is generated based on the target display data; wherein the current operating system display data is the operating system display data of any frame, the target display data includes the current operating system display data, and the alarm message includes a screenshot image corresponding to the target display data.
2. The server monitoring method according to claim 1, wherein: Performing keyword detection on the operating system display data of each frame to obtain keyword detection results of the operating system display data of each frame includes: Perform image and text recognition on the current operating system display data to identify the text information corresponding to the current operating system display data; Perform keyword screening on the text information to obtain keyword detection results of the current operating system display data.
3. The server monitoring method according to claim 2, wherein: Perform image and text recognition on the current operating system display data to identify the text information corresponding to the current operating system display data, including: Performing image preprocessing on the current operating system display data to obtain a preprocessed image corresponding to the current operating system display data; wherein the image preprocessing includes at least one of grayscale processing, binarization processing, denoising processing, and tilt correction; Performing text region detection processing on the pre-processed image to obtain character regions in the pre-processed image; wherein the text region detection processing includes at least one of text positioning processing, line segmentation processing, and character segmentation processing; Performing character recognition processing on the character area to obtain a character recognition result corresponding to the character area; wherein the character recognition processing includes at least one of feature extraction processing, classifier recognition processing, and context correction processing; The character recognition result is post-processed to obtain the text information; wherein the post-processing includes text formatting processing and / or error correction processing.
4. The server monitoring method according to claim 1, wherein: Before obtaining the operating system display data of each frame of the server host stored in the video memory, the following steps are also included: A video capture chip is used to capture each frame of the operating system display data from the graphics card interface of the server host, and each frame of the operating system display data is stored in the graphics memory.
5. The server monitoring method according to claim 1, wherein: Generates alarm information based on target display data, including: The current operating system display data is saved as a screenshot image, and a corresponding system event log is generated; wherein the alarm information includes the screenshot image and the system event log.
6. The server monitoring method according to any one of claims 1 to 5, characterized in that: Generates alarm information based on target display data, including: The warning information is generated according to the keywords detected in the target display data and the current operating system display data.
7. The server monitoring method according to claim 6, wherein: Generating the warning information according to the keywords detected in the target display data and the current operating system display data includes: According to the keyword detected in the current operating system display data, the target display data is saved and determined; wherein the target display data includes the continuous frames of operating system display data in which the keyword is detected; According to the screening rule corresponding to the keyword, a frame of operating system display data is screened out from the target display data and saved as a screenshot image, and a corresponding system event log is generated; wherein the alarm information includes the screenshot image and the system event log.
8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the server monitoring method according to any one of claims 1 to 7 are implemented.
9. A baseboard management controller, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the server monitoring method according to any one of claims 1 to 7 when executing the computer program.
10. A server, characterized in that: include: The baseboard management controller as claimed in claim 9.