CN117093465A - Server log collection method, device, communication equipment and storage medium - Google Patents

Server log collection method, device, communication equipment and storage medium Download PDF

Info

Publication number
CN117093465A
CN117093465A CN202311345542.8A CN202311345542A CN117093465A CN 117093465 A CN117093465 A CN 117093465A CN 202311345542 A CN202311345542 A CN 202311345542A CN 117093465 A CN117093465 A CN 117093465A
Authority
CN
China
Prior art keywords
usb
controller
log
control unit
baseboard management
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.)
Granted
Application number
CN202311345542.8A
Other languages
Chinese (zh)
Other versions
CN117093465B (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 Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain 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 Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311345542.8A priority Critical patent/CN117093465B/en
Publication of CN117093465A publication Critical patent/CN117093465A/en
Application granted granted Critical
Publication of CN117093465B publication Critical patent/CN117093465B/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/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/349Performance evaluation by tracing or monitoring for interfaces, buses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a server log collection method, a device, communication equipment and a storage medium, comprising the following steps: determining that an external device is connected with a server log collection system through a first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller; and sending the USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into the shared memory. According to the embodiment of the application, the access of the external equipment is detected in real time through the MCU, the transmission rate is greatly improved, and the BMC and the MCU server have good compatibility and can be integrated with different types of servers, so that the expandability and the flexibility of the server are improved.

Description

Server log collection method, device, communication equipment and storage medium
Technical Field
The application relates to the technical field of log collection, in particular to a method and a device for collecting server logs, communication equipment and a storage medium.
Background
In the field of servers, a Type-C interface is a novel USB interface for connecting external equipment with a server system, has multiple functions such as power transmission, high-speed data transmission and video transmission, and is used for server data transmission, the Type-C interface is used for high-speed data transmission, and a baseboard management controller can be connected with storage equipment on the server through the Type-C interface to realize quick data transmission and backup.
At present, the mobile phone connection server can be accessed into the baseboard management controller through the Type-C interface, and the baseboard management controller can manually copy data to the mobile phone, for example, log information of the baseboard management controller is downloaded and copied through third-party software, so that the log information is obtained.
However, in the method of performing log transmission only through the baseboard management controller and the external device, all log transmission acquisition modules are integrated in the baseboard management controller, and the baseboard management controller needs to be responsible for a large amount of other work in normal operation of the system, so that the baseboard management controller is overloaded and the transmission rate with the external device is reduced.
Disclosure of Invention
The embodiment of the application aims to provide a server log collection method, a device, communication equipment and a storage medium, which are used for solving the technical problems that in the prior art, the robustness is insufficient and even a system cannot work normally when only single frame data is used for judging a place. The specific technical scheme is as follows:
The embodiment of the application aims to provide a server log collection method, a device, communication equipment and a storage medium, which are used for solving the technical problems that in the prior art, the load of a substrate management controller is excessive and the transmission rate with external equipment is reduced only by log transmission through the substrate management controller and the external equipment. The specific technical scheme is as follows:
in a first aspect of the present application, there is provided a server log collection method, applied to a micro control unit, the server log collection method including:
determining that an external device is accessed to a server log collection system through a first USB controller, wherein the server log collection system comprises a micro-control unit and a baseboard management controller, the micro-control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
and sending a USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
Optionally, before the step of determining, by the first USB controller, that the external device accesses the server log collection system, the method includes:
and setting the first USB controller to be in a main control state under the condition that the server log collecting system is detected to be in a starting state and the external equipment is accessed to the server log collecting system, wherein the main control state is used for controlling the external equipment.
Optionally, after the step of sending a USB interrupt to the second USB controller to cause the baseboard management controller to trigger a log collection process according to the USB interrupt and collect log information into a shared memory, the method includes:
receiving a data analysis and storage instruction sent by the baseboard management controller through a USB (universal serial bus) channel;
and carrying out data analysis and classified storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classified storage result.
Optionally, the data analysis and classification storage of the log information according to the data analysis and storage instruction respectively obtain a data analysis result and a classification storage result, which include:
pulling log information in the shared memory according to the data analysis instruction;
The log information is classified and stored to obtain a classified and stored result, and,
and carrying out data analysis on the log information to obtain a data analysis result.
Optionally, the step of classifying and storing the log information to obtain a classified and stored result includes:
and carrying out classified storage on the log information based on a preset type through a preset cluster analysis algorithm to obtain a first classified storage result, wherein the preset type comprises at least one of a component, temperature, CPU and memory.
Optionally, the step of classifying and storing the log information to obtain a classified and stored result includes:
and classifying and storing the log information based on alarm levels through a preset language processing algorithm to obtain a second classified storage result, wherein the alarm levels comprise serious alarms and non-serious alarms.
Optionally, the performing data analysis on the log information to obtain a data analysis result includes:
constructing an anomaly detection model for the log information through a preset anomaly detection algorithm;
and detecting the abnormal information of the log information through the abnormal detection model to obtain abnormal log information.
Optionally, after the steps of performing data analysis and classification storage on the log information according to the data analysis storage instruction to obtain a data analysis result and a classification storage result respectively, the method includes:
updating the data analysis result and the classified storage result to the shared memory;
and sending log storage completion information to the baseboard management controller through the USB path.
Optionally, after the step of sending log storage completion information to the baseboard management controller through the USB path, the method includes:
and under the condition that the first USB controller is detected to be in the main control state, continuously monitoring whether a new external device exists or not through the second USB controller.
In still another aspect of the present application, another server log collection method is provided, applied to a baseboard management controller, where the server log collection method includes:
receiving a USB interrupt sent by a micro control unit through a second USB controller, wherein the USB interrupt is generated when the micro control unit determines that an external device is connected to a server log collection system through a first USB controller, the server log collection system comprises the micro control unit and a baseboard management controller, the micro control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller;
Triggering a log collecting process according to the USB interrupt, and collecting log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
Optionally, triggering a log collection process according to the USB interrupt, and collecting log information into a shared memory includes:
invoking a preset interrupt processing program in the micro control unit, and resetting a USB interrupt flag bit;
triggering a log collecting process according to the USB interrupt flag bit, and collecting log information into a shared memory.
Optionally, after the step of triggering a log collection process according to the USB interrupt and collecting log information into the shared memory, the method further includes:
and a data analysis and storage instruction is sent to the micro control unit through a USB (universal serial bus) channel, so that the micro control unit performs data analysis and classified storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classified storage result.
Optionally, after the step of sending a data analysis and storage instruction to the micro control unit through a USB path, so that the micro control unit performs data analysis and classification storage on the log information according to the data analysis and storage instruction, to obtain a data analysis result and a classification storage result respectively, the method includes:
Receiving log storage completion information sent by the micro control unit through a USB (universal serial bus) access;
switching the second USB controller to a master control state and switching the first USB controller to a slave control state;
and sending the log information to the external device through the second USB controller.
Optionally, the sending, by the second USB controller, the log information to the external device includes:
copying the data analysis result and the classified storage result to the external equipment through the second USB controller.
Optionally, the sending, by the second USB controller, the log information to the external device includes:
and under the condition that the completion of the log information storage in the external equipment is detected, switching the second USB controller into a slave control state and switching the first USB controller into a master control state, so that the micro control unit continuously monitors whether a new external equipment exists or not through the second USB controller.
In yet another aspect of the present application, a server log collection system is provided, where the server log collection system includes a micro control unit, a baseboard management controller, and a shared memory, where the micro control unit and the baseboard management controller are connected by a USB bus;
The micro control unit comprises a first USB controller, and the baseboard management controller comprises a second USB controller;
the first USB controller is used for determining that the external equipment is accessed into the server log collection system;
the second USB controller is used for receiving the USB interrupt sent by the first USB control, triggering a log collecting process according to the USB interrupt and collecting log information into a shared memory;
and the external device reads the log information through the shared memory.
In still another aspect of the present application, there is also provided a server log collecting apparatus, including:
the system comprises a determining module, a receiving module and a processing module, wherein the determining module is used for determining that an external device is connected to a server log collecting system through a first USB controller, the server log collecting system comprises a micro-control unit and a baseboard management controller, the micro-control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
the sending module is used for sending USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
In still another aspect of the present application, there is also provided another server log collecting apparatus, including:
the receiving module is used for receiving the USB interrupt sent by the micro-control unit through the second USB controller, wherein the USB interrupt is generated when the micro-control unit determines that an external device is connected to the server log collecting system through the first USB controller, the server log collecting system comprises the micro-control unit and a baseboard management controller, the micro-control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller;
the collection module is used for triggering a log collection process according to the USB interrupt and collecting log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
In yet another aspect of the present application, there is also provided a communication device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
and the processor is used for realizing any one of the server log collection methods when executing the programs stored in the memory.
In yet another aspect of the present application, there is also provided a computer readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform any of the server log collection methods described above.
According to the server log collection method provided by the embodiment of the application, the external equipment is determined to be accessed into the server log collection system through the first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller; and sending a USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller. Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart illustrating steps of a method for collecting server logs according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of another method for collecting server logs according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating steps 205 in the flowchart illustrating steps of another method for collecting server logs according to the embodiment of the present application shown in FIG. 2;
FIG. 4 is a flowchart illustrating steps of another method for collecting server logs according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps of another method for collecting server logs according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a server log collection system according to an embodiment of the present application;
fig. 7 shows a device block diagram of a server log collection device according to an embodiment of the present application;
FIG. 8 is a block diagram of another server log collection device according to an embodiment of the present application;
fig. 9 shows a block diagram of a communication device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
Referring to fig. 1, a step flowchart of a server log collection method provided by an embodiment of the present application is shown, where the method may include:
step 101, determining that an external device is accessed to a server log collection system through a first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
It should be noted that, in the embodiment of the present application, the present application is applied to a micro control unit (Microcontroller Unit, MCU), and the present application is based on a bmc+mcu architecture, where the architecture of the BMC in combination with the AI core MCU can release the BMC master core occupation.
In a server, a baseboard management controller (baseboard management controller, BMC) is a chip dedicated to managing and monitoring motherboard hardware, and an MCU is a small microcontroller that controls peripheral devices or performs specific tasks. Because MCU's low-power consumption, lightweight advantage can the short-term test peripheral hardware change, consequently, when external equipment, for example, USB (Type-C) equipment inserts the back, the first USB controller that contains in the MCU can regard as USB HOST end, and MCU at this moment promptly has master control right to external equipment, is in master control state to realize whether the external equipment of automatic detection new access exists.
The USB HOST refers to that the current Device (MCU) may be connected to a USB peripheral Device, such as a USB disk, a keyboard, a mouse, etc., and the USB Device (some places translate into a target) is equivalent to the current Device (MCU), which means that the Device may be connected to the USB HOST with the identity of the USB disk.
Specifically, the external device in the present application may be a mobile phone with a Type-C interface or a USB direct-plug device, for example, a USB flash disk, which is described in the following taking a mobile phone device with a Type-C interface as an example for the convenience of understanding by those skilled in the art.
After the server is normally powered on, a Real-time operating system (Real-time operating system, RTOS) running on the MCU is preferably booted, that is, the MCU is started earlier than the BMC, so that after the Type-C interface is connected to the mobile phone device, the first USB controller of the MCU can preferably acquire control rights to detect the new USB device in Real time.
Step 102, sending a USB interrupt to the second USB controller, so that the baseboard management controller triggers a log collection process according to the USB interrupt, and collects log information into a shared memory, where the shared memory is used to store the log information fed back by the baseboard management controller and the micro control unit, and the external device reads the log information through the baseboard management controller.
The first USB controller of the MCU can be used as a USB HOST end to detect the access of an external device, and after the external device is accessed, the USB SLAVE end, namely a second USB controller contained in the BMC, is informed through USB interrupt to inform the main core of interrupt processing.
It should be noted that, in the embodiment of the present application, the USB interrupt is an asynchronous communication manner, and the interaction of data transmission and control signals between the device and the host is implemented through the preset interrupt processing program, and in the Linux kernel, the processing of the USB interrupt needs to pass through multiple layers of protocol stacks including the USB driver, the USB core, the USB controller, and the hardware device, so that when implementing the USB interrupt processing program, each layer of the protocol stack needs to be considered, so as to ensure reliable and stable communication between the USB device and the host.
Therefore, after receiving the USB interrupt, the second USB controller in the BMC triggers a process in the BMC, i.e. a log collection process, where log information about the BMC is collected, where the log information of the BMC stores the running conditions of the system board and the accessory device, and the running conditions of the component can be checked through the log.
Furthermore, the collected log information is not stored in the BMC, but is stored in the shared memory, wherein the storage content in the shared memory is shared by the BMC and the MCU, the log information in the shared memory can be read by the external device through the BMC.
According to the server log collection method provided by the embodiment of the application, the external equipment is determined to be accessed into the server log collection system through the first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller; and sending a USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller. Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
Referring to fig. 2, a flowchart illustrating steps of another method for collecting server logs according to an embodiment of the present application may include:
step 201, setting a first USB controller to a main control state when it is detected that a server log collection system is in a power-on state and an external device is connected to the server log collection system, where the main control state is used to control the external device.
It should be noted that, in the embodiment of the present application, the MCU and the BMC both include a USB controller, the former includes a first USB controller, the latter includes a second USB controller, and the two USB controllers may switch control states according to actual functions of the MCU and the BMC, where the control states include a master control state and a slave control state, and when the first USB controller is in the master control state, the MCU may be used as a USB host connected to an external USB device, and control and determine the external device.
Step 202, determining that an external device is accessed to a server log collection system through a first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
Step 203, a USB interrupt is sent to the second USB controller, so that the baseboard management controller triggers a log collection process according to the USB interrupt, and log information is collected into a shared memory, where the shared memory is used to store the log information fed back by the baseboard management controller and the micro control unit, and the external device reads the log information through the baseboard management controller.
It should be noted that, in the embodiment of the present application, the steps 202-203 are discussed with reference to the foregoing, and are not repeated here.
Step 204, receiving a data analysis and storage instruction sent by the baseboard management controller through a USB channel;
it should be noted that, in the embodiment of the present application, after the BMC collects the log information and stores the log information in the shared memory, the MCU is notified through the USB communication, so that the MCU can analyze and process the log information in the shared memory, and at this time, the BMC does not participate in the process of analyzing and processing the log information.
And 205, carrying out data analysis and classified storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classified storage result.
Therefore, the MCU performs data analysis and classified storage on the log information based on the work instruction sent by the BMC, namely the data analysis and storage instruction, so as to respectively obtain a data analysis result and a classified storage result.
Further, as shown in fig. 3, fig. 3 shows a step flowchart of step 205 in the step flowchart of another server log collection method provided in fig. 2 for an embodiment of the present application, which may include the following steps 2051-2052:
step 2051, pulling log information in the shared memory according to the data analysis instruction;
step 2052, performing classified storage on the log information to obtain a classified storage result, and performing data analysis on the log information to obtain a data analysis result.
Specifically, the data analysis process of the MCU pulls log data in the shared memory, performs classified storage according to different algorithms and performs data analysis on the log information to ensure that no abnormal operation data exists in the system.
Therefore, three kinds of processing can be performed by three kinds of algorithms, including a preset cluster analysis algorithm required for classifying and storing based on data types, a preset language processing algorithm required for classifying and storing based on alarm levels in log information, and an abnormality detection model required for abnormality detection of log information.
Further, the step of classifying and storing the log information to obtain a classified and stored result includes: and carrying out classified storage on the log information based on a preset type through a preset cluster analysis algorithm to obtain a first classified storage result, wherein the preset type comprises at least one of a component, temperature, CPU and memory.
For the first type, based on a preset cluster analysis algorithm required by data type classified storage, the cluster analysis method is a multivariate statistical technique, mainly comprises a hierarchical cluster method and an iterative cluster method, the cluster analysis is also called group analysis and point group analysis, is a multivariate statistical method for research classification, and is used for classifying and storing logs in log information according to preset types such as components, temperature, CPU (Central processing Unit), memory and the like, and identifying similar modes and abnormal modes in data, so that the efficiency and accuracy of log analysis are improved.
In another embodiment of the present application, the storing the log information in a classification manner, to obtain a classification storage result includes: and classifying and storing the log information based on alarm levels through a preset language processing algorithm to obtain a second classified storage result, wherein the alarm levels comprise serious alarms and non-serious alarms.
For the second type, based on the preset language processing algorithm required by the alarm level classified storage in the log information, the natural language processing algorithm can realize effective communication between people and computers by natural language, and the alarm level of the log in the log information is classified and stored, wherein the alarm level comprises serious alarms and non-serious alarms.
The step of carrying out data analysis on the log information to obtain a data analysis result comprises the following steps: constructing an anomaly detection model for the log information through a preset anomaly detection algorithm; and detecting the abnormal information of the log information through the abnormal detection model to obtain abnormal log information.
And thirdly, performing machine learning anomaly detection on the log information, namely performing machine learning according to common anomaly faults, analyzing and learning the log data of the server, establishing an anomaly detection model, identifying anomaly behaviors and timely taking measures, performing deep learning on the log data, automatically finding patterns, correlations and rules in the data, improving the accuracy and efficiency of log analysis, and performing fault prediction.
It should be noted that the algorithm model required in the three data analysis and storage methods is not particularly limited in the application, and can be selected according to the actual requirements of the user service scene.
Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
In addition, the BMC and the MCU server have higher reliability, remote management and monitoring can be provided under the condition that the server fails, and the influence of the server failure is reduced. The current state of the server can be mastered by the peripheral device quickly through log classification and operation of predicting alarm storage to the mobile phone, and reliability is improved.
In addition, by applying the artificial intelligence technology to the BMC and MCU servers, automatic management and monitoring can be realized, thereby improving the intelligent level of the servers. Algorithms such as cluster analysis and machine learning are used in log analysis, so that the update of the server is intelligent.
Referring to fig. 4, a flowchart illustrating steps of another method for collecting server logs according to an embodiment of the present application may include:
step 401, determining that an external device is connected to a server log collection system through a first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
step 402, sending a USB interrupt to the second USB controller, so that the baseboard management controller triggers a log collection process according to the USB interrupt, and collects log information into a shared memory, where the shared memory is used to store the log information fed back by the baseboard management controller and the micro control unit, and the external device reads the log information through the baseboard management controller.
Step 403, receiving a data analysis and storage instruction sent by the baseboard management controller through a USB channel;
and step 404, performing data analysis and classification storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classification storage result.
It should be noted that, in the embodiment of the present application, the steps 401 to 404 are discussed with reference to the foregoing, and are not repeated here.
Step 405, updating the data analysis result and the classified storage result to the shared memory;
it should be noted that, after the MCU analyzes and processes the data in the shared memory, the MCU updates the data analysis result and the classification storage result to the shared memory.
Step 406, sending log storage completion information to the baseboard management controller through the USB channel.
Furthermore, the BMC is notified of the completion of log storage through the USB channel, and after receiving the log storage completion information sent by the MCU, the BMC performs communication transmission on data required by the external device, and specifically, reference is made to other embodiments.
Step 407, if it is detected that the first USB controller is in the main control state, continuing to monitor whether a new external device exists through the second USB controller.
After the data copy and storage of the external device are completed, the BMC releases the main control right of the second USB controller, namely, switches the control state, and at the moment, the MCU can be used as the USB HOST end of the new external device again to monitor the new external device continuously.
Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
In addition, the BMC server can realize remote management and monitoring, remote control and diagnosis can be carried out on the server, and the MCU server can realize lower delay and efficient data processing, so that data transmission and control signal mutual transmission are realized through the USB bus, namely, the MUC and BMC are controlled to external equipment in stages by switching the states of the first USB controller and the second USB controller to the main control state and from the control state, and the response speed and the processing capacity of the server are improved.
Referring to fig. 5, a flowchart illustrating steps of another method for collecting server logs according to an embodiment of the present application may include:
step 501, receiving a USB interrupt sent by a micro control unit through a second USB controller, wherein the USB interrupt is generated when the micro control unit determines that an external device is connected to a server log collection system through a first USB controller, the server log collection system comprises the micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller;
It should be noted that, in the embodiment of the present application, the step 501 is discussed with reference to the foregoing, and is not repeated here.
Step 502, triggering a log collecting process according to the USB interrupt, and collecting log information into a shared memory, where the shared memory is used to store the log information fed back by the baseboard management controller and the micro control unit, and the external device reads the log information through the baseboard management controller;
further, triggering the log collection process according to the USB interrupt, and collecting log information into the shared memory includes: invoking a preset interrupt processing program in the micro control unit, and resetting a USB interrupt flag bit; triggering a log collecting process according to the USB interrupt flag bit, and collecting log information into a shared memory.
It should be noted that, the application is applied to BMC, for BMC, triggering log collection process through USB interrupt calls the preset interrupt processing program in MCU, and clears the USB interrupt flag bit; triggering a log collecting process according to the USB interrupt flag bit, and collecting log information into a shared memory.
Specifically, a USB interrupt processing program in the kernel is called to clear a USB interrupt flag bit, the MCU side can continuously monitor the access of new USB equipment in real time, the BMC side triggers a log collecting process according to the interrupt, and the log is collected to the shared memory for storage.
And step 503, a data analysis and storage instruction is sent to the micro control unit through a USB (universal serial bus) channel, so that the micro control unit performs data analysis and classified storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classified storage result.
Step 504, receiving log storage completion information sent by the micro control unit through a USB access;
it should be noted that, in the embodiment of the present application, the steps 503-504 are referred to the previous discussion, and are not repeated here.
Step 505, switching the second USB controller to a master control state, and switching the first USB controller to a slave control state;
and step 506, transmitting the log information to the external device through the second USB controller.
It should be noted that, in the embodiment of the present application, after the BMC receives the notification, the second USB controller is switched to the Master, that is, the Master control state, and then the first USB controller in the corresponding MCU is switched to the slave control state at this time, and because the transmission data Type has a higher requirement on the CPU frequency, the data transmission is handed over to the BMC to implement direct communication with the external device, for example, the Type-C storage device.
And the BMC copies the classification log and the fault prediction result in the shared memory to the Type-C mobile phone equipment.
Further, step 506 includes: copying the data analysis result and the classified storage result to the external equipment through the second USB controller.
It should be noted that, in addition to the above manner, in the embodiment of the present application, data required by other external devices may be transmitted to the external device through the above manner.
And step 507, switching the second USB controller to a slave control state and switching the first USB controller to a master control state under the condition that the completion of the log information storage in the external device is detected, so that the micro control unit continues to monitor whether a new external device exists or not through the second USB controller.
It should be noted that, in the embodiment of the present application, after the storage is completed, the BMC releases the Master control right of the second USB controller, that is, switches to the slave control state again, so that the MCU continues to monitor the new USB device.
Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
Referring to fig. 6, fig. 6 shows a server log collection system provided by an embodiment of the present application, where the server log collection system includes a micro control unit, a baseboard management controller, and a shared memory, where the micro control unit and the baseboard management controller are connected by a USB bus;
the micro control unit comprises a first USB controller, and the baseboard management controller comprises a second USB controller;
the first USB controller is used for determining that the external equipment is accessed into the server log collection system;
the second USB controller is used for receiving the USB interrupt sent by the first USB control, triggering a log collecting process according to the USB interrupt and collecting log information into a shared memory;
and the external device reads the log information through the shared memory.
It should be noted that, after the external device is accessed, the first USB controller of the MCU will be used as the USB HOST end to detect the new device access, notify the USB SLAVE end, that is, the second USB controller of the BMC, to notify the main core of interrupt processing through USB interrupt, notify the MCU to perform new device plug monitoring after interrupt processing is completed, the BMC clears the interrupt flag bit after interrupt is received, then trigger to operate a data collection process, after data collection is completed, transmit the data to the shared memory, notify the MCU through USB channel communication, the MCU pulls the shared memory data to perform intelligent algorithm processing, perform cluster analysis, natural language processing, and machine learning anomaly detection on the log data, the data processing process of the MCU will store the processed log information and result into the shared memory, notify the BMC through USB channel communication, and the log collection process of the BMC end automatically stores the data to the external device storage partition according to the notification information, where the overall architecture is shown in fig. 6.
Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
Referring to fig. 7, fig. 7 shows a server log collecting apparatus provided by an embodiment of the present application, where the apparatus includes:
A determining module 701, configured to determine, by using a first USB controller, that an external device accesses a server log collection system, where the server log collection system includes a micro control unit and a baseboard management controller, where the micro control unit includes the first USB controller, and the baseboard management controller includes a second USB controller;
the sending module 702 is configured to send a USB interrupt to the second USB controller, so that the baseboard management controller triggers a log collection process according to the USB interrupt, and collects log information into a shared memory, where the shared memory is used to store the log information fed back by the baseboard management controller and the micro control unit, and the external device reads the log information through the baseboard management controller.
Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
Referring to fig. 8, fig. 8 shows a server log collecting apparatus provided by an embodiment of the present application, where the apparatus includes:
a receiving module 801, configured to receive, by using a second USB controller, a USB interrupt sent by a micro control unit, where the USB interrupt is generated when the micro control unit determines, by using a first USB controller, that an external device is connected to a server log collection system, where the server log collection system includes a micro control unit and a baseboard management controller, where the micro control unit includes the first USB controller, and where the baseboard management controller includes the second USB controller;
the collecting module 802 is configured to trigger a log collecting process according to the USB interrupt, and collect log information into a shared memory, where the shared memory is configured to store the log information fed back by the baseboard management controller and the micro control unit, and the external device reads the log information through the baseboard management controller.
Compared with the prior art that log collection and transmission are realized only through a single BMC, the embodiment of the application adopts a USB interface in a communication mode between the BMC and the MCU, realizes data transmission and control signal mutual transmission through a USB bus, has the advantages of usability, reliability and the like, and can also support high-speed data transmission and connection of various different types of equipment. Therefore, the management efficiency and the reliability of the server can be improved by realizing the communication between the BMC and the MCU through the USB interface, and further, the load of the BMC can be greatly reduced and the transmission efficiency between the BMC and the external device can be improved by introducing the MCU to determine the external device and the subsequent storage processing of log information.
The embodiment of the present application also provides a communication device, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 perform communication with each other through the communication bus 904,
a memory 903 for storing a computer program;
the processor 901, when executing the program stored in the memory 903, may implement the following steps:
determining that an external device is accessed to a server log collection system through a first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
and sending a USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium having instructions stored therein that when run on a computer cause the computer to perform log collection as described in any of the above embodiments is also provided.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the log collection of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or third database to another website, computer, server, or third database by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, third databases, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (20)

1. A server log collection method, applied to a micro control unit, comprising:
determining that an external device is accessed to a server log collection system through a first USB controller, wherein the server log collection system comprises a micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
and sending a USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
2. The server log collection method according to claim 1, wherein before the step of determining, by the first USB controller, that the external device is connected to the server log collection system, the method comprises:
and setting the first USB controller to be in a main control state under the condition that the server log collecting system is detected to be in a starting state and the external equipment is accessed to the server log collecting system, wherein the main control state is used for controlling the external equipment.
3. The server log collection method according to claim 1, wherein after the step of sending a USB interrupt to the second USB controller to cause the baseboard management controller to trigger a log collection process according to the USB interrupt and collect log information into a shared memory, the method comprises:
receiving a data analysis and storage instruction sent by the baseboard management controller through a USB (universal serial bus) channel;
and carrying out data analysis and classified storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classified storage result.
4. The method for collecting logs of a server according to claim 3, wherein the performing data analysis and classification storage on the log information according to the data analysis and storage instruction, respectively obtaining a data analysis result and a classification storage result, includes:
Pulling log information in the shared memory according to a data analysis instruction;
the log information is classified and stored to obtain a classified and stored result, and,
and carrying out data analysis on the log information to obtain a data analysis result.
5. The method for collecting logs of a server according to claim 4, wherein the step of storing the log information in a classification manner includes:
and carrying out classified storage on the log information based on a preset type through a preset cluster analysis algorithm to obtain a first classified storage result, wherein the preset type comprises at least one of a component, temperature, CPU and memory.
6. The method for collecting logs of a server according to claim 4, wherein the step of storing the log information in a classification manner includes:
and classifying and storing the log information based on alarm levels through a preset language processing algorithm to obtain a second classified storage result, wherein the alarm levels comprise serious alarms and non-serious alarms.
7. The method for collecting logs of the server according to claim 4, wherein the performing data analysis on the log information to obtain a data analysis result includes:
Constructing an anomaly detection model for the log information through a preset anomaly detection algorithm;
and detecting the abnormal information of the log information through the abnormal detection model to obtain abnormal log information.
8. The server log collection method according to claim 3, wherein after the steps of data analysis and classification storage of the log information according to the data analysis storage instruction, respectively, obtaining a data analysis result and a classification storage result, the method comprises:
updating the data analysis result and the classified storage result to the shared memory;
and sending log storage completion information to the baseboard management controller through the USB path.
9. The server log collection method according to claim 8, wherein after the step of transmitting log storage completion information to the baseboard management controller through the USB path, the method comprises:
and under the condition that the first USB controller is detected to be in the main control state, continuously monitoring whether a new external device exists or not through the second USB controller.
10. A server log collection method, applied to a baseboard management controller, comprising:
Receiving a USB interrupt sent by a micro control unit through a second USB controller, wherein the USB interrupt is generated when the micro control unit determines that an external device is connected with a server log collection system through a first USB controller, the server log collection system comprises the micro control unit and a baseboard management controller, the micro control unit and the baseboard management controller are in communication connection through a USB bus, the micro control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller;
triggering a log collecting process according to the USB interrupt, and collecting log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
11. The method of claim 10, wherein triggering the log collection process according to the USB interrupt and collecting log information into the shared memory comprises:
invoking a preset interrupt processing program in the micro control unit, and resetting a USB interrupt flag bit;
Triggering a log collecting process according to the USB interrupt flag bit, and collecting log information into a shared memory.
12. The server log collection method of claim 10, wherein after the step of triggering a log collection process based on the USB interrupt and collecting log information into a shared memory, the method further comprises:
and a data analysis and storage instruction is sent to the micro control unit through a USB (universal serial bus) channel, so that the micro control unit performs data analysis and classified storage on the log information according to the data analysis and storage instruction to respectively obtain a data analysis result and a classified storage result.
13. The server log collection method according to claim 12, wherein after the step of transmitting a data analysis storage instruction to the micro control unit via a USB path to cause the micro control unit to perform data analysis and classification storage on the log information according to the data analysis storage instruction to obtain a data analysis result and a classification storage result, respectively, the method comprises:
receiving log storage completion information sent by the micro control unit through a USB (universal serial bus) access;
Switching the second USB controller to a master control state and switching the first USB controller to a slave control state;
and sending the log information to the external device through the second USB controller.
14. The server log collection method of claim 13, wherein the sending the log information to the external device via the second USB controller comprises:
copying the data analysis result and the classified storage result to the external equipment through the second USB controller.
15. The server log collection method according to claim 13, wherein after the step of transmitting the log information to the external device through the second USB controller, the method comprises:
and under the condition that the completion of the log information storage in the external equipment is detected, switching the second USB controller into a slave control state and switching the first USB controller into a master control state, so that the micro control unit continuously monitors whether a new external equipment exists or not through the second USB controller.
16. The server log collection system is characterized by comprising a micro control unit, a baseboard management controller and a shared memory, wherein the micro control unit and the baseboard management controller are in communication connection through a USB bus;
The micro control unit comprises a first USB controller, and the baseboard management controller comprises a second USB controller;
the first USB controller is used for determining that the external equipment is accessed into the server log collection system;
the second USB controller is used for receiving the USB interrupt sent by the first USB control, triggering a log collecting process according to the USB interrupt and collecting log information into a shared memory;
and the external device reads the log information through the shared memory.
17. A server log collecting apparatus, which is applied to a micro control unit, comprising:
the system comprises a determining module, a receiving module and a processing module, wherein the determining module is used for determining that an external device is connected to a server log collecting system through a first USB controller, the server log collecting system comprises a micro-control unit and a baseboard management controller, the micro-control unit comprises the first USB controller, and the baseboard management controller comprises a second USB controller;
the sending module is used for sending USB interrupt to the second USB controller so that the baseboard management controller triggers a log collection process according to the USB interrupt and collects log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
18. A server log collection apparatus, applied to a baseboard management controller, comprising:
the receiving module is used for receiving the USB interrupt sent by the micro-control unit through the second USB controller, wherein the USB interrupt is generated when the micro-control unit determines that an external device is connected to the server log collecting system through the first USB controller, the server log collecting system comprises the micro-control unit and a baseboard management controller, the micro-control unit comprises the first USB controller, and the baseboard management controller comprises the second USB controller;
the collection module is used for triggering a log collection process according to the USB interrupt and collecting log information into a shared memory, wherein the shared memory is used for storing the log information fed back by the baseboard management controller and the micro control unit, and the external equipment reads the log information through the baseboard management controller.
19. A communication device, comprising: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor;
the processor is configured to read a program in the memory to implement the server log collection method according to any one of claims 1 to 9, or the server log collection method according to any one of claims 10 to 15.
20. A readable storage medium storing a program, wherein the program when executed by a processor implements the server log collection method according to any one of claims 1 to 9 or the server log collection method according to any one of claims 10 to 15.
CN202311345542.8A 2023-10-17 2023-10-17 Server log collection method, device, communication equipment and storage medium Active CN117093465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311345542.8A CN117093465B (en) 2023-10-17 2023-10-17 Server log collection method, device, communication equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311345542.8A CN117093465B (en) 2023-10-17 2023-10-17 Server log collection method, device, communication equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117093465A true CN117093465A (en) 2023-11-21
CN117093465B CN117093465B (en) 2024-01-26

Family

ID=88772173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311345542.8A Active CN117093465B (en) 2023-10-17 2023-10-17 Server log collection method, device, communication equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117093465B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873771A (en) * 2024-03-11 2024-04-12 浪潮计算机科技有限公司 System downtime processing method, device, equipment, storage medium and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597685A (en) * 2019-08-16 2019-12-20 苏州浪潮智能科技有限公司 Tool and method for collecting Log files of server system
CN114416498A (en) * 2021-12-17 2022-04-29 中科可控信息产业有限公司 Log obtaining method and device, computer equipment and storage medium
CN114546779A (en) * 2022-02-26 2022-05-27 苏州浪潮智能科技有限公司 Method, device, equipment and medium for acquiring server system logs
CN114816935A (en) * 2022-05-30 2022-07-29 苏州浪潮智能科技有限公司 Server log collection device and server
CN115858297A (en) * 2022-12-16 2023-03-28 苏州浪潮智能科技有限公司 Server management board card, log data collection method, device and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597685A (en) * 2019-08-16 2019-12-20 苏州浪潮智能科技有限公司 Tool and method for collecting Log files of server system
CN114416498A (en) * 2021-12-17 2022-04-29 中科可控信息产业有限公司 Log obtaining method and device, computer equipment and storage medium
CN114546779A (en) * 2022-02-26 2022-05-27 苏州浪潮智能科技有限公司 Method, device, equipment and medium for acquiring server system logs
CN114816935A (en) * 2022-05-30 2022-07-29 苏州浪潮智能科技有限公司 Server log collection device and server
CN115858297A (en) * 2022-12-16 2023-03-28 苏州浪潮智能科技有限公司 Server management board card, log data collection method, device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873771A (en) * 2024-03-11 2024-04-12 浪潮计算机科技有限公司 System downtime processing method, device, equipment, storage medium and server
CN117873771B (en) * 2024-03-11 2024-06-07 浪潮计算机科技有限公司 System downtime processing method, device, equipment, storage medium and server

Also Published As

Publication number Publication date
CN117093465B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN105357038B (en) Monitor the method and system of cluster virtual machine
CN110519365B (en) Method for changing equipment service and service changing system
CN102597962B (en) Method and system for fault management in virtual computing environments
CN117093465B (en) Server log collection method, device, communication equipment and storage medium
US11706080B2 (en) Providing dynamic serviceability for software-defined data centers
US20080294764A1 (en) Storage medium bearing hba information provision program, hba information provision method and hba information provision apparatus
US11157373B2 (en) Prioritized transfer of failure event log data
WO2023115999A1 (en) Device state monitoring method, apparatus, and device, and computer-readable storage medium
JP4596889B2 (en) Storage system management method
CN101286129A (en) Embedded systems debugging
CN110784374A (en) Method, device, equipment and system for monitoring operation state of service system
CN109240876A (en) Example monitoring method, computer readable storage medium and terminal device
WO2019034095A1 (en) Software processing method and apparatus, electronic device and computer-readable storage medium
CN113656168A (en) Method, system, medium and equipment for automatic disaster recovery and scheduling of traffic
CN114244683A (en) Event classification method and device
CN115113987A (en) Method, device, equipment and medium for allocating non-uniform memory access resources
CN115718674A (en) Data disaster tolerance recovery method and device
CN108376110A (en) A kind of automatic testing method, system and terminal device
US20230359514A1 (en) Operation-based event suppression
CN109510730A (en) Distributed system and its monitoring method, device, electronic equipment and storage medium
CN115580522A (en) Method and device for monitoring running state of container cloud platform
CN114816914A (en) Data processing method, equipment and medium based on Kubernetes
CN112214437B (en) Storage device, communication method and device and computer readable storage medium
CN113656378A (en) Server management method, device and medium
CN113886490A (en) Method and system for realizing high availability of stateless computing instances in distributed database

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